/* Penguin Pebbling — Helen Edgar, Autistic Realms & Ryan Boren, Stimpunks (2026).
 *
 * The palette and the shapes are Helen's, lifted from the Custom HTML block on
 * autisticrealms.com. The typeface and the type scale are not: the page is set
 * in Atkinson Hyperlegible Next at sizes chosen for this audience rather than
 * inherited from a widget embedded in a blog post. See fonts/README.md. */

/* ── Atkinson Hyperlegible Next ────────────────────────────────────────────────
 * Self-hosted, and not incidentally: `_headers` sends default-src 'none' with
 * font-src 'self', so a <link> to Google Fonts would be blocked by the site's
 * own policy — silently, falling back to the system font while looking fine in
 * a local test. Fetching a font at runtime also tells a third party who is
 * reading a page about Autistic identity.
 *
 * One file per style carries the whole 200–800 weight axis, so there is no
 * separate file per weight to forget. The italic is really drawn, not sheared,
 * which is what makes `font-synthesis: none` safe below. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-roman-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  /* ── Sage, and why it is sage ───────────────────────────────────────────────
   * Our other sites are cream: queering.earth on warm vellum, cavendish.app on
   * Solarized light. This one is Helen's, and sage is her colour — so the ground
   * is sage and the accents are the five pigments she already painted the cards
   * with, sampled straight out of cards/print/*-locution.png rather than picked
   * to match:
   *
   *   Infodumping       #bba4b8   dusty mauve
   *   Parallel Play     #ddbbba   dusty rose
   *   Support Swapping  #c3beaf   taupe
   *   Penguin Pebbling  #e8e1ce   warm sand
   *   Deep Pressure     #aac5c0   sage        <- the ground is built on this hue
   *
   * Every one of those sits between 14% and 36% saturation. The deck was drawn
   * low-stimulation already; the site follows it rather than inventing a mood.
   *
   * LOW STIMULATION IS NOT LOW CONTRAST. Surfaces stay close together — paper,
   * panel and sunk are within a few percent lightness, there is no pure white
   * and no pure black anywhere — while TEXT contrast stays high: the lowest
   * text pair on the page is 4.98:1 in light and 5.27:1 in dark, against the
   * 4.5:1 AA needs. Muting the text as well would be the easy mistake and would
   * hurt exactly the readers this is for. tools/check-contrast.py checks both
   * themes; it is the reason the numbers above can be stated. */

  --paper: #f4f8f7;
  --paper-warm: #eaf1ef;
  --paper-sunk: #dde9e7;
  --line: #c9d9d6;
  --line-strong: #8faea8;

  --ink-strong: #18211f;
  --ink: #25312f;
  --ink-soft: #425753;
  --ink-faint: #4d6661;
  --accent: #296563;
  --focus: #255654;

  --btn-face: #d0e1de;
  --btn-face-hover: #bed5d1;
  --shadow: rgba(24, 33, 31, 0.16);

  /* The card art is cream on a sage page, which is the pairing Helen drew into
   * the Deep Pressure card itself. In dark mode the card sits on a lifted
   * surface rather than against the near-black page, so its edges are not a
   * glare line — the artwork is never dimmed or filtered. */
  --card-mat: #eaf1ef;

  --loc-id-bg: #f1ecf0; --loc-id-border: #d3c5d1; --loc-id-name: #3a2c38;
  --loc-pp-bg: #f3eae9; --loc-pp-border: #dabfbe; --loc-pp-name: #422524;
  --loc-ss-bg: #f1f0ec; --loc-ss-border: #d3d0c5; --loc-ss-name: #3a372c;
  --loc-pb-bg: #f3f1e9; --loc-pb-border: #dad3be; --loc-pb-name: #423a24;
  --loc-dp-bg: #ebf2f0; --loc-dp-border: #c2d6d2; --loc-dp-name: #293d39;

  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale, in rem so it follows the reader's own browser font-size setting.
   * px would ignore that preference — zoom still works, but the person who has
   * set a larger default everywhere would not get one here, which on this site
   * of all sites is the wrong default. */
  --text-xs:   0.875rem;
  --text-sm:   0.9375rem;
  --text-base: 1.125rem;
  --text-md:   1.1875rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-label: 0.8125rem;
}

/* Dark mode. Same hue, same discipline: no pure black, text never brighter than
 * #eef2f1, and the surfaces stay close together. Follows the system by default;
 * the toggle in the bar overrides it and is remembered. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141a19;
    --paper-warm: #1d2524;
    --paper-sunk: #26312f;
    --line: #364542;
    --line-strong: #5a726e;

    --ink-strong: #eef2f1;
    --ink: #dae2e0;
    --ink-soft: #afc0bd;
    --ink-faint: #90a7a3;
    --accent: #95d0ce;
    --focus: #97d8d6;

    --btn-face: #354643;
    --btn-face-hover: #425753;
    --shadow: rgba(0, 0, 0, 0.45);
    --card-mat: #26312f;

    --loc-id-bg: #2c212a; --loc-id-border: #584155; --loc-id-name: #d8cad6;
    --loc-pp-bg: #2d201f; --loc-pp-border: #5a403f; --loc-pp-name: #dfc4c3;
    --loc-ss-bg: #2c2921; --loc-ss-border: #575242; --loc-ss-name: #d8d4cb;
    --loc-pb-bg: #2d291f; --loc-pb-border: #5a533f; --loc-pb-name: #dfd7c3;
    --loc-dp-bg: #1f2d2b; --loc-dp-border: #3f5a55; --loc-dp-name: #c8dad7;
  }
}

:root[data-theme="dark"] {
  --paper: #141a19;
  --paper-warm: #1d2524;
  --paper-sunk: #26312f;
  --line: #364542;
  --line-strong: #5a726e;

  --ink-strong: #eef2f1;
  --ink: #dae2e0;
  --ink-soft: #afc0bd;
  --ink-faint: #90a7a3;
  --accent: #95d0ce;
  --focus: #97d8d6;

  --btn-face: #354643;
  --btn-face-hover: #425753;
  --shadow: rgba(0, 0, 0, 0.45);
  --card-mat: #26312f;

  --loc-id-bg: #2c212a; --loc-id-border: #584155; --loc-id-name: #d8cad6;
  --loc-pp-bg: #2d201f; --loc-pp-border: #5a403f; --loc-pp-name: #dfc4c3;
  --loc-ss-bg: #2c2921; --loc-ss-border: #575242; --loc-ss-name: #d8d4cb;
  --loc-pb-bg: #2d291f; --loc-pb-border: #5a533f; --loc-pb-name: #dfd7c3;
  --loc-dp-bg: #1f2d2b; --loc-dp-border: #3f5a55; --loc-dp-name: #c8dad7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  /* Real weights and a real italic exist in the variable font, so never let the
   * browser fake either — a synthesized bold of an already-legible face is
   * exactly the smearing this typeface was drawn to avoid. */
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

/* Never remove a focus ring on a page whose whole subject is being able to take
 * part. Keyboard and switch users navigate this game the same as anyone. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper-warm);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap { padding: 1.5rem; max-width: 42rem; margin: 0 auto; }

/* ── Site nav ──────────────────────────────────────────────────────────────────
 * The game is the point of the site, so it sits at the top of index.html and
 * everything that explains it lives on its own page. This is the way back.
 *
 * A <details> rather than a scripted menu: it opens with the keyboard, it is
 * announced as expandable, and it works with JavaScript off — which matters
 * because the nav is how you reach the printable deck and the Easy Read guide,
 * and those are exactly what someone without a working game needs. */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
/* The menu sits left; everything else is pushed to the right edge. */
.topbar-inner > .sitenav { margin-right: auto; }

.sitenav { position: relative; }
.sitenav summary {
  cursor: pointer; list-style: none;
  font-size: var(--text-base); font-weight: 700; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 22px; background: var(--paper-warm);
  display: inline-flex; align-items: center; gap: 8px;
}
.sitenav summary::-webkit-details-marker { display: none; }
.sitenav summary::after { content: "\25BE"; color: var(--ink-soft); font-size: 0.8em; }
.sitenav[open] summary::after { content: "\25B4"; }
.sitenav summary:hover { background: var(--btn-face-hover); }

.sitenav > ul {
  list-style: none; margin: 8px 0 0; padding: 8px;
  position: absolute; z-index: 30; left: 0; min-width: 16rem;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 8px 26px var(--shadow);
}
.sitenav > ul li { margin: 2px 0; }
.sitenav > ul a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: var(--text-base);
}
.sitenav > ul a:hover { background: var(--paper-sunk); }
.sitenav a[aria-current="page"] { font-weight: 700; background: var(--paper-warm); }

.theme-toggle {
  font-family: inherit; font-size: var(--text-sm); font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper-warm); color: var(--ink);
}
.theme-toggle:hover { background: var(--paper-sunk); }
.theme-toggle .theme-icon { font-size: 1.05em; line-height: 1; }

.topbar-cta {
  font-size: var(--text-sm); font-weight: 700; white-space: nowrap;
  padding: 8px 16px; border-radius: 22px;
  border: 1px solid var(--line-strong); background: var(--btn-face);
  color: var(--ink); text-decoration: none;
}
.topbar-cta:hover { background: var(--btn-face-hover); }

/* ── "More about the game", at the foot of the game page ─────────────────────── */

.more { margin: 2.2rem 0 0; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.more a {
  display: block; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper-warm); color: var(--ink); text-decoration: none;
}
.more a:hover { background: var(--paper-sunk); }
.more a strong { display: block; font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.more a span { display: block; font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.5; }

/* ── Page furniture ────────────────────────────────────────────────────────── */

.masthead { padding: 2.5rem 0 0.5rem; }
.masthead-sub { padding: 1.75rem 0 0.5rem; }
.backlink { font-size: var(--text-sm); margin-bottom: 0.5rem; }
.backlink a { color: var(--accent); text-decoration: none; }
.backlink a:hover { text-decoration: underline; }
.backlink a::before { content: "\2190\00a0"; }
.masthead h1 {
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.masthead .byline { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; }
.masthead .standfirst {
  font-size: var(--text-base);
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1rem;
}

.prose h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-strong);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.3;
  text-wrap: balance;
}
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 1.8rem 0 0.6rem;
  line-height: 1.4;
  text-wrap: balance;
}
.prose p { font-size: var(--text-base); margin-bottom: 0.9rem; }
.prose ul { margin: 0 0 0.9rem 1.4rem; font-size: var(--text-base); }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink-strong); font-weight: 700; }

hr.rule { border: 0; height: 1px; background: var(--line); margin: 2.2rem 0; }

/* ── Game ──────────────────────────────────────────────────────────────────── */

.game-header {
  margin-top: 1.25rem;
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 1.4rem; padding: 1.25rem;
  background: var(--paper-warm); border-radius: 12px; border: 1px solid var(--line);
}
.penguin-glyph { font-size: 2.75rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
/* The game's <h2> sits inside .prose, so it would otherwise inherit the heading
 * margin meant for article headings. Stated here rather than as a style
 * attribute — the CSP is style-src 'self' and an inline style is blocked. */
/* On index.html this is the page's <h1>: the game header already carried the
 * title, the tagline and the invitation, so a masthead above it only said the
 * same things again and pushed the game down the screen. */
.game-header .game-title {
  font-size: var(--text-2xl); font-weight: 700; color: var(--ink-strong); margin: 0 0 4px;
  line-height: 1.2;
}
.game-tagline { font-size: var(--text-base); color: var(--ink-soft); font-style: italic; margin-bottom: 10px; }
.game-intro { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.65; }
.game-byline { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 10px; }
.game-byline a { color: var(--ink-faint); }

/* On index.html this sits AFTER the controls. It is collapsed reference material
 * on a page whose whole job is "press Draw", and in front of the button it was
 * pushing the only action below the fold on a phone. The full instructions have
 * their own page in the menu; this is the copy you want mid-game. */
.rules-block {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0 0 1.4rem; background: var(--paper);
}
.rules-block details summary {
  font-size: var(--text-base); font-weight: 600; cursor: pointer; color: var(--ink);
  list-style: none; display: flex; align-items: center;
}
.rules-block details summary::-webkit-details-marker { display: none; }
.rules-block details summary::after {
  content: "+"; color: var(--ink-faint); margin-left: auto; font-size: 1.4rem; font-weight: 400;
}
.rules-block details[open] summary::after { content: "\2212"; }
.rule {
  font-size: var(--text-sm); color: var(--ink-soft); margin-top: 12px; line-height: 1.65;
  padding-left: 1rem; border-left: 2px solid var(--line); margin-left: 4px;
}
.rule + .rule { margin-top: 10px; }
.rule strong { font-weight: 700; color: var(--ink); }

.section-label {
  font-size: var(--text-label); letter-spacing: 0.07em; color: var(--ink-faint);
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.fbtn {
  font-family: inherit; font-size: var(--text-sm); padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  color: var(--ink-soft); transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fbtn.on { background: var(--btn-face); border-color: var(--line-strong); color: var(--ink); font-weight: 700; }
.fbtn:hover { background: var(--paper-sunk); }

.card-area {
  border-radius: 12px; overflow: hidden; margin-bottom: 1rem;
  border: 1px solid var(--line); min-height: 128px;
  display: flex; flex-direction: column; background: var(--paper);
}
/* The cards are cream. On the light page they sit flush; in dark mode the page
 * is near-black and a full-brightness cream rectangle against it is a glare
 * line at every edge. The mat is a lifted surface between the two — the artwork
 * itself is never dimmed, filtered or recoloured, because it is the content. */
.card-image-wrap { position: relative; width: 100%; background: var(--card-mat); padding: 0; }
.card-image-wrap img { width: 100%; height: auto; display: block; }

:root[data-theme="dark"] .card-image-wrap,
:root[data-theme="dark"] .loc-card img { padding: 10px; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-image-wrap,
  :root:not([data-theme="light"]) .loc-card img { padding: 10px; border-radius: 12px; }
}

/* The prompt as selectable text, beneath the card art that letters the same
 * words. This copy is the one that scales, reflows and can be read aloud — see
 * ACCESSIBILITY in README.md — so it is set at the largest body size here. */
.card-text { padding: 1.35rem 1.5rem 0.25rem; }
.card-locution {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.05em;
  color: var(--focus); margin-bottom: 0.7rem; text-transform: uppercase;
}
.card-prompt { font-size: var(--text-md); line-height: 1.65; color: var(--ink); }
.card-sub {
  font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; font-style: italic;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px;
}
.card-footer {
  font-size: var(--text-xs); color: var(--ink-faint); font-style: italic;
  padding: 10px 1.5rem; background: var(--paper-warm);
  border-top: 1px solid var(--line); line-height: 1.5; margin-top: 1.1rem;
}
/* Kept short on purpose. This box is empty until someone presses Draw, and every
 * pixel it occupies pushes that button further from the top of the screen —
 * which was the whole complaint that split this site into pages. It grows to fit
 * the card the moment there is one. */
.card-empty {
  color: var(--ink-faint); font-size: var(--text-base); text-align: center; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.35rem; background: var(--paper);
}

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-main {
  font-family: inherit; font-size: var(--text-base); padding: 11px 22px; border-radius: 22px;
  border: 1px solid var(--line-strong); background: var(--btn-face); color: var(--ink);
  cursor: pointer; font-weight: 700;
}
.btn-main:hover { background: var(--btn-face-hover); }
.btn-skip {
  font-family: inherit; font-size: var(--text-sm); padding: 11px 18px; border-radius: 22px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.btn-skip:hover { background: var(--paper-sunk); }
.pebble-row {
  font-size: var(--text-sm); color: var(--ink-soft); margin-left: auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
#pebbles-display { font-size: var(--text-base); }
.btn-pass {
  font-family: inherit; font-size: var(--text-sm); padding: 7px 13px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.btn-pass:hover { background: var(--paper-sunk); }
.btn-take {
  font-family: inherit; font-size: var(--text-sm); padding: 7px 13px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: var(--paper-warm);
  color: var(--focus); cursor: pointer; font-weight: 700;
}
.btn-take:hover { background: var(--btn-face-hover); }
.pebble-bank {
  font-size: var(--text-xs); color: var(--ink-faint); display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; width: 100%;
}

.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 1.5rem;
}
.loc-card { border-radius: 12px; border: 1px solid; padding: 14px 16px; }
.loc-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; display: block; background: var(--card-mat); }
.loc-name { font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; }
.loc-desc { font-size: var(--text-sm); line-height: 1.55; }
.loc-id { background: var(--loc-id-bg); border-color: var(--loc-id-border); }
.loc-id .loc-name { color: var(--loc-id-name); } .loc-id .loc-desc { color: var(--ink-soft); }
.loc-pp { background: var(--loc-pp-bg); border-color: var(--loc-pp-border); }
.loc-pp .loc-name { color: var(--loc-pp-name); } .loc-pp .loc-desc { color: var(--ink-soft); }
.loc-ss { background: var(--loc-ss-bg); border-color: var(--loc-ss-border); }
.loc-ss .loc-name { color: var(--loc-ss-name); } .loc-ss .loc-desc { color: var(--ink-soft); }
.loc-pb { background: var(--loc-pb-bg); border-color: var(--loc-pb-border); }
.loc-pb .loc-name { color: var(--loc-pb-name); } .loc-pb .loc-desc { color: var(--ink-soft); }
.loc-dp { background: var(--loc-dp-bg); border-color: var(--loc-dp-border); }
.loc-dp .loc-name { color: var(--loc-dp-name); } .loc-dp .loc-desc { color: var(--ink-soft); }

.divider { height: 1px; background: var(--line); margin: 1.4rem 0; }

.about-block {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.35rem; background: var(--paper);
}
.about-block p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }
.about-block a { color: var(--accent); }
.about-title {
  font-size: var(--text-label); font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}

/* ── Changelog ─────────────────────────────────────────────────────────────── */

/* Dates are the spine of this page, so they get to look like headings without
 * shouting: the entry heading is the date and nothing else. */
.changelog h2 {
  font-size: var(--text-lg);
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 2.2rem;
}
.changelog h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6rem; }
.changelog h2 time { font-variant-numeric: tabular-nums; }
.changelog h3 {
  font-size: var(--text-label); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-faint); margin: 1.4rem 0 0.5rem;
}
.changelog ul { margin-left: 1.2rem; }
.changelog li { margin-bottom: 0.7rem; }

/* ── Downloads ─────────────────────────────────────────────────────────────── */

.download {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.35rem; margin-bottom: 1rem; background: var(--paper-warm);
}
.download h3 { margin: 0 0 0.35rem; font-size: var(--text-lg); color: var(--ink-strong); }
.download p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 0.8rem; }
.download a.btn-download {
  display: inline-block; font-size: var(--text-base); font-weight: 700;
  padding: 10px 20px; border-radius: 22px;
  border: 1px solid var(--line-strong); background: var(--btn-face);
  color: var(--ink); text-decoration: none;
}
.download a.btn-download:hover { background: var(--btn-face-hover); }
.download .meta { font-size: var(--text-xs); color: var(--ink-faint); margin: 0.6rem 0 0; }

.support {
  border: 1px solid var(--loc-pb-border); border-radius: 12px;
  padding: 1.35rem; margin: 1.5rem 0; background: var(--loc-pb-bg);
}
.support h3 { margin: 0 0 0.55rem; font-size: var(--text-lg); color: var(--loc-pb-name); }
.support p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 0.8rem; }
.support a { color: var(--accent); }

.sitefoot {
  border-top: 1px solid var(--line); margin-top: 2.5rem;
  font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7;
}
.sitefoot .wrap { padding-top: 1.6rem; padding-bottom: 3rem; }
.sitefoot a { color: var(--accent); }
.sitefoot p + p { margin-top: 0.7rem; }

.refs { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }
.refs p { margin-bottom: 0.7rem; padding-left: 1.5rem; text-indent: -1.5rem; }
.refs a { color: var(--accent); word-break: break-word; }

@media (max-width: 480px) {
  .wrap { padding: 1rem; }
  .masthead { padding-top: 1.75rem; }
  .masthead h1 { font-size: 1.75rem; }
  .pebble-row { margin-left: 0; justify-content: flex-start; width: 100%; }
  .pebble-bank { justify-content: flex-start; }
  .card-text { padding: 1.15rem 1.15rem 0.25rem; }
  .topbar-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sitenav > ul { min-width: min(18rem, calc(100vw - 2rem)); }
  .theme-toggle .theme-text { position: absolute; left: -9999px; }
  .theme-toggle { padding: 8px 12px; }

  /* On a phone the game header was filling the whole viewport on its own, which
   * put "Draw a card" a screen and a half down — the same complaint that split
   * this site into pages, just at a narrower width. The title stays the largest
   * thing on the page; the supporting lines give back their leading. */
  .game-header { gap: 12px; padding: 1rem; margin-top: 0.9rem; }
  .penguin-glyph { font-size: 2rem; }
  .game-header .game-title { font-size: 1.6rem; }
  .game-tagline { font-size: var(--text-sm); line-height: 1.45; margin-bottom: 8px; }
  .game-intro { line-height: 1.55; }
  .game-byline { margin-top: 8px; line-height: 1.5; }
  .rules-block { padding: 0.85rem 1rem; margin-bottom: 1rem; }
  .game-header { margin-bottom: 1rem; }
  .card-area { min-height: 96px; }
  .card-empty { padding: 1rem; }
  .controls { gap: 8px; margin-bottom: 1.2rem; }
  .filter-row { gap: 6px; }
  .fbtn { padding: 6px 12px; }
  .card-footer { padding-left: 1.15rem; padding-right: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .filter-row, .controls, .skip-link, .rules-block summary::after { display: none; }
  body { background: #fff; }
}
