:root {
  --paper: #f2ead7;
  --paper-light: #fbf6e9;
  --ink: #1d2829;
  --teal: #173f47;
  --teal-soft: #245662;
  --ochre: #c9783a;
  --gold: #e0af55;
  --line: rgba(29, 40, 41, .18);
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.65), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: white;
  color: var(--teal);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 3rem), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  color: var(--paper-light);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 650; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font: 600 .73rem/1 var(--serif); }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-header nav a { font-size: .83rem; text-decoration: none; text-transform: uppercase; letter-spacing: .13em; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--gold); }

.hero {
  position: relative;
  min-height: 780px;
  height: min(92vh, 940px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, .72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 7.5rem max(1.5rem, calc((100vw - var(--max)) / 2)) 5rem;
  color: var(--paper-light);
  background: var(--teal);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(transparent, rgba(7,26,29,.33)); }
.hero-copy { position: relative; z-index: 3; max-width: 690px; }
.eyebrow, .kicker { margin: 0 0 1.25rem; color: var(--ochre); font-size: .76rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 400 clamp(4.4rem, 9.3vw, 9rem)/.79 var(--serif); letter-spacing: -.065em; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.lead { max-width: 650px; margin: 2.25rem 0 2rem; color: rgba(251,246,233,.8); font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.65 var(--serif); }
.primary-link { display: inline-flex; gap: 1rem; align-items: center; padding: .8rem 0; color: var(--paper-light); text-decoration: none; border-bottom: 1px solid var(--gold); font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.primary-link span { color: var(--gold); font-size: 1.2rem; }

.portrait-card { position: relative; z-index: 3; width: min(100%, 380px); margin: 3rem auto 0; transform: rotate(1.3deg); }
.portrait-card::before { content: ""; position: absolute; inset: -13px 12px 42px -13px; border: 1px solid rgba(224,175,85,.72); transform: rotate(-2.6deg); }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: .74; background: #d8d0bd; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; filter: sepia(.18) contrast(1.08); }
.portrait-card figcaption { margin-top: 1rem; color: rgba(251,246,233,.76); font-size: .7rem; line-height: 1.45; letter-spacing: .1em; text-transform: uppercase; }
.portrait-card figcaption span { color: var(--gold); }
.hero-landscape { position: absolute; z-index: 1; inset: auto 0 0; height: 60%; opacity: .7; }
.hero-landscape svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill { stroke: rgba(242,234,215,.12); stroke-width: 2; }
.hill-back { fill: #1d4b51; }
.hill-front { fill: #11363d; }
.road { fill: none; stroke: rgba(224,175,85,.65); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.sun { position: absolute; right: 33%; top: 7%; width: 5.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 90px rgba(201,120,58,.35); }

.threshold { display: flex; justify-content: center; align-items: end; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 1.5rem; text-align: center; }
.threshold p { margin: 0; font: italic 400 clamp(1.55rem, 3vw, 2.6rem)/1.25 var(--serif); }
.threshold span { margin-bottom: .35rem; color: #6e6658; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }

.section-wrap { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading { max-width: 700px; }
.section-heading h2 { margin: 0 0 1.2rem; font: 400 clamp(2.7rem, 6vw, 5.2rem)/.98 var(--serif); letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 610px; margin: 0; color: #5f625d; font-size: 1.05rem; }
.section-heading.light h2 { color: var(--paper-light); }
.section-heading.light > p:last-child { color: rgba(251,246,233,.72); }

.life { border-top: 1px solid var(--line); }
.timeline { position: relative; max-width: 870px; margin: 5rem 0 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 6.8rem; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 2rem; padding: 0 0 3.5rem; }
.timeline li::before { content: ""; position: absolute; top: .55rem; left: 6.45rem; width: .7rem; aspect-ratio: 1; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 7px var(--paper); }
.timeline time { color: var(--ochre); font: 500 1.25rem/1 var(--serif); text-align: right; }
.timeline h3 { margin: -.2rem 0 .35rem; font: 400 1.8rem/1.1 var(--serif); }
.timeline p { max-width: 650px; margin: 0; color: #5f625d; }

.poetry { position: relative; overflow: hidden; color: var(--paper-light); background: var(--teal); }
.poetry::before { content: "“"; position: absolute; top: -10rem; right: -1rem; color: rgba(255,255,255,.035); font: 40rem/1 var(--serif); }
.poetry-grid { position: relative; display: grid; grid-template-columns: .72fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.poem-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.poem-tabs button { padding: .65rem 1rem; color: rgba(251,246,233,.68); background: transparent; border: 1px solid rgba(251,246,233,.2); border-radius: 99px; cursor: pointer; }
.poem-tabs button[aria-selected="true"] { color: var(--teal); background: var(--gold); border-color: var(--gold); }
.poem-tabs button:focus-visible { outline: 3px solid var(--paper-light); outline-offset: 3px; }
.poem-pages { min-height: 540px; }
.poem-page { position: relative; min-height: 510px; padding: clamp(2rem, 5vw, 4rem); color: var(--ink); background: var(--paper-light); box-shadow: 0 28px 70px rgba(0,0,0,.25); transform: rotate(-.5deg); }
.poem-page::after { content: ""; position: absolute; inset: .75rem; pointer-events: none; border: 1px solid rgba(29,40,41,.11); }
.poem-page[hidden] { display: none; }
.poem-number { margin: 0 0 2rem; color: var(--ochre); font-size: .75rem; font-weight: 750; letter-spacing: .16em; }
.poem-page blockquote { margin: 0; font: 400 clamp(1.3rem, 2.5vw, 2rem)/1.45 var(--serif); }
.poem-page blockquote p { margin: 0 0 1.3rem; }
.poem-page footer { margin-top: 2rem; color: #6e6658; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.works .section-heading { margin-bottom: 4rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-grid article { position: relative; min-height: 350px; padding: 2.5rem 2rem 4.5rem; overflow: hidden; border-right: 1px solid var(--line); }
.work-grid article:last-child { border-right: 0; }
.work-year { color: var(--ochre); font-size: .68rem; font-weight: 750; letter-spacing: .15em; }
.work-grid h3 { margin: 3rem 0 1rem; font: 400 2rem/1 var(--serif); }
.work-grid p { color: #5f625d; }
.work-word { position: absolute; right: .5rem; bottom: -2rem; color: rgba(23,63,71,.055); font: italic 400 7rem/1 var(--serif); }

.classroom { color: var(--paper-light); background: var(--ochre); }
.classroom-grid { display: grid; grid-template-columns: .78fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.classroom .kicker { color: var(--teal); }
.prompt-card { padding: clamp(2rem, 5vw, 4.5rem); color: var(--ink); background: var(--paper-light); box-shadow: 18px 18px 0 rgba(23,63,71,.22); }
.prompt-label { display: block; margin-bottom: 2rem; color: #777164; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.prompt-card > p { min-height: 8rem; margin: 0 0 2.5rem; font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.28 var(--serif); }
.prompt-card button { padding: .8rem 1.1rem; color: var(--paper-light); background: var(--teal); border: 0; cursor: pointer; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prompt-card button:hover { background: var(--teal-soft); }

.sources .section-heading { margin-bottom: 3rem; }
.source-list { border-top: 1px solid var(--line); }
.source-list a { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.source-list a span { color: var(--ochre); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.source-list a strong { font: 400 1.15rem/1.3 var(--serif); }
.source-list a i { font-style: normal; font-size: 1.3rem; transition: transform .2s; }
.source-list a:hover i { transform: translate(.2rem, -.2rem); }
.rights-note { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; margin-top: 4rem; padding: 2rem; color: rgba(251,246,233,.82); background: var(--teal); }
.rights-note strong { color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.rights-note p { margin: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem max(1.5rem, calc((100vw - var(--max)) / 2)); color: rgba(251,246,233,.72); background: #102e34; font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer span { color: var(--gold); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
.site-footer a { text-underline-offset: .2rem; }

.legal-header {
  padding: 1.5rem max(1.5rem, calc((100vw - var(--max)) / 2));
  color: var(--paper-light);
  background: var(--teal);
}
.legal-header .brand { width: fit-content; }
.legal-main { width: min(calc(100% - 3rem), 760px); margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-main h1 { margin: 0 0 1rem; font: 400 clamp(2.8rem, 7vw, 5rem)/.95 var(--serif); letter-spacing: -.045em; }
.legal-main h2 { margin: 2.8rem 0 .65rem; color: var(--teal); font: 400 1.75rem/1.15 var(--serif); }
.legal-main p, .legal-main li { color: #4f5753; }
.legal-main a { color: var(--teal); text-underline-offset: .2rem; }
.legal-main .legal-summary { margin: 1.5rem 0 2.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--ochre); background: var(--paper-light); }
.legal-main .legal-summary p { margin: 0; }
.legal-main table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; background: var(--paper-light); }
.legal-main th, .legal-main td { padding: .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-main th { color: var(--teal); }
.legal-updated { color: #6e6658; font-size: .82rem; }

@media (max-width: 850px) {
  .site-header { width: calc(100% - 2rem); }
  .site-header nav { display: none; }
  .hero { height: auto; min-height: 100svh; grid-template-columns: 1fr; gap: 2rem; padding: 7rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.5rem); }
  .portrait-card { width: min(68vw, 300px); margin: 0 8% 1rem auto; }
  .hero-landscape { height: 43%; }
  .sun { right: 15%; top: 2%; }
  .threshold { align-items: center; flex-direction: column; gap: 1rem; }
  .section-wrap { width: min(calc(100% - 2rem), var(--max)); }
  .poetry-grid, .classroom-grid { grid-template-columns: 1fr; }
  .poem-pages { min-height: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid article { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-grid article:last-child { border-bottom: 0; }
  .source-list a { grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .source-list a strong { grid-column: 1; }
  .source-list a i { grid-row: 1 / span 2; grid-column: 2; }
  .rights-note { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero { overflow: hidden; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 5.4rem); }
  .lead { font-size: 1rem; }
  .portrait-card { width: min(72vw, 275px); }
  .timeline { margin-top: 3.5rem; }
  .timeline::before { left: 3.3rem; }
  .timeline li { grid-template-columns: 2.5rem 1fr; gap: 1.6rem; }
  .timeline li::before { left: 2.95rem; }
  .timeline time { writing-mode: vertical-rl; text-orientation: mixed; font-size: 1rem; }
  .poem-page { min-height: 480px; padding: 2rem 1.6rem; }
  .prompt-card { box-shadow: 8px 8px 0 rgba(23,63,71,.22); }
  .site-footer { flex-direction: column; gap: .5rem; }
  .legal-main { width: calc(100% - 2rem); }
  .legal-main table, .legal-main tbody, .legal-main tr, .legal-main th, .legal-main td { display: block; }
  .legal-main th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
