/* ============================================================
   Chaela Nutor, PhD · chaelanutor.com
   Design system: warm paper, clay accent, Newsreader + Source Sans 3
   Built by Anything Studios
   ============================================================ */

:root {
  --paper: #F7F3EC;
  --paper-2: #EFE9DF;
  --paper-3: #E6DDD0;
  --white: #FFFDF9;
  --ink: #26221E;
  --ink-2: #4A443D;
  --muted: #7A7167;
  --line: #DDD3C6;
  --line-strong: #C9BDAD;
  --clay: #B3573B;
  --clay-deep: #8F4430;
  --clay-soft: #F0DCD1;
  --clay-ghost: rgba(179, 87, 59, 0.10);
  --moss: #62705A;

  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--clay-soft); color: var(--ink); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 72;
}
h1 { font-size: clamp(36px, 4.9vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 500; }
p { max-width: 68ch; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay);
}
.label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.serif-i { font-family: var(--display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 48; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 52px); max-width: 760px; }
.section-head p { color: var(--ink-2); }
.rule { height: 1px; background: var(--line); border: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > .sticky { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split > .sticky { position: static; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); background: var(--clay-deep); border-color: var(--clay-deep); }
.btn.clay { background: var(--clay); border-color: var(--clay); }
.btn.clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.link:hover { color: var(--clay); border-color: var(--clay); }
.link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .brand-name { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48; }
.brand .brand-name small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); margin-left: 8px; vertical-align: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 15.5px; font-weight: 500; text-transform: lowercase; letter-spacing: 0.02em; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--clay); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 10px 18px; font-size: 14.5px; text-transform: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 78px; padding: 12px var(--gutter) 22px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav a { padding: 12px 10px; font-size: 18px; }
  .site-header.open .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- rings motif ---------- */
.rings { position: absolute; pointer-events: none; z-index: 0; }
.rings circle { fill: none; stroke: var(--clay); stroke-width: 1; opacity: .22; }
.rings.faint circle { stroke: var(--line-strong); opacity: .55; }
.rings.on-dark circle { stroke: var(--paper); opacity: .14; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 100px); }
.hero-in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; }
.hero-copy .eyebrow { margin-bottom: 4px; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy h1 em { font-style: italic; font-weight: 400; color: var(--clay-deep); font-variation-settings: 'opsz' 72; }
.hero-copy .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.hero-meta b { color: var(--ink-2); font-weight: 600; }
.hero-meta { margin-top: -8px; font-size: 16px; letter-spacing: 0.01em; }
.hero-meta span + span::before { content: '\00B7'; margin-right: 22px; color: var(--clay); }
.hero-meta[hidden] { display: none; }
.portrait-wrap { position: relative; z-index: 1; justify-self: end; width: min(100%, 440px); }
.portrait-panel {
  position: relative; padding: 26px 26px 0;
  background: var(--clay); border-radius: 260px 260px var(--r) var(--r);
  overflow: hidden;
}
.portrait-panel img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%;
  border-radius: 240px 240px 0 0;
  filter: saturate(1.02);
}
.portrait-caption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
  font-size: 13px; color: var(--muted);
}
.portrait-caption span:last-child { color: var(--ink-2); font-weight: 600; }
.hero .rings.hero-rings { right: -80px; top: -60px; width: 620px; height: 620px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .portrait-wrap { justify-self: start; width: min(100%, 280px); order: -1; }
  .portrait-panel { padding: 16px 16px 0; border-radius: 200px 200px var(--r) var(--r); }
  .portrait-panel img { border-radius: 180px 180px 0 0; }
  .hero .rings.hero-rings { right: -180px; top: -120px; width: 460px; height: 460px; }
}

/* ---------- cards & lists ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 40px -24px rgba(38, 34, 30, .35); }
.card .num { font-family: var(--display); font-style: italic; color: var(--clay); font-size: 15px; font-variation-settings: 'opsz' 24; }
.card p { font-size: 16.5px; color: var(--ink-2); }
.card.sand { background: var(--paper-2); border-color: transparent; }

.rail { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rail-row {
  display: grid; grid-template-columns: 136px 1fr; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.rail-row .when { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--clay); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.rail-row .what { display: grid; gap: 3px; }
.rail-row .what b { font-weight: 600; }
.rail-row .what span { color: var(--muted); font-size: 16px; }
.rail-row .what p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.rail.tight .rail-row { padding: 12px 0; }
.rail.tight .rail-row .what span { font-size: 15px; }
@media (max-width: 640px) { .rail-row { grid-template-columns: 1fr; gap: 4px; } }

/* full-width statements (clinical supervision) */
.wide-lines { display: grid; border-top: 1px solid var(--line); }
.wide-line { display: grid; gap: 8px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.wide-line .when { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--clay); text-transform: uppercase; }
.wide-line p { font-family: var(--display); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); font-variation-settings: 'opsz' 48; max-width: none; }

/* publications */
.pub-list { display: grid; border-top: 1px solid var(--line); }
.pub {
  display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pub .year { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--clay); font-variant-numeric: tabular-nums; padding-top: 3px; }
.pub .body { display: grid; gap: 4px; }
.pub .title { font-family: var(--display); font-size: 21px; line-height: 1.25; font-weight: 500; font-variation-settings: 'opsz' 36; }
.pub .title a { text-decoration: none; }
.pub .title a:hover { color: var(--clay-deep); }
.pub .authors { font-size: 15.5px; color: var(--ink-2); }
.pub .venue { font-size: 15px; color: var(--muted); font-style: italic; }
.pub .doi { font-size: 13.5px; color: var(--muted); text-decoration: none; word-break: break-all; }
.pub .doi:hover { color: var(--clay); }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 6px; } }

.bullets { list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; font-size: 16.5px; color: var(--ink-2); }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--clay-soft); border: 1px solid var(--clay); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); background: var(--white); }

/* quotes */
.quote {
  position: relative; padding: 26px 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; gap: 14px;
}
.quote p { font-family: var(--display); font-size: 20px; line-height: 1.45; font-variation-settings: 'opsz' 36; }
.quote p::before { content: '\201C'; color: var(--clay); }
.quote p::after { content: '\201D'; color: var(--clay); }
.quote cite { font-style: normal; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pull {
  padding: clamp(28px, 4vw, 44px); background: var(--paper-2); border-left: 3px solid var(--clay); border-radius: 0 var(--r) var(--r) 0;
}
.pull p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 72; max-width: 30ch; }

/* upcoming */
.upcoming { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.event .date { font-family: var(--display); font-size: 19px; color: var(--clay-deep); font-variation-settings: 'opsz' 24; }
.event b { display: block; font-weight: 600; }
.event span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: 6px; } }

/* recognition strip */
.recog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.recog div { background: var(--white); padding: 22px 22px 24px; display: grid; gap: 6px; }
.recog .year { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--clay); }
.recog p { font-size: 16px; line-height: 1.4; }
@media (max-width: 900px) { .recog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .recog { grid-template-columns: 1fr; } }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* details / toggles */
.toggle { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; font-weight: 600; }
.toggle:hover { border-color: var(--ink); }
[hidden] { display: none !important; }

/* press list */
.press { display: grid; gap: 0; border-top: 1px solid var(--line); }
.press a {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding-left .25s var(--ease);
}
.press a:hover { padding-left: 8px; }
.press a b { display: block; font-weight: 600; }
.press a span { display: block; color: var(--muted); font-size: 15px; }
.press a svg { width: 18px; height: 18px; color: var(--clay); }

/* page intro (subpages) */
.page-head { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 1; display: grid; gap: 18px; }
.page-head h1 { max-width: 20ch; font-size: clamp(34px, 4.6vw, 56px); }
.page-head .lead { max-width: 60ch; }
.page-head .rings { right: -140px; top: -160px; width: 520px; height: 520px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .rings { left: -200px; bottom: -260px; width: 640px; height: 640px; }
.footer-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: clamp(56px, 7vw, 96px) 0 40px; }
.footer-in h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 16ch; margin-bottom: 14px; }
.footer-in p { color: rgba(247, 243, 236, .72); max-width: 40ch; }
.footer-in .label { color: rgba(247, 243, 236, .5); margin-bottom: 12px; }
.footer-in a { color: var(--paper); text-decoration: none; }
.footer-in a:hover { color: var(--clay-soft); }
.footer-list { list-style: none; display: grid; gap: 8px; font-size: 16.5px; }
.footer-list li span { color: rgba(247, 243, 236, .72); }
.footer-email { font-family: var(--display); font-size: clamp(20px, 2vw, 24px); display: inline-block; margin: 6px 0 18px; border-bottom: 1px solid rgba(247, 243, 236, .3); }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid rgba(247, 243, 236, .14); font-size: 13.5px; color: rgba(247, 243, 236, .55); }
.footer-bottom a { color: rgba(247, 243, 236, .7); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.site-footer .btn.clay { margin-top: 4px; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }
.two-col { columns: 2; column-gap: 40px; }
@media (max-width: 720px) { .two-col { columns: 1; } }

/* ---------- utilities ---------- */
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.mt-xl { margin-top: clamp(36px, 5vw, 56px); }
.mt-lg { margin-top: 28px; }
.mt-md { margin-top: 16px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 26px; }
.band { background: var(--paper-2); padding: clamp(56px, 7vw, 96px) 0; }
.band + .section { padding-top: clamp(64px, 9vw, 120px); }
.grid-recog { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .grid-recog { grid-template-columns: 1fr; } }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.head-row h2, .head-row h3 { margin: 0; }
.current-card { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: clamp(24px, 3vw, 36px); background: var(--paper-2); border-radius: var(--r); }
.current-card .when { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--clay); text-transform: uppercase; }
.current-card h3 { margin-bottom: 4px; }
.current-card .where { color: var(--muted); margin-bottom: 14px; }
@media (max-width: 640px) { .current-card { grid-template-columns: 1fr; gap: 10px; } }
.current-card.no-when { grid-template-columns: 1fr; }
.current-card .where:empty { display: none; }
.current-card .bullets { display: block; columns: 2; column-gap: 40px; }
.current-card .bullets li { margin-bottom: 10px; }
.current-card .bullets li { break-inside: avoid; }
@media (max-width: 640px) { .current-card .bullets { columns: 1; } }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--white); transition: border-color .2s, color .2s; }
.social-row a:hover { border-color: var(--clay); color: var(--clay); }

/* ---------- round two ---------- */
.inline-link { color: var(--clay-deep); text-decoration: none; border-bottom: 1px solid var(--clay-soft); transition: border-color .2s; }
.inline-link:hover { border-color: var(--clay); }
.pub-links { display: flex; gap: 18px; flex-wrap: wrap; }
.press a.has-thumb { grid-template-columns: 132px 1fr auto; align-items: center; }
.press .thumb { width: 132px; height: 99px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--paper-2); }
@media (max-width: 560px) { .press a.has-thumb { grid-template-columns: 96px 1fr auto; } .press .thumb { width: 96px; height: 72px; } }
.highlight { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: 0 var(--r) var(--r) 0; padding: clamp(24px, 3vw, 36px); display: grid; gap: 8px; }
.highlight h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 6px; }
.highlight .hl-role { color: var(--clay-deep); font-weight: 600; margin-bottom: 8px; }
.highlight p { color: var(--ink-2); }
.upcoming.years .event { grid-template-columns: 76px 1fr; }

/* section starts: a divider line instead of a dash */
.split > .sticky > .eyebrow:first-child, .split > div > .eyebrow:first-child, .section-head > .eyebrow:first-child {
  display: block; width: 100%; padding-top: 18px; border-top: 1px solid var(--line-strong);
}
.band .split > div > .eyebrow:first-child { border-top-color: var(--line-strong); }

.stack-lg { display: grid; gap: clamp(28px, 4vw, 48px); }
.video-row .sticky h3 { font-size: clamp(22px, 2.2vw, 28px); }
