/* Brand tokens from docs/rebuild-brief.md (Brand and colours). Dark is the
   default look; the light theme keeps the same orange hue, darker so it
   still clears 4.5:1 as text. */
:root {
  color-scheme: dark light;
  --background: #030304;
  --foreground: #f5f5f5;
  --card: #07090c;
  --primary: oklch(0.73 0.22 38);
  --primary-foreground: #020202;
  --muted: #151618;
  --muted-foreground: #8f8f8f;
  --accent: #221815;
  --border: rgb(255 255 255 / 10%);
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #f9fafb;
    --foreground: #101318;
    --card: #ffffff;
    --primary: oklch(0.56 0.17 38);
    --primary-foreground: #fcfcfc;
    --muted: #eef0f3;
    --muted-foreground: #5e6269;
    --accent: #fdece4;
    --border: #dcdee1;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--card);
}

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

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

h1 em {
  font-style: normal;
  color: var(--primary);
}

.lede {
  max-width: 40rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}

section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
}

.steps,
.points {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose li {
  color: var(--muted-foreground);
}

.prose strong {
  color: var(--foreground);
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

footer a {
  color: var(--muted-foreground);
}
