/* ==========================================================================
   RE-call setup guide, design system.

   Palette is shared with the Windows desktop UI and docs/brand-guidelines.md.
   Gold is the RE-call signal; green and red describe state only.
   ========================================================================== */

:root {
  /* Warm near-black surfaces keep the logo and controls legible. */
  --ground: #0e100f;
  --surface-1: #141714;
  --surface-2: #171a17;
  --surface-3: #1d211d;

  /* Ink */
  --ink: #f4f1e8;
  --ink-soft: #d0d0c6;
  --ink-muted: #b6b7ac;

  /* The one signal colour. Actions, current state, warnings. */
  --signal: #d7a52a;
  --signal-dim: rgba(215, 165, 42, 0.18);

  /* The identity rule. Used once per page, as a line, never as a wash. */
  --rule-a: #d7a52a;
  --rule-b: #f0be4a;
  --rule-c: #d7a52a;
  --rule: linear-gradient(90deg, var(--rule-a) 0%, var(--rule-b) 52%, var(--rule-c) 100%);

  /* Lines */
  --line: rgba(70, 80, 71, 0.62);
  --line-strong: rgba(70, 80, 71, 0.9);

  /* Type */
  --font-display: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Rhythm */
  --shell: 72rem;
  --shell-narrow: 46rem;
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchored steps must not hide under the sticky masthead. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 52% 42% at 78% 14%, rgba(215, 165, 42, 0.07), transparent 72%),
    var(--ground);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.shell-narrow {
  width: min(calc(100% - 2.5rem), var(--shell-narrow));
  margin-inline: auto;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

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

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
  max-width: 62ch;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

.muted {
  color: var(--ink-soft);
}

/* Monospace metadata label, lifted from the banner's chips. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.eyebrow--signal {
  color: var(--signal);
}

/* The identity rule. One per page. */
.rule {
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.masthead[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark-mark {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(215, 165, 42, 0.16));
}

.wordmark-name {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark > span:not(.wordmark-name) {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-block: 0.35rem;
  white-space: nowrap;
}

.masthead nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

.masthead nav a[href="start.html"] {
  color: var(--signal);
  font-weight: 600;
}

.masthead nav a[href="start.html"]:hover {
  color: var(--ink);
}

.masthead nav a[aria-current="page"]::after,
.masthead nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 1280px) {
  .masthead-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding-block: 0.65rem;
  }

  .masthead nav {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-block: 0.35rem;
    scrollbar-width: none;
  }

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

  .masthead .language-control {
    margin-left: auto;
  }
}

/* Mobile nav collapses to a horizontally scrollable strip rather than a
   hamburger: five links, all worth showing, no JS needed. */
@media (max-width: 860px) {
  .masthead-inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.75rem;
  }

  .wordmark {
    padding-block: 0.35rem;
  }

  .hero .hero-logo {
    width: 15rem;
    height: 15rem;
    right: -2rem;
    top: 74%;
    opacity: 0.13;
  }

  .masthead nav {
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
  }

  .masthead .language-control {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Hero, Architecture D: the typographic poster.
   Type is the graphic. No imagery, no scroll cue, one CTA.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100dvh - 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 10vh, 8rem) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
}

/* Single ambient light source, felt not seen. This is the only gradient on the
   page body, and at 0.04 it reads as depth rather than as a glow blob. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 18% 32%, rgba(215, 165, 42, 0.055) 0%, transparent 72%);
}

.hero-logo {
  position: fixed;
  z-index: 0;
  width: clamp(16rem, 32vw, 29rem);
  height: clamp(16rem, 32vw, 29rem);
  object-fit: contain;
  right: clamp(-5rem, 2vw, 3rem);
  top: 56%;
  transform: translateY(-50%);
  opacity: 0.15;
  filter: saturate(0.78) contrast(1.1) drop-shadow(0 0 24px rgba(215, 165, 42, 0.08));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 12ch;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--ink-muted);
}

.hero .rule {
  width: min(100%, 30rem);
  margin-bottom: 2rem;
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* Bottom-edge metadata strip, echoing the banner's monospace chips. */
.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.hero-meta b {
  font-weight: 400;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: #1a1204;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s var(--ease);
}

.button:hover {
  color: #1a1204;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(215, 165, 42, 0.22);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.button-ghost::after {
  content: "→";
  transition: transform 0.4s var(--ease);
}

.button-ghost:hover {
  color: var(--ink);
}

.button-ghost:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section rhythm
   -------------------------------------------------------------------------- */

.band {
  padding-block: clamp(4rem, 10vw, 7.5rem);
  position: relative;
}

.band--tint {
  background: var(--surface-1);
  border-block: 1px solid var(--line);
}

.band--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.band h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  margin-bottom: 1.25rem;
}

.band--tint h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   Terminal. The page's one object with depth, because it is the only thing
   the reader acts on. Tab strip, prompt glyph, dimmed output.
   -------------------------------------------------------------------------- */

.terminal {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.5rem;
}

.terminal-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  min-height: 2.75rem;
}

.terminal-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.terminal-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0 1rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s var(--ease);
}

.terminal-tab::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.terminal-tab:hover {
  color: var(--ink-soft);
}

.terminal-tab[aria-selected="true"] {
  color: var(--ink);
}

.terminal-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

/* A static label used where there is nothing to switch between. */
.terminal-label {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.copy-button {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.copy-button:hover {
  color: var(--ink);
  background: rgba(70, 80, 71, 0.18);
}

.copy-button[data-state="done"] {
  color: var(--signal);
}

.terminal-body {
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
}

.terminal pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre;
  tab-size: 2;
}

/* The prompt glyph is generated, so it is never copied with the command. */
.terminal--command pre > .line::before {
  content: "$ ";
  color: var(--signal);
}

/* Keyed off the root, not the block: a command block with no OS tab strip
   (docker ps, which is identical everywhere) must still show the Windows
   reader a PowerShell prompt like every block around it. */
:root[data-shell="powershell"] .terminal--command pre > .line::before {
  content: "PS> ";
}

.terminal pre > .line {
  display: block;
}

/* Continuation lines of a wrapped command carry no prompt. */
.terminal--command pre > .line--cont::before {
  content: "   ";
}

/* Belt and braces over the user agent's own [hidden] rule, so a future display
   declaration on these panes cannot silently reveal every OS variant at once. */
[data-os-pane][hidden] {
  display: none;
}

/* Output transcript: dimmer than the command, so the eye separates what you
   type from what the machine says back. */
.terminal--output {
  box-shadow: none;
  background: var(--surface-1);
}

.terminal + .muted {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.terminal--output pre {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal--output .ok {
  color: var(--rule-b);
}

.terminal--output .warn {
  color: var(--signal);
}

.terminal--output .dim {
  color: var(--ink-muted);
}

.terminal--output .hit {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 6rem);
  counter-reset: step;
}

.step {
  position: relative;
  scroll-margin-top: 6rem;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.step-number {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding-top: 0.4rem;
}

.step h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
}

.step-body {
  padding-left: 0;
}

@media (min-width: 900px) {
  .step-body {
    padding-left: 4.25rem;
  }
}

.step-what {
  color: var(--ink-soft);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Progress rail. Answers "how much longer", which is the question a reader
   actually has mid-install.
   -------------------------------------------------------------------------- */

.guide-layout {
  display: block;
}

@media (min-width: 1080px) {
  .guide-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.rail {
  display: none;
}

@media (min-width: 1080px) {
  .rail {
    display: block;
    position: sticky;
    top: 7rem;
    max-height: calc(100dvh - 10rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.rail-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.rail li {
  position: relative;
}

.rail a {
  display: block;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.rail a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.rail a:hover {
  color: var(--ink-soft);
}

.rail a[data-active="true"] {
  color: var(--ink);
}

.rail a[data-active="true"]::before {
  transform: scaleY(1);
}

.rail-progress {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Notices. Three weights: neutral, signal, checkpoint.
   -------------------------------------------------------------------------- */

.notice {
  border-left: 2px solid var(--line-strong);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-block: 1.75rem;
  max-width: 62ch;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.notice--signal {
  border-left-color: var(--signal);
  background: var(--signal-dim);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notice--signal .notice-title {
  color: var(--signal);
}

/* "You should see this" checkpoint. */
.checkpoint {
  margin-block: 1.75rem;
}

.checkpoint-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.checkpoint-title::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
}

/* Failure escape hatch under each step. */
.escape {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
}

.escape a {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Disclosure. Nuance that must not block a first run.
   -------------------------------------------------------------------------- */

.why {
  margin-block: 1.75rem;
  max-width: 62ch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.why > summary::-webkit-details-marker {
  display: none;
}

.why > summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--signal);
  transition: transform 0.35s var(--ease);
}

.why[open] > summary::before {
  transform: rotate(45deg);
}

.why > summary:hover {
  color: var(--ink);
}

.why-body {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.why-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Prose bits
   -------------------------------------------------------------------------- */

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--ink);
  background: rgba(70, 80, 71, 0.18);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  overflow-wrap: break-word;
}

.notice code,
.why-body code {
  color: var(--ink);
}

ul, ol {
  padding-left: 1.25rem;
  max-width: 62ch;
}

li {
  margin-bottom: 0.5rem;
}

.plain-list {
  list-style: none;
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 1rem;
}

th, td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-1);
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

td {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Landing page compositions
   -------------------------------------------------------------------------- */

/* Asymmetric split: heading anchored left, evidence right. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

/* Requirements strip: real facts, no invented metrics. */
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  background: var(--ground);
  padding: 1.75rem 1.5rem;
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.fact dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fact dd small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

/* Route list: where to go after the guide. Deliberately not a card grid. */
.routes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  border-top: 1px solid var(--line);
}

.routes li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.routes a {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  text-decoration: none;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

@media (min-width: 760px) {
  .routes a {
    grid-template-columns: 14rem minmax(0, 1fr) 2rem;
    align-items: baseline;
  }
}

.routes a:hover {
  transform: translateX(0.35rem);
  color: var(--ink);
}

.routes strong {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.routes span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.routes em {
  font-style: normal;
  color: var(--ink-muted);
  justify-self: end;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

.routes a:hover em {
  transform: translateX(4px);
  color: var(--signal);
}

/* Closing call. One heading, one button. */
.closer {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.closer h2 {
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  margin-bottom: 1rem;
}

.closer p {
  margin-inline: auto;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--signal);
}

.footer small {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Motion. One authored arrival, no repeated scroll choreography.
   -------------------------------------------------------------------------- */

/* The hidden state is applied only once JS has confirmed it can un-apply it.
   Without this gate, a failed script or an observer that never delivers would
   leave the page permanently blank, which on an install guide is a far worse
   outcome than losing an animation. */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* Hero entry: background settles, then heading, rule, lede, CTA. Under 800ms. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes widen {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

.hero-inner > * {
  animation: rise 0.7s var(--ease) both;
}

.hero-inner > :nth-child(1) { animation-delay: 0.05s; }
.hero-inner > :nth-child(2) { animation-delay: 0.12s; }
.hero-inner > :nth-child(3) { animation-delay: 0.22s; }
.hero-inner > :nth-child(4) { animation-delay: 0.3s; }
.hero-inner > :nth-child(5) { animation-delay: 0.38s; }

.hero .rule {
  transform-origin: left;
  animation: widen 0.8s var(--ease) 0.22s both;
}

.hero-meta {
  animation: rise 0.7s var(--ease) 0.46s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner > *,
  .hero .rule,
  .hero-meta {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print: someone following an install guide may well print it.
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::after,
  .masthead,
  .rail,
  .copy-button,
  .closer {
    display: none !important;
  }

  .terminal {
    box-shadow: none;
    border-color: #999;
  }

  .terminal pre,
  .terminal--output pre {
    color: #000;
  }

  .why[open] .why-body,
  .why-body {
    display: block;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Localized README presentation.
   -------------------------------------------------------------------------- */

.language-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.language-control label {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-control select {
  min-width: 8.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.48rem 2rem 0.48rem 0.8rem;
  color: var(--ink);
  background: var(--surface-2);
  font: inherit;
  cursor: pointer;
}

.readme-shell {
  padding-block: 2rem 4rem;
}

.readme-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.2rem;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
}

.readme-logo {
  width: clamp(7rem, 13vw, 11rem);
  height: clamp(7rem, 13vw, 11rem);
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.82;
  filter: drop-shadow(0 0 24px rgba(215, 165, 42, 0.16));
}

.readme-intro h1 {
  max-width: 18ch;
}

.readme-meta {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.translation-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-size: 0.82rem;
}

.translation-status[data-tone="working"] {
  color: var(--signal);
}

.translation-status[data-tone="error"] {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

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

.translation-disclosure {
  flex-basis: 100%;
  max-width: 34rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.readme-content {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow-wrap: anywhere;
}

.readme-content > :first-child {
  margin-top: 0;
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4 {
  margin-top: 1.7em;
}

.readme-content h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.readme-content h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.readme-content p,
.readme-content li,
.readme-content blockquote {
  color: var(--ink-soft);
}

.readme-content img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 1rem 0;
}

.readme-content pre {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--ground);
  overflow-x: auto;
}

.readme-content code {
  padding: 0.12rem 0.3rem;
  border-radius: 0.35rem;
  background: var(--surface-3);
  color: var(--rule-b);
}

.readme-content pre code {
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.readme-content table {
  display: block;
  overflow-x: auto;
  white-space: normal;
}

.readme-content blockquote {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 1px solid var(--rule-a);
  background: var(--surface-2);
}

.readme-loading,
.readme-error {
  padding: 2rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 960px) {
  .language-control {
    width: 100%;
    justify-content: space-between;
  }

  .readme-intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .readme-logo {
    width: 6rem;
    height: 6rem;
  }

  .readme-meta {
    justify-content: flex-start;
  }

  .translation-disclosure {
    text-align: left;
  }
}
