/* Site styles. */

* { box-sizing: border-box; }
body { margin: 0; }

.site {
  min-height: 100vh;
  padding: var(--s-7) var(--s-8) var(--s-8);
  max-width: 1280px;
  margin: 0 auto;
}

/* ================== HERO ================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "meta"
    "name"
    "role"
    "rule";
  gap: var(--s-5);
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--rule-color);
  position: relative;
}
.hero__col-left {
  display: contents;
}
.hero__eyebrow { grid-area: meta; margin: 0 0 var(--s-3); }
.hero__name { grid-area: name; }
.hero__role { grid-area: role; margin-top: var(--s-5); }
.hero__rule { grid-area: rule; margin-top: var(--s-3); }
.hero__col-right {
  position: absolute;
  top: var(--s-9);
  right: 0;
  width: min(360px, 32%);
}
.hero__portrait { width: 100%; }
.hero__name {
  margin: 0;
  font-weight: inherit;
  font-size: clamp(56px, 7.6vw, 104px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.03em !important;
  max-width: 14ch;
}
.hero__name > span {
  font-size: inherit !important;
  line-height: inherit !important;
}
.hero__name .tussenvoegsel {
  font-size: 0.46em !important;
  top: -0.42em !important;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.hero__eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.hero__role {
  margin-top: var(--s-6);
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 52ch;
  font-family: var(--font-body);
}
.hero__rule {
  margin-top: var(--s-7);
  width: 64px;
  height: 2px;
  background: var(--accent);
}

.hero__col-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-5); }
.footer__stamp { color: var(--accent); margin-bottom: var(--s-3); }
.hero__portrait {
  margin: 0;
  width: min(360px, 100%);
  position: relative;
}
.hero__portrait img {
  width: 100%;
  display: block;
  filter: contrast(1.02) saturate(0.95);
  border: 1px solid var(--rule-color);
}
.hero__portrait figcaption {
  margin-top: var(--s-3);
  text-align: right;
}
.hero__stamp {
  position: absolute;
  right: -44px;
  bottom: 44px;
  color: var(--accent);
  transform: rotate(-12deg);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.5));
  pointer-events: none;
}

/* ================== SECTIONS ================== */
.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s-7);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--rule-color);
}
.section__label { padding-top: 6px; }
.section__body { max-width: 720px; }

/* About */
.bio .lead {
  margin-bottom: var(--s-5);
}

/* Work */
.work__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}
.work__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-6);
  align-items: baseline;
}
.work__period {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.work__role {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--fg);
}
.work__org {
  margin: 0 0 var(--s-3);
  color: var(--fg-2);
  font-size: 16px;
}
.work__note {
  margin: 0;
  color: var(--fg-2);
  max-width: 56ch;
}

/* ================== FOOTER ================== */
.footer {
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--rule-color);
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
  padding-bottom: var(--s-8);
}
.footer__col { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col--right { align-items: flex-end; justify-content: flex-end; }
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
}
.footer__list a { border-bottom: none; }
.footer__list a:hover { opacity: 0.6; }

/* ================== RESPONSIVE ================== */

/* Tablet and below */
@media (max-width: 900px) {
  .site {
    padding: var(--s-6) var(--s-6) var(--s-7);
  }

  .hero {
    padding: var(--s-7) 0 var(--s-7);
  }
  .hero__col-right {
    width: min(220px, 28%);
    top: var(--s-7);
  }
  .hero__name {
    max-width: calc(100% - min(240px, 32%));
  }

  .section {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: var(--s-5);
    padding: var(--s-7) 0;
  }

  .work__item {
    grid-template-columns: 110px 1fr;
    gap: var(--s-4);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site {
    padding: var(--s-5) var(--s-5) var(--s-6);
  }

  /* Hero: stack portrait above name, no absolute positioning */
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "meta"
      "name"
      "role"
      "rule";
    gap: var(--s-4);
    padding: var(--s-5) 0 var(--s-6);
  }
  .hero__col-left {
    display: contents;
  }
  .hero__col-right {
    grid-area: portrait;
    position: static;
    width: 100%;
    align-items: flex-start;
    margin-bottom: var(--s-3);
  }
  .hero__portrait {
    width: min(220px, 60%);
  }
  .hero__stamp {
    right: -20px;
    bottom: -20px;
    transform: rotate(-12deg) scale(0.55);
    transform-origin: bottom right;
  }
  .hero__name {
    font-size: clamp(44px, 13vw, 72px) !important;
    max-width: 100%;
  }
  .hero__role {
    margin-top: var(--s-4);
    font-size: 17px;
  }
  .hero__rule {
    margin-top: var(--s-5);
  }

  /* Sections: stack label above body */
  .section {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-6) 0;
  }
  .section__label {
    padding-top: 0;
  }

  /* Bio */
  .bio .lead {
    font-size: 17px;
    line-height: var(--leading-normal);
  }

  /* Work: stack period above the role/org/note block */
  .work__list {
    gap: var(--s-6);
  }
  .work__item {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
  .work__role {
    font-size: 20px;
  }

  /* Footer: stack columns */
  .footer {
    margin-top: var(--s-7);
    padding-top: var(--s-6);
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding-bottom: var(--s-6);
  }
  .footer__col--right {
    align-items: flex-start;
  }
}
