/* ==========================================================================
   nitinparanjpe.com — Core stylesheet
   Visual system: "Mineral Archive" — warm parchment ground, deep graphite ink,
   muted clay accent, hairline rules, asymmetric editorial grid.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground + ink */
  --paper:        #f4f0e9;   /* warm ivory / parchment */
  --paper-2:      #eae3d7;   /* deeper parchment — image mats, insets */
  --paper-3:      #e0d8c9;   /* sunk panels */
  --basalt:       #211e1b;   /* deep graphite band */
  --basalt-2:     #2e2a25;

  --ink:          #1b1917;   /* primary text */
  --ink-2:        #38342f;   /* secondary text */
  --muted:        #5f584f;   /* metadata, captions — 6.0:1 on paper */
  --muted-dark:   #a9a094;   /* metadata on basalt */

  /* Accent — restrained clay */
  --clay:         #9c4f2e;   /* accent text, marks — 5.4:1 on paper */
  --clay-soft:    #c07d58;   /* accent on dark grounds  — 4.98:1 on --basalt */
  --clay-wash:    #ede0d5;

  /* Structure */
  --rule:         #d3cabb;   /* hairlines on paper */
  --rule-strong:  #b9ad99;
  --rule-dark:    #453f38;   /* hairlines on basalt */
  --anchor:       #8d8270;   /* oversized numerals / years — 3.32:1 on --paper */

  --focus:        #9c4f2e;

  /* Type */
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Iowan Old Style, "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1360px;
  --gap: clamp(20px, 2.4vw, 40px);

  --space-xs: clamp(10px, 1.2vw, 16px);
  --space-s:  clamp(18px, 2.2vw, 30px);
  --space-m:  clamp(34px, 4.5vw, 62px);
  --space-l:  clamp(58px, 8vw, 104px);
  --space-xl: clamp(84px, 12vw, 168px);

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

/* --------------------------------------------------------------------------
   02. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* No overflow here. A non-visible overflow on <html> or <body> turns them
     into scroll containers, which stops the viewport being the scrollport and
     breaks every position:sticky inside (header, asides). Horizontal safety is
     handled with overflow-x:clip on body, which clips without scrolling. */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

/* Protected pages stay blank until auth.js clears them (no content flash). */
html[data-auth="protected"]:not(.is-cleared) body { visibility: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; border: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

::selection { background: var(--clay); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible,
.gate :focus-visible { outline-color: var(--clay-soft); }

.skip {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   03. Typographic scale
   -------------------------------------------------------------------------- */
.t-overture {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 1rem + 4.5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.t-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 1.2rem + 3.9vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.t-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.16rem, 1.02rem + 0.6vw, 1.44rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.t-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.22rem, 1.06rem + 0.8vw, 1.68rem);
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--ink-2);
}
.t-meta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-note {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.62;
  letter-spacing: 0.005em;
  color: var(--muted);
}
.t-clay { color: var(--clay); }
.t-ital { font-style: italic; }

p + p { margin-top: 1.05em; }
.prose p + p { text-indent: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: background-size .28s var(--ease), color .28s var(--ease);
}
.prose a:hover, .prose a:focus-visible { color: var(--clay); background-size: 100% 2px; }

.measure   { max-width: 34em; }
.measure-w { max-width: 42em; }
.measure-n { max-width: 27em; }

/* --------------------------------------------------------------------------
   04. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--space-m);
}

.sec { padding-block: var(--space-l); }
.sec--tight { padding-block: var(--space-m); }
.sec--tall  { padding-block: var(--space-xl); }

.rule-top { border-top: 1px solid var(--rule); }
.hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.on-dark .hr, .on-dark .rule-top { border-color: var(--rule-dark); }

/* Section marker — the recurring "dossier header" device */
.marker {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-xs);
  border-top: 1px solid var(--rule-strong);
  padding-top: 0.85rem;
  margin-bottom: var(--space-s);
}
.marker__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.marker__label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .marker { border-top-color: var(--rule-dark); }
.on-dark .marker__num { color: var(--clay-soft); }
.on-dark .marker__label { color: var(--muted-dark); }

/* Dark statement band */
.band {
  background: var(--basalt);
  color: var(--paper);
}
.band .t-lede { color: #ded6c9; }
.band .t-note { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   05. Header + navigation
   -------------------------------------------------------------------------- */
.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(4px)) { .head { background: var(--paper); } }

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 68px;
}

.mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding-block: 6px;
}
.mark__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.16rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.mark__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.5625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--clay); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--clay); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Hamburger */
.burger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.burger__box { position: relative; width: 22px; height: 12px; flex: none; }
.burger__box span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 10.5px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { transform: translateY(-5.25px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--basalt);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* visibility flips instantly on open (so the panel is focusable at once)
     and is delayed on close so the exit animation can play out. */
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin-inline: 0;
}
.drawer__close {
  min-height: 44px; min-width: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.drawer__close .x { font-size: 1.1rem; line-height: 1; }
.drawer__list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-s);
  border-top: 1px solid var(--rule-dark);
}
.drawer__item { border-bottom: 1px solid var(--rule-dark); }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px;
  min-height: 56px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
  transition: color .25s var(--ease);
}
.drawer__link:hover, .drawer__link:focus-visible { color: var(--clay-soft); }
.drawer__link[aria-current="page"] { color: var(--clay-soft); }
.drawer__idx {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.drawer__foot {
  margin-top: auto;
  padding-top: var(--space-s);
}
.drawer__foot a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.drawer__foot a:hover { border-bottom-color: var(--clay-soft); }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   06. Image plates — never cropped, never stretched
   -------------------------------------------------------------------------- */
.plate { margin: 0; max-width: var(--plate-w, 620px); }
.plate__mat {
  background: var(--paper-2);
  padding: clamp(12px, 1.8vw, 26px);
}
.plate__mat img { width: 100%; height: auto; }
.plate--edge .plate__mat { background: transparent; padding: 0; border: 1px solid var(--rule); }
.plate--plain .plate__mat { background: transparent; padding: 0; }
.on-dark .plate__mat { background: var(--basalt-2); }
.on-dark .plate--edge .plate__mat { border-color: var(--rule-dark); }

.plate figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}
.plate figcaption b {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.625rem;
  color: var(--clay);
  padding-top: 2px;
}
.on-dark .plate figcaption { border-top-color: var(--rule-dark); color: var(--muted-dark); }
.on-dark .plate figcaption b { color: var(--clay-soft); }

/* Scoped to html.js, which main.js sets the moment it runs. If that script
   never loads, the rule never applies and nothing can be left invisible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

/* --------------------------------------------------------------------------
   07. Ledger — ruled rows of factual metadata
   -------------------------------------------------------------------------- */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 0.9fr);
  column-gap: var(--gap);
  align-items: start;
  padding-block: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
}
.ledger__year {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}
.ledger__role {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.008em;
}
.ledger__org { font-family: var(--sans); font-size: 0.8125rem; line-height: 1.6; color: var(--muted); padding-top: 0.3rem; }
.on-dark .ledger { border-top-color: var(--rule-dark); }
.on-dark .ledger__row { border-bottom-color: var(--rule-dark); }
.on-dark .ledger__year { color: var(--clay-soft); }
.on-dark .ledger__org { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   08. Numbered editorial entries
   -------------------------------------------------------------------------- */
.entries { border-top: 1px solid var(--rule-strong); }
.entry {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: var(--gap);
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--rule);
}
.entry__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 0.9;
  color: var(--anchor);
  font-variant-numeric: tabular-nums;
}
.entry__body > * + * { margin-top: 0.8rem; }
.entry__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   09. Pull quotes
   -------------------------------------------------------------------------- */
.pull { margin: 0; }
.pull__q {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.pull__q p + p { margin-top: 0.6em; }
.pull__by {
  display: block;
  margin-top: var(--space-xs);
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pull__by b { display: block; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.625rem; color: var(--clay); margin-bottom: 4px; }
.on-dark .pull__by { border-top-color: var(--rule-dark); color: var(--muted-dark); }
.on-dark .pull__by b { color: var(--clay-soft); }

/* --------------------------------------------------------------------------
   10. Definition stack (dossier facts)
   -------------------------------------------------------------------------- */
.facts { border-top: 1px solid var(--rule-strong); }
.facts__row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  column-gap: var(--space-s);
  padding-block: clamp(13px, 1.6vw, 19px);
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.42rem;
}
.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.facts dd small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   11. Chronology (journey)
   -------------------------------------------------------------------------- */
.chrono { display: grid; row-gap: 0; }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-block: var(--space-m);
  border-top: 1px solid var(--rule);
}
.chapter:first-child { border-top: 1px solid var(--rule-strong); }
.chapter__aside { position: sticky; top: 104px; align-self: start; }
.chapter__year {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 1.4rem + 6vw, 6.2rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--anchor);
  font-variant-numeric: tabular-nums;
}
.chapter__phase {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--clay);
}
.chapter__body > * + * { margin-top: 1.05em; }
.chapter__head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.12rem + 1.2vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   12. Case dossiers (contributions)
   -------------------------------------------------------------------------- */
.dossier { border-top: 1px solid var(--rule-strong); padding-top: var(--space-s); margin-top: var(--space-m); }
.dossier:first-of-type { margin-top: 0; }
.dossier__head {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: var(--space-xs);
  align-items: start;
  margin-bottom: var(--space-s);
}
.dossier__idx {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  padding-top: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.dossier__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.dossier__span {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps { border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-block: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
}
.step__k {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.5rem;
}
.step__v { font-size: 1.0625rem; line-height: 1.62; }

/* --------------------------------------------------------------------------
   13. Links, buttons, next-page transition
   -------------------------------------------------------------------------- */
.lnk {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.lnk .arw { transition: transform .3s var(--ease); display: inline-block; }
.lnk:hover, .lnk:focus-visible { color: var(--clay); border-bottom-color: var(--clay); }
.lnk:hover .arw, .lnk:focus-visible .arw { transform: translateX(5px); }
.on-dark .lnk { color: var(--paper); border-bottom-color: var(--rule-dark); }
.on-dark .lnk:hover, .on-dark .lnk:focus-visible { color: var(--clay-soft); border-bottom-color: var(--clay-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--clay); border-color: var(--clay); color: var(--paper); }

/* "Continue" strip that closes every page */
.onward {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-s);
  padding-block: var(--space-m);
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
  color: inherit;
}
.onward__k {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.7rem;
}
.onward__t {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color .3s var(--ease);
}
.onward__arw {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1;
  color: var(--clay);
  transition: transform .35s var(--ease);
  display: inline-block;
}
.onward:hover .onward__t, .onward:focus-visible .onward__t { color: var(--clay); }
.onward:hover .onward__arw, .onward:focus-visible .onward__arw { transform: translateX(10px); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.foot {
  background: var(--basalt);
  color: var(--paper);
  padding-block: var(--space-m) var(--space-s);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: var(--space-m);
  padding-bottom: var(--space-m);
}
.foot__h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-dark);
}
.foot__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.foot__blurb { font-size: 0.98rem; line-height: 1.6; color: #cdc4b6; margin-top: 0.75rem; max-width: 30em; }
.foot__ct { display: flex; flex-direction: column; gap: 4px; }
.foot__ct a {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.5;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  align-self: start;
  word-break: break-word;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  padding-block: 4px;
}
.foot__ct a:hover, .foot__ct a:focus-visible { color: var(--clay-soft); border-bottom-color: var(--clay-soft); }
.foot__ct .who { font-family: var(--serif); font-size: 1.16rem; padding-block: 4px; }
.foot__ct .role { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 6px; }

.foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.foot__nav a {
  display: block;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #cdc4b6;
  transition: color .25s var(--ease);
}
.foot__nav a:hover, .foot__nav a:focus-visible { color: var(--clay-soft); }

.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--rule-dark);
  color: #cdc4b6;
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.social a svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.social a:hover, .social a:focus-visible { color: var(--paper); border-color: var(--clay-soft); background: var(--basalt-2); }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--rule-dark);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-dark);
}
.foot__base a { color: #cdc4b6; text-decoration: none; border-bottom: 1px solid var(--rule-dark); transition: color .25s var(--ease), border-color .25s var(--ease); }
.foot__base a:hover, .foot__base a:focus-visible { color: var(--clay-soft); border-bottom-color: var(--clay-soft); }

/* --------------------------------------------------------------------------
   15. Passcode gate (index.html only)
   -------------------------------------------------------------------------- */
.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 25vw 25vw, 25vw 25vw;
  background-position: center;
}
.gate__panel {
  align-self: center;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 56px) clamp(22px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
.gate__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
}
.gate__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-top: 1.1rem;
}
.gate__hint {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 0.9rem;
  max-width: 34em;
}
.gate__form { margin-top: clamp(26px, 4vw, 40px); }
.gate__label {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.gate__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.gate__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.gate__input::placeholder { color: #a99f92; letter-spacing: 0.1em; }
.gate__input:focus { outline: none; border-bottom-color: var(--clay); }
.gate__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.gate__form.is-bad .gate__input { border-bottom-color: #a4342a; }
.gate__msg {
  min-height: 1.6em;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8f2f26;
}
.gate__foot {
  align-self: end;
  padding: 0 var(--gutter) clamp(20px, 3vw, 32px);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a99f92;
}
.shake { animation: shake .38s var(--ease); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   16. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   17. Non-linked social marks (channels with no verified official profile)
   -------------------------------------------------------------------------- */
.social li { display: flex; }
.social__na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--rule-dark);
  color: #7d7568;
  cursor: default;
}
.social__na svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* --------------------------------------------------------------------------
   18. Page-level compositions
   -------------------------------------------------------------------------- */

/* Overture — the opening screen of home.html */
.overture { padding-block: clamp(48px, 8vw, 116px) var(--space-m); }
.overture__eyebrow { margin-bottom: var(--space-s); }
.overture__h { margin-bottom: var(--space-m); }
.overture__aside { border-top: 1px solid var(--rule); padding-top: 1.1rem; }

/* Offset composition — image and column that break the grid */
.offset { position: relative; }

/* Statement line used to close a section */
.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 1.05rem + 2.5vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Sources list */
.sources { border-top: 1px solid var(--rule); }
.sources li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0 10px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.sources li span { color: var(--clay); font-weight: 600; font-variant-numeric: tabular-nums; }
.sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.sources a:hover, .sources a:focus-visible { color: var(--clay); text-decoration-color: var(--clay); }

/* Contact rows */
.reach { border-top: 1px solid var(--rule-strong); }
.reach__row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(20px, 2.6vw, 34px);
  border-bottom: 1px solid var(--rule);
}
.reach__k {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.reach__v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.reach__v a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
  display: inline-block;
  padding-bottom: 2px;
}
.reach__v a:hover, .reach__v a:focus-visible { color: var(--clay); border-bottom-color: var(--clay); }
.reach__note { display: block; margin-top: 0.6rem; }

@media (max-width: 599px) {
  .reach__row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}

/* --------------------------------------------------------------------------
   19. Modules — alternating editorial blocks (leadership.html)
   -------------------------------------------------------------------------- */
.mod {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-m);
  row-gap: var(--space-s);
}
.mod:first-of-type { border-top-color: var(--rule-strong); }
.mod__idx {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  display: block;
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.mod__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.mod__scope {
  display: block;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (min-width: 981px) {
  .mod--rev > * { grid-row: 1; }
}

/* --------------------------------------------------------------------------
   20. Magazine devices (perspectives.html)
   -------------------------------------------------------------------------- */
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 4.1em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--clay);
}
.cols { column-gap: var(--gap); }
.cols > p { margin-top: 0; margin-bottom: 1.05em; }
.cols > p:last-child { margin-bottom: 0; }
@media (min-width: 981px) { .cols { column-count: 2; } }

.piece { border-top: 1px solid var(--rule-strong); padding-block: var(--space-m); }
.piece:first-of-type { padding-top: var(--space-s); }
.piece__kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}
.piece__h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.piece__standfirst {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 1rem;
}
.piece__body { margin-top: var(--space-s); }

/* Inline quotation, set off inside running text */
.said {
  margin: var(--space-s) 0;
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 2px solid var(--clay);
}
.said p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.16rem, 1.04rem + 0.6vw, 1.5rem);
  line-height: 1.38;
  letter-spacing: -0.008em;
}
.said cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   21. Reading measure — long-form text never runs wider than is comfortable
   -------------------------------------------------------------------------- */
.prose          { max-width: 34em; }
.chapter__body  { max-width: 34em; }
.step__v        { max-width: 40em; }
.entry__body    { max-width: 34em; }
.piece__body    { max-width: 34em; }

/* --------------------------------------------------------------------------
   22. Comfortable tap targets for inline links in dense areas
   -------------------------------------------------------------------------- */
.foot__base a,
.drawer__foot a {
  display: inline-block;
  padding-block: 6px;
}

/* Inline link inside non-prose editorial blocks */
.ilink {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  /* Padding on an inline element grows the hit area without changing the
     line box, so the target gets bigger and the layout does not move. */
  padding: 5px 0 3px;
  transition: background-size .28s var(--ease), color .28s var(--ease);
}
.ilink:hover, .ilink:focus-visible { color: var(--clay); background-size: 100% 2px; }
