/* The pages around the game: how to play, credits, changelog, privacy, terms.
 *
 * One stylesheet so they read as one site rather than five separate documents, and so the
 * identity is the game's own - Lilita One on wooden signs, Quicksand for reading, the farm's
 * cream and lime. The game itself does not use this file; it draws its own UI in the engine.
 *
 * Deliberately dark-only. The game is a dark page with a bright farm in it and these sit around
 * it; a light variant would make following a link out of the game feel like leaving the site. */

:root {
  --ground: #101a0d;
  --ground-2: #16220f;
  --panel: #1d2a14;
  --edge: #35461f;
  --ink: #fff3dd;
  --ink-soft: #e8d5ae;
  --ink-faint: #a68f70;
  --wood: #8a5a2b;
  --wood-dark: #6e4520;
  --wood-edge: #4a2d12;
  --wood-shadow: #2d1a08;
  --lime: #b0ff45;
  --lime-dark: #4a7a12;
  --gold: #ffd25e;
  --rust: #ff8a3d;
  --rule: #2b3a1a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Quicksand", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.65;
  font-size: 17px;
}

/* ---------------------------------------------------------------- shell */

.bar {
  border-bottom: 1.5px solid var(--rule);
  background: var(--ground-2);
}
.bar nav {
  max-width: 860px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.bar .mark {
  font-family: "Lilita One", "Arial Black", sans-serif;
  font-size: 22px; letter-spacing: .5px;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.bar .mark em { font-style: normal; color: var(--lime); }
.bar a { color: var(--ink-faint); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.bar a:hover, .bar a:focus-visible { color: var(--ink); }
.bar a[aria-current="page"] { color: var(--lime); }
.bar .play {
  margin-left: auto;
  background: var(--lime-dark); color: var(--lime);
  border: 2px solid var(--lime-dark); border-radius: 10px;
  box-shadow: 0 3px 0 #223d08;
  padding: 7px 18px 8px; font-size: 15px;
  font-family: "Lilita One", sans-serif; font-weight: 400; letter-spacing: .4px;
}
.bar .play:hover, .bar .play:focus-visible { color: #fff; }

main { max-width: 760px; margin: 0 auto; padding-block: 40px 88px; padding-left: 20px; padding-right: 20px; }

/* ---------------------------------------------------------------- type */

h1 {
  font-family: "Lilita One", "Arial Black", sans-serif; font-weight: 400;
  font-size: clamp(32px, 7vw, 46px); line-height: 1.08; margin: 0 0 6px;
  letter-spacing: .4px; text-wrap: balance;
}
h2 {
  font-family: "Lilita One", sans-serif; font-weight: 400;
  font-size: 24px; letter-spacing: .3px; color: var(--lime);
  margin: 42px 0 10px; text-wrap: balance;
}
h3 {
  font-family: "Lilita One", sans-serif; font-weight: 400;
  font-size: 18px; letter-spacing: .3px; margin: 26px 0 6px;
}
.standfirst { color: var(--ink-soft); font-size: 19px; margin: 0 0 8px; max-width: 62ch; }
.dateline {
  color: var(--ink-faint); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 26px;
}
p, li { max-width: 68ch; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
b, strong { color: var(--ink); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: #0a1208; border: 1px solid var(--rule); padding: 1px 6px; border-radius: 5px;
}

ul, ol { padding-left: 22px; }
li { margin: 7px 0; }

/* ---------------------------------------------------------------- blocks */

.note {
  background: var(--panel); border: 1.5px solid var(--edge);
  border-radius: 10px; padding: 14px 18px; margin: 22px 0;
  color: var(--ink-soft);
}
.note.warn { border-color: var(--rust); }
.note.warn b { color: var(--rust); }
.note p { margin: 8px 0 0; }
.note p:first-child { margin-top: 0; }

/* A row of controls, or a pair of terms and their meaning. */
.pairs { display: grid; gap: 2px; margin: 16px 0 6px; }
.pairs .row {
  display: grid; grid-template-columns: 170px 1fr; gap: 14px;
  padding: 9px 12px; border-radius: 8px; align-items: baseline;
}
.pairs .row:nth-child(odd) { background: rgba(255, 243, 221, .04); }
.pairs .key {
  font-family: "Lilita One", sans-serif; font-weight: 400;
  color: var(--gold); letter-spacing: .3px;
}
.pairs .val { color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 560px) {
  .pairs .row { grid-template-columns: 1fr; gap: 2px; }
}

/* Changelog entries: a date rail down the left. */
.log { margin: 20px 0 0; }
.log .entry { border-left: 2px solid var(--rule); padding: 0 0 22px 20px; position: relative; }
.log .entry::before {
  content: ""; position: absolute; left: -6px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime-dark); border: 2px solid var(--ground);
}
.log .entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.log .when {
  color: var(--ink-faint); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.log h3 { margin: 2px 0 4px; }
.log p { margin: 0; color: var(--ink-soft); }

/* Credit rows. */
.credits { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.credits li {
  background: var(--panel); border: 1.5px solid var(--edge); border-radius: 10px;
  padding: 13px 17px; margin: 0; max-width: none;
}
.credits .what { font-family: "Lilita One", sans-serif; font-weight: 400; letter-spacing: .3px; }
.credits .by { color: var(--ink-soft); }
.credits .lic { color: var(--ink-faint); font-size: 14px; display: block; margin-top: 3px; }

footer.site {
  border-top: 1.5px solid var(--rule); margin-top: 56px; padding-top: 20px;
  color: var(--ink-faint); font-size: 14.5px;
  display: flex; gap: 8px 18px; flex-wrap: wrap;
}
footer.site a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site .spacer { margin-left: auto; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
