:root {
  color-scheme: light dark;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #172b40;
  --muted: #536477;
  --primary: #1F5A99;
  --soft: #eaf2fc;
  --line: #d8e2ec;
  --sun: #F7B940;
  --warning: #fff6e2;
  --bar-outline: #385167;
  --string-a: #2A78D6;
  --string-b: #EDA100;
  --string-c: #1BAF7A;
  --string-d: #4A3AA7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #101a26;
    --surface: #172534;
    --text: #edf4fc;
    --muted: #b0c1d4;
    --primary: #A9D0FF;
    --soft: #1b3048;
    --line: #354b62;
    --warning: #302b20;
    --bar-outline: #c1d3e7;
    --string-a: #3987E5;
    --string-b: #C98500;
    --string-c: #199E70;
    --string-d: #9085E9;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; border-radius: 3px; }
img, svg { max-width: 100%; height: auto; }
.shell { width: min(100% - 32px, 1100px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 16px;
  transform: translateY(-180%);
  background: var(--surface);
  padding: 10px 16px;
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
.languages a { text-decoration: none; }
.languages a:hover { text-decoration: underline; }
.languages { margin-left: auto; gap: 8px; font-size: .875rem; }
.languages a { min-width: 28px; justify-content: center; }
[aria-current="page"] { font-weight: 750; text-decoration: underline !important; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 750; margin: 0 0 24px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 24px; }
h3 { font-size: 1.1rem; letter-spacing: -.015em; margin: 0 0 10px; }
p { margin: 0 0 20px; max-width: 68ch; }
li { max-width: 68ch; }
.eyebrow {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.hero { display: grid; gap: 36px; padding-block: 52px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-logo { display: block; width: 88px; height: 88px; margin-bottom: 28px; filter: drop-shadow(0 10px 18px #1f5a9940); }
.availability { display: flex; align-items: center; gap: 10px; font-weight: 650; margin: 30px 0 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
.reading-card {
  margin: 0;
  padding: 24px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 55px -28px #1f5a9938;
}
.reading-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; margin: 0 0 32px; }
.example { font-weight: 400; font-size: .75rem; color: var(--muted); }
.chart { display: block; width: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.bar { stroke: var(--bar-outline); stroke-width: 1; }
.bar-a { fill: var(--string-a); }
.bar-b { fill: var(--string-b); }
.bar-c { fill: var(--string-c); }
.bar-d { fill: var(--string-d); }
.chart text { fill: var(--text); font-family: inherit; }
.chart-values { font-size: 18px; font-weight: 650; }
.chart-labels, .chart-total-label { font-size: 17px; }
.chart-total { font-size: 26px; font-weight: 750; }
.section { padding-block: 40px; border-top: 1px solid var(--line); }
.steps { display: grid; gap: 28px; padding: 0; margin: 0 0 28px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: .8rem; font-weight: 750; color: var(--primary); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
.check-list { padding-left: 22px; margin: 0 0 24px; }
.check-list li { padding-left: 4px; margin-bottom: 10px; }
.check-list li::marker { color: var(--primary); }
code { font-size: .92em; overflow-wrap: anywhere; }
.safety { max-width: 68ch; background: var(--warning); border-left: 3px solid var(--sun); border-radius: 0 10px 10px 0; padding: 20px; margin-top: 28px; }
.safety strong { display: block; margin-bottom: 6px; }
.prose { max-width: 68ch; padding-top: 52px; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); hyphens: auto; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.prose h3 { margin: 28px 0 12px; }
.prose ul { padding-left: 24px; margin-block: 16px 24px; }
.prose li { margin-bottom: 10px; }
address { font-style: normal; line-height: 1.8; }
.translation { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 16px; }
.not-found { padding-bottom: 40px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding-block: 24px 36px; font-size: .8rem; color: var(--muted); }
.site-footer nav { gap: 4px 12px; margin-bottom: 12px; }
.site-footer p { max-width: 70ch; margin-bottom: 0; }
@media (min-width: 600px) {
  .reading-card { padding: 28px; }
  .section { padding-block: 52px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 64px; padding-block: 80px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
}
@media (forced-colors: active) {
  .bar { fill: CanvasText; stroke: CanvasText; }
  .chart text { fill: CanvasText; }
  .chart-grid { stroke: GrayText; }
  .reading-card, .safety { border: 1px solid CanvasText; }
}
