/* Newsreader (SIL OFL 1.1, see fonts/OFL.txt), self-hosted latin subset. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1e2421;
  --muted: #5d6560;
  --faint: #8a918c;
  --green: #2f5246;
  --green-soft: #e4ebe5;
  --rule: #e1dfd7;
  --paper: #f8f7f3;
  --sage: #e9eee7;
  --sage-rule: #d3dccf;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--green); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 1px; }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
h1, h2, h3, .lede, .top-wordmark, .research-name { font-optical-sizing: auto; }
ol, ul { padding: 0; list-style: none; }

.professional-header, .professional-main, .professional-footer { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }

/* Header */
.professional-header { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; min-height: 76px; padding-block: 14px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.top-wordmark { font: 21px/1.2 var(--serif); text-decoration: none; width: max-content; }
.top-wordmark:hover { color: var(--ink); }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.primary-nav a { text-decoration: none; padding-block: 8px; }
.primary-nav a:hover { color: var(--ink); }

/* Introduction */
.introduction { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 88px; align-items: center; padding: 84px 0 80px; }
.intro-text { display: grid; gap: 20px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { font: 340 80px/1 var(--serif); letter-spacing: -.02em; }
.lede { text-wrap: balance; max-width: 640px; font: 380 29px/1.36 var(--serif); }
.lede em { font-style: italic; color: var(--green); }
.intro-note { max-width: 620px; color: var(--muted); }
.intro-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; font-size: 14px; }
.intro-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; text-decoration: none; }
.intro-links a:first-child { border-color: var(--green); background: var(--green); color: #fff; }
.intro-links a:first-child .link-note { color: #cfdcd4; }
.intro-links a:hover { border-color: var(--green); }
.intro-links a:first-child:hover { background: #24423a; }
.link-note { margin-left: 6px; color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.portrait { position: relative; isolation: isolate; }
.portrait-frame { display: block; overflow: hidden; border-radius: 999px 999px 3px 3px; box-shadow: 0 1px 2px #1e24210d, 0 22px 44px -26px #1e242166; }
/* iris-portrait-arch.webp: the Field Notes photo minus its dark top window frame,
   with soft foliage headroom added so the arch doesn't crowd the head. */
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; object-position: 50% 0; }

/* Sections */
.editorial-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; border-top: 1px solid var(--rule); padding: 48px 0 52px; }
.section-title { font: 400 26px/1.2 var(--serif); }
.section-title em { font-style: italic; }

/* Experience */
.timeline-entry { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.timeline-entry:first-child { padding-top: 2px; }
.timeline-entry:last-child { padding-bottom: 0; border-bottom: 0; }
.entry-dates { padding-top: 4px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-current .entry-dates { color: var(--green); }
.is-current .entry-dates::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.timeline-entry h3 { font: 400 21px/1.35 var(--serif); }
.entry-org { margin-top: 2px; color: var(--muted); font-size: 15px; }
.entry-note { margin-top: 10px; max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Research: one full-bleed sage band to vary the page rhythm. */
.band { position: relative; border-top: 0; background: var(--sage); box-shadow: 0 0 0 100vmax var(--sage); clip-path: inset(0 -100vmax); padding-block: 64px 68px; }
.band + * , .band + .closing > :first-child { border-top: 0; }
.band .research-row { border-color: var(--sage-rule); }
.research-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px; align-items: start; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.research-row:first-child { padding-top: 2px; }
.research-row:last-child { padding-bottom: 0; border-bottom: 0; }
.research-name { font: 400 22px/1.4 var(--serif); }
.research-row:hover .research-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.research-meta { display: grid; gap: 2px; padding-top: 4px; color: var(--faint); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.research-meta span { color: var(--green); font-size: 11px; letter-spacing: .04em; }

/* Education */
.education-list { display: grid; gap: 22px; }
.education-list h3 { font: 400 20px/1.4 var(--serif); }
.education-list p { margin-top: 2px; color: var(--muted); font-size: 15px; }

/* Footer */
.professional-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 26px 0 34px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.footer-location { display: inline-block; margin-left: 16px; color: var(--faint); }
.professional-footer a { text-decoration: none; }
.professional-footer a:hover { text-decoration: underline; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 14px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

@media (min-width: 1900px) {
  :root { font-size: 18px; }
  .professional-header, .professional-main, .professional-footer { max-width: 1280px; }
  h1 { font-size: 88px; }
  .introduction { grid-template-columns: minmax(0, 1fr) 300px; padding-block: 110px 100px; }
  .lede { font-size: 31px; max-width: 720px; }
}
@media (max-width: 1050px) {
  .professional-header { gap: 24px; }
  .primary-nav { gap: 20px; }
  .introduction { column-gap: 56px; grid-template-columns: minmax(0, 1fr) 220px; }
  .editorial-section { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 800px) {
  .professional-header, .professional-main, .professional-footer { width: calc(100% - 48px); }
  .editorial-section { grid-template-columns: 1fr; gap: 24px; padding-block: 40px 44px; }
  .introduction { grid-template-columns: minmax(0, 1fr) 170px; column-gap: 36px; padding: 56px 0; }
  h1 { font-size: 60px; }
  .lede { font-size: 24px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 116px; }
  .professional-header, .professional-main, .professional-footer { width: calc(100% - 32px); }
  .professional-header { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0 12px; }
  .top-wordmark { font-size: 20px; }
  .professional-header .preview-view-switch { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; justify-content: space-between; gap: 12px; font-size: 13px; }
  .primary-nav a { padding-block: 2px; }
  .introduction { grid-template-columns: 1fr; row-gap: 28px; padding: 36px 0 44px; }
  .portrait { grid-row: 1; width: 120px; margin-left: 8px; }
  .intro-text { gap: 16px; }
  h1 { font-size: 46px; }
  .lede { font-size: 22px; }
  .intro-note { font-size: 16px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 6px; }
  .entry-dates { padding-top: 0; }
  .timeline-entry h3 { font-size: 20px; }
  .research-row { gap: 16px; grid-template-columns: minmax(0, 1fr) 46px; }
  .research-name { font-size: 19px; }
  .professional-footer { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  .footer-location { margin-left: 10px; }
}

/* Closing: Education plus the garden invitation fill at least one screen below
   the header, so every nav link can scroll its section up under the header. */
:root { --header-h: 76px; --footer-h: 82px; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
.closing { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h) - var(--footer-h)); min-height: calc(100svh - var(--header-h) - var(--footer-h)); }
.garden-invite { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 36px; padding-top: 64px; border-top: 1px solid var(--rule); text-align: center; }
.garden-copy { display: grid; justify-items: center; gap: 14px; max-width: 560px; }
.garden-copy h2 { font: 400 34px/1.25 var(--serif); text-wrap: balance; }
.garden-copy p:not(.eyebrow) { color: var(--muted); }
.garden-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 6px; padding: 9px 20px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; text-decoration: none; }
.garden-link:hover { background: #24423a; color: #fff; }
.garden-link span { transition: transform .2s ease; }
.garden-link:hover span { transform: translateX(3px); }

/* Meadow: the garden's four portal flowers, rooted on the footer rule. */
.meadow { display: flex; align-items: flex-end; justify-content: center; margin-top: auto; padding-top: 12px; }
.bloom { display: block; width: auto; margin-inline: -14px; transform-origin: 50% 100%; transform: scaleX(var(--flip, 1)); }
.bloom-1 { height: 170px; --d: .25s; }
.bloom-2 { height: 230px; --d: .05s; }
.bloom-3 { height: 252px; --d: 0s; }
.bloom-4 { height: 214px; --d: .15s; }
.bloom-5 { height: 186px; --d: .3s; --flip: -1; }
.bloom-6 { height: 146px; --d: .4s; --flip: -1; }
.meadow.is-waiting .bloom { clip-path: inset(100% 0 0 0); transform: translateY(16px) scaleX(var(--flip, 1)); }
.meadow.is-grown .bloom { clip-path: inset(0 0 0 0); transform: translateY(0) scaleX(var(--flip, 1)); transition: clip-path 1.6s cubic-bezier(.22, .7, .2, 1) var(--d), transform 1.6s cubic-bezier(.22, .7, .2, 1) var(--d); }
@keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
.garden-invite:hover .bloom { animation: sway 2.6s ease-in-out infinite alternate; }
.garden-invite:hover .bloom:nth-child(even) { animation-delay: -1.3s; }
@media (prefers-reduced-motion: reduce) { .garden-invite:hover .bloom { animation: none; } }

@media (max-width: 680px) {
  :root { --header-h: 102px; --footer-h: 69px; }
  .garden-invite { padding-top: 44px; gap: 28px; }
  .garden-copy h2 { font-size: 27px; }
  .bloom { margin-inline: -10px; }
  .bloom-1, .bloom-6 { display: none; }
  .bloom-2 { height: 150px; } .bloom-3 { height: 168px; } .bloom-4 { height: 142px; } .bloom-5 { height: 124px; }
}
