/* The pages around the game (how to play, puzzle guides, news, about, privacy, imprint): one look, one header and one
   footer (ticket 109, docs/wiki/Marketing-Search.md#what-is-on-the-site). The header and footer markup is the same on
   every page; test/site-pages.test.ts checks that. */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('./assets/ui/LuckiestGuy.ttf') format('truetype');
  font-display: swap;
}
:root {
  --text: rgb(255 255 255 / 0.85);
  --muted: rgb(255 255 255 / 0.6);
  --line: rgb(255 255 255 / 0.12);
  --link: #ffd34d;
  --green: #74c414;
  --panel: #1f1f1f;
  --font-fun: 'Luckiest Guy', 'Arial Rounded MT Bold', system-ui, sans-serif;
  color-scheme: dark;
}
body { margin: 0; background: #151515; color: var(--text); font: 1rem / 1.6 system-ui, sans-serif; }
main { max-width: 42rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { color: #fff; font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { color: #fff; font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { color: #fff; font-size: 1rem; margin: 1.25rem 0 0.25rem; }
a { color: var(--link); }
code { font-size: 0.9em; }
img { max-width: 100%; height: auto; }
.lead { font-size: 1.1rem; }
.updated, .meta { margin-top: 0; color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
th { color: #fff; }

/* The green game button. */
.play { display: inline-block; margin: 8px 0; padding: 12px 28px; border-radius: 999px; background: var(--green); color: #fff;
  font-weight: 700; text-decoration: none; box-shadow: inset 0 -4px 0 #3e6a01; }
.play:hover { background: #82d61c; }

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #101010; }
.site-header-inner { max-width: 60rem; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 20px; }
.site-name { display: flex; align-items: center; gap: 8px; color: #8bff2a; font: 1.35rem / 1 var(--font-fun); letter-spacing: 0.02em;
  text-decoration: none; padding-top: 3px; }
.site-name img { width: 34px; height: auto; margin-top: -3px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--line); }
.site-nav a[aria-current='page'] { color: #fff; border-bottom-color: var(--green); }
@media (max-width: 560px) {
  .site-nav { margin-left: 0; width: 100%; justify-content: space-between; }
}
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer-inner { max-width: 42rem; margin: 0 auto; padding: 20px 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0; }

/* ---------- Puzzle guides ---------- */
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.guide-list li { background: var(--panel); border-radius: 12px; overflow: hidden; }
.guide-list a.card { display: block; color: inherit; text-decoration: none; }
.guide-list .card img { display: block; width: 100%; }
.guide-list .card div { padding: 10px 14px 14px; }
.guide-list .card strong { color: #fff; display: block; }
.guide-list .card span { color: var(--muted); font-size: 0.9rem; }

.puzzle { margin: 2.5rem 0; }
.facts { color: var(--muted); }
/* One step of a solution: the board before the move, then what happens. */
.steps { list-style: none; padding: 0; display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.steps > li { margin: 0 0 16px; }
.steps p { margin: 8px 0 0; }
.board { display: block; width: 100%; max-width: 30rem; border-radius: 10px; }
figure { margin: 16px 0; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.trick { background: var(--panel); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; padding: 10px 16px; }
.trick p { margin: 0.4rem 0; }

/* ---------- News ---------- */
.news-entry { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 24px; }
.news-entry h2 { margin-top: 0.25rem; }
.news-entry time { color: var(--muted); font-size: 0.9rem; }
