/* anvilhead.app: dark, calm, readable on a phone. Colours are the brand's dark tokens
   (design/brand/tokens.json), with its high-contrast values under prefers-contrast. */
:root {
  --bg: #06080b;
  --card: #0f1319;
  --line: #1f252e;
  --text: #f3f5f8;
  --muted: #98a2b3;
  --ice: #9fd4ff;
  --pad: 24px;
  --measure: 40rem;
  color-scheme: dark;
}

@media (prefers-contrast: more) {
  :root { --muted: #bac2ce; --ice: #c9e8ff; --line: #343b46; }
}

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

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

body {
  margin: 0;
  background: radial-gradient(90rem 40rem at 100% -10rem, rgba(159, 212, 255, 0.07), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 1; padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }

header.site { padding-block: 32px 8px; }
header.site img { display: block; width: 150px; height: auto; }

main { padding-block: 40px 72px; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { margin: 0.25rem 0 1rem; font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.022em; }
h2 { margin: 3.5rem 0 1rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.012em; }
h3 { margin: 2.25rem 0 0.5rem; font-size: 1.0625rem; font-weight: 650; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.5rem; }
strong { font-weight: 650; }

.eyebrow { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.path { color: var(--text); font-weight: 600; }

a {
  color: var(--ice);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(159, 212, 255, 0.45);
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(159, 212, 255, 0.3); }

.card {
  margin: 2rem 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #141b24, var(--card) 55%);
}
.card > :last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 1rem; }
.card ul { padding: 0; list-style: none; }
.card li + li { margin-top: 0.875rem; }

dl.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
dl.facts > div:last-child { border-bottom: 1px solid var(--line); }
dl.facts dt { font-weight: 650; }
dl.facts dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 40rem) {
  dl.facts > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; }
  dl.facts dd { margin: 0; }
}

ol.steps { padding: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding-left: 2.5rem; counter-increment: step; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  width: 1.625rem; height: 1.625rem; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); font-size: 0.8125rem; line-height: 1.5rem; text-align: center;
}

.rows { margin: 2.5rem 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 26px; background: var(--card); overflow: hidden; }
.rows li + li { margin: 0; border-top: 1px solid var(--line); }
.rows a { display: flex; justify-content: space-between; padding: 18px 22px; color: var(--text); text-decoration: none; }
.rows a::after { content: "\203A"; color: var(--muted); }
.rows a:hover { background: #141a22; }
.rows a:focus-visible { outline-offset: -3px; border-radius: 26px; }

.stage { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 160px); }
.stage h1 { margin: 0; }
.stage h1 img { display: block; width: min(30rem, 100%); height: auto; }
.tagline { margin: 1.75rem 0 0; color: var(--muted); font-size: 1.375rem; line-height: 1.4; }

footer.site { padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover, footer.site a[aria-current] { color: var(--text); }
footer.site p { margin: 0; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site img { filter: invert(1); }
  a, .lead, .meta, .eyebrow, dl.facts dd, footer.site, footer.site a { color: #000; }
  .card, .rows { border-color: #999; background: none; }
  .skip { display: none; }
}
