/* Blackhole - the palette is measured, not chosen.
 *
 * Every hex below carries the pixel it was read from in the account's own banner
 * (Screenshot 2026-12-03 at 21.40.33.png, banner band y=47..206, 493x160). The ground is
 * #090909 and it is 60.97% of the banner; the disc is a single hue family peaking at 15 deg.
 * The two text tints at the bottom are the only values NOT sampled, and they say so.
 */
:root {
  --void:      #000000; /* (0,47)     3.08% of the banner - the frame edges and the sphere */
  --ground:    #090909; /* (5,47)    60.97% - the field everything sits on */
  --ground-2:  #0A0A0A; /* (24,47)    6.45% - the banner's own second-darkest value */
  --sphere:    #110C0B; /* (354,122)         - inside the shadow, warm, almost black */
  --ember-0:   #381A11; /* (229,123)         - modal colour of the 40-80 luminance band */
  --ember-1:   #612E1F; /* (333,97)          - modal colour of the 80-120 band */
  --ember-2:   #8C4531; /* (456,124)         - modal colour of the 120-160 band */
  --ember-3:   #B46045; /* (331,144)         - modal colour of the 160-200 band */
  --ember-4:   #DD8160; /* (447,120)         - modal colour of the 200-240 band */
  --ember-5:   #F1A17B; /* (277,125)         - modal colour of the 240-255 band */
  --ember-max: #F4BDA0; /* (325,119)         - the single brightest pixel in the banner */

  /* Derived, not sampled: the ramp continued one step past its brightest pixel, hue held at
   * 21 deg and saturation dropped, because the banner contains no light neutral to read. */
  --ink:       #F2E9E3;
  --ink-dim:   #BDADA5;
  /* The "this read failed / this call reverts" tint, re-derived when the application's panels
   * arrived: against the new panel (#241915) the old #C46D50 measured 4.61:1, which passes AA by
   * 0.11 and is not a margin. This is the ramp's own brightness — hsl lightness 62%, the same as
   * --ember-4 — rotated to 8 deg, about eight degrees redder than the disc's 15.8 deg family. So
   * a failure differs from the accent by HUE rather than by being dimmer, and it measures
   * 5.36:1 on the panel and 6.22:1 on the ground. Both are pixel measurements, not estimates:
   * `python3 tools/contrast.py 2` re-takes them off the rendered page. */
  --bad:       #DA7262;

  /* The desk's own surfaces. Solid on purpose: a dense table of felts has nowhere to hide a
   * contrast failure, so no pane is ever translucent over the plate. */
  --pane:      #060606;
  --pane-2:    #0C0A0A;
  --rule:      color-mix(in srgb, var(--ember-2) 34%, transparent);
  --rule-soft: color-mix(in srgb, var(--ember-1) 26%, transparent);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* ---- the plates ----------------------------------------------------------------------
 * Generated, screened over the ground so only their light survives, masked radially so the
 * edge of the plate never becomes the edge of a rectangle, and - this part is a measurement
 * talking, not a preference - anchored to the TOP OF THE DOCUMENT rather than fixed. Fixed,
 * the hot core stays in one screen position and every row of a dense table scrolls through it;
 * the contrast pass on the previous build caught a 14 px run at 3.60:1 that way. Here the disc
 * lights the meter and the opening pane and then scrolls away, and every pane below it is
 * opaque. */
.plate {
  pointer-events: none;
  z-index: 0;
  position: absolute;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}
/* The disc lights ONE band - the one carrying the honesty statement - and it is capped at 0.42
 * opacity under a screen blend for a measured reason: screened at that strength the banner's
 * brightest pixel, #F4BDA0, lands around #5F4A40 over the ground, where 14.5 px --ink still
 * measures about 6.9:1. Any stronger and a bright part of the arc under a line of text drops it
 * below AA, which is exactly what the previous build's contrast pass caught at 3.60:1. */
.plate-disc {
  inset: -140px 0 -70px 0;
  height: auto;
  background-image: url('/img/plate-disc.png');
  background-position: 68% 42%;
  background-size: 135% auto;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(84% 120% at 76% 48%, #000 0%, rgba(0,0,0,0.58) 42%, transparent 78%);
  mask-image: radial-gradient(84% 120% at 76% 48%, #000 0%, rgba(0,0,0,0.58) 42%, transparent 78%);
}
.plate-arcs {
  bottom: 0; left: 0; right: 0; height: 520px;
  background-image: url('/img/plate-arcs.png');
  background-position: 50% 40%;
  background-size: cover;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(130% 80% at 50% 70%, #000 0%, rgba(0,0,0,0.42) 55%, transparent 88%);
  mask-image: radial-gradient(130% 80% at 50% 70%, #000 0%, rgba(0,0,0,0.42) 55%, transparent 88%);
}
@media (max-width: 760px) {
  .plate-disc { background-size: 320% auto; background-position: 76% 36%; opacity: 0.3; }
  .plate-arcs { opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

a { color: var(--ember-5); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--ember-max); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ember-4);
  outline-offset: 2px;
}
code, .mono { font-family: var(--mono); }
/* The visually-hidden pattern rather than `left: -9999px`: a link parked 9 999 px to the left
 * is still a box 9 999 px to the left, and the overflow measurement counts boxes. */
.skip {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: var(--gutter); top: 10px; z-index: 99;
  width: auto; height: auto; margin: 0;
  clip: auto; clip-path: none;
  background: var(--ground-2); color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--rule);
}

/* ---- og --------------------------------------------------------------------------- */
.og {
  width: 1200px; height: 630px;
  position: relative;
  background: var(--ground);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
}
.og .og-plate {
  position: absolute; inset: 0;
  background: url('/img/plate-disc.png') 50% 22% / 112% auto no-repeat;
  mix-blend-mode: screen;
  opacity: 0.8;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 28%, #000 0%, rgba(0,0,0,.6) 50%, transparent 85%);
  mask-image: radial-gradient(90% 70% at 50% 28%, #000 0%, rgba(0,0,0,.6) 50%, transparent 85%);
}
.og h1 { position: relative; margin: 0 0 14px; font-size: 62px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.og p { position: relative; margin: 0; color: var(--ink-dim); font-size: 23px; max-width: 26ch; }
.og .tag { position: relative; max-width: none; font-family: var(--mono); font-size: 16px; color: var(--ember-4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; white-space: nowrap; }
