/* deadstarlabs.com — "Ledger"
 *
 * One stylesheet for the whole site. Dark, editorial, typography-led: products
 * present as a scannable index, philosophy as numbered rules, data as quiet
 * monospace readouts. There are no cards, no panels, no textures — structure is
 * carried by hairlines and by the grid, and colour is carried by type.
 *
 * Every colour resolves to a custom property injected by theming.py, which has
 * already proved it against WCAG AA. There is not one hex value in this file:
 * if a colour needs to change, it changes in theming.py, where the gate can see
 * it. The two exceptions are rgba() shadows and the lightbox scrim, which sit
 * under content rather than behind text.
 *
 * One ground, --bg, on every page. An app's own colour appears in exactly two
 * places: the masthead band at the top of its page, and --app-accent, which it
 * lends to eyebrows, markers, status dots, and in-page links.
 */

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* Focus is always visible and always clears non-text contrast. Never remove
 * this without replacing it — keyboard users have no other affordance. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }

/* ------------------------------------------------------------ micro-type -- */
/* The lab notation. Stored sentence-case and uppercased here, so a screen
 * reader announces "In development" rather than spelling it out. */

.kicker,
.section-label,
.eyebrow,
.spec__k,
.token {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

.kicker { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--accent); }
.section-label { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--label); }
.eyebrow { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--app-accent); }
.spec__k { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--label); }
.token { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--label); }

/* A section header: a mono label sitting on a rule, sometimes with a link or a
 * date pushed to the far end. */
.rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.rule-head__end {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

/* --------------------------------------------------------------- status --- */
/* A dot and a word, never a chip. Filled = obtainable, outlined = not yet. */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  flex: none;
}
.status--live { color: var(--app-accent); }
.status--live::before { background: var(--app-accent); }
.status--beta { color: var(--text); }
.status--beta::before { background: var(--app-accent); }
.status--dev { color: var(--label); }
.status--dev::before { border: 1px solid var(--label); }

/* ------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--app-accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--app-accent); color: var(--app-accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.badge-link { display: inline-block; }
.badge-link img { height: 44px; width: auto; }

/* An arrow link: brass, on a half-strength underline that fills in on hover. */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 0.15em;
}
.arrow:hover { border-bottom-color: var(--accent); }

/* ----------------------------------------------------------- skip link ---- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 120ms ease-in;
}
.skip-link:focus { top: 0; }

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

.site-header { border-bottom: 1px solid var(--hairline); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.4rem;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gargantua. The disc passes behind the horizon at the top and in front of it
 * at the bottom, which is the whole trick — the core has to be filled with the
 * page ground for the crossing to read. */
.mark { flex: none; overflow: visible; }
.mark__disc { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0.55; }
.mark__core { fill: var(--bg); }
.mark__ring { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.mark__front {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--label);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

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

.site-footer { border-top: 1px solid var(--hairline); margin-top: clamp(3rem, 7vw, 5rem); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.site-footer__inner a {
  color: var(--label);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.25rem;
}
.site-footer__inner a:hover { color: var(--text); }

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

.hero { position: relative; overflow: hidden; }

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem);
}
.hero--slim .hero__inner { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }

.hero__title {
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 15ch;
  text-wrap: balance;
  margin-top: 1.6rem;
}
.hero--slim .hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  max-width: 24ch;
  margin-top: 1.4rem;
}

.hero__sub {
  color: var(--lede);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 44ch;
  margin-top: 1.8rem;
}
.hero--slim .hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 52ch;
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  margin-top: 2.6rem;
  font-size: 1.02rem;
  font-weight: 600;
}
.hero__actions .arrow--quiet {
  color: var(--label);
  border-bottom-color: transparent;
}
.hero__actions .arrow--quiet:hover { color: var(--text); }

/* The living photo. It fills the hero, sits under two scrims, and dissolves
 * into the page at the bottom so there is no visible edge. The wrapper
 * pre-bleeds above and below so the sky reaches behind the header and has room
 * to drift without walking an edge into view.
 *
 * Nothing transforms the wrapper any more. The black hole in the shader is
 * anchored to the canvas, so moving the canvas would move the hole with it;
 * scroll is handed to the shader as a pan offset instead. The only transform
 * left here belongs to the photo, and it is what a reader sees whenever the
 * shader does not start. */
.hero__sky {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  bottom: -4%;
  overflow: hidden;
  pointer-events: none;
}
.hero__sky canvas,
.hero__sky img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__sky img {
  object-fit: cover;
  object-position: center 32%;
  transform-origin: 50% 35%;
  will-change: transform;
  animation: skyDrift 36s ease-in-out infinite alternate;
}
@keyframes skyDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.4%, 1.8%, 0); }
}

/* The blanket reduced-motion rule below collapses every animation to 0.01ms.
 * That is right for a one-shot, but this one is infinite alternate: at 0.01ms
 * it would not stop, it would strobe between the two keyframes. A reader who
 * asked for less motion has to be given none, so the drift is switched off
 * outright. It wins on specificity, so its position in the file is free. */
@media (prefers-reduced-motion: reduce) {
  .hero__sky img { animation: none !important; }
}

/* The shader fades up over the still once its texture reaches the GPU, so
 * there is never a blank frame between the photograph and the physics. */
.hero__gl { opacity: 0; transition: opacity 1.2s ease; }
.hero__gl.is-live { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__scrim--side {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 92%, transparent) 0%,
    color-mix(in srgb, var(--bg) 60%, transparent) 42%,
    color-mix(in srgb, var(--bg) 15%, transparent) 100%);
}
.hero__scrim--fade {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 40%, transparent) 0%,
    transparent 28%,
    transparent 65%,
    var(--bg) 100%);
}

/* ----------------------------------------------------------- the index ---- */
/* Four products as rows in a ledger, not four cards in a grid. The thumbnail
 * is top-aligned and cropped at the bottom on purpose: it reads as a specimen
 * pulled from the app, not as a framed picture of it. */

.index__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 0.9fr) auto 8.5rem;
  gap: 1rem 2rem;
  align-items: center;
  padding-block: 2.1rem;
  padding-inline: 1rem;
  margin-inline: -1rem;
  border-bottom: 1px solid var(--hairline);
}
.index__row:hover { background: var(--row-hover); }

.index__no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--label);
}

.index__name {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.1;
}
.index__name a { color: var(--text); text-decoration: none; }
.index__row:hover .index__name a { color: var(--app-accent); }

.index__tagline { color: var(--app-accent); font-size: 1.02rem; margin-top: 0.3rem; }
.index__pitch { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.index__meta { display: grid; gap: 0.45rem; justify-items: start; }

.index__thumb {
  height: 10.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--thumb-bg, var(--row-hover));
}
.index__thumb img { width: 100%; height: auto; }
.index__thumb--mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.index__thumb--mark img { width: 6rem; height: 6rem; border-radius: 16px; }

/* --------------------------------------------------- principles (home) ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.split__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
  margin-top: 1.4rem;
}

.rules__row {
  display: grid;
  grid-template-columns: 2.8rem 13rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--hairline);
}
.rules__row:last-child { border-bottom: 0; }
.rules__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.rules__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.rules__body { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

/* --------------------------------------------------------- lab ledger ----- */

.ledger__row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__name { font-weight: 600; color: var(--text); text-decoration: none; }
.ledger__name:hover { color: var(--app-accent); }
.ledger__note { color: var(--muted); font-size: 0.98rem; }

/* ------------------------------------------------------------ closer ------ */

.closer { border-top: 1px solid var(--hairline); }
.closer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.closer__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  max-width: 18ch;
}
.closer__body { color: var(--muted); max-width: 46ch; margin-top: 1rem; font-size: 1rem; }
.closer__list {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.closer__list a { color: var(--accent); text-decoration: none; margin-top: 0.8rem; }

/* A plain closing band: statement, paragraph, arrow link. */
.band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; max-width: 24ch; }
.band__body { color: var(--muted); max-width: 56ch; margin: 1rem 0 1.5rem; }

/* ------------------------------------------------------- app masthead ----- */
/* The only place an app's own ground appears. Everything below it returns to
 * the Ledger ground, so the page reads as this site showing that product,
 * rather than as four differently-skinned sites. */

.masthead { background: var(--masthead-bg); border-bottom: 1px solid var(--hairline); }

.masthead__stripes { display: flex; height: 5px; }
.masthead__stripes span { flex: 1; }

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.masthead__inner--solo { grid-template-columns: minmax(0, 1fr); }

.masthead__logo { width: 3.6rem; height: 3.6rem; border-radius: 12px; margin-bottom: 1.4rem; }

.masthead__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--masthead-text);
  margin-bottom: 0.4rem;
}
/* An h1 that holds only a wordmark carries no text of its own; strip the
 * heading box model so the image sits where the text would. */
.masthead__title--wordmark { line-height: 0; margin-bottom: 0.6rem; }
.masthead__wordmark { max-height: 3.1rem; width: auto; display: inline-block; }

.masthead__tagline {
  color: var(--masthead-accent);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 1rem;
}
.masthead__prop {
  color: var(--masthead-text);
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.masthead__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--masthead-accent);
}

.masthead__shot {
  max-height: 30rem;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--masthead-accent) 35%, transparent);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  margin-inline: auto;
}

/* Buttons inside a masthead sit on --masthead-bg, so they use the masthead
 * pair. Both directions are covered by the audited "masthead accent on
 * masthead" ratio, which theming.py tunes to at least 4.5:1. */
.masthead .btn--primary { background: var(--masthead-accent); color: var(--masthead-bg); }
.masthead .btn--ghost { border-color: var(--masthead-accent); color: var(--masthead-accent); }

/* The development note that stands in for a screenshot an app does not have. */
.devnote {
  justify-self: center;
  width: 100%;
  max-width: 24rem;
  border: 1px solid color-mix(in srgb, var(--masthead-accent) 40%, transparent);
  border-radius: 14px;
  padding: 1.8rem;
}
.devnote .eyebrow { color: var(--masthead-accent); margin-bottom: 0.5rem; }
.devnote p { color: var(--masthead-text); }
.devnote__gap { margin-bottom: 1.6rem; }
.devnote__strong { font-size: 1.12rem; font-weight: 600; }

/* --------------------------------------------------------------- specbar -- */

.specbar { border-bottom: 1px solid var(--hairline); }
.specbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 0.9rem;
}
.spec { display: flex; align-items: center; gap: 0.6rem; }
.spec__v {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.spec__v a { color: var(--app-accent); text-decoration: none; display: inline-block; padding-block: 0.25rem; }

/* ------------------------------------------------------ app page prose ---- */

.prose-band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.prose-band__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  max-width: 24ch;
  text-wrap: balance;
  margin-top: 1.4rem;
}
.prose-band__lede {
  color: var(--lede);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-top: 1.2rem;
}
.prose-band__body { color: var(--muted); font-size: 1rem; max-width: 60ch; margin-top: 1.2rem; }

/* An aside with a 2px accent rule down its left edge. */
.aside {
  color: var(--muted);
  max-width: 62ch;
  border-left: 2px solid var(--app-accent);
  padding-left: 1.1rem;
  margin-top: 2rem;
}
.aside .eyebrow { display: block; color: var(--label); margin-bottom: 0.35rem; }

/* -------------------------------------------------- narrative features ---- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--hairline);
}
.feature__figure { display: flex; justify-content: center; }
.feature:nth-child(even) .feature__figure { order: 2; }
.feature__shot {
  width: 100%;
  max-width: 16rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  display: block;
}
.feature__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  max-width: 26ch;
  margin: 0.8rem 0 0.6rem;
}
.feature__body { color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 56ch; }

/* ------------------------------------------------- numbered detail rows --- */
/* "Designed differently" on an app page, "How decisions are made" on Studio.
 * Same shape, different label column width. */

.numbered__row {
  display: grid;
  grid-template-columns: 2.8rem 16rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--hairline);
}
.numbered__row:last-child { border-bottom: 0; }
.numbered--wide .numbered__row { grid-template-columns: 2.8rem 18rem minmax(0, 1fr); padding-block: 1.15rem; }
.numbered__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--app-accent); }
.numbered--brass .numbered__n { color: var(--accent); }
.numbered__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.numbered__body { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.numbered--wide .numbered__body { font-size: 0.95rem; line-height: 1.55; }

/* -------------------------------------------------------- under the hood -- */

.hood { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hood > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  padding-block: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.hood > summary::-webkit-details-marker { display: none; }
.hood__hint { color: var(--muted); font-size: 0.92rem; }
.hood > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--label);
  font-size: 1.1rem;
  line-height: 1;
}
.hood[open] > summary::after { content: "\2212"; }
.hood__list {
  padding: 0 0 1.3rem;
  display: grid;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.hood__list li { padding-left: 1.1rem; position: relative; }
.hood__list li::before { content: "\00b7"; position: absolute; left: 0; color: var(--app-accent); }

/* ---------------------------------------------------------- availability -- */

.avail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: 1.8rem;
}
.avail__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}
.avail__row:last-child { border-bottom: 0; }
.avail__row dd { color: var(--text); font-size: 0.95rem; text-align: right; max-width: 26ch; }
.avail__note { color: var(--muted); max-width: 46ch; }
.avail__feedback { margin-top: 1.4rem; color: var(--muted); }
.avail__feedback a { color: var(--app-accent); }

/* Price, broken out per tier.
 *
 * A one-line price sits right-aligned opposite its label. Three tiers cannot:
 * at 26ch they would wrap into a ragged column against the right edge. The
 * tiered row therefore stacks, reclaims the full width, and reads left to
 * right — the same rhythm as the pipeline rows above it, hairline-separated,
 * no cards. */
.avail__row--tiers { display: block; }
.avail__row--tiers dd {
  text-align: left;
  max-width: none;
  margin-top: 0.9rem;
}

.tiers { border-top: 1px solid var(--hairline); }
.tier {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.tier:last-child { border-bottom: 0; }
.tier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}
.tier__name { font-weight: 600; color: var(--text); }
.tier__price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--app-accent);
  white-space: nowrap;
}
.tier__blurb {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.35rem;
  max-width: 58ch;
}
.tier__note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 58ch;
}

/* ------------------------------------------------- the plan pipeline ------ */

.pipeline { border-top: 1px solid var(--rule); }
.pipeline__row {
  display: grid;
  grid-template-columns: 2.6rem 10rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.pipeline__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--app-accent); }
.pipeline__name { font-weight: 600; }
.pipeline__detail { color: var(--muted); font-size: 0.97rem; }

.dev-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 2.5rem;
}
.nots { display: grid; gap: 0.6rem; color: var(--muted); }
.nots li { position: relative; padding-left: 1.4rem; }
.nots li::before { content: "\00d7"; position: absolute; left: 0; color: var(--app-accent); font-weight: 700; }
.milestone {
  font-size: 1.12rem;
  border-left: 3px solid var(--app-accent);
  padding-left: 0.9rem;
  margin-bottom: 1.6rem;
}

/* ---------------------------------------------------- principles page ----- */

.rule-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.rule-row__n { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent); line-height: 1; }
.rule-row__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
.rule-row__body { color: var(--muted); max-width: 58ch; font-size: 1.05rem; margin-top: 0.7rem; }
.rule-row .eyebrow { color: var(--label); margin: 1.4rem 0 0.7rem; }

.evidence { display: grid; gap: 0.6rem; max-width: 64ch; }
.evidence li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--hairline);
}
.evidence a { font-weight: 600; text-decoration: none; color: var(--text); }
.evidence a:hover { color: var(--evidence-accent, var(--accent)); }
.evidence span { color: var(--muted); font-size: 0.93rem; }

/* -------------------------------------------------------- support rows ---- */

.support__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--hairline);
}
.support__row:last-child { border-bottom: 0; }
.support__name {
  display: inline-flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.support__name a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--text);
  text-decoration: none;
}
.support__name a:hover { color: var(--app-accent); }
.support__mail {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--app-accent);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.25rem;
}

/* --------------------------------------------------- site privacy rows ---- */

.pair {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.pair--tall { padding-block: 1.4rem; align-items: start; }
.pair__k { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.pair__v { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.pair--tall .pair__v { font-size: 1rem; }

.link-list { display: grid; gap: 0.2rem; margin-top: 1.2rem; }
.link-list a { display: inline-block; padding-block: 0.3rem; justify-self: start; }

/* ---------------------------------------------------------------- policy -- */

.policy { max-width: 70ch; padding-block: clamp(2rem, 5vw, 3.5rem); }
.policy h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--hairline);
}
.policy h3 { font-size: 1.15rem; margin-top: 1.75rem; color: var(--app-accent); }
.policy p, .policy li { color: var(--muted); }
.policy p { margin-bottom: 1em; }
.policy ul, .policy ol { padding-left: 1.35rem; list-style: disc; }
.policy li { margin-bottom: 0.5em; }
.policy strong { color: var(--text); }
.policy hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

/* -------------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.88);
  border: 0;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 85vh; width: auto; border-radius: 8px; }
.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  max-width: 46rem;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__figure { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------- responsive ---- */
/* The designs are desktop-first. Everything below collapses the multi-column
 * grids in the same order: drop the fixed label column, then go to one column.
 * The bar the repo holds itself to is document.scrollWidth === clientWidth at
 * 320px on every route, which tools/verify_site.py cannot see and a person has
 * to check. */

@media (max-width: 68rem) {
  .index__row { grid-template-columns: 3.2rem minmax(0, 1fr) 7.5rem; }
  .index__pitch, .index__meta { grid-column: 2 / 4; }
  .numbered--wide .numbered__row { grid-template-columns: 2.8rem 14rem minmax(0, 1fr); }
}

@media (max-width: 56rem) {
  .split,
  .closer__inner,
  .avail,
  .dev-split,
  .masthead__inner,
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature__figure { order: 0; }
  .masthead__shot { max-height: 24rem; }
}

@media (max-width: 46rem) {
  .index__row { grid-template-columns: 3.2rem minmax(0, 1fr); padding-block: 1.6rem; }
  .index__pitch, .index__meta { grid-column: 2; }
  .index__thumb { grid-column: 1 / -1; height: auto; max-width: 11rem; }
  .index__thumb--mark { height: 11rem; }

  .rules__row,
  .numbered__row,
  .numbered--wide .numbered__row,
  .pipeline__row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .rules__body,
  .numbered__body,
  .pipeline__detail { grid-column: 2; }

  .ledger__row,
  .pair,
  .pair--tall { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .rule-row { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .evidence li { grid-template-columns: minmax(0, 1fr); }
  .avail__row { flex-wrap: wrap; }
  .avail__row dd { text-align: left; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-nav, .lightbox, .skip-link, .hero__sky, .hero__scrim { display: none; }
  body { background: #fff; color: #000; }
  .index__row, .feature { break-inside: avoid; }
}

/* The policy page's masthead carries a text heading rather than a wordmark. */
.masthead__title--slim { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.masthead__tagline a { color: var(--masthead-accent); }

/* Small titles are set in the body sans, not the display serif: the serif is
 * for statements, and a 1.02rem serif heading beside 0.93rem sans body reads as
 * a typo rather than as hierarchy. Applies wherever a heading element is used
 * for a label-weight title. */
.rules__title,
.numbered__title,
.pipeline__name,
.pair__k,
.hood__hint { font-family: var(--font-text); }

.split__statement + p { margin-top: 1.6rem; }

/* ------------------------------------------------------- touch targets ---- */
/* WCAG 2.5.8 wants 24px. Three standalone controls sat just under it: the
 * brand lockup, the "all products" link on a section rule, and the closing
 * link in the privacy list. Padding does the work so nothing moves -- these are
 * all baseline-aligned or margin-spaced, so the box grows without the text
 * shifting. Email addresses sitting inside a sentence are left alone; 2.5.8
 * exempts a target that is part of a block of text, and padding them would
 * break the line they live in. */
.site-brand { padding-block: 0.2rem; }
.rule-head__end { display: inline-block; padding-block: 0.25rem; }
.closer__list a { display: inline-block; justify-self: start; padding-block: 0.25rem; }
