/* =============================================================
   Andrew J. Stier — redesign
   Type: Newsreader (serif display + body) + Inter Tight (UI)
   Palette: warm cream paper, ink, single amber accent
   ============================================================= */

:root {
  /* MetBrewer Navajo: #660D20 maroon · #E59A52 ochre · #EDCE79 gold · #094568 blue · #E1C59A sand */
  --bg:          #F4EBD8;   /* warm Navajo sand paper */
  --bg-alt:      #ECE0C6;   /* slightly deeper sand for alternating slabs */
  --bg-elev:     #FBF6E9;   /* near-white warm for cards / quotes */
  --ink:         #241312;   /* warm near-black, maroon-tinted */
  --ink-soft:    #4A2A26;   /* sub-headings */
  --mute:        #7A6A54;   /* warm desert gray */
  --rule:        #D9C5A0;   /* sandy hairline divider */
  --rule-soft:   #E7D8BA;
  --accent:      #660D20;   /* Navajo maroon — book-spine */
  --accent-ink:  #5A0B1B;   /* maroon for text on sand */
  --teal:        #094568;   /* Navajo deep blue — secondary */
  --recruit-bg:  #0A2B40;   /* deep Navajo navy slab for recruiting */
  --recruit-ink: #F4EBD8;
  --recruit-mute:#9DB1C0;

  --sans: "Montserrat", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --reading: 760px;       /* primary reading column */
  --wide:    1080px;      /* hero + section frames */
  --gutter:  clamp(20px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;       /* sticky-nav offset */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-feature-settings: "ss01", "onum", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent-ink) 35%, transparent);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

em { font-style: italic; }
strong { font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }


/* ─────────────────────────── TOP NAV ─────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, #E7D4AE 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #D4BE92;
}
.topbar-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6E45;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.topnav a:hover { color: var(--accent); }
.topnav-cv {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}
.topnav-cv:hover {
  background: var(--ink);
  color: #E7D4AE !important;
  border-color: var(--ink);
}


/* ─────────────────────────── HERO ─────────────────────────── */

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 40px) var(--gutter) clamp(56px, 10vw, 112px);
}
.hero-grid {
  display: block;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
}
.hero-text h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}

/* Hero statement (lede-as-h1) — used when there's no display title */
.hero-statement {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: clamp(30px, 4.2vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.018em !important;
  color: var(--ink) !important;
  margin: 0 0 12px !important;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-statement em { font-style: italic; }

.hero-subline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  color: var(--mute);
  margin: 0 0 28px;
  letter-spacing: 0;
}
.lede {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 0 18px;
  color: var(--ink);
}
.lede-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}
.link-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--sans);
  font-size: 14px;
}
.link-row li { position: relative; }
.link-row li + li::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--mute);
  transform: translateY(-50%);
}
.link-row a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.link-row a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Obfuscated email — non-clickable plain text, styled to match link row */
.email-obf {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding-bottom: 1px;
}
.email-obf .at {
  font-style: italic;
  color: var(--mute);
  margin: 0 2px;
}
.hero-photo {
  margin: 0;
  padding-top: 8px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.95) contrast(0.98);
}
.hero-photo figcaption {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 10px;
}

/* Hero animation — large canvas below the intro text */
.hero-anim {
  position: relative;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-anim-axis {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #9a9aa6;
}
.hero-anim-axis .ax-top, .hero-anim-axis .ax-bot {
  position: absolute;
  left: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-anim-axis .ax-top { top: 14px; }
.hero-anim-axis .ax-bot { bottom: 14px; }
.hero-anim canvas {
  display: block;
  width: 100%;
  height: clamp(420px, 62vh, 760px);
  background: #3b3a3e;
  border: 1px solid #2c2b30;
  border-radius: 2px;
}
#hero-reset {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #cfcdc6;
  background: rgba(28, 27, 30, 0.6);
  border: 1px solid rgba(207, 205, 198, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#hero-reset:hover {
  background: rgba(28, 27, 30, 0.85);
  color: #fff;
  border-color: rgba(207, 205, 198, 0.55);
}
.hero-anim-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  text-transform: lowercase;
}
.hero-anim-cap .k { color: var(--mute); }
.hero-anim-cap .v {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.hero-anim-cap .v + .k { margin-left: 8px; }


/* ─────────────────────────── SLABS / SECTIONS ─────────────────────────── */

.slab {
  padding: clamp(60px, 8vw, 104px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.slab-alt   { background: var(--bg-alt); }
.slab-foot  { padding-block: clamp(40px, 6vw, 64px); }

.reading {
  max-width: var(--reading);
  margin: 0 auto;
}

.section-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.tag-on-dark { color: var(--accent); opacity: 0.95; }

/* Research threading ribbon (drawn by JS into #thread-snake) */
.threads-wrap { position: relative; }
#thread-snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
#thread-snake path { stroke: none; }
@media (max-width: 820px) { #thread-snake { display: none; } }

.section-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 36px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-aside {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--accent-ink);
}
.section-aside:hover { color: var(--accent); text-decoration: underline; }

.slab .reading p { font-size: 18px; line-height: 1.7; color: var(--ink); }


/* ─────────────────────────── RESEARCH THREADS ─────────────────────────── */

.threads {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
  display: grid;
  gap: 0;
}
.thread {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  max-width: var(--reading);
  margin: 0 auto;
}
/* Each research theme carries its own Navajo color (number, tick, links) */
.thread:nth-child(1) { --t:#7A1228; --tk:#660D20; }  /* maroon */
.thread:nth-child(2) { --t:#E59A52; --tk:#B5651D; }  /* ochre */
.thread:nth-child(3) { --t:#0E5378; --tk:#094568; }  /* deep blue */
.thread:first-child { border-top: 0; padding-top: 0; }
.thread-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tk);
  padding-top: 6px;
}
.thread-num span { display: inline-block; position: relative; }
.thread-num span::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--t);
  margin-bottom: 10px;
  border-radius: 2px;
}
.thread-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 28ch;
}
.thread-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.thread-refs {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute) !important;
}
.thread-refs a {
  color: var(--ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.thread-refs a:hover {
  color: var(--tk) !important;
  border-bottom-color: var(--tk);
}


/* ─────────────────────────── PEOPLE ─────────────────────────── */

/* PI row */
.people-pi {
  max-width: var(--reading);
  margin: 8px auto 56px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.person-photo {
  margin: 0;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.person-photo img,
.person-photo svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.person-photo-lg { width: 160px; }
.photo-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.person-body { padding-top: 4px; }
.person-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 6px;
}
.person-role {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mute) !important;
  margin: 0 0 14px !important;
}
.person-bio {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
  margin: 0 0 14px !important;
}
.person-links {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0 !important;
}
.person-links a {
  color: var(--ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.person-links a:hover { color: var(--accent) !important; border-bottom-color: var(--accent); }
.person-links .sep { color: var(--mute); margin: 0 8px; }

/* Group wrappers */
.people-group {
  max-width: var(--reading);
  margin: 0 auto 40px;
}
.people-group:last-child { margin-bottom: 0; }
.people-grouph {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* Grid of grad students / postdocs */
.people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.person { display: flex; flex-direction: column; gap: 8px; }
.person .person-photo { width: 100%; }
.person-name-sm {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 4px 0 0 !important;
}
.person-role-sm {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mute) !important;
  margin: 0 !important;
}
.person-blurb {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--ink-soft) !important;
  margin: 4px 0 0 !important;
}

/* Inline list (undergrads, alumni) */
.people-inline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.people-inline li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px dashed var(--rule);
}
.people-inline li:first-child { border-top: 0; padding-top: 0; }
.people-empty {
  font-style: italic;
  color: var(--mute) !important;
  font-size: 15px !important;
  margin-top: 14px !important;
}

/* People content on the dark navy slab (people.html) */
.slab-recruit .person-name,
.slab-recruit .person-name-sm,
.slab-recruit .people-inline li,
.slab-recruit .person-bio,
.slab-recruit .person-bio em { color: var(--recruit-ink) !important; }
.slab-recruit .person-role,
.slab-recruit .person-role-sm,
.slab-recruit .person-blurb,
.slab-recruit .people-empty,
.slab-recruit .photo-label,
.slab-recruit .person-links .sep { color: var(--recruit-mute) !important; }
.slab-recruit .people-grouph { color: var(--accent) !important; }
.slab-recruit .people-group { border-top-color: #143A52 !important; }
.slab-recruit .people-inline li { border-top-color: #143A52 !important; }
.slab-recruit .person-bio a,
.slab-recruit .person-links a { color: var(--accent-ink) !important; }

@media (max-width: 820px) {
  .people-pi {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }
  .person-photo-lg { width: 120px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 520px) {
  .people-grid { grid-template-columns: 1fr; }
}


/* ─────────────────────────── RECRUITING SLAB ─────────────────────────── */

.slab-recruit {
  /* on the navy slab, accent becomes Navajo ochre so it reads on dark */
  --accent: #E59A52;
  --accent-ink: #EDCE79;
  background: var(--recruit-bg);
  color: var(--recruit-ink);
  border-top: 1px solid #143A52;
  position: relative;
}
.slab-recruit::after {
  /* subtle paper grain via gradient stripe */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 36px,
      rgba(255,255,255,0.012) 36px 37px
    );
}
.slab-recruit .section-h { color: var(--recruit-ink); }
.slab-recruit .reading > p { color: color-mix(in oklab, var(--recruit-ink) 88%, transparent); }

.recruit-lede {
  font-size: 22px !important;
  line-height: 1.5 !important;
  max-width: 38ch;
  margin-bottom: 44px !important;
  color: var(--recruit-ink) !important;
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 48px;
}
.recruit-card {
  padding: 28px 28px 32px;
  background: #0E3349;
  border: 1px solid #18415A;
  border-radius: 2px;
}
.recruit-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.recruit-card p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--recruit-ink) !important;
  margin: 0;
}
.recruit-card a {
  color: var(--accent) !important;
  text-decoration-color: color-mix(in oklab, var(--accent) 50%, transparent);
}
.recruit-card a:hover { color: #EDCE79 !important; }

/* FAQ disclosures */
.recruit-faq {
  border-top: 1px solid #18415A;
  padding: 22px 0;
}
.recruit-faq:last-of-type { border-bottom: 1px solid #18415A; }
.recruit-faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--recruit-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.recruit-faq summary::-webkit-details-marker { display: none; }
.recruit-faq summary::after {
  content: "＋";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  color: var(--accent);
  transition: transform 200ms ease;
}
.recruit-faq[open] summary::after { content: "−"; }
.faq-body {
  padding: 16px 0 6px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--recruit-mute);
  max-width: 60ch;
}
.faq-body p { color: var(--recruit-mute) !important; font-size: 16px !important; }
.faq-body ol {
  padding-left: 1.2em;
  margin: 12px 0;
}
.faq-body li { margin-bottom: 8px; color: var(--recruit-mute); }
.faq-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: #0E3349;
  border: 1px solid #18415A;
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
}


/* ─────────────────────────── PUBLICATIONS ─────────────────────────── */

.pub-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--reading);
}
.pub {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.pub:first-child { border-top: 0; padding-top: 8px; }
.pub-year {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mute);
  padding-top: 2px;
}
.pub-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 8px;
  max-width: 58ch;
}
.pub-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--rule), var(--rule));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.pub-title a:hover {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
}
.pub-meta {
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  color: var(--mute) !important;
  margin: 0 0 10px !important;
  max-width: 60ch;
}
.pub-meta strong { color: var(--ink-soft); }
.pub-actions {
  display: flex;
  gap: 8px;
  margin: 0 !important;
}
.chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none !important;
  transition: all 120ms ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}


/* ─────────────────────────── NEWS ─────────────────────────── */

.newsfeed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.newsfeed li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.newsfeed li:first-child { border-top: 0; }
.newsfeed time {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.newsfeed p {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}


/* ─────────────────────────── CONTACT FOOTER LINE ─────────────────────────── */

.foot-line {
  font-family: var(--sans);
  font-size: 15px !important;
  color: var(--ink-soft) !important;
}
.foot-line .email-obf { font-size: 15px; color: var(--ink-soft); }


/* ─────────────────────────── SITE FOOTER ─────────────────────────── */

.sitefoot {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 28px var(--gutter);
}
.sitefoot-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}


/* ─────────────────────────── RESPONSIVE ─────────────────────────── */

@media (max-width: 820px) {
  body { font-size: 18px; }

  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px var(--gutter); }
  .topnav { gap: 14px; flex-wrap: wrap; font-size: 13px; }

  .hero { padding-top: 36px; padding-bottom: 56px; }
  .hero-photo {
    order: -1;
    max-width: 320px;
  }
  .hero-anim canvas { height: clamp(360px, 70vh, 620px); }
  .hero-text h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-statement { font-size: clamp(24px, 6.5vw, 34px) !important; }

  .thread {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .thread-num { padding-top: 0; }

  .recruit-grid { grid-template-columns: 1fr; gap: 16px; }

  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-year { padding-top: 0; }

  .newsfeed li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* Print: friendly for "save as PDF" */
@media print {
  .topbar, .sitefoot, .recruit-faq summary::after { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .slab, .hero { padding: 24pt 0; border: 0; }
  a { color: black; text-decoration: underline; }
}

/* ─────────────────────────── EDITOR LOGIN DOT + MODAL ─────────────────────────── */

/* The "." in the PI's name — looks normal, but is a hidden door to the editor */
.login-dot {
  cursor: default;
}
.login-dot:focus-visible { outline: none; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 14, 12, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.login-modal[hidden] { display: none; }
.login-box {
  width: 100%;
  max-width: 340px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(16, 14, 12, 0.28);
}
.login-h {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.login-box input[type="password"],
.login-box input[type="text"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-row { display: flex; gap: 10px; justify-content: flex-end; }
.login-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}
.login-btn:hover { background: var(--accent); border-color: var(--accent); }
.login-btn.ghost { background: transparent; color: var(--ink); }
.login-btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.login-err {
  font-family: var(--sans);
  font-size: 13px;
  color: #9C2B2B;
  margin: 12px 0 0;
}
