/* Selenography — Joshua Borsman, 2026 */

:root {
  --bg-0: #06080d;
  --bg-1: #0c1018;
  --bg-2: #131722;
  --rule:    #1c2230;
  --rule-2:  #2b3344;
  --rule-3:  #3c4659;
  --type:    #efe7d2;
  --type-2:  #d5cbb4;
  --type-dim:#8b8a82;
  --type-faint: #555456;
  --type-mute:  #32323a;
  --accent:    #d4c89e;   /* warm ivory — moonlight */
  --accent-2:  #e6d9af;
  --accent-3:  #f5ecca;
  --rim:       #6a6f8a;   /* cool blue-grey rim */
  --warn:      #c7a86b;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --pad:    clamp(1.1rem, 3.2vw, 2.6rem);
  --pad-lg: clamp(2rem, 6vw, 5.5rem);
  --measure: 36rem;
  --t-wide:  0.22em;
  --t-loose: 0.34em;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Composite reading-color: shifts subtly with the average degradation of
   * craters currently inside the gantry window — cooler in the highlands
   * (older, darker), warmer over the maria (younger, basalt). */
  --reading-rgb: 212 200 158;
}
body { transition: background 4s var(--ease); }

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--type);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
body.reader-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--type);
  text-decoration: none;
  position: relative;
  transition: color 280ms var(--ease), opacity 280ms var(--ease);
}
a:not(.brand):not(.btn):not(.cta):not(.bar a)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 280ms var(--ease);
}
a:not(.brand):not(.btn):not(.cta):not(.bar a):hover::after { opacity: 0.7; }
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

::selection { background: var(--accent); color: var(--bg-0); }

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

/* --------------------------------------------------------------------
   Chrome — top + bottom thin bars
   -------------------------------------------------------------------- */

.chrome {
  position: fixed; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  z-index: 10;
}
.chrome > .bar { pointer-events: auto; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-dim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, 0.32);
}
.bar--foot {
  background: rgba(6, 8, 13, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.bar a {
  color: var(--type-2);
  position: relative;
  padding: 0.3rem 0;
}
.bar a:hover { color: var(--type); }
.bar a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  opacity: 0.28; transition: opacity 280ms var(--ease);
}
.bar a:hover::after { opacity: 0.7; }
.bar__arrow {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--accent);
  transition: transform 280ms var(--ease);
}
.bar a:hover .bar__arrow { transform: translateX(3px); }

.bar__toggle {
  appearance: none; background: transparent; border: none;
  color: var(--type-2);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0.3rem 0;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 280ms var(--ease);
}
.bar__toggle:hover, .bar__toggle.is-active { color: var(--type); }
.bar__toggle::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  opacity: 0.28; transition: opacity 280ms var(--ease);
}
.bar__toggle:hover::after, .bar__toggle.is-active::after { opacity: 0.7; }
.bar__toggle-label { color: var(--type-faint); }
.bar__toggle-glyph {
  color: var(--accent);
  letter-spacing: 0;
  font-size: 0.86em;
  min-width: 1.6em;
  display: inline-block;
  text-align: center;
}
.bar__toggle--play { display: none; }
body.is-listening .bar__toggle--play { display: inline-flex; }

.bar__live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}
body.is-listening .bar__live { opacity: 1; }

.bar__group { display: flex; align-items: center; gap: 1.2rem; }
.bar__group--right { justify-content: flex-end; }
.bar__sep {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--rule-2);
  opacity: 0.6;
}
.bar__kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-faint);
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--type);
  text-transform: uppercase;
}
.brand::after { display: none !important; }

.bar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(212, 200, 158, 0.5);
  animation: pulse 3.6s ease-out infinite;
}
.bar .dot.is-quiet { animation-play-state: paused; opacity: 0.55; }
/* Engine state — kept oblique. Modular routing shifts the indicator to
 * a warmer tone; copy stays generic. */
.bar .dot.is-cv { background: var(--warn); }
.bar .dot.is-cv ~ .label-listening::before { content: 'Analog ' }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 200, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0); }
}

.dotsep { color: var(--type-mute); padding: 0 0.35em; }

/* --------------------------------------------------------------------
   Stage (canvas behind everything)
   -------------------------------------------------------------------- */

.stage {
  position: fixed; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(40, 44, 70, 0.22), transparent 65%),
    radial-gradient(circle at 70% 90%, rgba(60, 50, 40, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, #04050a 70%, var(--bg-0) 100%);
  overflow: hidden;
}
.stage canvas { display: block; width: 100%; height: 100%; }

.stage__veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(6,8,13,0.32) 0%, rgba(6,8,13,0) 60%),
    linear-gradient(180deg, rgba(6,8,13,0.5) 0%, rgba(6,8,13,0) 18%, rgba(6,8,13,0) 78%, rgba(6,8,13,0.6) 100%);
}

/* --------------------------------------------------------------------
   Gate (the opening composition)
   -------------------------------------------------------------------- */

.gate {
  position: fixed; inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 12vh, 8rem) var(--pad);
  transition: opacity 1100ms var(--ease), visibility 0s linear 1100ms;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__inner {
  text-align: center;
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-anim] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out);
}
body.is-ready [data-anim] { opacity: 1; transform: translateY(0); }
body.is-ready [data-anim="1"] { transition-delay: 100ms; }
body.is-ready [data-anim="2"] { transition-delay: 220ms; }
body.is-ready [data-anim="3"] { transition-delay: 360ms; }
body.is-ready [data-anim="4"] { transition-delay: 700ms; }
body.is-ready [data-anim="5"] { transition-delay: 820ms; }
body.is-ready [data-anim="6"] { transition-delay: 940ms; }
body.is-ready [data-anim="7"] { transition-delay: 1100ms; }
body.is-ready [data-anim="8"] { transition-delay: 1240ms; }

.gate__kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-faint);
  margin: 0 0 1.4em;
}
.gate__kicker .dotsep { color: var(--type-mute); padding: 0 0.45em; }

.gate__rule {
  width: min(360px, 78%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-2) 25%, var(--rule-2) 75%, transparent);
  margin: 0 0 1.1em;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.0rem, 8.5vw, 6.4rem);
  margin: 0.1em 0 0.6em;
  line-height: 1;
  text-align: center;
}
.title__text {
  display: inline-block;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
}
@media (min-width: 560px) { .title__text { letter-spacing: 0.24em; padding-left: 0.24em; } }
@media (min-width: 720px) { .title__text { letter-spacing: 0.34em; padding-left: 0.34em; } }

.subtitle {
  font-family: var(--mono);
  font-size: clamp(0.66rem, 2vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--type-2);
  margin: 0 0 0.55rem;
  line-height: 1.6;
  text-wrap: balance;
}
@media (min-width: 720px) { .subtitle { letter-spacing: var(--t-wide); } }

.reading {
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1.9vw, 0.74rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--type-dim);
  margin: 0 0 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.5;
}
.reading__pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212, 200, 158, 0.55);
  animation: pulse 3.6s ease-out infinite;
}
.reading__label { color: var(--type-faint); }
#reading-region {
  color: var(--accent-3);
  transition: opacity 600ms var(--ease);
}
#reading-region.is-changing { opacity: 0.35; }
@media (min-width: 720px) { .reading { letter-spacing: 0.22em; } }

.gate__action { margin: 0.4rem 0 1.8rem; }

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--type);
  background: transparent;
  border: 1px solid var(--rule-3);
  border-radius: 999px;
  padding: 1.1rem 2.1rem;
  cursor: pointer;
  transition: border-color 280ms var(--ease), color 280ms var(--ease), background 280ms var(--ease), padding 280ms var(--ease);
  appearance: none;
}
.cta__arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 280ms var(--ease);
  color: var(--accent);
  font-family: var(--mono);
}
.cta:hover, .cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent-3);
  background: rgba(212, 200, 158, 0.06);
  padding-right: 2.4rem;
}
.cta:hover .cta__arrow, .cta:focus-visible .cta__arrow { transform: translateX(4px); }
.cta:focus-visible { outline: none; }
.cta.is-busy { pointer-events: none; color: var(--type-dim); border-color: var(--rule); }
.cta.is-busy .cta__arrow { opacity: 0; }
.cta.is-busy .cta__label::after { content: '…'; margin-left: 0.4em; color: var(--type-faint); }

.gate__hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--type-faint);
  line-height: 1.9;
  text-wrap: balance;
  max-width: 28rem;
}
@media (min-width: 720px) { .gate__hint { letter-spacing: 0.2em; } }

/* --------------------------------------------------------------------
   Listening dashboard
   -------------------------------------------------------------------- */

.dash {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem var(--pad) calc(2.6rem + var(--pad));
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--ease) 0.4s, transform 1.6s var(--ease) 0.4s;
  background:
    linear-gradient(0deg,
      rgba(6, 8, 13, 0.40) 0%,
      rgba(6, 8, 13, 0.12) 55%,
      rgba(6, 8, 13, 0) 100%);
}
body.is-listening .dash { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dash__status {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--type-faint);
  background: rgba(12, 16, 24, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}
.dash__status-left, .dash__status-right { display: inline-flex; align-items: center; gap: 0.7rem; }
.dash__status-label { color: var(--type-faint); font-size: 0.66rem; }
.dash__status-value {
  color: var(--type-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.dash__live-dot, .dash__pluck-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--reading-rgb));
  box-shadow: 0 0 0 0 rgb(var(--reading-rgb) / 0%);
  transition: background 6s var(--ease);
}
.dash__live-dot.is-fetching { animation: pulse-fast 1.4s ease-out infinite; }
.dash__pluck-dot {
  background: var(--accent);
  opacity: 0.25;
  transition: opacity 200ms var(--ease), box-shadow 200ms var(--ease);
}
.dash__pluck-dot.is-firing {
  opacity: 1;
  box-shadow: 0 0 0 8px rgba(212, 200, 158, 0);
  animation: pluck-flash 700ms var(--ease-out);
}

@keyframes pulse-fast {
  0%   { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(212, 200, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0); }
}
@keyframes pluck-flash {
  0%   { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0.6); transform: scale(1.4); }
  60%  { box-shadow: 0 0 0 10px rgba(212, 200, 158, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(212, 200, 158, 0); transform: scale(1); }
}

.dash__music {
  pointer-events: auto;
  margin: 0;
  padding: 0.75rem 1rem 0.85rem;
  background: rgba(12, 16, 24, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.55rem 1.1rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.dash__music > div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dash__music dt {
  color: var(--type-faint);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.dash__music dd {
  margin: 0;
  color: var(--type);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dash { padding-bottom: calc(3.6rem + var(--pad)); }
  .dash__music { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.8rem; }
  .dash__music dd { font-size: 0.78rem; }
  .dash__status { font-size: 0.62rem; flex-wrap: wrap; padding: 0.55rem 0.8rem; }
  .dash__status-value { font-size: 0.72rem; letter-spacing: 0.06em; }
}
@media (max-width: 420px) {
  .dash__music { grid-template-columns: 1fr 1fr; gap: 0.4rem 0.6rem; }
  .dash__music dt { font-size: 0.58rem; letter-spacing: 0.18em; }
  .dash__music dd { font-size: 0.72rem; }
}

/* --------------------------------------------------------------------
   Engine flag (D-key swap)
   -------------------------------------------------------------------- */

.engine-flag {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 12;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--type);
  background: rgba(12, 16, 24, 0.94);
  border: 1px solid var(--rule-3);
  padding: 1.2rem 2rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.engine-flag.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.engine-flag small { display: block; margin-top: 0.5rem; color: var(--type-dim); font-size: 0.62rem; letter-spacing: 0.18em; }

/* --------------------------------------------------------------------
   Reader (in-page About overlay)
   -------------------------------------------------------------------- */

.reader {
  position: fixed; inset: 0;
  z-index: 14;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.4rem, 6vh, 4.5rem) var(--pad) var(--pad);
  overflow: hidden;
}
.reader[hidden] { display: none; }

.reader__scrim {
  position: absolute; inset: 0;
  background: rgba(6, 8, 13, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 480ms var(--ease);
  cursor: pointer;
}
.reader.is-open .reader__scrim { opacity: 1; }

.reader__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  max-height: 100%;
  background: rgba(12, 16, 24, 0.62);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  border: 1px solid rgba(212, 200, 158, 0.20);
  display: flex;
  flex-direction: column;
  transform: translateY(36px);
  opacity: 0;
  transition: transform 560ms var(--ease-out), opacity 480ms var(--ease);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.reader.is-open .reader__panel { transform: translateY(0); opacity: 1; }

.reader__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}
.reader__kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-dim);
}
.reader__close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--type-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  transition: color 280ms var(--ease);
}
.reader__close:hover, .reader__close:focus-visible { color: var(--type); outline: none; }
.reader__close-x { font-size: 1.2rem; line-height: 1; color: var(--type-faint); }

.reader__body {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.4rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2.4rem) clamp(2.6rem, 6vw, 4rem);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-3) transparent;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.reader__body * { max-width: 100%; }
.reader__body::-webkit-scrollbar { width: 8px; }
.reader__body::-webkit-scrollbar-thumb { background: var(--rule-3); }

.reader__loading {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-faint);
  text-align: center;
  padding: 3rem 0;
}

.reader__body .page__head { margin: 0 0 2rem; }
.reader__body .page__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-dim);
  margin-bottom: 1rem;
}
.reader__body h1.title {
  text-align: left;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.reader__body h1.title .title__text { padding-left: 0; }
.reader__body h1.title--page .title__text { letter-spacing: 0.24em; padding-left: 0; }

/* --------------------------------------------------------------------
   About page (standalone /about.html)
   -------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 70%, var(--bg-0) 100%);
}

.page__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.page__hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg-0) 100%);
}

.page__body {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--pad-lg) var(--pad) calc(var(--pad-lg) * 1.4);
}
.page__head { margin-bottom: var(--pad-lg); }
.page__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-dim);
  margin-bottom: 1.4rem;
}

.title--page {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-align: left;
  margin: 0;
}
.title--page .title__text { letter-spacing: 0.24em; padding-left: 0; }

.prose {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, var(--measure));
  gap: clamp(1.4rem, 5vw, 4rem);
  margin: 2.2rem 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
}
.prose__heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-dim);
  margin: 0;
  font-weight: 400;
}
.prose__body p {
  margin: 0 0 1em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--type);
}
.prose__body p:last-child { margin-bottom: 0; }
.prose__body p.lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-weight: 300;
  font-style: italic;
  color: var(--type);
  margin-bottom: 1.4rem;
  letter-spacing: 0.005em;
}
.prose__body ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.prose__body li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--type);
}
.prose__body li:first-child { border-top: 1px solid var(--rule); }
.prose__body li span:last-child { color: var(--type-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .prose { grid-template-columns: 1fr; gap: 0.6rem; }
}

.colophon {
  margin-top: var(--pad-lg);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--type-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.colophon a { color: var(--type-dim); }

/* --------------------------------------------------------------------
   Idle fade — after a quiet stretch with no input we let the UI
   dissolve so the visitor experiences sound + canvas.
   -------------------------------------------------------------------- */
.chrome, .dash { transition: opacity 1.2s var(--ease); }
.dash__status, .dash__music {
  transition: background 1.4s var(--ease), border-color 1.4s var(--ease),
              backdrop-filter 1.4s var(--ease);
}
body.is-idle .chrome,
body.is-idle .dash { opacity: 0.06; transition: opacity 5s var(--ease); }
body.is-idle .dash__status,
body.is-idle .dash__music {
  background: transparent;
  border-color: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  box-shadow: none;
}

/* --------------------------------------------------------------------
   404
   -------------------------------------------------------------------- */
.notfound {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--pad-lg) var(--pad);
  text-align: center;
}
.notfound__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: var(--t-wide);
  text-transform: uppercase;
  color: var(--type-faint);
  margin: 0 0 1.2rem;
}
.notfound__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
  color: var(--type);
}
.notfound__lead {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--type-dim);
  margin: 0 0 2.2rem;
}
.notfound__return a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
