/* Elevenarium — one stylesheet, no framework.
   Palette: deep night indigo, warm ivory ink, a little gold. */

:root {
  --bg: #0e0f22;
  --bg-2: #15173a;
  --bg-3: #1c1f48;
  --ink: #efe7d3;
  --ink-muted: #b3ac9c;
  --ink-faint: #7f7a6f;
  --gold: #e6c36a;
  --gold-soft: #f3dc9a;
  --violet: #8f7cf0;
  --line: rgba(239, 231, 211, 0.14);
  --line-strong: rgba(239, 231, 211, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  /* Figtree for everything (chosen 2026-09-22): light and friendly, and it has
     the latin-ext glyphs the Polish version will need. */
  --display: "Figtree", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
  --body-weight: 300;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: var(--body-weight);
  /* Full-height figures everywhere: in old-style figures 11 shrinks to "ıı". */
  font-variant-numeric: lining-nums;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* ---- Sky ---------------------------------------------------------------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(143, 124, 240, 0.18), transparent 60%),
    radial-gradient(800px 500px at 90% 110%, rgba(230, 195, 106, 0.10), transparent 60%),
    var(--bg);
}
/* A slow aurora instead of stars: two soft glows that drift over about a
   minute. Big and blurry on purpose, so it reads as light, not as specks. */
.sky::before, .sky::after {
  content: ""; position: absolute; border-radius: 50%; will-change: transform;
}
.sky::before {
  width: 90vmax; height: 60vmax; left: -25vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(143, 124, 240, 0.22), rgba(143, 124, 240, 0.08) 55%, transparent);
  animation: drift-a 48s ease-in-out infinite alternate;
}
.sky::after {
  width: 70vmax; height: 50vmax; right: -20vmax; bottom: -25vmax;
  background: radial-gradient(closest-side, rgba(230, 195, 106, 0.14), rgba(94, 160, 200, 0.06) 60%, transparent);
  animation: drift-b 63s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(22vw, 12vh) rotate(12deg); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-18vw, -14vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sky::before, .sky::after { animation: none; } }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0 0.6rem;
  flex-wrap: wrap;
}
.wordmark { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark__digits { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--gold); letter-spacing: -0.02em; }
.wordmark__name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-family: var(--ui); font-size: 0.9rem; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav { margin-left: auto; }
/* The other language: a small fixed tag at the end of the header ("PL" on the
   English site, "EN" on the Polish one). On a phone it sits next to the
   wordmark, and the menu keeps its own line. */
.lang-switch {
  font-family: var(--ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-muted); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.15rem 0.55rem;
}
.lang-switch:hover { color: var(--ink); border-color: var(--gold); }
@media (max-width: 640px) {
  .lang-switch { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
}

/* "Also in Polish": one quiet line above the header, only for a browser that
   prefers the other language (main.js). Part of the page, so nothing moves over it. */
.lang-hint {
  max-width: 1120px; margin: 0.8rem auto 0; padding: 0.45rem 0.4rem 0.45rem 0.9rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.7rem;
  font-family: var(--ui); font-size: 0.85rem; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 23, 58, 0.6);
}
.lang-hint a { color: var(--gold-soft); }
.lang-hint__close {
  margin-left: auto; background: none; border: 0; color: var(--ink-faint); cursor: pointer;
  font-size: 1.2rem; line-height: 1; padding: 0.1rem 0.5rem;
}
.lang-hint__close:hover { color: var(--ink); }

/* ---- Hero --------------------------------------------------------------- */
.hero { max-width: 760px; margin: clamp(2rem, 8vh, 5rem) auto 2.5rem; text-align: center; }
.hero__digits {
  margin: 0 0 0.5rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(6rem, 22vw, 12rem); line-height: 0.95; letter-spacing: -0.04em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(230, 195, 106, 0.25), 0 0 120px rgba(230, 195, 106, 0.12);
}
.hero__digits--small { font-size: clamp(3rem, 10vw, 5rem); }
/* The hook: two short lines, each kept whole (it breaks between them, not inside). */
.hero__hook { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 5.2vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.015em; text-wrap: balance; }
.hero__hook span { display: block; }
.hero__hook span + span { color: var(--gold-soft); }
/* An optional third line is the aside, a wink rather than a headline. */
.hero__hook span + span + span { margin-top: 0.5rem; font-size: 0.55em; font-style: italic; font-weight: 300; color: var(--ink-muted); }
.hero__intro { color: var(--ink-muted); margin: 0 auto; max-width: 44ch; }

/* 11 November (body.is-nov11, set by main.js on the day). */
.hero__day { max-width: 46ch; margin: 1.2rem auto 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.6; color: var(--gold-soft); }
.hero__day[hidden] { display: none; }
.hero__day a { color: inherit; text-decoration-color: rgba(243, 220, 154, 0.45); text-underline-offset: 0.2em; }
.hero__day a:hover { text-decoration-color: currentColor; }
body.is-nov11 .hero__digits { text-shadow: 0 0 40px rgba(230,195,106,0.55), 0 0 160px rgba(230,195,106,0.3); }

/* ---- Sections ----------------------------------------------------------- */
.section-header { max-width: 760px; margin: 0 auto 1.6rem; text-align: center; }
.section-header h1, .section-header h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-muted); margin: 0; }

.tag {
  display: inline-block; font-family: var(--ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(230, 195, 106, 0.35); border-radius: 999px; padding: 0.15rem 0.6rem;
}
/* On a fact page the category tag links to that category on the wall, like "More in …". */
a.tag { text-decoration: none; transition: background 0.2s, border-color 0.2s; }
a.tag:hover, a.tag:focus-visible { background: rgba(230, 195, 106, 0.12); border-color: var(--gold); }
.muted { color: var(--ink-faint); }
.notice { color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-family: var(--ui); font-size: 0.9rem; }
.empty { text-align: center; color: var(--ink-faint); }

/* ---- The moment --------------------------------------------------------- */
.moment { max-width: 900px; margin: 0 auto 5rem; }
.moment__stage {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 31, 72, 0.7), rgba(21, 23, 58, 0.7));
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(1.6rem, 5vw, 3.2rem);
  backdrop-filter: blur(6px);
}
.moment__stage::before {
  content: "11"; position: absolute; left: 1.2rem; top: -0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 7rem; line-height: 1; color: rgba(230,195,106,0.06); pointer-events: none;
}
/* "Next" sits in the top-right corner so it never moves when the box changes height.
   Filled gold, not ghost: it is the one thing to press here. */
.moment__shuffle { position: absolute; top: 0.9rem; right: 0.9rem; padding: 0.4rem 0.9rem; font-size: 0.8rem; z-index: 1; }
.moment__shuffle[hidden] { display: none; }
.moment__item { text-align: center; padding-top: 0.6rem; }
.moment__item[hidden] { display: none; }
.moment__kicker { margin: 0 0 1rem; }
.moment__quote {
  margin: 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.35; letter-spacing: -0.005em;
}
.moment__quote strong { font-weight: 500; color: var(--gold-soft); }
.moment__quote--said { font-style: italic; }
.moment__by { margin: 0.9rem 0 0; color: var(--ink-muted); font-size: 1rem; }
.moment__by em { font-style: italic; }
.moment__cite { margin: 1.4rem 0 0; color: var(--ink-muted); font-family: var(--ui); font-size: 0.9rem; }
.moment__item.is-entering { animation: fadeup 0.45s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .moment__item.is-entering { animation: none; } }

/* One line from "I'm one of you", under the box. */
.moment__people { max-width: 640px; margin: 1.6rem auto 0; text-align: center; }
.moment__person { margin: 0; }
.moment__person[hidden] { display: none; }
.moment__person-line { display: block; font-family: var(--display); font-style: italic; font-weight: 300; color: var(--ink-muted); line-height: 1.5; }
.moment__person-who { display: block; margin-top: 0.4rem; font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.moment__person-who a { color: var(--gold); text-decoration: none; }
.moment__person-who a:hover { color: var(--gold-soft); }

/* ---- Buttons / chips ---------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--ui); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--gold); color: var(--bg); border: 1px solid var(--gold); border-radius: 999px;
  padding: 0.6rem 1.2rem; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--gold-soft); color: var(--bg); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(239,231,211,0.06); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 auto 1.8rem; max-width: 900px; }
.chip {
  font-family: var(--ui); font-size: 0.82rem; color: var(--ink-muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.38rem 0.85rem; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.chip__n { opacity: 0.7; font-size: 0.75em; margin-left: 0.25rem; }
/* "New" has its own colour, coral, apart from the gold of everything else (owner's pick
   over violet and mint, 2026-09-25). */
:root { --new: #ff8f7e; --new-soft: rgba(255, 143, 126, 0.14); }
.chip--new { border-color: var(--new); color: var(--new); background: var(--new-soft); font-weight: 600; }
.chip--new:hover { color: var(--new); border-color: var(--new); }
.chip--new.is-active { color: var(--bg); background: var(--new); border-color: var(--new); }

/* "New": filled, so it reads differently from the outlined category tag next to it. */
.badge-new {
  display: inline-block; font-family: var(--ui); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg); background: var(--new); border-radius: 999px; padding: 0.15rem 0.55rem;
}

/* ---- Masonry wall ------------------------------------------------------- */
/* Two columns, not three: fewer, larger cards read calmer. */
.collection { max-width: 900px; margin: 0 auto 5rem; }
/* Cards read in rows. main.js packs them into two columns (.is-rows), each card
   into the shorter one; without it this grid keeps the order, with some gaps. */
.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.masonry.is-rows { display: flex; align-items: flex-start; }
.masonry__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.masonry__col:empty { display: none; }
@media (max-width: 640px) {
  .masonry { grid-template-columns: 1fr; }
}
.card {
  display: block;
  background: rgba(21, 23, 58, 0.75); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card[hidden] { display: none; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }.card__body { padding: 1.4rem 1.5rem 1.5rem; }
.card__kicker { margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.6rem; font-family: var(--ui); font-size: 0.78rem; color: var(--ink-faint); }
.card__title { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--gold-soft); }
.card__text { font-size: 0.98rem; color: var(--ink-muted); margin: 0 0 0.6rem; }
.card__more { font-family: var(--ui); font-size: 0.82rem; margin: 0; }
.card__more a { text-decoration: none; color: var(--gold); }
.card__more a:hover { color: var(--gold-soft); }

/* ---- People wall -------------------------------------------------------- */
.people { max-width: 900px; margin: 0 auto 5rem; }
.people__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.people__item { border-left: 2px solid rgba(230,195,106,0.5); padding: 0.2rem 0 0.2rem 1rem; }
.people__who { display: block; font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem; }
.people__line { font-family: var(--display); font-weight: 300; font-size: 1.15rem; line-height: 1.4; }
.people__cta { text-align: center; margin-top: 2rem; }

/* ---- Single fact -------------------------------------------------------- */
.fact, .page { max-width: 720px; margin: 1.5rem auto 5rem; }
.fact__back { font-family: var(--ui); font-size: 0.85rem; }
.fact__back a { color: var(--ink-muted); text-decoration: none; }
.fact__header { margin: 1rem 0 1.6rem; }
.fact__kicker { display: flex; align-items: center; gap: 0.7rem; font-family: var(--ui); font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 0.8rem; }
.fact__title, .page__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
/* Translated sites only: "translated from English", with a link to the original page. */
.fact__translated { margin: 0.7rem 0 0; font-family: var(--ui); font-size: 0.85rem; color: var(--ink-faint); }
.fact__translated a { color: var(--ink-muted); }
.page__title { margin-bottom: 1.6rem; }
.fact__figure { margin: 0 0 1.8rem; }
.fact__figure img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
/* Comics and diagrams: show the whole image, never crop it. */
.fact__figure--whole img { width: auto; max-width: 100%; max-height: none; object-fit: contain; margin-inline: auto; }
.fact__figure--whole figcaption { text-align: center; }
.fact__figure--after { margin: 2rem 0 0; }
.fact__figure figcaption { font-family: var(--ui); font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.5rem; }
.fact__sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--ui); font-size: 0.88rem; }
.fact__sources h2 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.6rem; }
.fact__sources ul { margin: 0; padding-left: 1.1rem; }
.fact__sources li { margin-bottom: 0.3rem; }
.fact__footer { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; }
/* On a phone "Another eleven" gets a whole row: it is the thumb's next move. */
@media (max-width: 640px) { .fact__footer [data-another] { flex: 1 0 100%; text-align: center; } }

.prose { font-size: 1.1rem; line-height: 1.7; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.prose blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 2px solid var(--gold); font-family: var(--display); font-weight: 300; font-size: 1.25rem; line-height: 1.45; color: var(--gold-soft); }
.prose blockquote p { margin: 0 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
/* A worked example with coloured digits (the divisibility test in the maths fact). */
.prose .digits { font-family: var(--display); font-size: 2rem; font-weight: 500; letter-spacing: 0.12em; margin: 0.4rem 0 1.1rem; }
.prose .digits__a { color: var(--gold); font-weight: 500; }
.prose .digits__b { color: var(--violet); font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: rgba(255,255,255,0.06); padding: 0.05em 0.35em; border-radius: 4px; }

/* ---- Forms -------------------------------------------------------------- */
.submit { max-width: 1120px; margin: 1.5rem auto 5rem; }
.submit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.form { background: rgba(21, 23, 58, 0.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1rem; }
.form h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0 0 0.3rem; }
.form__lead { color: var(--ink-muted); font-size: 0.95rem; margin: 0 0 1.2rem; }
.field { display: block; margin-bottom: 1rem; }
.field__label { display: block; font-family: var(--ui); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
/* Set as an attribute and drawn here, so the thanks page's copy of the label stays clean. */
.field__label[data-optional]::after { content: " (" attr(data-optional) ")"; font-weight: 300; color: var(--ink-faint); }
.field__hint { display: block; font-family: var(--ui); font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: rgba(14, 15, 34, 0.7);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.6rem 0.75rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field textarea { resize: vertical; }
.field input[type="date"] { color-scheme: dark; max-width: 14rem; }

/* The life path calculator on the master-number fact. */
.lifepath { margin: 1.6rem 0; }
.lifepath .field { margin-bottom: 0.8rem; }
.lifepath__sum { font-family: var(--ui); font-size: 0.95rem; color: var(--ink-muted); margin: 0 0 0.3rem; overflow-wrap: anywhere; }
.lifepath__result { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin: 0 0 0.8rem; }
.lifepath__result:empty, .lifepath__sum:empty { display: none; }
.lifepath__result.is-eleven { color: var(--gold); }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--ui); font-size: 0.9rem; color: var(--ink-muted); }
.field--check input { margin-top: 0.3rem; accent-color: var(--gold); }
/* Tabs on the submit page (added by main.js). */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; width: fit-content; max-width: 100%; margin: 1.5rem auto 0; padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(21, 23, 58, 0.6); }
.tabs[hidden] { display: none; }
.tabs__tab { font-family: var(--ui); font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); background: transparent; border: 0; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--bg); background: var(--gold); }
.submit__grid.has-tabs { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
.submit__grid.has-tabs .form h2 { display: none; }
.form[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { max-width: 640px; margin: 3rem auto 6rem; text-align: center; }
.form__error { font-family: var(--ui); font-size: 0.9rem; color: #f2a4a4; border: 1px solid rgba(242, 164, 164, 0.4); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0 0 1rem; }
.form__error[hidden] { display: none; }

/* On the thanks page: exactly what was sent, as a receipt. */
.sent { text-align: left; background: rgba(21, 23, 58, 0.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.sent[hidden] { display: none; }
.sent__title { font-family: var(--ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.sent__list { margin: 0; }
.sent__list dt { font-family: var(--ui); font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.sent__list dd { margin: 0.2rem 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sent__list dd:last-child { margin-bottom: 0; }
.thanks h1 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; margin: 0.5rem 0; }

/* 404: the thanks layout, with two buttons side by side. */
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.5rem; }

/* The knob that goes to eleven, on the Spinal Tap fact (drawn by main.js). */
.knob { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin: 2rem 0; padding: 1.5rem 1rem; background: rgba(21, 23, 58, 0.6); border: 1px solid var(--line); border-radius: var(--radius); }
.knob[hidden] { display: none; }
/* Quick clicks count as a double click, which would select the text around,
   and quick taps as a double tap, which zooms the page on iOS. Pinch zoom still works. */
.knob { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.knob__dial { width: 200px; height: 200px; cursor: pointer; outline: none; border-radius: 50%; overflow: visible; }
.knob__dial:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.knob__cap { transform-origin: 100px 100px; transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.knob__dial text { font-family: var(--ui); font-weight: 500; font-size: 13px; fill: var(--ink-faint); }
.knob__dial text.is-on { fill: var(--gold); }
/* Eleven stands out a little from the start, and lights up when the knob gets there. */
.knob__dial text.is-top { font-weight: 700; font-size: 15px; fill: var(--gold); opacity: 0.75; }
.knob__dial text.is-top.is-on { font-size: 19px; fill: var(--gold-soft); opacity: 1; filter: url(#knob-glow); }
.knob.is-eleven .knob__pointer { fill: var(--gold-soft); filter: url(#knob-glow); }
/* Turned past 11: the 11 flares up and the pointer knocks against the stop. */
.knob.is-maxed .knob__eleven { animation: knob-flare 0.6s ease-out; }
.knob.is-maxed .knob__eleven text { animation: knob-flare-light 0.6s ease-out; }
.knob.is-maxed .knob__cap { animation: knob-stop 0.3s ease-out; }
/* The 11's group has its origin at the 11's middle (main.js), so it scales in place. */
@keyframes knob-flare { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.5); } }
@keyframes knob-flare-light { 30% { fill: #fff8e0; } }
@keyframes knob-stop {
  0%, 100% { transform: rotate(135deg); }
  40% { transform: rotate(141deg); }
}
@media (prefers-reduced-motion: reduce) {
  .knob.is-maxed .knob__eleven, .knob.is-maxed .knob__cap { animation: none; }
}
/* Line height fixed, so the box keeps its height when the line is empty. */
.knob__line { line-height: 1.4; min-height: 1.4em; margin: 0; font-family: var(--display); font-size: 1.15rem; color: var(--ink-muted); text-align: center; }
.knob__line.is-eleven { color: var(--gold); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .knob__cap { transition: none; } }

/* ---- Footer / clock ----------------------------------------------------- */
.site-footer { max-width: 1120px; margin: 0 auto; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); text-align: center; font-family: var(--ui); font-size: 0.85rem; color: var(--ink-faint); }
.site-footer a { color: var(--ink-muted); }
.site-footer__tagline { margin: 1rem 0 0; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1rem; color: var(--gold-soft); }
.site-footer__made { margin: 0.8rem 0 0.3rem; }
.site-footer__translated { margin: 0.8rem 0 0; }
.site-footer__small { margin: 0; }
.clock { display: inline-flex; gap: 0.5rem; align-items: baseline; font-family: var(--ui); }
.clock[hidden] { display: none; }
.clock__label { color: var(--ink-faint); }
.clock__time { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--gold); letter-spacing: 0.01em; }
/* Monospace so the countdown does not change width every second. */
.clock__value { font-family: var(--mono); font-weight: 300; font-variant-numeric: tabular-nums; color: var(--gold); font-size: 1rem; letter-spacing: 0.02em; }
.clock.is-now .clock__value { color: var(--gold-soft); text-shadow: 0 0 18px rgba(230,195,106,0.6); }
/* The 11:11 minute (main.js sets body.is-eleven; preview with ?now=1111): the big
   "11" and the one in the wordmark breathe with a slow glow. Still, but lit,
   under reduced motion. */
body.is-eleven .hero__digits { animation: glow-big 3.5s ease-in-out infinite; }
body.is-eleven .wordmark__digits { animation: glow-small 3.5s ease-in-out infinite; }
@keyframes glow-big {
  0%, 100% { color: var(--gold); text-shadow: 0 0 40px rgba(230,195,106,0.35), 0 0 120px rgba(230,195,106,0.18); }
  50% { color: var(--gold-soft); text-shadow: 0 0 30px rgba(243,220,154,0.9), 0 0 90px rgba(230,195,106,0.65), 0 0 200px rgba(230,195,106,0.4); }
}
@keyframes glow-small {
  0%, 100% { color: var(--gold); text-shadow: 0 0 6px rgba(230,195,106,0.3); }
  50% { color: var(--gold-soft); text-shadow: 0 0 10px rgba(243,220,154,0.9), 0 0 24px rgba(230,195,106,0.6); }
}
@media (prefers-reduced-motion: reduce) {
  body.is-eleven .hero__digits { animation: none; color: var(--gold-soft); text-shadow: 0 0 30px rgba(243,220,154,0.8), 0 0 120px rgba(230,195,106,0.45); }
  body.is-eleven .wordmark__digits { animation: none; color: var(--gold-soft); text-shadow: 0 0 10px rgba(243,220,154,0.8); }
}

/* ---- Time colon ---------------------------------------------------------
   A colon is drawn to sit beside lower-case letters, so between digits it
   hangs low. The build wraps every "11:11"-style colon in .tc; main.js then
   measures digits and colon in the font actually in use and sets the exact
   lift. The value here is only the fallback without JavaScript. */
.tc { position: relative; top: -0.1em; }

/* ---- Utilities ---------------------------------------------------------- */
[hidden] { display: none !important; }
