/* ==========================================================================
   joshpritchard.com
   Palette: ink / bone / signal gold (pulled from the tie in the portrait)
   Type:    Instrument Serif (display) · Newsreader (text) · JetBrains Mono (data)
   Device:  the cumulative record — a real graph of a real career
   ========================================================================== */

:root {
  /* light — "paper" */
  --ground:      #E9E8E1;
  --ground-2:    #F4F3ED;
  --ground-3:    #DEDDD4;
  --ink:         #16191A;
  --ink-soft:    #414846;
  --ink-mute:    #6C7472;
  --rule:        #CAC9BF;
  --rule-soft:   #DAD9D0;
  --accent:      #A8760A;
  --accent-ink:  #7A5300;
  --accent-wash: rgba(168, 118, 10, 0.10);
  --shadow:      0 1px 2px rgba(22,25,26,.05), 0 8px 24px -12px rgba(22,25,26,.18);

  /* the hero band commits to one world in both themes */
  --hero-ground: #101415;
  --hero-ink:    #EAE7DE;
  --hero-mute:   #97A09D;
  --hero-accent: #E4B341;
  --hero-rule:   #2C3334;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.86rem, 0.10vw + 0.83rem, 0.92rem);
  --step-0:  clamp(1.05rem, 0.18vw + 1.00rem, 1.18rem);
  --step-1:  clamp(1.22rem, 0.35vw + 1.13rem, 1.45rem);
  --step-2:  clamp(1.55rem, 0.90vw + 1.32rem, 2.15rem);
  --step-3:  clamp(2.00rem, 2.00vw + 1.50rem, 3.10rem);
  --step-4:  clamp(2.70rem, 5.20vw + 1.40rem, 5.40rem);

  --measure: 34rem;
  --rail: 9.5rem;
  --gap: clamp(1.5rem, 3vw, 2.75rem);
  --band: clamp(3.5rem, 8vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #131718;
    --ground-2:    #1A1F20;
    --ground-3:    #0D1011;
    --ink:         #E7E5DC;
    --ink-soft:    #B3B9B6;
    --ink-mute:    #808987;
    --rule:        #2B3233;
    --rule-soft:   #222829;
    --accent:      #E0AE3E;
    --accent-ink:  #E9BE5C;
    --accent-wash: rgba(224, 174, 62, 0.13);
    --shadow:      0 1px 2px rgba(0,0,0,.35), 0 10px 30px -14px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --ground:      #131718;
  --ground-2:    #1A1F20;
  --ground-3:    #0D1011;
  --ink:         #E7E5DC;
  --ink-soft:    #B3B9B6;
  --ink-mute:    #808987;
  --rule:        #2B3233;
  --rule-soft:   #222829;
  --accent:      #E0AE3E;
  --accent-ink:  #E9BE5C;
  --accent-wash: rgba(224, 174, 62, 0.13);
  --shadow:      0 1px 2px rgba(0,0,0,.35), 0 10px 30px -14px rgba(0,0,0,.7);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ground-2); color: var(--ink);
  padding: .75rem 1rem; z-index: 100;
  font-family: var(--font-mono); font-size: var(--step--1);
}
.skip:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------ scaffold -- */

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }
.band--rule { border-top: 1px solid var(--rule); }

/* rail layout: mono margin-note on the left, prose on the right */
.railed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}
.railed + .railed { margin-top: clamp(2.5rem, 5vw, 4rem); }
.rail {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: .35em;
}
.railed > .flow { max-width: var(--measure); }

@media (min-width: 62rem) {
  .railed {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: var(--gap);
  }
  .rail { text-align: right; }
}

.flow { display: flex; flex-direction: column; gap: 1.1em; }
.flow p, .flow li { color: var(--ink-soft); }
.flow strong { color: var(--ink); font-weight: 600; }

.measure { max-width: var(--measure); }

/* --------------------------------------------------------------- type --- */

.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.h-display {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: .96;
  letter-spacing: -0.015em;
}

.h-section {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.h-item {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.12;
}

.h-small {
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* prose links */
.flow a:not(.btn):not(.card__cta), .link {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: .06em;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.flow a:not(.btn):not(.card__cta):hover, .link:hover {
  color: var(--accent-ink);
  border-bottom-color: var(--accent-ink);
  background: var(--accent-wash);
}

/* ------------------------------------------------------------- header --- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
  padding-block: .5rem;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark span {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.6rem);
  list-style: none;
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-block: .55rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

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

.hero {
  background: var(--hero-ground);
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  padding-block: clamp(3.25rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.hero h1 { color: var(--hero-ink); }
.hero h1 em {
  font-style: italic;
  color: var(--hero-accent);
}
.hero__eyebrow {
  color: var(--hero-mute);
  margin-bottom: 1.4rem;
  display: block;
  max-width: 44ch;
  line-height: 1.7;
}
.hero__deck {
  margin-top: 1.75rem;
  max-width: 32rem;
  color: var(--hero-mute);
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero__deck strong { color: var(--hero-ink); font-weight: 500; }

.hero__portrait {
  position: relative;
  border: 1px solid var(--hero-rule);
  overflow: hidden;
}
.hero__portrait img {
  width: 100%;
  filter: saturate(.82) contrast(1.04) brightness(.94);
}
.hero__portrait figcaption {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-mute);
  padding: .7rem .85rem;
  border-top: 1px solid var(--hero-rule);
  background: var(--hero-ground);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* -------------------------------------------------------------- button -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .78rem 1.2rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { border-color: var(--accent); background: var(--accent-wash); }
.btn--solid {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #FFF9EC; }
.btn--onhero { border-color: var(--hero-rule); color: var(--hero-ink); }
.btn--onhero:hover { border-color: var(--hero-accent); background: rgba(228,179,65,.12); }
.btn--onhero.btn--solid {
  background: var(--hero-accent); color: #171205; border-color: var(--hero-accent);
}
.btn--onhero.btn--solid:hover { background: #F2C965; border-color: #F2C965; color: #171205; }

/* --------------------------------------------- the cumulative record ---- */

.record { background: var(--hero-ground); color: var(--hero-ink); }
.record--page { background: transparent; color: var(--ink); }
.record__scroll { overflow-x: auto; overflow-y: hidden; }
.record__inner { min-width: 46rem; padding-bottom: .5rem; }
.record svg { width: 100%; height: auto; overflow: visible; }

.record .rec-axis { stroke: var(--hero-rule); stroke-width: 1; }
.record .rec-phase { stroke: var(--hero-rule); stroke-width: 1; stroke-dasharray: 3 5; }
.record .rec-line {
  fill: none;
  stroke: var(--hero-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.record .rec-dot { fill: var(--hero-accent); }
.record .rec-tick { stroke: var(--hero-accent); stroke-width: 1.5; opacity: .55; }
.record .rec-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  fill: var(--hero-mute);
}
.record .rec-text--phase { fill: var(--hero-accent); opacity: .8; letter-spacing: .16em; }
.record .rec-text--event { font-size: 10px; letter-spacing: .02em; text-transform: none; fill: var(--hero-ink); }
.record--page .rec-text--event { fill: var(--ink); }

.record--page .rec-axis, .record--page .rec-phase { stroke: var(--rule); }
.record--page .rec-line { stroke: var(--accent); }
.record--page .rec-dot { fill: var(--accent); }
.record--page .rec-tick { stroke: var(--accent); }
.record--page .rec-text { fill: var(--ink-mute); }
.record--page .rec-text--phase { fill: var(--accent-ink); }

.record__caption {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-mute);
  border-top: 1px solid var(--hero-rule);
}
.record--page .record__caption { color: var(--ink-mute); border-top-color: var(--rule); }

/* draw-on animation */
.rec-line--anim { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.rec-drawn .rec-line--anim { animation: draw 1900ms cubic-bezier(.4,.05,.2,1) forwards; }
.rec-drawn .rec-dot, .rec-drawn .rec-tick, .rec-drawn .rec-text--event {
  opacity: 0; animation: fadeup 500ms ease forwards; animation-delay: var(--d, 0ms);
}
.rec-drawn .rec-tick { animation-name: fadetick; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes fadetick { to { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .rec-line--anim { stroke-dasharray: none; stroke-dashoffset: 0; }
  .rec-drawn .rec-dot, .rec-drawn .rec-tick, .rec-drawn .rec-text--event { opacity: 1; animation: none; }
  .rec-drawn .rec-tick { opacity: .55; }
}

/* figure key beneath the cumulative record */
.record-key {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: .55rem 2rem;
  padding-block: 1.25rem 0;
}
.record-key li {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--hero-mute);
}
.record-key b { color: var(--hero-accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.record--page + .record-key li { color: var(--ink-mute); }
.record--page + .record-key b { color: var(--accent-ink); }

/* --------------------------------------------------------------- grid --- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 46rem) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 52rem) {
  .cards--3 > .card:last-child:nth-child(3n - 1) { grid-column: span 2; }
}

.card {
  background: var(--ground);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.card p { color: var(--ink-soft); }
.card .label { color: var(--accent-ink); }
.card__cta {
  margin-top: auto;
  padding-top: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 0;
}
.card__cta::after { content: " →"; color: var(--accent-ink); }
.card__cta:hover { color: var(--accent-ink); background: transparent; }

/* figures strip */
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 46rem) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure {
  background: var(--ground);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.figure b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.figure span { font-size: var(--step--1); color: var(--ink-mute); line-height: 1.35; }

/* checked list — used where items are conditions, not a sequence */
.ticked { list-style: none; gap: .75em; }
.ticked li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.ticked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .7rem;
  height: 1px;
  background: var(--accent);
}

/* CV definition lists — title left, institution right */
.deflist { list-style: none; }
.deflist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
  padding-block: clamp(.9rem, 2vw, 1.15rem);
  border-top: 1px solid var(--rule);
}
.deflist li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 52rem) {
  .deflist li { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}
.deflist b { font-weight: 600; font-size: var(--step-0); color: var(--ink); }
.deflist span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-mute);
  line-height: 1.6;
}

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

.entries { list-style: none; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem var(--gap);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 62rem) {
  .entry { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .entry__meta { text-align: right; }
}
.entry__meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.entry__body { display: flex; flex-direction: column; gap: .6rem; max-width: 42rem; }
.entry__body p { color: var(--ink-soft); }
.entry__role {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .06em;
  color: var(--accent-ink);
}
.entry__why {
  font-size: var(--step--1);
  color: var(--ink-mute);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: .9rem;
}
.cite { font-size: var(--step--1); color: var(--ink-mute); line-height: 1.55; overflow-wrap: anywhere; }
.entry__role.link { overflow-wrap: anywhere; }
.cite em { font-style: italic; }

/* ---------------------------------------------------------------- book -- */

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--ground-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 52rem) { .book { grid-template-columns: 15rem minmax(0, 1fr); } }
.book__cover {
  aspect-ratio: 5 / 7;
  background: linear-gradient(160deg, #1B2224 0%, #0E1213 60%, #151A1B 100%);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.2rem;
  color: #E7E4DA;
  box-shadow: var(--shadow);
}
.book__cover .bc-top {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #E4B341;
}
.book__cover .bc-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
}
.book__cover .bc-rule { height: 1px; background: #E4B341; opacity: .6; }
.book__cover .bc-ed {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9AA29F;
  line-height: 1.6;
}
.book__body { display: flex; flex-direction: column; gap: 1rem; }
.book__body p { color: var(--ink-soft); }

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

.pull {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
  max-width: 30rem;
  border-left: 2px solid var(--accent);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}

/* --------------------------------------------------------------- form --- */

.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--ground-2);
  border: 1px solid var(--rule);
  padding: .7rem .85rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.hp { position: absolute; left: -9999px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.contact-side { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-side dl { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.contact-side dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .3rem;
}
.contact-side dd { margin: 0; color: var(--ink-soft); }

.form-sent {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 34rem;
  border-left: 2px solid var(--accent);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}
.form-sent p { color: var(--ink-soft); }
[hidden] { display: none !important; }

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

.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  margin-top: var(--band);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.footer__nav a, .footer a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__nav a:hover, .footer a:hover { color: var(--accent-ink); }
.footer__colophon {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  max-width: 24rem;
  line-height: 1.7;
  text-transform: none;
}

.theme-toggle {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid var(--rule);
  padding: .4rem .7rem;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }

/* --------------------------------------------------------- reveal fx --- */

.rev { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.rev.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ onepage --- */

.onepage-note {
  background: var(--accent-wash);
  border: 1px solid var(--accent);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--ink);
}
.onepage-note b { color: var(--accent-ink); letter-spacing: .1em; text-transform: uppercase; }

@media print {
  .masthead, .footer, .hero__actions, .theme-toggle, .record { display: none !important; }
  body { background: #fff; color: #000; }
}
