/* Layout idea: one calm reading column for the information pages; on the home page the whole page
   changes costume with the chosen narrator.
   Type: Avenir Next, taken from the visitor's own device where it is installed (Apple devices).
   Elsewhere the page uses Nunito Sans, an open-licence typeface served from this site's own server.
   No font, script or other file is loaded from another company. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("nunito-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("nunito-sans-italic.woff2") format("woff2");
}
:root {
  --bg: #12261e;
  --panel: #1a3329;
  --ink: #e9efe2;
  --muted: #9bb3a3;
  --accent: #e8b24a;
  --on-accent: #1b1606;
  --line: #2f4d40;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-read: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --display-style: italic;
  --display-weight: 600;
  --display-case: none;
  --display-variant: normal;
  --display-track: 0;
  --read-style: italic;
  --read-weight: 400;
  --read-size: 1.25rem;
  --read-leading: 1.5;
  color-scheme: dark;
}
:root[data-voice="fantasy"] {
  --bg: #e6d3a6;
  --panel: #f1e3bf;
  --ink: #2b1a10;
  --muted: #6a5238;
  --accent: #8c1c2c;
  --on-accent: #f8ecd0;
  --line: #c9b383;
  --display-style: normal;
  --display-weight: 700;
  --display-variant: small-caps;
  --display-track: 0.02em;
  --read-style: normal;
  --read-size: 1.2rem;
  --read-leading: 1.55;
  color-scheme: light;
}
:root[data-voice="noir"] {
  --bg: #0e0e0f;
  --panel: #18181a;
  --ink: #dcdcd6;
  --muted: #96968f;
  --accent: #d8c26a;
  --on-accent: #14120a;
  --line: #2c2c2f;
  --display-style: normal;
  --display-weight: 400;
  --display-case: uppercase;
  --display-track: 0.1em;
  --read-style: normal;
  --read-size: 1.1rem;
  --read-leading: 1.65;
  color-scheme: dark;
}
:root[data-voice="sports"] {
  --bg: #0b2a6b;
  --panel: #0f378a;
  --ink: #ffffff;
  --muted: #b4c8f2;
  --accent: #ff6a2b;
  --on-accent: #1a0a02;
  --line: #2a52ad;
  --font-display: "Avenir Next Condensed", "Avenir Next", Avenir, "Nunito Sans", "Arial Narrow", sans-serif;
  --font-read: "Avenir Next Condensed", "Avenir Next", Avenir, "Nunito Sans", "Arial Narrow", sans-serif;
  --display-style: italic;
  --display-weight: 800;
  --display-case: uppercase;
  --read-style: italic;
  --read-weight: 600;
  --read-size: 1.35rem;
  --read-leading: 1.35;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
:root[data-voice="noir"] body {
  background-image: repeating-linear-gradient(175deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 60px);
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 16px; }

.site-header, main, .site-footer { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand img { border-radius: 8px; display: block; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0; }
h1, .display {
  font-family: var(--font-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-variant: var(--display-variant);
  text-transform: var(--display-case);
  letter-spacing: var(--display-track);
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.label {
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}

/* Home */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: start;
  padding-top: 28px; padding-bottom: 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 span { color: var(--accent); }
.lede { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 44ch; }
.cta {
  display: inline-block; padding: 13px 22px; border-radius: 6px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none;
}
.soon {
  margin: 0; display: inline-block; padding: 9px 14px; border: 1.5px solid var(--accent); border-radius: 6px;
  color: var(--accent); font-weight: 650;
}
.demo { display: flex; flex-direction: column; gap: 14px; }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.voices button {
  font: inherit; text-align: left; padding: 10px 14px; border-radius: 6px; cursor: pointer;
  color: var(--ink); background: var(--panel); border: 1.5px solid var(--line);
}
.voices button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 650; }
.script {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 6px; padding: 24px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
:root[data-voice="fantasy"] .script { border-style: double; border-width: 4px; }
:root[data-voice="sports"] .script { border-left: 8px solid var(--accent); }
.slate { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chip { padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); }
.event { margin: 0; font-size: 1.8rem; line-height: 1.1; color: var(--accent); }
.narration {
  margin: 0; font-family: var(--font-read); font-style: var(--read-style); font-weight: var(--read-weight);
  font-size: var(--read-size); line-height: var(--read-leading); min-height: 9em;
}
.band { border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before {
  content: counter(step); font-family: var(--font-display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: 2.4rem; line-height: 1; color: var(--accent);
}
.steps p, .facts p { margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }

/* Information pages */
.prose { max-width: 70ch; padding-top: 20px; padding-bottom: 56px; }
.prose h1 { margin-bottom: 10px; }
.prose h2 { margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); }
.summary { background: var(--panel); border: 1.5px solid var(--line); border-left: 6px solid var(--accent); border-radius: 6px; padding: 18px 20px; margin: 22px 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--line); }
th { background: var(--panel); }
address { font-style: normal; }
mark.todo { background: var(--accent); color: var(--on-accent); padding: 1px 6px; border-radius: 4px; font-weight: 650; }

.site-footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 12px; }
.site-footer p { margin: 0; color: var(--muted); }
.fine { font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps, .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  body { transition: background-color 0.3s ease, color 0.3s ease; }
}
