:root {
  --red:        #C00000;
  --purple:     #77206D;
  --orange:     #E97132;
  --green:      #4EA72E;
  --blue:       #4C94D8;
  --pink:       #D86DCB;
  --teal:       #156082;
  --skyblue:    #45B0E1;
  --limegreen:  #47D459;
  --midblue:    #0070C0;
  --contactblue:#00B0F0;
  --rule:       #e0e0e0;
  --white:      #ffffff;
  --col:        680px;
  --nav-h:      90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--purple);
  font-family: 'Verdana', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.6rem 2.4rem; background: var(--white);
}
nav .logo {
  font-family: 'Verdana', sans-serif; font-weight: 300;
  font-size: 0.88rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--red); text-transform: uppercase;
}
nav ul { list-style: none; display: flex; gap: 2.4rem; }
nav ul li:nth-child(1) a { color: var(--purple); }
nav ul li:nth-child(2) a { color: var(--orange); }
nav ul li:nth-child(3) a { color: var(--teal); }
nav ul li:nth-child(4) a { color: var(--blue); }
nav ul li:nth-child(5) a { color: var(--pink); }
nav ul li:nth-child(6) a { color: var(--green); }
nav ul a { text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.15s; }
nav ul a:hover, nav ul a.active { opacity: 0.55; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 24px; background: none; border: none; cursor: pointer; padding: 0; z-index: 101; }
.nav-toggle span { display: block; width: 100%; height: 1px; background: var(--red); transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  nav { padding: 1.4rem; }
  .nav-toggle { display: flex; }
  nav ul { display: none; position: fixed; inset: 0; background: var(--white); flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding: 0 2.4rem; z-index: 100; }
  nav ul.open { display: flex; }
  nav ul a { font-size: 0.98rem; }
}

/* ── HERO (julie-index) ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding-bottom: 4rem; background-image: url('hero.jpeg'); background-size: cover; background-position: center; }
#hero::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.30); }
.hero-text { position: relative; z-index: 1; padding: 0 2.4rem; }
.hero-text h1 { font-family: 'Verdana', sans-serif; font-weight: 400; font-size: clamp(2.5rem, 7vw, 4.5rem); color: var(--red); line-height: 1.05; margin-bottom: 0.4rem; }
.hero-text .sub { font-size: 1rem; color: var(--purple); letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 1.8rem; right: 2.4rem; z-index: 1; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); text-decoration: none; font-family: 'Verdana', sans-serif; font-weight: 300; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.container { max-width: var(--col); margin: 0 auto; padding: 0 2.4rem; }
.rule { border: none; border-top: 1px solid var(--rule); }
section { padding: 5rem 0; }

.section-label { font-family: 'Verdana', sans-serif; font-size: 1.35rem; font-weight: 400; margin-bottom: 1.8rem; }
section p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 1.1rem; max-width: 580px; }

/* WERKBESCHRIJVING */
#werkbeschrijving .section-label { color: var(--red); }
#werkbeschrijving .p1 { color: var(--purple); }
#werkbeschrijving .p2 { color: var(--skyblue); }
#werkbeschrijving .p3 { color: var(--orange); }
#werkbeschrijving .p4 { color: var(--limegreen); }
#werkbeschrijving .p5 { color: var(--red); }
#werkbeschrijving .p6 { color: var(--teal); }
#werkbeschrijving .p7 { color: var(--midblue); }

.text-link { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; margin-top: 1.5rem; transition: opacity 0.15s; }
.text-link:hover { opacity: 0.55; }

/* SUBSCRIBE (mailchimp) */
#subscribe .section-label { color: var(--teal); }
#subscribe .intro { color: var(--purple); }
#mc_embed_signup { max-width: 420px; margin-top: 0.5rem; }
#mc_embed_signup .mc-field-group { margin-bottom: 1.2rem; }
#mc_embed_signup label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.5rem; }
#mc_embed_signup .asterisk { color: var(--red); }
#mc_embed_signup input[type="email"] {
  width: 100%; padding: 0.7rem 0; border: none; border-bottom: 1px solid var(--rule);
  background: none; font-family: 'Verdana', sans-serif; font-size: 0.95rem;
  color: var(--purple); outline: none; transition: border-color 0.15s;
}
#mc_embed_signup input[type="email"]:focus { border-bottom-color: var(--teal); }
#mc_embed_signup .button {
  font-family: 'Verdana', sans-serif; font-weight: 300; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; background: none;
  color: var(--teal); border: 1px solid var(--teal); border-radius: 0;
  padding: 0.7rem 1.6rem; cursor: pointer; transition: opacity 0.15s;
}
#mc_embed_signup .button:hover { opacity: 0.6; }
#mc_embed_signup #mce-responses { margin-top: 1rem; }
#mc_embed_signup .response { font-size: 0.85rem; padding: 0.4rem 0; }
#mce-error-response { color: var(--red); }
#mce-success-response { color: var(--green); }

/* CONTACT */
#contact .section-label { color: var(--orange); }
#contact .intro { color: var(--contactblue); }
#contact .sign  { color: var(--pink); }
#contact .name  { color: var(--green); }
#contact a { color: var(--contactblue); text-decoration: none; border-bottom: 1px solid currentColor; transition: opacity 0.15s; }
#contact a:hover { opacity: 0.6; }

/* ── PAGE HEADER (cv, toen, gallery) ── */
.page-header {
  padding: 6.5rem 2.4rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: baseline;
  gap: 0.6rem 1.4rem;
}
.page-header h1 { font-family: 'Verdana', sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--red); }
.page-header .count { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--purple); }
.page-header .intro,
.page-header p { flex-basis: 100%; font-size: 0.95rem; color: var(--purple); max-width: 600px; line-height: 1.85; }

/* ── CV ── */
.cv-body { padding: 3rem 2.4rem 6rem; max-width: 780px; margin: 0 auto; }
.cv-section { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.cv-section:last-child { border-bottom: none; }
.cv-label { font-family: 'Verdana', sans-serif; font-weight: 400; font-size: 1.35rem; margin-bottom: 1rem; }
.cv-row { display: flex; gap: 1.4rem; margin-bottom: 0.6rem; font-size: 0.95rem; }
.cv-row .year { flex: 0 0 90px; color: var(--teal); font-size: 0.78rem; letter-spacing: 0.04em; }
.cv-row .detail { flex: 1; color: var(--purple); }
@media (max-width: 560px) {
  .cv-row { flex-direction: column; gap: 0.2rem; }
  .cv-row .year { flex: none; }
}

/* ── CAT TABS (gallery) ── */
.cat-tabs { display: flex; border-bottom: 1px solid var(--rule); padding: 0 2.4rem; }
.cat-tab {
  padding: 0.8rem 1.4rem 0.7rem;
  font-family: 'Verdana', sans-serif; font-weight: 300;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: none; border-bottom: 2px solid transparent;
  background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cat-tab[data-cat="all"]      { color: var(--purple); }
.cat-tab[data-cat="drawings"] { color: var(--teal); }
.cat-tab[data-cat="paintings"]{ color: var(--orange); }
.cat-tab.active { border-bottom-color: currentColor; font-weight: 400; }
.cat-tab:hover  { opacity: 0.6; }

@media (max-width: 640px) {
  .cat-tabs { padding: 0 1.4rem; }
  .cat-tab { flex: 1; text-align: center; padding: 0.8rem 0.4rem 0.7rem; font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* ── MASONRY GRID (gallery) ── */
.masonry { column-count: 3; column-gap: 4rem; padding: 4rem 2.4rem 6rem; }

.work-item { break-inside: avoid; margin-bottom: 6rem; cursor: pointer; display: block; position: relative; overflow: hidden; }
.work-item.hidden { display: none; }
.work-item img { display: block; width: 100%; height: auto; transition: opacity 0.25s; }
.work-item:hover img { opacity: 0.85; }
.work-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(255,255,255,0.92);
  font-family: 'Verdana', sans-serif;
  font-size: 0.95rem;
  color: var(--purple); letter-spacing: 0.01em;
  transform: translateY(100%);
}
.work-item .work-meta,
#lb-caption .work-meta { opacity: 0.7; font-size: 0.8em; }

.work-title { font-style: italic; font-weight: 300; font-size: 0.9em; }

.masonry.single-col { column-count: 1; max-width: 800px; margin: 0 auto; }
.masonry.single-col .work-item img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--nav-h) - 3rem);
  margin: 0 auto;
}

/* ── TOEN GRID (left-to-right alphabetical columns) ── */
.toen-grid { display: flex; gap: 4rem; padding: 4rem 2.4rem 6rem; }
.toen-col { flex: 1; min-width: 0; }
@media (max-width: 900px) { .toen-grid { gap: 3rem; } }

.toen-item { margin-bottom: 4rem; display: block; position: relative; overflow: hidden; }
.toen-item img { display: block; width: 100%; height: auto; transition: opacity 0.25s; }
.toen-item:hover img { opacity: 0.85; }

body.page-toen { background: #F2CEED; }

.empty-state { padding: 4rem 2.4rem; font-size: 0.875rem; color: var(--purple); }
.empty-state code { background: #f4f4f4; padding: 0.1rem 0.4rem; }
.empty-note { padding: 3rem 2.4rem; font-size: 0.85rem; color: var(--teal); border: 1px dashed var(--teal); margin: 2rem 2.4rem; max-width: 520px; line-height: 1.9; }

/* ── LIGHTBOX (gallery) ── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,0.97); align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
.lb-inner { display: flex; flex-direction: column; align-items: center; max-width: 92vw; max-height: 92vh; }
#lb-img { max-width: 100%; max-height: 84vh; object-fit: contain; display: block; }
#lb-caption { margin-top: 1rem; font-family: 'Verdana', sans-serif;  font-size: 0.95rem; color: var(--purple); }
#lb-close {
  position: fixed; top: 1.6rem; right: 2.4rem;
  background: none; border: none; cursor: pointer;
  font-family: 'Verdana', sans-serif; font-weight: 300;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); transition: opacity 0.15s;
}
#lb-close:hover { opacity: 0.55; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-family: 'Verdana', sans-serif; font-weight: 300;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); padding: 1rem; transition: color 0.15s;
}
.lb-nav:hover { color: var(--red); }
#lb-prev { left: 1.6rem; }
#lb-next { right: 1.6rem; }

/* On small screens the vertically-centered prev/next buttons sit on top of
   the image itself; pin them to the bottom of the screen instead and shrink
   the image so it no longer overlaps them. */
@media (max-width: 640px) {
  #lb-img { max-height: 66vh; }
  .lb-inner { max-height: 84vh; }
  .lb-nav {
    top: auto; bottom: 0.8rem; transform: none;
    background: rgba(255,255,255,0.92);
    border-radius: 2px;
  }
  #lb-prev { left: 0.8rem; }
  #lb-next { right: 0.8rem; }
}

/* ── FOOTER ── */
footer { padding: 1.8rem 2.4rem; display: flex; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); border-top: 1px solid var(--rule); }
