/* Shared by every page under web/. Static hosting, no build step, no third-party request: a privacy
   policy that loads a font from someone else's server is a bad look. So the serif is the system's own
   (New York on Apple devices, Georgia elsewhere).

   The look is the app's notebook (DECISIONS.md, 2026-11-05): paper, ink, a red margin, ruled lines, and the heat
   of a guess as a highlighter. The colours are the app's asset catalog, light and dark. */
:root {
  --paper: #fbf9f3;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #5b6472;
  --accent: #1f4fbf;
  --rule: #c9d7ea;
  --margin: #d9534f;
  --gelado: #9cc3ff;
  --frio: #a6e3ee;
  --morno: #ffe55c;
  --quente: #ffb24d;
  --tipoisso: #ff8a94;
  --acertou: #ffd54f;
  --pitch: 2.4rem;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181d;
    --surface: #1f2229;
    --ink: #ece9e1;
    --muted: #a0a6b0;
    --accent: #8ab4ff;
    --rule: #2e3745;
    --margin: #b24c49;
    --gelado: #3e6fd0;
    --frio: #2e8fa3;
    --morno: #c9a227;
    --quente: #d97a2b;
    --tipoisso: #d9534f;
    --acertou: #d4a017;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
}
main { max-width: 42rem; margin: 0 auto; }
header { padding: 48px 0 8px; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 44px 0 8px; }
p, li { color: var(--ink); }
a { color: var(--accent); text-underline-offset: 0.15em; }
strong { font-weight: 650; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0; font-style: italic; }
.lang { margin: 24px 0 0; font-size: 0.95rem; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
ul { padding-left: 1.2rem; }
li { margin: 6px 0; }

/* A highlighter stroke behind a word, as the app marks a guess by its heat. */
mark {
  color: inherit;
  padding: 0 0.2em;
  margin: 0 -0.05em;
  border-radius: 0.25em 0.4em 0.3em 0.45em;
  background: linear-gradient(to bottom, transparent 18%, var(--hl, var(--morno)) 18%, var(--hl, var(--morno)) 88%, transparent 88%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gelado { --hl: var(--gelado); }
.frio { --hl: var(--frio); }
.morno { --hl: var(--morno); }
.quente { --hl: var(--quente); }
.tipoisso { --hl: var(--tipoisso); }
.acertou { --hl: var(--acertou); }

/* Landing page */
.hero { display: flex; align-items: center; gap: 20px; padding: 56px 0 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.hero h1 { margin: 0 0 4px; font-size: 2.4rem; }
.tagline { font-size: 1.25rem; color: var(--muted); margin: 0; font-style: italic; }

/* A piece of the game's page: ruled lines, the red margin, a guess on each line and its percentage as a note at
   the end. Each line is one pitch tall and its text rests on the rule below it. */
.page {
  position: relative;
  margin: 24px 0 16px;
  padding: calc(var(--pitch) * 0.5) 20px calc(var(--pitch) * 0.5) 64px;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--pitch) - 1px), var(--rule) calc(var(--pitch) - 1px), var(--rule) var(--pitch));
  background-position: 0 calc(var(--pitch) * 0.5);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
}
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  width: 1.5px;
  background: var(--margin);
  opacity: 0.8;
}
.page p, .page li {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  height: var(--pitch);
  margin: 0;
  padding-bottom: 0.3rem;
  line-height: 1.2;
}
.page .lead { color: var(--muted); font-style: italic; font-size: 1rem; }
.page ol { list-style: none; margin: 0; padding: 0; }
.page .word { font-size: 1.3rem; font-weight: 600; }
.page .note { color: var(--muted); font-style: italic; font-size: 1.05rem; white-space: nowrap; }
.page .coda { color: var(--muted); font-size: 1rem; }

.cta { margin: 24px 0 8px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font: 600 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-decoration: none;
}
.button:hover { filter: brightness(1.15); }
.button.disabled { background: transparent; color: var(--muted); border: 1.5px dashed var(--rule); cursor: default; }
.button.disabled:hover { filter: none; }
.soon { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; font-style: italic; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 28px 0 8px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rule); display: block; background: var(--surface); }
.shots figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 10px; font-style: italic; }
.features { list-style: none; padding: 0; }
.features li { padding-left: 1.5rem; position: relative; }
.features li::before { content: "≈"; position: absolute; left: 0; color: var(--margin); font-weight: 700; }

/* Press kit */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 16px 0; }
.downloads figure { margin: 0; }
.downloads img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); }
.downloads figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.facts { border-collapse: collapse; width: 100%; font-size: 1rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.facts th { color: var(--muted); font-weight: 500; white-space: nowrap; }
blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--margin); }
