/* ELIRI web — one stylesheet, no JavaScript.
   Tokens mirror Eliri/src/theme/tokens.ts: Warm Cream, Deep Navy, Teal, Sunny Yellow.
   Teal fails AA on cream (≈2.3:1), so it is never used for text; it draws rules and marks. */
:root {
  --cream: #FFF7EC;
  --paper: #FFF1D6;
  --paper-edge: #E8D9B4;
  --navy: #0D1A2F;
  --ink-2: #5B6675;
  --teal: #14B8A6;
  --yellow: #FFD54D;
  --rule: rgba(13, 26, 47, 0.14);
  --measure: 40rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
.skip {
  position: absolute; left: 1rem; top: -3rem;
  padding: .5rem .75rem; background: var(--navy); color: var(--cream);
  border-radius: .5rem; z-index: 10;
}
.skip:focus { top: 1rem; }
header, main, footer { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 1.75rem; height: 1.75rem; }
.brand span { font-weight: 800; letter-spacing: .12em; font-size: 1.05rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
nav a { color: var(--navy); text-decoration: none; font-size: .95rem; padding-block: .35rem; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { border-bottom-color: var(--teal); }
nav a:hover { border-bottom-color: var(--navy); }
main { padding-block: 2.5rem 4rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .6rem; line-height: 1.25; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
p, li { max-width: 65ch; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
a { color: var(--navy); text-decoration-thickness: .12em; text-underline-offset: .18em; text-decoration-color: var(--teal); }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: .25rem; }
.lede { font-size: 1.25rem; color: var(--navy); max-width: 34ch; }
.meta { color: var(--ink-2); font-size: .95rem; }
.paper {
  background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 1.25rem;
  padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.paper > :first-child { margin-top: 0; }
.paper > :last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.4rem; margin-bottom: .8rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: .9rem; display: grid; place-items: center;
}
.cta { display: inline-block; background: var(--navy); color: var(--cream); padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.cta:hover { background: #1b2b47; }
.cta:focus-visible { outline-color: var(--teal); }
.rule { border: 0; border-top: 2px solid var(--teal); width: 3rem; margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0 1.5rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }
dl { margin: 0 0 1rem; }
dt { font-weight: 600; margin-top: .8rem; }
dd { margin: .15rem 0 0; }
footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 3rem; font-size: .9rem; color: var(--ink-2); }
footer ul { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
footer a { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { header nav, footer ul, .skip { display: none; } body { background: #fff; } }
