@charset "utf-8";

/* ==========================================================================
   Koh Research Group — kohgroup.org
   One stylesheet. No build step. Edit the :root block to change the look.
   ========================================================================== */

:root {
  /* --- Koh Research Group brand palette --------------------------------- */
  --paper:      #ffffff;   /* background        */
  --surface:    #ffffff;
  --surface-2:  #fafafa;   /* surface-subtle    */
  --heading:    #000000;   /* headings          */
  --ink:        #3a3a3a;   /* text-primary      */
  --nav:        #222222;   /* text-navigation   */
  --muted:      #595959;   /* text-secondary    */
  --faint:      #757575;   /* text-muted        */
  --rule:       #cccccc;   /* border            */
  --rule-soft:  #e6e6e6;   /* lighter divider, derived from --rule */

  /* --- brand accent: links, buttons, focus ------------------------------ */
  --accent:       #1429a7;  /* primary-blue */
  --accent-ink:   #1429a7;
  --accent-hover: #f07124;  /* accent-orange — every link hover */
  --active-blue:  #3474bb;  /* kept from the brand palette; currently unused */
  --accent-wash:  #e3e7f5;

  /* --- the cell palette: each colour IS a layer of the electrolyzer ------ */
  --copper:   #f07124;   /* cathode  — catalyst + ionomeric binder (accent-orange) */
  --patina:   #1429a7;   /* membrane — AEM (primary-blue)                          */
  --graphite: #3a3a3a;   /* anode    — OER                                         */
  --steel:    #a9b0b6;   /* GDL / flow plate — inert hardware                      */

  --copper-ink:    #b4501a;  /* darkened orange, for text on the orange wash */
  --copper-wash:   #fdeae0;
  --patina-wash:   #e3e7f5;
  --graphite-wash: #ededed;

  /* --- type -------------------------------------------------------------- */
  --sans:  "Pretendard Variable", Pretendard, "Archivo", -apple-system,
           BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", "Apple SD Gothic Neo", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- metrics ----------------------------------------------------------- */
  --measure: 66ch;
  --gutter:  1.5rem;
  --maxw:    1180px;
  --rail:    150px;
  --radius:  3px;
}

/* ==========================================================================
   base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

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

svg { display: block; }

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.skip:focus { left: 0; }

/* Korean runs. Serif Hangul at body size is muddy; sans is the house style. */
.ko, [lang="ko"] {
  font-family: var(--sans);
  font-size: 0.97em;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ==========================================================================
   type roles
   ========================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.display {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.024em;
  margin: 0;
  max-width: 20ch;
}

.page-title {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0;
}

.section-title {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.014em;
  line-height: 1.32;
  margin: 0 0 0.7rem;
}

.sub-title {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.008em;
  margin: 0 0 0.45rem;
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.68;
  margin: 1.3rem 0 0;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--accent-ink); text-decoration-color: var(--rule); text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.prose-muted { color: var(--muted); }

.small { font-size: 0.9rem; }

/* ==========================================================================
   masthead
   ========================================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* The group's own logo, lifted from the existing site. It is black artwork on
   a transparent background, so it sits on any paper colour. */
.wordmark {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.wordmark img {
  width: auto;
  height: 46px;   /* natural art is 469x88, so this renders at 2x density */
}

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--nav);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--heading); }

/* ==========================================================================
   page scaffolding
   ========================================================================== */

.hero { padding: 4.5rem 0 3rem; }

.band {
  padding: 3.6rem 0;
  border-top: 1px solid var(--rule);
}
.band:first-child { border-top: 0; }
.band-tight { padding: 2.4rem 0; }
.band-head { margin-bottom: 2rem; }

/* Two-column: mono metadata rail on the left, content on the right.
   This is what fills the dead space the old single-column layout left. */
.split {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 2.5rem;
  align-items: start;
}

.split-rail {
  position: sticky;
  top: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 0.35rem;
}
.split-rail .rail-note {
  display: block;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--faint);
  margin-top: 0.5rem;
}

/* Hero with the figure alongside, so the fold is not half empty. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 3rem;
  align-items: center;
}

/* ==========================================================================
   the cell figure (signature element)
   ========================================================================== */

.figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.figure svg { width: 100%; height: auto; }

.figure figcaption {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.figure figcaption b {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

/* SVG label conventions, themed so the figure works in dark mode too. */
.cell-svg { --lbl: var(--muted); }
.cell-svg .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--lbl);
}
.cell-svg .lbl-sm { font-size: 9.5px; }
.cell-svg .lbl-in {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: #fff;
  text-transform: uppercase;
}
.cell-svg .lead { stroke: var(--rule); stroke-width: 1; fill: none; }
.cell-svg .flow { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.cell-svg .dim   { stroke: var(--faint); stroke-width: 1; fill: none; }
.cell-svg .frame { stroke: var(--rule); stroke-width: 1; fill: none; }

.cell-svg .lyr-plate { fill: var(--steel); }
.cell-svg .lyr-gdl   { fill: var(--steel); opacity: 0.45; }
.cell-svg .lyr-anode { fill: var(--graphite); }
.cell-svg .lyr-mem   { fill: var(--patina); }
.cell-svg .lyr-cath  { fill: var(--copper); }

/* Region highlighting on the research page. Inactive layers go neutral rather
   than transparent — the stack stays readable, the highlighted layer still wins.
   A CSS rule beats the inline fill="" presentation attribute, so no !important. */
.cell-mini[data-active="cathode"]  .seg:not(.seg-cath),
.cell-mini[data-active="membrane"] .seg:not(.seg-mem),
.cell-mini[data-active="anode"]    .seg:not(.seg-anode) {
  fill: var(--rule);
  opacity: 1;
}
.cell-mini .seg-frame { stroke: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cell-mini .seg { transition: none; }
}

/* ==========================================================================
   keyword chips
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.28rem 0.7rem;
  background: var(--surface);
  white-space: nowrap;
}
.chip-cath  { border-color: var(--copper);   color: var(--copper-ink); background: var(--copper-wash); }
.chip-mem   { border-color: var(--patina);   color: var(--patina);     background: var(--patina-wash); }
.chip-anode { border-color: var(--graphite); color: var(--graphite);   background: var(--graphite-wash); }

/* ==========================================================================
   program cards
   ========================================================================== */

.programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.program {
  background: var(--surface);
  padding: 1.7rem 1.6rem 1.8rem;
  text-decoration: none;
  display: block;
  position: relative;
}
.program::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--region, var(--muted));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.program:hover { background: var(--surface-2); }
.program:hover::after { opacity: 1; }

.program-region {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.program-region::before {
  content: "";
  width: 22px;
  height: 6px;
  border-radius: 1px;
  background: var(--region, var(--muted));
}

.program h3 {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.program p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--muted);
}

.r-cath  { --region: var(--copper); }
.r-mem   { --region: var(--patina); }
.r-anode { --region: var(--graphite); }
.r-cell  { --region: linear-gradient(90deg, var(--copper) 0 34%, var(--patina) 34% 62%, var(--graphite) 62% 100%); }

/* ==========================================================================
   rows — news, generic lists
   ========================================================================== */

.rows { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.row-date {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 0.4rem;
  margin: 0;
}

.row-body { font-size: 1rem; line-height: 1.65; margin: 0; }
.row-body em { font-style: italic; }

.link-more {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.link-more::after { content: " \2192"; }
.link-more:hover { color: var(--accent-hover); }

/* ==========================================================================
   publications
   ========================================================================== */

.pub-legend {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 0.9rem;
  margin: 0;
}
.pub-legend u { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.pub-year {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 2.6rem 0 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.pub-year:first-child { margin-top: 0; }
.pub-year .count {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-left: auto;
}

.pub {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.pub-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  padding-top: 0.28rem;
}

.pub-title {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 0.3rem;
}
.pub-title a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.pub-title a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

.pub-authors {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
/* Group members are underlined — the legend on the page explains it. */
.pub-authors .me {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.pub-venue {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.pub-venue em { font-family: var(--serif); font-size: 0.92rem; font-style: italic; }
.pub-venue b  { color: var(--ink); font-weight: 500; }
.pub-venue a  { color: var(--accent-ink); }
.pub-venue a:hover { color: var(--accent-hover); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  color: var(--muted);
  vertical-align: 1px;
  margin-left: 0.4rem;
}
.tag-submitted { border-style: dashed; }
.tag-corr { border-color: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   people
   ========================================================================== */

.pi {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.portrait {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Monogram stands in until a real headshot is dropped in. */
.portrait-mono {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}

.name-en {
  color: var(--heading);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  margin: 0;
}
.name-ko {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}

.role {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 2rem 1.7rem;
}

.person .portrait { aspect-ratio: 1 / 1; margin-bottom: 0.9rem; }
.person .name-en { font-size: 1.02rem; }
.person .role { font-size: 0.72rem; line-height: 1.75; }

.person-focus {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: 0.55rem;
  padding-left: 0.55rem;
  border-left: 2px solid var(--region, var(--copper));
  line-height: 1.5;
}

.iconlinks {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}
.iconlinks a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  background: var(--surface);
}
.iconlinks a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* alumni table */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.data th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 500;
  padding: 0 1rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
table.data td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
table.data td:first-child { font-family: var(--sans); font-weight: 500; white-space: nowrap; }

/* ==========================================================================
   buttons, callouts, notes
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 0.55rem 1.05rem;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.callout {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 2rem;
}

.callout-accent {
  border-left: 3px solid var(--accent);
}

/* An editorial note for the site owner — remove once content is filled in. */
.todo {
  border: 1px dashed var(--copper);
  background: var(--copper-wash);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--copper-ink);
  margin: 1.2rem 0 0;
}
.todo b { font-weight: 600; }

/* photos */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.shot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot .ph {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}
.shot figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
}

/* definition-style list for the recruiting page */
.deflist { margin: 0; }
.deflist dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  margin-top: 1.4rem;
}
.deflist dt:first-child { margin-top: 0; }
.deflist dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: var(--measure);
}

.numbered {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}
.numbered li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.85rem;
}
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.28rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 100px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 3rem 0 3.5rem;
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem 3rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-hover); }

.footer-h {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav ul { gap: 0.9rem; }
  .nav a { font-size: 0.84rem; }
  .wordmark img { height: 40px; }
}

@media (max-width: 940px) {
  :root { --rail: 120px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .split { gap: 0 1.6rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    padding: 0.4rem 0 0.9rem;
    border-top: 1px solid var(--rule-soft);
    margin-top: 0.6rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav a { font-size: 0.98rem; }
  .masthead { position: static; }
  .masthead-inner { flex-wrap: wrap; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rail {
    position: static;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--rule-soft);
  }

  .hero { padding: 2.8rem 0 2rem; }
  .band { padding: 2.6rem 0; }
  .programs { grid-template-columns: minmax(0, 1fr); }
  .pi { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .portrait { max-width: 190px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .row-date { padding-top: 0; }
  .pub { grid-template-columns: minmax(0, 1fr); }
  .pub-n { display: none; }
}

@media (max-width: 480px) {
  .people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem 1.1rem; }
}

/* ==========================================================================
   print — the publication list is the page people actually print
   ========================================================================== */

@media print {
  .masthead, .site-footer, .nav, .skip, .todo { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .band { border-top: 0; padding: 0.6rem 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rail { display: none; }
  .pub { break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}
