/* Ralon documentation — a specification sheet, not a landing page.
   Machine voice in mono, human voice in serif. Amber is locked, jade is
   writable, and nothing is loaded from another origin. */

:root {
  --void: #0a0b0d;
  --panel: #101114;
  --panel-2: #16181c;
  --line: #24262c;
  --line-soft: #1a1c21;
  --ink: #eae8e3;
  --prose: #c6c4be;
  --muted: #86888f;
  --faint: #5d6068;

  --amber: #ffb454;
  --amber-soft: rgba(255, 180, 84, 0.12);
  --jade: #63d3a0;
  --jade-soft: rgba(99, 211, 160, 0.1);
  --rust: #e8604c;

  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono",
    "Fira Code", Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Source Serif 4", serif;

  --shell: min(1180px, 100% - 3rem);
  --rail: 15.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--prose);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* A faint machined grid, and a warm glow behind the masthead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  top: -22rem;
  left: 50%;
  width: 60rem;
  height: 40rem;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 180, 84, 0.07),
    transparent 65%
  );
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(14px);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.98rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wordmark b {
  font-weight: 600;
}

.wordmark__lock {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--amber);
  overflow: visible;
}

/* The shackle lifts when you reach for it, and drops back when you leave. */
.wordmark__lock .shackle {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1.3);
}

.wordmark:hover .wordmark__lock .shackle {
  transform: translateY(-7px);
}

.wordmark span {
  color: var(--amber);
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 180, 84, 0.35);
  background: var(--amber-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

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

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
}

.with-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.rail {
  position: sticky;
  top: 6rem;
  padding-top: 4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.rail__title {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.rail a {
  display: flex;
  gap: 0.7rem;
  padding: 0.42rem 0.6rem 0.42rem 0.55rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}

.rail a:hover {
  color: var(--ink);
  background: var(--panel);
  border-left-color: var(--line);
}

.rail a em {
  color: var(--faint);
  font-style: normal;
}

@media (max-width: 950px) {
  .with-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rail {
    display: none;
  }
}

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

.hero {
  padding: 4rem 0 0;
}

/* The lock comes down over everything, and the words are what it was holding.
   The copy is centred inside it, the lock itself is barely there — a ghost at
   the scale of the whole hero rather than an icon sitting above it. */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 4.5rem 0 3rem;
  isolation: isolate;
  /* The ghost is deliberately wider than its column; without this it widens
     the page and every panel below gets clipped. */
  overflow-x: clip;
}

.ghostlock {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  /* Big enough to hold the headline, small enough to still read as a lock.
     Past about 46rem the shackle leaves the frame and it becomes a rectangle. */
  width: min(44rem, 100%);
  z-index: 0;
  pointer-events: none;
  color: var(--amber);
  /* Once the words are out, the lock stops being an object and becomes
     atmosphere: it softens, swells slightly, and gets out of the way. */
  animation: recede 1.6s cubic-bezier(0.3, 0, 0.2, 1) 2s both;
}

@keyframes recede {
  from {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
  to {
    filter: blur(3.5px);
    opacity: 0.4;
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghostlock {
    filter: blur(3.5px);
    opacity: 0.4;
  }
}

/* non-scaling-stroke keeps it a true hairline at any size. Without it the
   stroke scales with the element and the ghost turns into a frame. */
.ghostlock .body,
.ghostlock .shackle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.15;
}

.ghostlock .plate {
  fill: rgba(255, 180, 84, 0.012);
  stroke: none;
}

/* It descends, seats itself, and the whole plate flashes once as it takes. */
.ghostlock .shackle {
  animation: ghost-shackle 0.85s cubic-bezier(0.45, 0, 0.2, 1.25) 0.3s both;
}

.ghostlock .body,
.ghostlock .plate {
  animation: fade-in 0.7s ease 0.2s both;
}

.ghostlock .pulse {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-origin: 100px 101px;
  animation: pulse-out 1.1s ease-out 1.1s;
}

@keyframes ghost-shackle {
  from {
    transform: translateY(-26px);
    opacity: 0;
  }
  55% {
    opacity: 0.16;
  }
  to {
    transform: none;
    opacity: 0.16;
  }
}

@keyframes pulse-out {
  0% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.13);
  }
}

/* The bolt lands: one wash of amber across the hero, then gone. */
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 55% at 50% 50%,
    rgba(255, 180, 84, 0.2),
    transparent 70%
  );
  opacity: 0;
  animation: flash 0.9s ease-out 1.08s;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Only the headline sits inside the lock. The lede and the buttons live below
   it, so the lock stays whole and the hero stays one screen tall. */
.hero__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 34rem;
}

.hero__below {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.5rem;
  animation: fade-in 0.6s ease 0.15s both;
}

.hero h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}

/* Each word sits under an amber bar that snaps away once the shackle lands.
   Redaction, in reverse. Delays are nth-child rather than a custom property:
   one unresolved var() invalidates the whole shorthand and the headline stays
   hidden — which is exactly what happened the first time. */
.redacted__word {
  position: relative;
  display: inline-block;
  margin-right: 0.3em;
  color: transparent;
  animation: ink 0.01s linear 1.15s forwards;
}

.redacted__word::after {
  content: "";
  position: absolute;
  inset: 0.1em -0.14em 0.12em;
  background: var(--amber);
  transform-origin: right center;
  animation: unredact 0.44s cubic-bezier(0.62, 0, 0.15, 1) 1.15s forwards;
}

.redacted__word:nth-child(1),
.redacted__word:nth-child(1)::after {
  animation-delay: 1.15s;
}
.redacted__word:nth-child(2),
.redacted__word:nth-child(2)::after {
  animation-delay: 1.24s;
}
.redacted__word:nth-child(3),
.redacted__word:nth-child(3)::after {
  animation-delay: 1.33s;
}
.redacted__word:nth-child(4),
.redacted__word:nth-child(4)::after {
  animation-delay: 1.42s;
}
.redacted__word:nth-child(5),
.redacted__word:nth-child(5)::after {
  animation-delay: 1.51s;
}
.redacted__word:nth-child(6),
.redacted__word:nth-child(6)::after {
  animation-delay: 1.6s;
}
.redacted__word:nth-child(7),
.redacted__word:nth-child(7)::after {
  animation-delay: 1.69s;
}
.redacted__word:nth-child(8),
.redacted__word:nth-child(8)::after {
  animation-delay: 1.78s;
}

.redacted__word--key {
  color: transparent;
  animation-name: ink-amber;
}

@keyframes ink {
  to {
    color: var(--ink);
  }
}

@keyframes ink-amber {
  to {
    color: var(--amber);
  }
}

@keyframes unredact {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .redacted__word {
    color: var(--ink);
  }
  .redacted__word--key {
    color: var(--amber);
  }
  .redacted__word::after {
    display: none;
  }
}

.hero__lede {
  font-size: 1.16rem;
  line-height: 1.68;
  max-width: 46ch;
  margin: 0 auto;
  color: var(--prose);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 1.95s both;
}

.hero__below .button-row {
  justify-content: center;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 2.15s both;
}

/* The policy file and the tree it produces, side by side. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 2.4s both;
}

@media (prefers-reduced-motion: reduce) {
  .ghostlock .pulse,
  .hero__flash {
    display: none;
  }
}

/* ------------------------------------------------------------- deny ticker */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 3.5rem;
  animation: fade-in 0.8s ease 2.3s both;
}

.ticker__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: 0.66rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}

.ticker__track b {
  color: var(--amber);
  font-weight: 400;
}

.ticker__track span {
  display: inline-flex;
  gap: 0.7rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

.panel__bar-note {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0.04em;
}

@media (max-width: 620px) {
  .panel__bar-note {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-of-type {
  border-bottom: none;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.section h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

.section h3 {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.6rem 0 0.9rem;
}

.section p {
  max-width: 68ch;
}

.prose-lead {
  font-size: 1.1rem;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration-color: rgba(255, 180, 84, 0.5);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--amber);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.08em 0.34em;
}

/* ------------------------------------------------------------------ panels */

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.panel__bar b {
  color: var(--muted);
  font-weight: 400;
}

.panel__bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 180, 84, 0.6);
}

pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--prose);
}

pre b {
  color: var(--ink);
  font-weight: 500;
}

pre .p {
  color: var(--amber);
  user-select: none;
}

pre .c {
  color: var(--faint);
}

pre .deny {
  color: var(--rust);
}

pre .ok {
  color: var(--jade);
}

figure {
  margin: 1.8rem 0;
}

figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------- file tree */

.tree {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2.05;
  padding: 1rem 1.15rem;
  margin: 0;
  list-style: none;
}

.tree li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  border-radius: 3px;
  padding-inline: 0.3rem;
  transition: background 0.16s;
}

.tree li:hover {
  background: var(--panel-2);
}

.tree .name {
  flex: 1;
  white-space: pre;
}

.tree .locked .name {
  color: var(--ink);
}

.chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 2px;
  border: 1px solid;
  white-space: nowrap;
}

.chip--lock {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.32);
  background: var(--amber-soft);
}

.chip--rw {
  color: var(--jade);
  border-color: rgba(99, 211, 160, 0.28);
  background: var(--jade-soft);
}

.chip--deny {
  color: var(--rust);
  border-color: rgba(232, 96, 76, 0.32);
  background: rgba(232, 96, 76, 0.1);
}

/* ------------------------------------------------------------------ tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 0.72rem 0.9rem 0.72rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

td:first-child {
  color: var(--ink);
}

td code {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
}

/* ------------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.card {
  background: var(--panel);
  padding: 1.4rem 1.3rem;
}

.card h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.7rem;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ islands */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.tabs button {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.75rem 1.05rem;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.tabs button:hover {
  color: var(--ink);
  background: var(--panel);
}

.tabs button[aria-selected="true"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.attacks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.attacks button {
  appearance: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: color 0.16s, border-color 0.16s, transform 0.16s;
}

.attacks button:hover {
  color: var(--ink);
  border-color: var(--faint);
  transform: translateY(-1px);
}

.attacks button[aria-pressed="true"] {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.45);
  background: var(--amber-soft);
}

.verdict {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

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

.footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 3rem 0 4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.footer__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.5rem;
  align-items: baseline;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.footer__spacer {
  margin-left: auto;
}

/* ------------------------------------------------------------------- misc */

.callout {
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), transparent 70%);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  border-radius: 0 3px 3px 0;
}

.callout p {
  margin: 0;
}

.callout--warn {
  border-left-color: var(--rust);
  background: linear-gradient(90deg, rgba(232, 96, 76, 0.1), transparent 70%);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.72rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.button:hover {
  border-color: var(--faint);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(255, 180, 84, 0.45);
  background: var(--amber-soft);
  color: var(--amber);
}

.button--primary:hover {
  border-color: var(--amber);
}

.lede-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.lede-meta b {
  color: var(--muted);
  font-weight: 400;
}

.lede-meta--center {
  justify-content: center;
  gap: 2.4rem;
}

ul.plain {
  list-style: none;
  padding: 0;
  max-width: 68ch;
}

ul.plain li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
}

ul.plain li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--mono);
}

/* ------------------------------------------------------------- narrow ---- */

@media (max-width: 860px) {
  /* Two panels side by side stop being readable well before they stop
     fitting. */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Wide tables have nowhere to go on a phone; let them scroll rather than
     crushing a column of paths to four characters. */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  td,
  th {
    padding-right: 1.4rem;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1180px, 100% - 2rem);
  }

  .masthead__inner {
    height: auto;
    padding-block: 0.7rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .masthead nav {
    width: 100%;
    margin-left: 0;
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .masthead nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero__stage {
    padding: 2.5rem 0 2rem;
  }

  /* The headline needs more lines here, so the lock has to grow past the
     column to keep holding it. The stage clips the overflow. */
  .ghostlock {
    width: 148%;
  }

  .hero__eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.66rem;
  }

  .section {
    padding: 3rem 0;
  }

  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    padding-inline: 0.8rem;
  }

  pre {
    font-size: 0.76rem;
  }

  .footer__spacer {
    margin-left: 0;
  }
}
