/* ============================================================
   Shaurya Raghuvanshi — personal site
   Editorial paper: warm stock, fine serif, hairlines, press.
   ============================================================ */

:root {
  /* paper */
  --paper:        #fbf9f5;
  --paper-tint:   #f5f1e9;
  --paper-deep:   #efe9dd;

  /* ink */
  --ink:          #1c1a17;
  --ink-soft:     #453f37;
  --ink-mute:     #857c6d;
  --ink-faint:    #a89e8d;

  /* rules */
  --rule:         #ddd5c6;
  --rule-soft:    #e9e2d5;

  /* one accent, used sparingly */
  --accent:       #9b3f2b;
  --accent-wash:  #f0e2dc;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, P052, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", monospace;

  --shell: 62rem;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* one shared easing so every motion feels like the same hand */
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
}

/* ------------------------------------------------ reset-ish */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;              /* belt and braces on small screens */
}

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.14; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-deep);
  padding: 0.12em 0.4em;
  border-radius: 3px;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ------------------------------------------------ ultrawide

   Media queries resolve `rem` against the *initial* root size, so
   scaling the root here cannot feed back into the query itself.
   Everything downstream is rem-based, so the whole design — column
   width, gutters, type, rules — grows together instead of stranding
   a small column in the middle of a 34" display. */

@media (min-width: 100rem) {          /* ≥1600px */
  html { font-size: 112.5%; }         /* 18px */
}
@media (min-width: 130rem) {          /* ≥2080px */
  html { font-size: 125%; }           /* 20px */
  :root { --shell: 66rem; }
}
@media (min-width: 160rem) {          /* ≥2560px, ultrawide proper */
  html { font-size: 137.5%; }         /* 22px */
}

/* ------------------------------------------------ paper grain */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 46rem; }

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}
.section--tint {
  background: var(--paper-tint);
  border-block: 1px solid var(--rule-soft);
}

/* ------------------------------------------------ masthead */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  padding-inline: var(--gutter);
  padding-block: 0.8rem;

  /* hidden until you leave the hero */
  transform: translateY(-102%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease),
              border-color 0.5s var(--ease);
}
.masthead.is-visible {
  transform: translateY(0);
  opacity: 1;
  border-bottom-color: var(--rule);
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.masthead__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.masthead__nav {
  display: flex;
  gap: clamp(0.7rem, 2.4vw, 1.75rem);
  overflow-x: auto;               /* never clip links — scroll instead */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.masthead__nav::-webkit-scrollbar { display: none; }
.masthead__nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding-block: 0.2rem;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:active { transform: translateY(1px); }

/* the full name is the first thing to go when space runs out */
@media (max-width: 40rem) {
  .masthead__name { font-size: 0.95rem; }
}
@media (max-width: 30rem) {
  .masthead__name { display: none; }
  .masthead__inner { justify-content: center; }
}
/* on the narrowest phones, tighten the nav so all five fit rather than
   trailing off the edge — the overflow scroll stays as the safety net */
@media (max-width: 24rem) {
  .masthead__nav { gap: 0.6rem; }
  .masthead__nav a { font-size: 0.65rem; letter-spacing: 0.07em; }
}

/* ------------------------------------------------ hero */

.hero {
  min-height: min(92svh, 54rem);
  display: flex;
  align-items: center;
  padding-block: clamp(5.5rem, 14vh, 9rem) clamp(3.5rem, 10vh, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4rem);
  width: 100%;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem);
  }
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}

.hero__name {
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 1.6rem;
}
.hero__given, .hero__family { display: block; }
.hero__family { color: var(--ink-soft); }

/* the rule draws itself in on load */
.hero__rule {
  height: 1px;
  background: var(--ink);
  width: 100%;
  max-width: 18rem;
  transform-origin: left center;
  margin-bottom: 1.8rem;
}
.hero__rule.reveal { transform: scaleX(0); }
.hero__rule.reveal.is-in {
  transform: scaleX(1);
  transition: transform 1.05s var(--ease);
}

.hero__thesis {
  font-size: clamp(1.2rem, 1.02rem + 1.05vw, 1.6rem);
  line-height: 1.44;
  max-width: 34ch;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.hero__thesis em { font-style: italic; color: var(--ink); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 5vw, 3.25rem);
  margin: 0 0 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}
/* three tidy columns once there's room; wrapping flex below that, where
   a value spilling to its own row reads fine */
@media (min-width: 62rem) {
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(1.25rem, 2vw, 2rem);
  }
}
.hero__facts > div { padding-block: 0.25rem 0.85rem; }
.hero__facts dt {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.hero__facts dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.hero__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin: 0;
}
.hero__links .sep { color: var(--rule); }

/* portrait stays modest on narrow screens so the fold isn't all photo */
.hero__portrait { max-width: 15rem; }
@media (min-width: 62rem) {
  .hero__portrait { max-width: none; }
}

/* ------------------------------------------------ plates (images)

   Every image slot is a plate. If the file isn't there yet the box
   falls back to a dashed frame printing the path it wants, so the
   layout is honest about what's missing. */

.plate { margin: 0; }

.plate__box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 0 0 1px var(--rule);
}
.plate__box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate--portrait .plate__box { aspect-ratio: 4 / 5; }

.plate.is-empty .plate__box {
  box-shadow: none;
  border: 1px dashed var(--rule);
  background: var(--paper-deep);
}
.plate.is-empty .plate__box::after {
  content: attr(data-file);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink-faint);
  word-break: break-all;
}

.plate__cap {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.7rem;
}

/* ------------------------------------------------ links */

.ln {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  display: inline-block;
}
/* underline grows from the left on hover */
.ln::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}
.ln:hover { color: var(--accent); }
.ln:hover::after { transform: scaleX(1); }
.ln:active { transform: translateY(1px); }

.ln--quiet {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ln--dead {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose a, .asides a { color: var(--accent); }

/* ------------------------------------------------ section headings */

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  letter-spacing: -0.02em;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2.25rem;
}
.sec-head__num {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  transform: translateY(-0.35em);
}

.sub-head {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 3.25rem 0 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}

.sec-lede {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 54ch;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}
.sec-lede--tight { margin-bottom: 1.75rem; }

.sec-note {
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 52ch;
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}

/* ------------------------------------------------ split (text + plate) */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); gap: 3rem; }
}
.split .sec-lede { margin-bottom: 0; }
.split__media { max-width: 22rem; }
@media (min-width: 58rem) {
  .split__media { max-width: none; }
}

/* ------------------------------------------------ work entries */

.entries { counter-reset: entry; }

.entry {
  counter-increment: entry;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }

/* on narrow screens the image leads, then the text */
.entry__media {
  order: -1;
  margin-bottom: 1.5rem;
  max-width: 24rem;
}

@media (min-width: 64rem) {
  .entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 0 3rem;
    align-items: start;
    padding-left: 4.5rem;
  }
  .entry__text  { grid-column: 1; grid-row: 1; }
  .entry__media {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    margin-bottom: 0;
    max-width: none;
    position: sticky;
    top: 6rem;
  }
  .entry::before {
    content: counter(entry, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2.5rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
  }
}

.entry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
}
.entry__title {
  font-size: clamp(1.5rem, 1.28rem + 1vw, 2.1rem);
  letter-spacing: -0.02em;
}
.entry__meta {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  margin: 0;
}
.entry__lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.25rem;
}

/* collapsed detail — grid-rows trick so it animates to auto height */
.entry__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.44s var(--ease);
}
.entry__body.is-open { grid-template-rows: 1fr; }
.entry__body-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.entry__body.is-open .entry__body-inner {
  opacity: 1;
  transition-delay: 0.1s;
}
.entry__body-inner > *:first-child { padding-top: 0.35rem; }
.entry__body-inner p,
.entry__body-inner ul { max-width: 60ch; }
.entry__body-inner p:last-child { margin-bottom: 0.9rem; }

.entry__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.4rem;
}

/* ------------------------------------------------ toggle (tactile) */

.toggle {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: 0 1px 0 var(--rule-soft);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.09s var(--ease),
              box-shadow 0.09s var(--ease);
}
.toggle:hover { border-color: var(--ink-faint); color: var(--ink); }
/* the press */
.toggle:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(28, 26, 23, 0.09);
  background: var(--paper-deep);
}
.toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

/* the mark is a plus that rotates into a minus */
.toggle__mark { position: relative; width: 9px; height: 9px; flex: none; }
.toggle__mark::before,
.toggle__mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.36s var(--ease);
}
.toggle__mark::after { transform: rotate(90deg); }
.toggle[aria-expanded="true"] .toggle__mark::before { transform: rotate(180deg); }
.toggle[aria-expanded="true"] .toggle__mark::after  { transform: rotate(180deg); }

/* ------------------------------------------------ ticks list */

.ticks { margin: 0 0 1.35em; }
.ticks li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 1px;
  background: var(--accent);
}
.ticks b { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------ stats */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  margin-bottom: 0.9rem;
}
.stat {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.stat b {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ------------------------------------------------ pull quote */

.pull {
  margin: 0 0 3rem;
  padding: 0 0 0 clamp(1.1rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.2rem, 1.05rem + 0.85vw, 1.6rem);
  font-style: italic;
  line-height: 1.42;
  max-width: 46ch;
  color: var(--ink);
}
.pull--sm {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  margin-top: 3rem;
  margin-bottom: 0;
}

/* ------------------------------------------------ pillars

   2x2 rather than auto-fit: four items in a three-up grid leaves dead
   cells, and a dead cell in a gap-drawn grid is just a stray dark band.
   Each panel carries its own hairline as a ring, so the gaps stay empty. */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-bottom: 1rem;
}
@media (min-width: 40rem) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
.pillar {
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.75rem;
  box-shadow: 0 0 0 1px var(--rule);
  transition: background 0.28s var(--ease);
}
.section--tint .pillar { background: var(--paper-tint); }
.pillar:hover,
.section--tint .pillar:hover { background: var(--paper-deep); }
.pillar h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.pillar p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--ink-soft);
}

/* ------------------------------------------------ phases */

.phases { margin-bottom: 0; }
.phases li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 12rem) 1fr;
  gap: 0 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.phases li:first-child { border-top: 1px solid var(--rule-soft); }
.phases__n {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.phases__t { font-size: 1.02rem; color: var(--ink); }
.phases__d { font-size: 0.93rem; line-height: 1.5; color: var(--ink-mute); }
@media (max-width: 46rem) {
  .phases li { grid-template-columns: 2.25rem 1fr; }
  .phases__d { grid-column: 2; padding-top: 0.25rem; }
}

/* ------------------------------------------------ fleet */

.fleet { border-top: 1px solid var(--rule); }
.fleet__row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr;
  gap: 0.5rem 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.fleet__id h3 { font-size: 1.18rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.fleet__role {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.fleet__spec p {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
}
.fleet__spec .dim {
  font-family: var(--serif);
  font-size: 0.97rem;
  line-height: 1.52;
  color: var(--ink-mute);
  margin: 0;
  max-width: 52ch;
}
@media (max-width: 46rem) {
  .fleet__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ tiers table */

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  -webkit-overflow-scrolling: touch;
}
.tiers {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.tiers th {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.tiers td {
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  vertical-align: baseline;
}
.tiers tbody tr { transition: background 0.2s var(--ease); }
.tiers tbody tr:hover { background: var(--paper-deep); }
.tiers td:first-child { color: var(--ink); white-space: nowrap; }
.tiers td:nth-child(2) {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ------------------------------------------------ about */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); }
}

.prose p {
  font-size: 1.1rem;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.prose p:first-child { font-size: 1.28rem; line-height: 1.55; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------ slideshow

   Manual only — no autoplay. Crossfade, arrows, dots, and a swipe on
   touch. One more moving part than the rest of the page earns, so it
   stays small and stays put until you ask it to move. */

.slides { max-width: 24rem; }
@media (min-width: 62rem) { .slides { max-width: none; } }

.slides__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s;
}
.slide .plate__box { height: 100%; aspect-ratio: auto; }

.slides__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.slides__nav {
  appearance: none;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 var(--rule-soft);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
              transform 0.09s var(--ease), box-shadow 0.09s var(--ease),
              background 0.22s var(--ease);
}
.slides__nav:hover { border-color: var(--ink-faint); color: var(--ink); }
.slides__nav:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(28, 26, 23, 0.09);
  background: var(--paper-deep);
}

.slides__dots { display: flex; align-items: center; gap: 0.5rem; }
.slides__dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.3s var(--ease);
}
.slides__dot:hover { background: var(--ink-faint); }
.slides__dot.is-active { background: var(--accent); width: 1.1rem; }

.slides__cap {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0.7rem 0 0;
  min-height: 1em;
}

/* ------------------------------------------------ asides */

.asides { margin: 0; }
.asides > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) 1fr;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.asides > div:first-child { border-top: 1px solid var(--rule-soft); }
.asides dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.35rem;
}
.asides dd {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
@media (max-width: 40rem) {
  .asides > div { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ footer */

.footer {
  background: var(--paper-tint);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}
.footer__grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.footer__name { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 0.2rem; }
.footer__where {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__fine {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 1.5rem 0 0;
}

/* ------------------------------------------------ touch targets

   Fine pointers get the tight editorial spacing; fingers get 44px. */

@media (pointer: coarse) {
  .toggle { padding: 0.7rem 1.15rem; }
  .slides__nav { width: 2.75rem; height: 2.75rem; font-size: 0.95rem; }
  .slides__dot { width: 0.55rem; height: 0.55rem; }
  .slides__dot.is-active { width: 1.4rem; }
  .masthead__nav a { padding-block: 0.55rem; }
  .ln { padding-block: 0.3rem; }
  .footer__links { gap: 1.25rem 1.75rem; }
}

/* ------------------------------------------------ reveal on scroll */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .hero__rule.reveal { opacity: 1; transform: none; }
  .masthead { transform: none; opacity: 1; }
  .entry__body-inner { opacity: 1; }
}

/* ------------------------------------------------ print */

@media print {
  .grain, .masthead, .toggle, .slides__bar, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section--tint, .footer { background: none; }
  .entry__body { grid-template-rows: 1fr; }
  .entry__body-inner { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .entry__media { position: static; }
  .slide { position: static; opacity: 1; visibility: visible; }
  a { text-decoration: none; color: #000; }
}
