/* Burnt & Toast: "The Toast Room", Journal pages (index, article, the admin's draft preview).
   Loads after chrome.css and site.css. Rendered by functions/blog/*.ts.

   ============================================================================================
   THE ARTICLE COMPONENT VOCABULARY. An article body is a fragment rendered inside .prose, the
   ~65 character reading column. Write plain h2, h3, p, ul, ol, a, b, i, code and pre and they
   get house style. For anything more, use these classes and nothing else needs styling:

     figure + figcaption      a picture with a caption. <figure class="wide"> lets it break out
                              a little on wide screens. .a-fig is the same thing by another name.
     .shot                    a framed screenshot: <figure class="shot"><img><figcaption>
     .art-panel               a picture on a card mat: <figure class="art-panel"><div class="frame">
                              <img></div><figcaption>
     .reel / .clip            a figure holding a self-hosted <video>
     .pull                    a pull quote: <blockquote class="pull"><p>...</p></blockquote>.
                              A <span> inside is highlighted.
     .tip                     "good to know", a buttered luggage tag:
                              <aside class="tip"><p class="tip-label">good to know</p><p>...</p></aside>
     .callout                 a short boxed aside, no label.
     .fig + .figlbl           a boxed exhibit with a small handwritten label on top.
     .cards > .card           two or three small cards: .n (a label), h4, p.
     .steps > li              numbered steps.
     .chips > .chip           small pills.
     .lockup                  a game's name plate: .tile (an icon), .nm (name), .tg (tagline).
     .buy / .cta              a row with a .btn (or a bare <a> in .buy) and a .price note.
     .endcard                 the closing card about a game: .n, h3, p, .chips, .cta.
     .src                     a source line under a paragraph.
     .rule                    a dashed divider.
     .signed                  a handwritten sign-off: <p class="signed">Leigh</p>.

   The template supplies everything around the body: crumbs, kicker, headline, standfirst,
   byline, cover, the game card (from products.json, by the post's game), share, older and
   newer, "Read this next" and the newsletter band.

   An article's own CSS (the head_css column) is for genuine one-offs only: a chart, an
   interactive, a special figure. Never fonts, never the page colours. The admin warns if it
   sets either.

   The --accent, --surface-card, --text-strong ... tokens below are the OLD theme's names
   (public/styles.css), mapped onto the Toast Room palette so article CSS written against them
   keeps working. New article CSS can use either set.
   ============================================================================================ */

.j-page, .a {
  --accent: var(--burnt);
  --accent-2: var(--marmalade);
  --accent-line: rgba(181, 71, 27, .4);
  --accent-tint: rgba(244, 201, 93, .28);
  --char: var(--crust);
  --text-on-accent: #FFF8EE;
  --text-strong: var(--ink);
  --text-body: var(--ink-soft);
  --text-muted: var(--muted);
  --link: var(--crust);
  --link-hover: var(--burnt);
  --bt-bg: var(--paper);
  --bt-toast: var(--marmalade);
  --bt-hairline: rgba(122, 62, 29, .3);
  --surface-card: var(--card);
  --surface-elev: var(--paper-2);
  --border-default: var(--ink);
  --border-section: rgba(122, 62, 29, .3);
  --bt-dartistry-cyan: #00D4C8;
  --bt-dartistry-gold: #d4b060;
  --card-gap: 14px;
  --lift-hover: translateY(-2px);
  --shadow-ember: 0 5px 0 var(--ink);
  --fs-prodname: 20px;
  --radius-sm: 6px;
  --radius-card: 14px;
  --radius-lg: 12px;
  --radius-btn: 999px;
  --radius-pill: 999px;
  --fs-wordmark: 18px;
  --fs-brandsub: 12px;
  --fs-kicker: 12px;
  --fs-eyebrow: 11px;
  --fs-h3: 20px;
  --fs-card-body: 15.5px;
  --fs-chip: 13px;
  --lh-card: 1.55;
  --ls-hero: -0.04em;
  --ls-h2: -0.03em;
  --ls-h3: -0.02em;
  --ls-kicker: 0.12em;
  --ls-eyebrow: 0.12em;
  --ls-brandsub: 0.14em;
  --ls-btn: 0.02em;
  --dur-fast: 0.18s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Topic labels: one colour each, used on pills, filter buttons and cards */
.topic {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 8px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card);
  font-size: .8125rem; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.topic::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--t, var(--butter)); flex: none; }
a.topic { min-height: 44px; padding: 4px 14px 4px 12px; font-size: .875rem; }
a.topic:hover { background: #FFF6E2; }
.t-making { --t: var(--marmalade); }
.t-deep { --t: var(--crust); }
.t-well { --t: var(--hedge); }
.t-notes { --t: var(--butter); }

/* ============ Journal index ============ */

/* Masthead, with a toaster that pops a slice once */
.j-mast { padding-block: clamp(20px, 4vw, 48px) clamp(28px, 4vw, 56px); }
.j-mast-grid { display: grid; gap: 18px; align-items: end; }
.j-kicker { color: var(--burnt); font-size: 1.35rem; transform: rotate(-2deg); display: inline-block; }
.j-mast h1 { font-size: clamp(2.6rem, 10.5vw, 5.75rem); line-height: .94; letter-spacing: -0.045em; max-width: 12ch; margin-top: 4px; }
.j-mast .support, .j-mast .standfirst { margin-top: 14px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; max-width: 36rem; }
/* An older saved masthead block (blocks.blog_header) may still use .jhead and .kicker. */
.j-mast .jhead { padding: 0; margin: 0; max-width: none; }
.j-mast .kicker { font-family: var(--hand); color: var(--burnt); font-size: 1.35rem; transform: rotate(-2deg); display: inline-block; letter-spacing: 0; text-transform: none; font-weight: 400; }
.j-mast-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }

.toaster { display: none; position: relative; width: 300px; aspect-ratio: 300 / 250; justify-self: end; margin-right: 20px; }
.toaster > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.toaster .pop { animation: pop 1.1s var(--spring) .35s backwards; transform-origin: 50% 100%; }
.toaster .steam path { animation: steam 2.6s ease-in-out infinite; fill: none; stroke: rgba(122, 62, 29, .45); stroke-width: 3; stroke-linecap: round; }
.toaster .steam path:nth-child(2) { animation-delay: .9s; }
.toaster .steam path:nth-child(3) { animation-delay: 1.7s; }
.toaster .note { position: absolute; left: -64px; top: 6px; color: var(--burnt); font-size: 1.2rem; transform: rotate(-6deg); display: flex; align-items: flex-end; gap: 2px; }
.toaster .note svg { position: static; width: 36px; height: 34px; margin-bottom: -18px; transform: scaleX(-1) rotate(30deg); }
@keyframes pop { 0% { transform: translateY(46%); } 60% { transform: translateY(-6%); } 100% { transform: none; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* Featured: the newest post, pinned up on the wall */
.j-feature { padding-bottom: clamp(48px, 7vw, 88px); }
.feature { display: grid; gap: 26px; }
.feature .stage { position: relative; display: grid; justify-items: start; gap: 16px; min-width: 0; }
.feature-text { min-width: 0; max-width: 40rem; }
.fresh { color: var(--burnt); font-size: 1.35rem; transform: rotate(-2deg); display: inline-block; }
.j-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.j-meta time { font-family: var(--hand); font-weight: 400; color: var(--burnt); font-size: 1.15rem; }
.feature .j-meta { margin-top: 10px; }
.feature h2 { font-size: clamp(2rem, 6.4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; margin-top: 12px; }
.feature h2 a { text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.feature .standfirst { margin-top: 14px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); }
.feature .btn-row { margin-top: 20px; }

/* A cover pinned to the wall. The mat takes the colour of the post's game, if it has one. */
.f-cover { background: var(--frame-bg, var(--card)); padding: 12px; transform: rotate(-.7deg); }
.f-cover .media { border-radius: 4px; outline: 2px solid var(--frame-line, rgba(43, 29, 20, .5)); outline-offset: 4px; background: #1A1B1F; }
.f-cover .media img { width: 100%; height: auto; display: block; }
.f-cover .poster-flag { background: var(--frame-flag, var(--butter)); color: var(--frame-bg, var(--ink)); border-color: var(--frame-bg, var(--ink)); }

/* Browse: topic filter and the grid */
.j-browse { background: var(--paper-2); border-top: 3px solid var(--ink); }
.j-browse .section-head { margin-bottom: 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.topics[hidden] { display: none; }
.topic-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 12px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; font-size: .9375rem; line-height: 1.15; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.topic-btn::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--ink); background: var(--t, var(--card)); flex: none; }
.topic-btn[data-topic="all"]::before { background: conic-gradient(var(--marmalade) 0 25%, var(--crust) 0 50%, var(--hedge) 0 75%, var(--butter) 0); }
.topic-btn .n { font-weight: 600; color: var(--muted); font-size: .8125rem; }
.topic-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.topic-btn[aria-pressed="true"] { background: var(--butter); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.topic-btn[aria-pressed="true"] .n { color: var(--ink-soft); }
.j-count { min-height: 1.5em; margin: 6px 0 22px; font-size: .9375rem; color: var(--muted); font-weight: 600; }

.j-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.j-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); overflow: hidden; transition: transform .35s var(--spring), background-color .2s ease; }
.j-card[hidden] { display: none; }
.j-card.is-in { animation: card-in .45s var(--spring) backwards; }
.j-card:hover { background: #FFF6E2; transform: translateY(-3px) rotate(-.4deg); }
.j-card:nth-child(even):hover { transform: translateY(-3px) rotate(.4deg); }
.j-card:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.j-card h3 a:focus-visible { outline: none; }
@keyframes card-in { 0% { opacity: 0; transform: translateY(14px) rotate(-1deg); } 100% { opacity: 1; transform: none; } }

.j-thumb { position: relative; aspect-ratio: 1200 / 627; border-bottom: 2.5px solid var(--ink); overflow: hidden; background: #1A1B1F; }
.j-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Toast covers: for a post with no cover image, a slice done to suit */
.toasty { display: grid; place-items: center; background: var(--tb, var(--butter)); }
.toasty::before { /* a plate */
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 58%; height: 14%; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255, 252, 245, .5); border: 2px solid rgba(43, 29, 20, .35);
}
.toasty svg { position: absolute; left: 50%; top: 50%; height: 64%; width: auto; aspect-ratio: 232 / 218; overflow: visible; transform: translate(-50%, -54%) rotate(-6deg); filter: drop-shadow(3px 4px 0 rgba(43, 29, 20, .3)); }
.tb-butter { --tb: var(--butter); }
.tb-crust { --tb: var(--crust); }
.tb-hedge { --tb: var(--hedge); }
.tb-marm { --tb: var(--marmalade); }
.tb-crust::before, .tb-hedge::before { background: rgba(255, 252, 245, .16); border-color: rgba(255, 252, 245, .4); }

.j-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.j-card h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.12; }
.j-card h3 a { text-decoration: none; }
.j-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.j-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.j-excerpt { font-size: .96875rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.j-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.j-empty { padding: 22px; border: 2.5px dashed var(--crust); border-radius: var(--radius); }

/* ============ Single post ============ */
.a-inner { max-width: 1120px; margin-inline: auto; }
.a-head { padding-block: clamp(14px, 3vw, 40px) clamp(22px, 3vw, 36px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9375rem; font-weight: 650; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--crust); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.crumbs .sep { color: var(--muted); }
.a-kicker { color: var(--burnt); font-size: 1.35rem; transform: rotate(-2deg); display: inline-block; margin-top: 6px; }
.a-head h1 { font-size: clamp(2.35rem, 8.6vw, 4.75rem); line-height: .98; letter-spacing: -0.045em; max-width: 17ch; margin-top: 6px; }
.a-stand { margin-top: 18px; font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.5; font-weight: 550; max-width: 40rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.byline .who { display: flex; align-items: center; gap: 10px; }
.byline .who svg { width: 44px; height: 44px; flex: none; }
.byline .who span { display: block; font-size: .875rem; color: var(--muted); font-weight: 600; line-height: 1.2; }
.byline .who .sig { font-family: var(--hand); font-size: 1.4rem; color: var(--crust); font-weight: 400; line-height: 1; }
.byline .facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.byline .facts time { font-family: var(--hand); font-weight: 400; color: var(--burnt); font-size: 1.2rem; }
.readtime { display: inline-flex; align-items: center; gap: 6px; }
.readtime svg { width: 18px; height: 18px; }

.a-cover { display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(32px, 5vw, 64px); }
.a-cover .frame { max-width: 900px; }

.a-layout { display: grid; gap: 40px; }

/* The reading column: about 65 characters a line */
.prose { max-width: 65ch; min-width: 0; font-size: 1.1875rem; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child, .prose > div:only-child > p:first-child { font-size: 1.12em; line-height: 1.6; font-weight: 550; }
/* Older articles wrap their whole body in one div (.jev-article and the like): the same rhythm
   reaches text inside wrappers. Zero specificity on purpose, so every component's own spacing wins. */
.prose :where(div, section) > :where(p, ul, ol, h2, h3, figure, blockquote, pre, details) + :where(p, ul, ol, h2, h3, figure, blockquote, pre, details) { margin-top: 1.15em; }
.prose :where(div, section) > :where(ul, ol):not([class]) { padding-left: 1.4em; list-style: disc; }
.prose h2 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 1.9em; }
.prose h3 { font-size: clamp(1.3rem, 2.6vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.12; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose > ul, .prose > ol { padding-left: 1.4em; }
.prose > ul { list-style: disc; }
.prose > ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--burnt); }
.prose a { color: var(--crust); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 650; }
.prose a:hover { color: var(--burnt); }
.prose b, .prose strong { font-weight: 750; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: var(--paper-2); border: 1.5px solid rgba(43, 29, 20, .25); border-radius: 6px; padding: .05em .35em; }
.prose pre { background: var(--ink); color: #F6EEDF; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .9rem; line-height: 1.55; box-shadow: 4px 5px 0 var(--crust); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose audio { max-width: 100%; }
.prose .signed { font-family: var(--hand); font-size: 1.75rem; color: var(--crust); transform: rotate(-2deg); transform-origin: 0 50%; }

/* Figures. A bare figure, .a-fig, .shot, .reel and .clip all get the drawn frame and a stub caption. */
.prose :is(figure:not([class]), .a-fig, figure.shot, figure.reel, figure.clip) { display: grid; gap: 14px; justify-items: start; margin-block: 1.8em; }
.prose :is(figure:not([class]), .a-fig, figure.shot, figure.reel, figure.clip) > :is(img, video, .shot) {
  width: 100%; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); background: #1A1B1F; transform: rotate(-.5deg);
}
.prose .a-fig .shot img { width: 100%; height: auto; display: block; }
.prose :is(figure:not([class]), .a-fig, figure.shot, figure.reel, figure.clip):nth-of-type(even) > :is(img, video, .shot) { transform: rotate(.5deg); }
.prose figcaption { position: relative; max-width: 46ch; margin-left: 10px; background: var(--card); border: 2px solid var(--ink); border-left: 2px dashed var(--ink); border-radius: 4px 8px 8px 4px; padding: 8px 14px 9px 16px; font-size: .875rem; line-height: 1.45; color: var(--ink-soft); transform: rotate(-.6deg); }

/* A picture on a card mat (older articles call this .art-panel) */
.prose .art-panel { margin-block: 1.8em; padding: 10px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); transform: rotate(-.4deg); }
.prose .art-panel:nth-of-type(even) { transform: rotate(.4deg); }
.prose .art-panel img { display: block; width: 100%; height: auto; border-radius: 6px; border: 2px solid var(--ink); }
.prose .art-panel .frame { position: static; border: 0; box-shadow: none; border-radius: 6px; overflow: hidden; }
.prose .art-panel .frame img { border-radius: 6px; }
.prose .art-panel figcaption { margin: 12px 0 2px 4px; }
.prose > .art-panel:first-child { margin-top: 0; }

/* Pull quote: buttered and pinned. Works as a blockquote with a <p>, or a div of text. */
.prose .pull {
  position: relative; margin: 2.2em 0 2.1em; padding: 26px 22px 24px 24px;
  background: var(--butter); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(-1deg);
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink);
}
.prose .pull::before { content: "\201C"; position: absolute; left: 14px; top: -34px; font-family: var(--display); font-weight: 800; font-size: 5.5rem; line-height: 1; color: var(--burnt); }
.prose .pull p { font: inherit; margin: 0; }
.prose .pull span { background: linear-gradient(transparent 60%, rgba(255, 252, 245, .85) 60% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose .pull .pin { top: -10px; left: auto; right: 22px; background: radial-gradient(circle at 35% 30%, #F2A3A3, var(--jam) 55%, #8E2222); }

/* Tip: the luggage tag, labelled "good to know" */
.prose .tip { position: relative; margin: 1.8em 0 1.8em 16px; background: var(--butter); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 6px 14px 14px 6px; padding: 12px 18px 14px 40px; font-size: 1rem; line-height: 1.5; box-shadow: 3px 4px 0 rgba(43, 29, 20, .3); transform: rotate(-.8deg); }
.prose .tip::before { content: ""; position: absolute; left: 12px; top: 50%; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); }
.prose .tip > * + * { margin-top: 4px; }
.prose :is(.tip-label, .good-label) { font-family: var(--hand); color: var(--crust); font-size: 1.2rem; line-height: 1.1; margin-bottom: 2px; }

/* A short boxed aside */
.prose .callout { margin-block: 1.8em; padding: 16px 20px; background: var(--card); border: 2.5px solid var(--ink); border-left-width: 8px; border-left-color: var(--marmalade); border-radius: 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }

/* A boxed exhibit with a small handwritten label */
.prose .fig { margin-block: 1.8em; padding: 20px 20px 22px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); }
.prose .fig > p { font-size: 1rem; line-height: 1.55; margin-top: 14px; color: var(--ink-soft); }
.prose .figlbl { font-family: var(--hand); color: var(--burnt); font-size: 1.3rem; line-height: 1.1; transform: rotate(-1.5deg); transform-origin: 0 50%; }
.prose > .figlbl { margin-top: 1.8em; }

/* Cards, steps, chips */
.prose .cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-block: 1.6em; }
.prose .card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; padding: 18px 18px 20px; box-shadow: 3px 4px 0 var(--ink); }
.prose .card .n, .prose .endcard .n { font-family: var(--hand); color: var(--burnt); font-size: 1.15rem; line-height: 1.1; }
.prose .card h4 { margin: 6px 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.prose .card p { margin-top: 6px; font-size: .96875rem; line-height: 1.5; color: var(--ink-soft); }
.prose .steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
.prose .steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.prose .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--butter); font-weight: 800; font-size: .9375rem; }
.prose .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.prose .chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: .8125rem; font-weight: 700; line-height: 1.2; }

/* A game's name plate */
.prose .lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-block: 1.4em; }
.prose .lockup .tile { width: 50px; height: 50px; flex: none; display: grid; place-items: center; background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 2px 3px 0 var(--ink); }
.prose .lockup .tile svg { width: 28px; height: 28px; }
.prose .lockup .nm { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.prose .lockup .tg { display: block; font-family: var(--hand); color: var(--burnt); font-size: 1.1rem; line-height: 1.2; margin-top: 2px; }
.prose > .lockup:first-child { margin-top: 0; }

/* A button row */
.prose :is(.buy, .cta) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-block: 1.4em; }
.prose .btn, .prose .buy > a, .prose .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--marmalade); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center; text-transform: none; letter-spacing: 0;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.prose .btn:hover, .prose .buy > a:hover, .prose .button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); background: #EE8540; }
.prose .price { font-size: .9375rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.prose a.price { color: var(--crust); text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }

/* The closing card about a game */
.prose .endcard { margin-block: 2.2em 1.4em; padding: 20px 20px 22px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); }
.prose .endcard h3 { margin-top: 4px; font-size: 1.45rem; }
.prose .endcard p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.prose .endcard .chips { margin-top: 14px; }
.prose .endcard :is(.cta, .buy) { margin-block: 16px 0; }

.prose .src { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.prose .src a { font-weight: 600; }
.prose .rule { height: 0; border-top: 2.5px dashed rgba(122, 62, 29, .45); margin-block: 2.4em 0; }
.prose > .rule:last-child { display: none; }

/* The game in this post */
.a-aside { min-width: 0; }
.game-card {
  position: relative; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink);
  padding: var(--card-pad); display: grid; gap: 12px; max-width: 420px;
}
.game-card .label { color: var(--burnt); font-size: 1.25rem; transform: rotate(-2deg); display: inline-block; }
.game-card .gc-shot { border: 2.5px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--gc-bg, #173F30); }
.game-card .gc-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.game-card .gc-shot.contain img { object-fit: contain; }
.game-card h2 { display: flex; align-items: center; gap: .25em; font-size: 1.9rem; letter-spacing: -0.035em; }
.game-card h2 svg { width: 1em; height: 1em; flex: none; overflow: visible; }
.gc-promise { font-weight: 650; font-size: 1.0625rem; line-height: 1.3; }
.gc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-facts li { font-size: .8125rem; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--paper); }
.gc-facts li.out { background: var(--hedge); border-color: var(--hedge); color: var(--paper); }
.gc-facts li.soon { background: var(--jam); border-color: var(--jam); color: #FFF8EE; }
.gc-facts li.dev { background: #18242B; border-color: #18242B; color: #F2E6C9; }
.game-card .btn, .game-card .text-link { justify-self: start; }

/* Share, older and newer, read this next */
.a-foot { display: grid; gap: 36px; padding-top: clamp(40px, 6vw, 72px); }
.share { max-width: 65ch; border-top: 2.5px dashed rgba(122, 62, 29, .45); padding-top: 26px; }
.share h2, .readnext > h2 { font-family: var(--hand); font-weight: 400; color: var(--burnt); font-size: 1.5rem; letter-spacing: 0; transform: rotate(-2deg); display: inline-block; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.chip-btn[hidden] { display: none; }
.chip-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.chip-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.chip-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.chip-btn.primary { background: var(--marmalade); }
.share-status { min-height: 1.5em; margin-top: 10px; font-weight: 650; color: var(--hedge); }

.igdialog { width: min(460px, calc(100% - 32px)); max-height: 90vh; overflow: auto; background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 7px 0 var(--ink); padding: 24px; font-family: var(--body); }
.igdialog::backdrop { background: rgba(43, 29, 20, .55); }
.igdialog h2 { font-size: 1.6rem; }
.igdialog p { margin-top: 10px; line-height: 1.55; }
.igdialog img { display: block; max-height: 240px; max-width: 100%; margin: 18px auto; object-fit: contain; border: 2px solid var(--ink); border-radius: 8px; }
.igdialog label { display: block; margin-top: 12px; font-weight: 700; font-size: .9375rem; }
.igdialog input { width: 100%; min-height: 44px; padding: 8px 14px; margin: 6px 0 4px; border: 2.5px solid var(--ink); border-radius: 999px; background: #FFFFFF; color: var(--ink); }
.igdialog .share-row { margin-top: 10px; }

.pager { display: grid; gap: 16px; }
.pager-card {
  position: relative; display: grid; gap: 6px; align-content: start; text-decoration: none;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: var(--card-pad);
  box-shadow: 4px 5px 0 var(--ink); transition: transform .35s var(--spring), background-color .2s ease;
}
a.pager-card:hover { background: #FFF6E2; transform: translateY(-2px); }
.pager-card .dir { display: flex; align-items: center; gap: 6px; color: var(--burnt); font-size: 1.2rem; }
.pager-card .dir svg { width: 26px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pager-card .pt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.12; letter-spacing: -0.02em; }
.pager-card .pm { font-size: .875rem; font-weight: 600; color: var(--muted); }
.pager-card.is-empty { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--crust); }
.pager-card.is-empty p { color: var(--ink-soft); }
.pager-card.is-empty .text-link { justify-self: start; }
.pager .next { text-align: right; }
.pager .next .dir { justify-content: flex-end; }
.pager .next.is-empty { text-align: left; }
.pager .next.is-empty .dir { justify-content: flex-start; }

.readnext { display: grid; gap: 14px; }
.rn-grid { display: grid; gap: 16px; }
.rn-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 5px 0 var(--ink); overflow: hidden; text-decoration: none; transition: transform .35s var(--spring), background-color .2s ease; }
.rn-card:hover { background: #FFF6E2; transform: translateY(-2px); }
.rn-card .j-thumb { border-bottom-width: 2.5px; }
.rn-body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.rn-body .pt { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.12; letter-spacing: -0.02em; }
.rn-body .pm { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .875rem; font-weight: 600; color: var(--muted); }

/* Draft preview banner (the admin's "Save and preview") */
.draftbar { position: sticky; top: 0; z-index: 50; background: var(--butter); color: var(--ink); border-bottom: 3px solid var(--ink); font-weight: 700; font-size: .9375rem; padding: 6px 16px; display: flex; gap: 4px 18px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.draftbar a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }

/* "Copied" toast for the copy buttons */
.toast-note { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-weight: 700; padding: 10px 20px; border-radius: 999px; transition: opacity .18s ease, transform .18s ease; }
.toast-note.in { opacity: 1; transform: translate(-50%, 0); }

/* ============ Breakpoints ============ */
@media (min-width: 640px) {
  .prose .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .pull { padding: 30px 34px 30px; margin-inline: -12px; }
  .prose .endcard { padding: 24px 26px 26px; }
}
@media (min-width: 960px) {
  .j-mast-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .toaster { display: block; }
  .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 72px); align-items: center; }
  .feature .standfirst { font-size: 1.1875rem; }
  .j-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

  .a-layout { grid-template-columns: minmax(0, 65ch) minmax(260px, 320px); justify-content: space-between; column-gap: 56px; align-items: start; }
  .a-layout.solo { grid-template-columns: minmax(0, 65ch); }
  .a-aside { position: sticky; top: 24px; padding-top: 6px; }
  .a-foot { grid-template-columns: minmax(0, 65ch); }
  .prose :is(figure.wide, .a-fig.wide) { margin-right: -40px; }
}
@media (max-width: 480px) {
  .j-card { box-shadow: 3px 4px 0 var(--ink); }
  .prose .pull { box-shadow: 4px 5px 0 var(--ink); }
  .game-card { box-shadow: 4px 5px 0 var(--ink); }
  .prose { font-size: 1.125rem; }
  .prose :is(figure:not([class]), .a-fig, figure.shot, figure.reel, figure.clip) > :is(img, video, .shot) { box-shadow: 4px 5px 0 var(--ink); }
  .prose .endcard { box-shadow: 4px 5px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .toaster .steam { display: none; }
  .j-card:hover, .j-card:nth-child(even):hover, a.pager-card:hover, .rn-card:hover { transform: none; }
}
