/* The project page's styles, shared by site/index.html and site/de/index.html. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* the app's tokens (docs/ui-design.md §3), and a dark set of the same roles */
:root {
  color-scheme: light dark;
  --ink: #1A1E23;
  --text-2: #49515C;
  --muted: #646C78;
  --border: #D7DBE0;
  --hairline: #E6E9ED;
  --app: #F1F3F5;
  --surface: #FFFFFF;
  --sunken: #F7F8FA;
  --accent: #1F4E8A;
  --accent-hover: #163B6A;
  --accent-weak: #E9EDF3;
  --accent-line: #A5B8D0;
  --on-accent: #FFFFFF;
  --ok: #1E6B3A;
  --ok-weak: #E8F3EC;
  --error: #B42318;
  --error-weak: #FDEEEC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6E9ED;
    --text-2: #BCC3CC;
    --muted: #9AA2AD;
    --border: #333A44;
    --hairline: #2A3038;
    --app: #121519;
    --surface: #1A1E23;
    --sunken: #15181C;
    --accent: #8FB1DE;
    --accent-hover: #B3CBEA;
    --accent-weak: #1E2B3D;
    --accent-line: #3D5578;
    --on-accent: #10161F;
    --ok: #7CC596;
    --ok-weak: #15291C;
    --error: #F19A90;
    --error-weak: #33191A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--app);
  color: var(--ink);
  font: 17px/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
code, pre { font-family: "Atkinson Hyperlegible Mono", ui-monospace, monospace; font-size: 0.92em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 1; }

header.top { background: var(--surface); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.mark { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.mark span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--accent); text-decoration: underline; }

section { padding: 56px 0; border-bottom: 1px solid var(--hairline); }
section:last-of-type { border-bottom: 0; }
.hero { background: var(--surface); padding: 64px 0 56px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); max-width: 30ch; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button.secondary { color: var(--accent); background: transparent; }
.button.secondary:hover { background: var(--accent-weak); }

.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.langs p { margin: 0; padding: 14px 16px; background: var(--sunken); border: 1px solid var(--hairline); border-radius: 8px; font-size: 0.95rem; color: var(--text-2); }
.langs b { display: block; color: var(--ink); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }

.stat {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  margin: 32px 0 0; padding: 20px 0; border-radius: 10px;
  background: var(--accent-weak); color: var(--text-2); font-size: 1.05rem;
}
.stat strong { padding: 0 28px; color: var(--accent); font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.stat span { padding: 2px 28px; border-left: 1px solid var(--accent-line); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.card h3 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card blockquote { margin: 0; font-size: 1.1rem; }
.card.after blockquote { font-size: 1.2rem; line-height: 1.7; }
.card.after { border-color: var(--accent); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
ol.steps li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
ol.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-weak); color: var(--accent); font-weight: 600; margin-bottom: 10px; }
ol.steps h3 { margin-bottom: 0.3em; }
ol.steps .who { position: absolute; top: 20px; right: 20px; display: flex; color: var(--accent); }
ol.steps .who::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 8px;
  border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 0.8rem; font-weight: 400;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s;
}
ol.steps .who:hover::after { opacity: 1; }
ol.steps p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.quote { margin: 0 0 28px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); font-size: 1.1rem; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

figure { margin: 40px 0 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; display: block; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { background: var(--sunken); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 400; }
td.lf { color: var(--ok); font-weight: 600; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1em; }
ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
ul.plain li { margin-bottom: 0.4em; }

/* a timeline: solid for what has shipped, dashed for what is planned; the label sits left of the line */
ol.roadmap { list-style: none; margin: 32px 0 0; padding: 0 0 0 calc(11rem + 24px); max-width: 880px; }
ol.roadmap li { --dot: var(--accent); --line: var(--accent); --dash: solid; position: relative; padding: 0 0 28px 28px; border-left: 2px var(--dash) var(--line); }
ol.roadmap li.next, ol.roadmap li.planned { --line: var(--accent-line); --dash: dashed; }
ol.roadmap li.planned { --dot: var(--accent-line); }
ol.roadmap li:last-child { padding-bottom: 0; border-left-color: transparent; }
ol.roadmap li::before { content: ""; box-sizing: border-box; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--dot); background: var(--dot); }
ol.roadmap li:not(.done)::before { background: var(--app); }
ol.roadmap li.next::before { box-shadow: 0 0 0 4px var(--accent-weak); }
ol.roadmap .when { position: absolute; right: calc(100% + 24px); top: 0; width: 11rem; margin: 0; text-align: right; font-weight: 600; line-height: 1.4; }
ol.roadmap .when span { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
ol.roadmap li.next .when { color: var(--accent); }
ol.roadmap li.planned .when { color: var(--muted); }
ol.roadmap h3 { margin-bottom: 0.3em; }
ol.roadmap li > p:not(.when) { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.author img { width: 56px; height: 56px; border-radius: 50%; display: block; }
.author h3 { margin-bottom: 0.4em; }
.author p { margin: 0 0 0.6em; color: var(--text-2); font-size: 0.95rem; }
.author a { font-size: 0.92rem; }

ul.services { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
ul.services li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
ul.services h3 { margin-bottom: 0.3em; }
ul.services p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
ul.services + p { margin-top: 28px; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }

@media (max-width: 820px) {
  .langs, .compare, .two, .authors, ul.services { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr 1fr; }
  section { padding: 44px 0; }
}
@media (max-width: 520px) {
  ol.steps { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; padding: 18px 20px; gap: 12px; }
  .stat strong { padding: 0; }
  .stat span { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--accent-line); }
  ol.roadmap { padding-left: 8px; }
  ol.roadmap .when { position: static; width: auto; text-align: left; margin-bottom: 4px; }
  nav ul { gap: 14px; }
}
