:root {
  --paper: #f5f2ec;
  --paper-soft: #ece7dd;
  --ink: #1b1a17;
  --ink-soft: #3b3933;
  --muted: #6b665c;
  --line: #d8d1c4;
  --accent: #415f4b;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 236, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.6vw, 34px);
}

.site-header nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--ink);
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 112px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-intro {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.72;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-meta span[aria-hidden] {
  color: var(--accent);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 2px;
  filter: saturate(0.95) contrast(1.01);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Zoomable photos */

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.zoom img {
  transition: opacity 0.25s ease;
}

.zoom:hover img {
  opacity: 0.92;
}

/* Marquee */

.marquee {
  overflow: hidden;
  padding-block: 13px;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee .item {
  padding-inline: 1.25rem;
  white-space: nowrap;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--muted);
}

.marquee .sep {
  color: var(--accent);
  font-size: 0.9rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.marquee + .section {
  border-top: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.26fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.section-label {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.section-label .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--accent);
}

.section h2 {
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.prose {
  max-width: 62ch;
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1.05em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(28px, 5vw, 64px);
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts div {
  min-width: 130px;
}

.facts dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.media {
  margin: clamp(32px, 5vw, 52px) 0 0;
}

.media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.media--family img {
  aspect-ratio: 3 / 2;
}

/* Interests */

.interests-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(28px, 4vw, 44px);
}

.interest {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.interest + .interest {
  padding-top: 26px;
}

.interest h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.01em;
}

.interest .tag {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.interest p {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--ink-soft);
}

.interests-grid .media {
  margin-top: 0;
}

/* Footer */

.site-footer {
  margin-top: clamp(24px, 5vw, 48px);
  padding-block: clamp(40px, 6vw, 64px);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8a294;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a8a294;
}

.footer-meta a {
  padding-bottom: 2px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #4a473f;
  transition: border-color 0.2s ease;
}

.footer-meta a:hover {
  border-color: var(--paper);
}

/* Lightbox */

.lightbox {
  width: min(1080px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox::backdrop {
  background: rgba(18, 18, 16, 0.68);
  backdrop-filter: blur(3px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #121210;
}

.lightbox figcaption {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.92);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--paper);
}

body:has(dialog[open]) {
  overflow: hidden;
}

/* Reveals */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-figure.reveal {
  transition-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
  }

  .zoom img {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure {
    width: min(520px, 100%);
  }

  .section-label {
    position: static;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .interests-grid .media {
    margin-top: 8px;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 62px;
  }

  .wordmark {
    font-size: 1.02rem;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-label {
    margin-bottom: 4px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header nav {
    gap: 11px;
  }

  .site-header nav a {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }
}
