/* ==========================================================================
   Kevin Zhu — personal site
   Hand-written CSS. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* AMSF's font stack, verbatim: San Francisco on Apple devices,
     Helvetica Neue where installed, Arial otherwise */
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sunk: #f5f5f6;
  --text: #1c2126;
  --muted: #5c6672;
  --faint: #8a939e;
  --rule: #e5e6e8;
  --accent: #1f4e79;
  --accent-text: #1f4e79;
  --accent-soft: rgba(31, 78, 121, .08);
  --accent-line: rgba(31, 78, 121, .25);
  --shadow: 0 1px 2px rgba(20, 25, 30, .04), 0 6px 24px rgba(20, 25, 30, .05);

  --measure: 44rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-h: 4rem;

  /* Curtana-style scale: large, window-aware body text (Curtana uses 1.6vw),
     clamped so it stays readable on phones and doesn't balloon on wide screens */
  --step--1: clamp(.82rem, .76rem + .2vw, .95rem);
  --step-0: clamp(1.0625rem, .725rem + .72vw, 1.4rem);
  --step-1: clamp(1.15rem, .95rem + .6vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);

  /* Curtana's heading tracking */
  --tight: -.04em;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --bg-elev: #1a1e22;
    --bg-sunk: #101315;
    --text: #e7eaed;
    --muted: #a4adb7;
    --faint: #7b858f;
    --rule: #2a3037;
    --accent: #82b3e3;
    --accent-text: #9cc4ec;
    --accent-soft: rgba(130, 179, 227, .12);
    --accent-line: rgba(130, 179, 227, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

/* Any display rule (e.g. .pubs > li's grid) outranks the browser's own
   [hidden] style, which would leave filtered-out items on screen. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "halt", "cv01", "cv02", "cv03";   /* as in AMSF */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tight);
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-text);
  text-decoration-color: var(--accent-line);
  text-underline-offset: .18em;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}

a:hover { text-decoration-color: currentColor; }

.prose a, .entry__body a, .pubs__doi a { font-weight: 700; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 6px 0;
}

.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.brand:hover { color: var(--accent-text); }

.nav {
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent, #000 .75rem, #000 calc(100% - .75rem), transparent);
}

.nav::-webkit-scrollbar { display: none; }

.nav ul {
  display: flex;
  gap: .25rem;
  padding: 0 .25rem;
}

.nav a {
  display: block;
  padding: .5rem .7rem;
  border-radius: 6px;
  font-size: calc(var(--step-0) * .9);
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--ease), background .15s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a[aria-current="true"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* Reading-progress hairline */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  opacity: .8;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-h);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: var(--step-2);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  /* Longhands only: .hero shares an element with .wrap, and a padding
     shorthand here would wipe out the horizontal gutter. */
  padding-top: clamp(3rem, 9vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  scroll-margin-top: var(--header-h);
}

/* Edge-to-edge photo between the hero and About. The file is the whole
   frame width at 2:1; at 35vw tall the frame keeps ~70% of its height,
   from just above the slide title to just below the speaker's waist. */
.banner { margin: 0 0 clamp(2.25rem, 5vw, 3.5rem); }

.banner img {
  width: 100%;
  height: clamp(15rem, 35vw, 56rem);
  object-fit: cover;
  object-position: 55% 27%;
  background: var(--bg-sunk);
  border-block: 1px solid var(--rule);
}

.banner figcaption {
  margin-top: .6rem;
  font-size: var(--step--1);
  color: var(--faint);
}

@media (max-width: 34rem) {
  .banner img { object-position: 62% 50%; }
}

.hero__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.portrait {
  width: clamp(7.5rem, 16vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--bg-sunk);
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}

.portrait--fallback {
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  background: var(--accent);
  letter-spacing: .02em;
}

.hero__name {
  font-size: var(--step-3);
  line-height: 1.05;
  margin-bottom: .5rem;
}

.hero__tagline {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.1rem;
}

.hero__affil {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero__affil strong { color: var(--text); font-weight: 600; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: var(--step--1);
  text-decoration: none;
  transition: border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}

.link-chip:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.link-chip svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Icons sit slightly below the cap height so they optically centre with text */
.chip-icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: none;
  opacity: .75;
  transform: translateY(.03em);
  transition: opacity .15s var(--ease);
}

.link-chip:hover .chip-icon { opacity: 1; }

/* Institution marks, set inline right before the name they belong to.
   Sized in em so they track whatever text they sit in. */
.org { white-space: nowrap; }

.org-mark {
  display: inline-block;          /* base img rule is display:block */
  width: auto;
  height: 1.2em;
  margin-right: .32em;
  vertical-align: -.24em;
}

/* Optical balancing: a solid tile reads heavier than a shield of equal height */
.org-mark--tile { height: 1.05em; vertical-align: -.16em; border-radius: 3px; }
.org-mark--shield { height: 1.25em; vertical-align: -.27em; }

/* --------------------------------------------------------------------------
   6. Prose + about
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
}

.prose + .prose { margin-top: 1.1em; }

.lede {
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Curtana sub-heading: small, regular weight, half opacity */
.subhead {
  font-family: var(--sans);
  font-size: .8em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  opacity: .5;
  margin: 0 0 1rem;
}

.about__aside > * + * { margin-top: 2.25rem; }

/* Education */
.edu li + li { margin-top: 1.25rem; }

.edu__degree { font-weight: 600; display: block; }

.edu__where, .edu__when {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
}

.edu__note {
  font-size: var(--step--1);
  color: var(--faint);
  margin-top: .3rem;
}

/* Photo sitting with the paragraph it illustrates, at prose width */
.inline-figure {
  margin: 1.6rem 0 0;
  max-width: var(--measure);
}

.inline-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--rule);
  /* Reserve the space before the file arrives, so nothing jumps */
  aspect-ratio: 1306 / 326;
  object-fit: cover;
  background: var(--bg-sunk);
}

.inline-figure figcaption {
  margin-top: .55rem;
  font-size: var(--step--1);
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   7. Filter bar
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 2rem;
}

.filters__label {
  font-size: var(--step--1);
  color: var(--faint);
  margin-right: .3rem;
}

.chip {
  appearance: none;
  font: inherit;
  font-size: var(--step--1);
  padding: .35rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s var(--ease);
}

.chip:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .chip[aria-pressed="true"] { color: #10151a; }
}

.filter-empty {
  color: var(--muted);
  font-style: italic;
  padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   8. Entries (research, teaching)
   -------------------------------------------------------------------------- */

.entries > li + li { margin-top: .75rem; }

.entry {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.entry:hover { border-color: var(--accent-line); }
.entry[open] { box-shadow: var(--shadow); }

.entry__summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.entry__summary::-webkit-details-marker { display: none; }

.entry__role {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -.02em;
  grid-column: 1;
}

/* Quiet one-liner inside a card body (e.g. collaborators) */
.entry__note {
  margin: .9rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

/* "Selected projects" divider inside the Research section */
.projects__head { margin: 2.5rem 0 .9rem; }

.entry__org {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
  margin-top: .15rem;
}

.entry__when {
  grid-column: 2;
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--faint);
  white-space: nowrap;
}

/* Research cards carry an institution tile in their own leading column */
.entries--logos .entry__summary { grid-template-columns: auto 1fr auto auto; }
.entries--logos .entry__role   { grid-column: 2; }
.entries--logos .entry__when   { grid-column: 3; }
.entries--logos .entry__marker { grid-column: 4; }

.entry__logo {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.entry__logo img { display: block; }

/* Shield: sits on a quiet tile so its white chief has an edge to read against */
.entry__logo--boxed {
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
}
.entry__logo--boxed img { height: 74%; width: auto; }

/* Logos that already are tiles fill the slot as they are */
.entry__logo--fill img { width: 100%; height: 100%; object-fit: cover; }
/* hairline ring so a dark tile keeps its edge on the dark theme's cards */
.entry__logo--fill { box-shadow: 0 0 0 1px var(--rule); }
.entry__logo--bare img { width: 100%; height: 100%; object-fit: contain; }

.entry__marker {
  grid-column: 3;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
  align-self: center;
  flex: none;
  color: var(--faint);
}

.entry__marker::before,
.entry__marker::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.entry__marker::before { inset: 48% 10% auto; height: 1.5px; }
.entry__marker::after { inset: 10% 48% auto; width: 1.5px; height: 80%; }

.entry[open] .entry__marker::after { transform: scaleY(0); opacity: 0; }
.entry[open] .entry__marker { color: var(--accent-text); }

.entry__body {
  padding: 0 1.25rem 1.25rem;
  max-width: var(--measure);
}

.entry__lead {
  color: var(--text);
  margin-bottom: .9rem;
  padding-top: .25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: calc(var(--step-0) * .97);
}

.bullets li + li { margin-top: .6rem; }

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--accent-line);
}

.bullets strong { color: var(--text); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1rem;
}

.tag {
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-sunk);
  border-radius: 4px;
  padding: .2rem .45rem;
}

.expand-all {
  appearance: none;
  font: inherit;
  font-size: var(--step--1);
  color: var(--muted);
  background: none;
  border: 0;
  padding: .35rem 0;
  margin-left: auto;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: .25em;
}

.expand-all:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   9. Publications
   -------------------------------------------------------------------------- */

.pubs > li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  max-width: 58rem;
}

/* Rule only below a visible row, so a filtered list never opens with a line. */
.pubs > li:not([hidden]) ~ li { border-top: 1px solid var(--rule); }

.pubs__when {
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--faint);
  padding-top: .2rem;
}

.pubs__title {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
}

.pubs__meta {
  color: var(--muted);
  font-size: calc(var(--step-0) * .95);
}

.pubs__meta em { color: var(--muted); }

/* Linked publication titles stay ink-coloured until hovered */
.pubs__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease), color .15s var(--ease);
}

.pubs__title a:hover {
  color: var(--accent-text);
  background-size: 100% 1px;
}

.pubs__doi {
  margin-top: .4rem;
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--faint);
  word-break: break-word;
}

.pubs__doi a { color: var(--accent-text); }

.pubs__badge {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: .18rem .45rem;
  margin-bottom: .5rem;
}

.pubs strong.me { color: var(--text); }

/* --------------------------------------------------------------------------
   10. Awards
   -------------------------------------------------------------------------- */

.awards {
  max-width: 58rem;
  border-left: 2px solid var(--rule);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.awards > li {
  position: relative;
  padding: 0 0 2rem;
}

.awards > li:last-child { padding-bottom: 0; }

.awards > li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.25rem, 3vw, 2rem) - 6px);
  top: .55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-line);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.awards > li:hover::before { background: var(--accent); border-color: var(--accent); }

.awards__when {
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--faint);
  display: block;
  margin-bottom: .15rem;
}

.awards__title {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -.02em;
}

.awards__amount {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  margin-left: .5rem;
  white-space: nowrap;
}

.awards__note {
  color: var(--muted);
  font-size: calc(var(--step-0) * .95);
  margin-top: .15rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  background: var(--bg-sunk);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer__grid .footer__note { margin: 0; }

.footer__note {
  font-size: var(--step--1);
  color: var(--faint);
  max-width: 30ch;
}

.to-top {
  font-size: var(--step--1);
  color: var(--muted);
  text-decoration: none;
}

.to-top:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   13. Motion
   -------------------------------------------------------------------------- */

 /* Hidden state is applied by JS only, so a script failure can never
    leave the page blank. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-on .reveal:nth-child(2) { transition-delay: .05s; }
.reveal-on .reveal:nth-child(3) { transition-delay: .1s; }
.reveal-on .reveal:nth-child(4) { transition-delay: .15s; }

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

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 52rem) {
  .about__grid { grid-template-columns: 1fr; }
  .pubs > li { grid-template-columns: 1fr; gap: .4rem; }
  .pubs__when { padding-top: 0; }
}

@media (max-width: 34rem) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .entry__summary { grid-template-columns: 1fr auto; }
  .entry__when { grid-column: 1; grid-row: 2; }
  .entry__marker { grid-row: 1 / span 2; }
  .entries--logos .entry__summary { grid-template-columns: auto 1fr auto; }
  .entries--logos .entry__logo    { grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; }
  .entries--logos .entry__role    { grid-column: 2; }
  .entries--logos .entry__when    { grid-column: 2; grid-row: 2; }
  .entries--logos .entry__marker  { grid-column: 3; grid-row: 1 / span 2; }
  .brand { font-size: var(--step-0); }
  .nav a { padding: .5rem .45rem; letter-spacing: .02em; }
  .site-header__inner { gap: .75rem; }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .filters, .expand-all, .to-top, .links { display: none; }
  .entry__body { display: block !important; }
  .section { padding: 1.5rem 0; border-color: #ccc; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .entry { border: 0; }
  a { color: #000; text-decoration: none; }
}
