/* Ye Olde Cats website. Colours and type from Figma Export/design system (Color and Type System). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Alegreya (body) and Open Sans (small text), self-hosted since 8 November 2026 (owner: no page sends visitors to
   Google): Google Fonts' own WOFF2s, latin and latin-ext; one variable roman file for each, and Alegreya Italic. */
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Alegreya"; src: url("/fonts/alegreya-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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: "Alegreya"; src: url("/fonts/alegreya-italic-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Open Sans"; src: url("/fonts/open-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --parchment: #ECE1CF;
  --card: #F4EEE6;
  --ink: #222222;
  --slate: #3C3C43;
  --burgundy: #670F0F;
  --gold: #C4B197;
  --taupe: #B1A79A;
  --red: #A43E32;
  /* Owner, 8 November 2026 (later ruling): headings in Cormorant Garamond (self-hosted) at 125%, weighted as on the
     landing page: titles and section headings Medium 500 (the landing's h2), card and post titles SemiBold 600 (its
     story titles), "Ye Olde Cats" SemiBold 600 (its name). Body text Alegreya Regular at 150%. --serif is the body font
     and --head the headings'; the font test panel (fonts-test.js) changes them and --lh-body. */
  --cormorant: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --serif: "Alegreya", "Iowan Old Style", Palatino, Georgia, serif;
  --head: var(--cormorant);
  --lh-body: 1.5;
  /* The design's sans is Open Sans Bold (Figma Export/Blog/Typography.png), self-hosted (above); the system sans until it loads. */
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --header-bg: #DED6CA;
  --caption: #4C4B4F;
  --header-h: 3.5rem;
}

/* The type scale (owner's design, 7 November 2026: Figma Export/Blog/Typography.png). The root size is 16 px on
   screens up to 1023 px, 17 px to 1919 px and 18 px from 1920 px (owner, 8 November 2026), so every rem below grows
   with the screen. */
html { font-size: 16px; }
@media (min-width: 1024px) { html { font-size: 17px; } }
@media (min-width: 1920px) { html { font-size: 18px; } }

.t-headline-xxl { font: 500 4rem/1.25 var(--head); }
.t-headline-xl { font: 500 2rem/1.25 var(--head); }
.t-headline-l { font: 500 1.5rem/1.25 var(--head); }
.t-headline-m { font: 600 1.25rem/1.25 var(--head); }
.t-body-m { font: 400 1rem/var(--lh-body) var(--serif); }
.t-body-s { font: 400 0.875rem/var(--lh-body) var(--serif); }
.t-body-m-bold { font: 700 1rem/var(--lh-body) var(--serif); }
.t-body-s-bold { font: 700 0.875rem/var(--lh-body) var(--serif); }
.t-link-m { font: 400 1rem/var(--lh-body) var(--serif); text-decoration: underline; }
.t-link-s { font: 400 0.875rem/var(--lh-body) var(--serif); text-decoration: underline; }
.t-strike-m { font: 400 1rem/var(--lh-body) var(--serif); text-decoration: line-through; }
.t-strike-s { font: 400 0.875rem/var(--lh-body) var(--serif); text-decoration: line-through; }
.t-button-m { font: 700 1rem/1.5 var(--sans); text-transform: uppercase; }
.t-button-s { font: 700 0.875rem/1.5 var(--sans); text-transform: uppercase; }
.t-title { font: 700 0.875rem/1.25 var(--sans); text-transform: uppercase; }
.t-overline { font: 700 0.75rem/1.25 var(--sans); text-transform: uppercase; }
.t-caption { font: 700 0.75rem/1.5 var(--sans); }
.t-subtext { font: 700 0.75rem/1.5 var(--sans); }

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  /* The landing page's paper, exactly as it paints: the later body rule in home/home.css
     (parchment-paper.jpg, 512 x 1024, tiled from the top centre), not its first one (owner, 8 November 2026). */
  background: url("/home/assets/hero/parchment-paper.jpg") center top / 512px auto, #DFD7CB;
  color: var(--slate);
  font: 400 1rem/var(--lh-body) var(--serif); /* body-m */
  overflow-wrap: break-word;
}

a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 2;
  padding: 0.5rem 0.9rem; background: var(--card); border: 1px solid var(--taupe); border-radius: 8px;
}
.skip:focus { top: 1rem; }

.visually-hidden, .initial-letter {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Header and footer */

/* The site header (owner's design, 7 November 2026: Figma Export/Blog/Header.png): the full width, the app's cat and
   the name on the left, Support, Blog and Home on the right; below 768 px a menu button (site.js) instead of the
   links. Without the script the links stay in the bar. */
.site-header {
  position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding: 0.4rem 1rem;
  background: var(--header-bg); border-bottom: 1px solid rgba(177, 167, 154, 0.7);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px;
  font: 600 1.5rem/1.25 var(--cormorant); color: var(--burgundy); text-decoration: none; /* headline-l, Cormorant SemiBold as the landing's name (owner) */
}
.brand img { width: 1.9rem; height: 1.9rem; flex: none; }
.site-header ul, .site-footer ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem;
}
.site-header nav ul { gap: 0 1rem; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 700 1rem/1.25 var(--serif); color: var(--burgundy); text-decoration: none; /* body-m-bold */
}
.site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.site-header nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.menu-button {
  display: none; width: 44px; height: 44px; margin-right: -0.5rem; padding: 0; border: 0; background: none;
  color: var(--red); cursor: pointer; border-radius: 6px;
}
.menu-button svg { display: block; margin: auto; }
.menu-button:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 0; }
@media (max-width: 767px) {
  .has-menu .menu-button:not([hidden]) { display: block; }
  .has-menu #site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 0.25rem 1rem 0.75rem;
    background: var(--header-bg); border-bottom: 1px solid rgba(177, 167, 154, 0.7);
    box-shadow: 0 10px 18px -12px rgba(60, 40, 20, 0.45);
  }
  .has-menu.menu-open #site-nav { display: block; }
  .has-menu #site-nav ul { display: grid; gap: 0; }
  .has-menu #site-nav a { width: 100%; min-height: 48px; font-size: 1.25rem; /* headline-m */ }
}
@media (min-width: 768px) { .site-header { padding-inline: 2rem; } }
@media (min-width: 1024px) { .site-header { padding-inline: 4rem; } }

.site-footer {
  max-width: 46rem; margin: 0 auto; padding: 0.5rem 1rem 2.5rem; text-align: center;
  color: var(--slate); font: 400 1rem/var(--lh-body) var(--serif); /* body-m */
}
.site-footer ul { justify-content: center; }
.site-footer a { color: var(--slate); }
/* Taller tap targets for the footer and breadcrumb links (QA, 2 November 2026, F12): 17 px of text, about 37 px to
   tap; the rows keep their spacing. */
.site-footer li a, .crumbs a { display: inline-block; padding-block: 0.6rem; }
.site-footer ul { row-gap: 0; }
.site-footer p { margin: 0.75rem 0 0; font: 700 0.75rem/1.5 var(--sans); /* subtext */ }

.rule { display: block; width: 100%; height: auto; margin: 0.5rem auto 1.25rem; }
.site-footer .rule { max-width: 30rem; margin: 1.25rem auto 1rem; }
/* The social accounts above the site's links (owner, 2 November 2026): a red small-caps label, each account its
   one-colour glyph and name, 44 px to tap, then a hairline. */
.site-footer .follow { max-width: 30rem; margin: 0 auto 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(177, 167, 154, 0.55); }
.site-footer .follow-label { margin: 0 0 0.1rem; font: 700 0.75rem/1.25 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); /* overline */ }
.site-footer .follow-links { gap: 0 1.1rem; }
.site-footer .follow-links a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0; text-decoration: none; }
.site-footer .follow-links a:hover { color: var(--burgundy); text-decoration: underline; }
.follow-links img { width: 20px; height: 20px; flex: none; }

/* The old card page (a collection card from the app, with its corner ornament). Since 7 November 2026 only the old
   layout drafts under /blog/drafts/ (tools/build_drafts.py) use it; every live page uses the article's parts below. */

main { padding: 1.5rem 1rem 0; }
.sheet {
  position: relative;
  max-width: 44rem; margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
  background: var(--card);
  border: 1px solid var(--taupe);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.08), 0 8px 24px rgba(60, 40, 20, 0.06);
}
.sheet::before {
  content: ""; position: absolute; top: 10px; right: 10px; width: 72px; height: 73px;
  background: url("/img/corner.png") no-repeat top right / contain; pointer-events: none;
}
@media (min-width: 40rem) {
  .sheet { padding: 2.75rem 3rem 3rem; }
  .sheet::before { width: 90px; height: 92px; }
}

/* The old layout drafts (tools/build_drafts.py) load no Google fonts: they keep Cormorant and its 125%. */
:root:has(.sheet) { --serif: var(--cormorant); --head: var(--cormorant); --lh-body: 1.25; }
.sheet h1, .sheet h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }
.sheet h1 { font-size: clamp(2.3rem, 7vw, 3rem); margin: 0; padding-right: 64px; }
.sheet h2 { font-size: 1.75rem; margin: 2.25rem 0 0.5rem; }
.sheet h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }
.sheet .lede { font-size: 1.2rem; line-height: 1.5; }
.sheet .aside { margin-top: 2rem; color: var(--slate); }
.sheet { font: 400 1.0625rem/1.55 var(--sans); color: var(--ink); }
p { margin: 0 0 0.75rem; }
cite { font-style: italic; }

.initial { display: inline-block; width: auto; height: 1.8em; margin: 0 0.02em 0 -0.12em; vertical-align: -0.3em; }

/* Credits: each line the artwork's name in the game (body-m-bold), the work (body-m), then where it is and any photo
   credit in the sans caption. */

.toc ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.credits { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.credits li {
  display: grid; gap: 0.15rem; padding: 0.75rem 0; border-top: 1px solid rgba(177, 167, 154, 0.55);
}
.credits li:first-child { border-top: 0; }
.art-title { font: 700 1rem/var(--lh-body) var(--serif); }
.art-holder, .art-photo { font: 700 0.75rem/1.5 var(--sans); color: var(--caption); }
.nowrap { white-space: nowrap; }

/* Legal notice: the operator's details in the boxed note. */

.trader { font-style: normal; margin: 0 0 0.75rem; }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
.placeholder { background: #FFF3C4; outline: 1px dashed var(--burgundy); padding: 0 0.2em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The old article layout (breadcrumbs, byline, .post): only the old /blog/drafts/ pages use it now. */

.crumbs ol { list-style: none; margin: -0.6rem 0 0.15rem; align-items: center; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.92rem; color: var(--slate); }
.crumbs li + li::before { content: "›"; margin-right: 0.3rem; color: var(--taupe); }
.crumbs a { color: var(--slate); }
.byline { margin: 0.6rem 0 0; color: var(--slate); font-size: 0.94rem; }

.post { font-size: 1.0625rem; line-height: 1.65; }
.post h2 { margin-top: 2.5rem; }
.post blockquote {
  margin: 1.25rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--gold);
  font: italic 400 1.25rem/1.45 var(--serif);
}
.post blockquote p { margin: 0 0 0.4rem; }
/* A poem with its translation (owner, 18 November 2026: "just break points"; no buttons, no pictures inside). Phones:
   the whole English poem, then "In Old Irish" and the whole original (flex order). Wide screens: two columns, the
   original left and the English right, one grid row per verse pair (.v1 to .v8) so each verse sits beside its
   translation however long either runs; the column labels head row 1. */
.poem-parallel { margin: 1.5rem 0; border-left: 3px solid var(--gold); padding-left: 1.1rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; max-width: 100%; box-sizing: border-box; }
.poem-parallel > p { min-width: 0; overflow-wrap: break-word; }
.poem-parallel p { margin: 0; font: 400 1.12rem/1.45 var(--serif); }
.poem-parallel p.orig { font-style: italic; color: var(--slate); order: 3; }
.poem-parallel p.en { order: 1; }
.poem-parallel p.label { font: 600 0.78rem/1.2 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.poem-parallel p.label.wide { display: none; }
.poem-parallel p.label.phone { order: 2; margin-top: 0.6rem; }
@media (min-width: 40rem) {
  .poem-parallel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; row-gap: 0.9rem; }
  .poem-parallel p.orig { grid-column: 1; }
  .poem-parallel p.en { grid-column: 2; }
  .poem-parallel p.label.wide { display: block; grid-row: 1; }
  .poem-parallel p.label.phone { display: none; }
  .poem-parallel .v1 { grid-row: 2; }
  .poem-parallel .v2 { grid-row: 3; }
  .poem-parallel .v3 { grid-row: 4; }
  .poem-parallel .v4 { grid-row: 5; }
  .poem-parallel .v5 { grid-row: 6; }
  .poem-parallel .v6 { grid-row: 7; }
  .poem-parallel .v7 { grid-row: 8; }
  .poem-parallel .v8 { grid-row: 9; }
}
.post .sources { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(177, 167, 154, 0.55); font-size: 0.94rem; color: var(--slate); }
.post .sources h2 { font-size: 1.4rem; margin-top: 0; }
.post .sources ul { padding-left: 1.1rem; }
.post .sources li { margin-bottom: 0.3rem; }
.post .game {
  margin: 2.5rem 0 0; padding: 1rem 1.15rem; border: 1px solid var(--taupe); border-radius: 10px;
  background: rgba(236, 225, 207, 0.45);
}
.post .game p:last-child { margin-bottom: 0; }
/* Inline, so the line keeps its height; the padding makes each account 44 px to tap. */
.post .game .follow-line a { padding-block: 12px; }

.art { margin: 1.75rem 0; }
/* The box is set before the artwork loads, so the text never jumps (QA, 2 November 2026, F2): its width is the
   column's, or narrower for a tall artwork (one rule per artwork in /blog/art.css, made by build.py); its height comes
   from the width and height attributes. */
.art img {
  display: block; width: 100%; max-width: 100%; height: auto; max-height: 82vh; object-fit: contain; margin: 0 auto;
  border-radius: 6px; box-shadow: 0 1px 3px rgba(60, 40, 20, 0.18);
}
.art figcaption { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.45; color: var(--slate); text-align: center; }
.art figcaption cite { font-size: 1.1em; color: var(--ink); }
/* A smaller second figure under a whole painting: the detail as the game frames it (owner, 18 November 2026). */
.art.detail { max-width: 20rem; margin-left: auto; margin-right: auto; margin-top: -0.5rem; }
@media (min-width: 40rem) {
  .art.wide { margin-left: -1.5rem; margin-right: -1.5rem; }
}

/* The list of articles (the blog index, and "More from the blog"): each one its cover picture cut to 16:9 around the
   face (the article's figure, without a frame), the date as the overline, the title in red (headline-l) and the summary;
   the sparkle divider between articles. */
.posts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.posts li { display: grid; gap: 0.5rem; }
/* The whole card opens the article (owner, 8 November 2026): the title's link is stretched over the card (::after), so
   it stays one link per card; hovering anywhere underlines the title, and the focus ring goes round the card. */
.post-card { position: relative; display: grid; gap: 0.5rem; }
.post-title::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-title { color: var(--burgundy); text-decoration: underline; }
.post-title:focus-visible { outline: none; }
.post-card:has(.post-title:focus-visible) { outline: 3px solid var(--burgundy); outline-offset: 4px; border-radius: 2px; }
.posts li + li::before {
  content: ""; display: block; width: 109px; height: 26.33px; margin: 1.25rem auto 1.5rem;
  background: url("/img/blog/divider-mobile.png") center / contain no-repeat;
}
@media (min-width: 768px) {
  .posts li + li::before { width: 116px; height: 27.67px; background-image: url("/img/blog/divider-tablet.png"); }
}
@media (min-width: 1024px) {
  .posts li + li::before { width: 130px; height: 30.33px; background-image: url("/img/blog/divider-desktop.png"); }
}
.post-card > div, .posts li > div:not(.post-card) /* a page cached from before the card link */ { display: grid; gap: 0.4rem; align-content: start; }
.posts img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-title { font: 600 1.5rem/1.25 var(--head); color: var(--red); text-decoration: none; order: 2; }
.post-title:hover { color: var(--burgundy); text-decoration: underline; }
.post-about { order: 3; }
.post-date { font: 700 0.75rem/1.25 var(--sans); text-transform: uppercase; color: var(--caption); order: 1; }

/* Article carousel (early-work article): one picture per view at the full column width, the next one peeking into the
   page gutter, swiped or scrolled sideways with scroll-snap. The track is as tall as the picture in view (the script
   sets it). Without the script it is still a scrolling row; the script adds the counter, the arrows and the height. */

.carousel { margin: 1.5rem 0; }
.car-track {
  --g: 2.25rem;
  position: relative; display: flex; align-items: flex-start; gap: 0.5rem; overflow-x: auto; overflow-y: hidden;
  margin-inline: calc(-1 * var(--g)); padding: 0.25rem var(--g) 0.5rem; scroll-padding-inline: var(--g);
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
  transition: height 0.25s ease;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--burgundy); outline-offset: -3px; border-radius: 6px; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.car-slide a { display: block; }
.car-slide img {
  display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.18);
}
.car-slide figcaption { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.4; color: var(--slate); text-align: center; }
.car-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.25rem; }
.car-bar[hidden] { display: none; }
.car-count { min-width: 4.5rem; text-align: center; color: var(--slate); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.car-bar button {
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--taupe); border-radius: 50%; background: var(--card);
  color: var(--burgundy); font: 700 1.5rem/1 var(--serif); cursor: pointer;
}
.car-bar button:hover:not(:disabled) { background: var(--parchment); }
.car-bar button:disabled { opacity: 0.35; cursor: default; }
.car-bar button:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; }
@media (min-width: 40rem) {
  .car-track { --g: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .car-track { scroll-behavior: auto; transition: none; }
}

/* The article page (owner's design, 7 November 2026: Figma Export/Blog/, Desktop 1920 and 1440, Tablet 768, Mobile
   320; one design at four widths). A picture as wide as the screen with the overline, title and summary over its dark
   foot, the credit under it, then one 640 px column: a drawn initial, red headings after a three-sparkle divider,
   pictures with sans captions, the boxed note with its corner ornaments, and the sources. */

main.story { padding: 0; }
.story { --col: 640px; --pad: 1rem; color: var(--slate); }
@media (min-width: 768px) { .story { --pad: 2rem; } }

.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  height: min(155vw, calc(100svh - var(--header-h))); min-height: 26rem; background: #2B2119; color: #fff;
}
@media (min-width: 768px) { .hero { height: min(66.7vw, calc(100svh - var(--header-h))); } }
@media (min-width: 1024px) { .hero { height: min(55vw, calc(100svh - var(--header-h))); } }
.hero picture { display: contents; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(28, 18, 10, 0.86) 0%, rgba(28, 18, 10, 0.6) 30%, rgba(28, 18, 10, 0.12) 62%, rgba(28, 18, 10, 0) 78%);
}
.hero-text {
  width: 100%; padding: 0 max(var(--pad), calc((100% - var(--col)) / 2)) 1.75rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-overline { margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; letter-spacing: 0.02em; }
.hero-overline a { color: inherit; text-decoration: none; }
.hero-overline a:hover { text-decoration: underline; }
.spark { display: inline-block; width: 0.85em; height: 0.85em; background: url("/img/blog/sparkle.svg") center / contain no-repeat; }
.hero-title { margin: 0; padding: 0; color: #fff; max-width: 30rem; }
.hero-dek { margin: 0.75rem 0 0; max-width: 30rem; font: 400 1rem/var(--lh-body) var(--serif); color: rgba(255, 255, 255, 0.92); }
/* The title: 2rem to 1023 px, 3rem to 1919 px and 4rem from 1920 px, 45rem and then 55rem wide (owner, 8 November
   2026). The summary under it takes the same width, as in the mocks. */
@media (min-width: 1024px) {
  /* Centred and wider than the 640 px column: the title and summary set their own width below. */
  .hero-text { text-align: center; padding: 0 var(--pad) 2rem; }
  .hero-overline { justify-content: center; }
  .hero-title, .hero-dek { margin-inline: auto; }
  .t-headline-xl.hero-title { font-size: 3rem; }
  .hero-title, .hero-dek { max-width: 45rem; }
}
@media (min-width: 1920px) {
  .t-headline-xl.hero-title { font-size: 4rem; }
  .hero-title, .hero-dek { max-width: 55rem; }
}

.story-col { max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.hero-cap { margin: 0.75rem 0 0; font: 400 0.8rem/1.5 var(--sans); color: var(--slate); } /* as the figure captions */
.hero-cap span, .art figcaption span { display: block; }

.story-body { padding-top: 2rem; padding-bottom: 1rem; font: 400 1rem/var(--lh-body) var(--serif); }
.story-body p { margin: 0 0 0.75rem; }
.story-body a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.story-body a:hover { color: var(--burgundy); }
.story-body cite { font-size: 1em; }
.story-body .lede { font-size: 1rem; line-height: var(--lh-body); }
/* The drawn initial, sunk into the text (owner, 8 November 2026): two lines deep on phones, three from 768 px. Its top
   is level with the cap height of the first line and its foot sits on the baseline of the last line it spans, in any
   body font: the initial is a float just before the paragraph, the paragraph's first line is trimmed to its cap
   height (text-box), so both start at the capitals' top, and the picture is 1cap + (lines − 1) line heights tall. The
   text wraps to its right; later lines run full width, and whatever follows a short paragraph starts below the
   initial. Where text-box is not supported the initial sits a little higher, the same size. The real letter stays in
   the text for screen readers (.visually-hidden).
   It is never taller than its paragraph (owner, 8 November 2026): site.js counts the paragraph's rendered lines and
   sets --drop-lines to that count where it is shorter (on load, after the fonts load, on resize). A paragraph of one
   line gets the plain letter instead (.drop-plain), as a letter with no drawn initial has. Without the script the
   depths above stay. */
.drop, .has-drop { --drop-lines: 2; }
@media (min-width: 768px) { .drop, .has-drop { --drop-lines: 3; } }
.has-drop { text-box: trim-start cap alphabetic; }
.has-drop + * { clear: left; }
.drop { float: left; margin: 0 0.5em 0 0; }
.drop { --drop-box: calc(1cap + (var(--drop-lines) - 1) * 1lh); }
/* The drawn initials have about 12 px of empty paper above and below the ornament in their 246 px height (222 px of
   ink). The picture is made that much taller and pulled up and in by the margins, so the ornament itself runs from the
   top of the first line's capitals to the baseline of the last spanned line (owner, 18 November 2026: "it should span
   3 lines and 2 lines, just fit the lines better"). */
.drop img { display: block; width: auto; height: calc(var(--drop-box) * 246 / 222); margin: calc(var(--drop-box) * -12 / 222) 0; }
.drop-plain .visually-hidden {
  position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
}
.story-body h2 { margin: 1.5rem 0 0.6rem; color: var(--red); }
/* The three-sparkle divider (owner, 8 November 2026: Figma Export/Blog/Divider_*_3x.png): a <picture> with the mobile,
   tablet (768 px) and desktop (1024 px) drawings, each shown at a third of its pixel size. */
.divider { display: block; width: fit-content; margin: 1.75rem auto; }
.divider img { display: block; }
.story-body ol { padding-left: 1.4rem; }
.story-body li { margin-bottom: 0.4rem; }
/* A plain list in the text takes the sources' sparkle, smaller. */
.story-body ul:not([class]) { list-style: none; padding-left: 0; }
.story-body ul:not([class]) > li { position: relative; padding-left: 1.6rem; }
.story-body ul:not([class]) > li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.2em; width: 0.8rem; height: 0.8rem;
  background: url("/img/blog/sparkle.svg") center / contain no-repeat;
}
.story-body .toc ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.story-body .toc ul:not([class]) > li { padding-left: 0; margin: 0; }
.story-body .toc ul:not([class]) > li::before { content: none; }
.story-body h3 { margin: 1.25rem 0 0.4rem; font: 600 1.25rem/1.25 var(--head); /* headline-m */ }
.story-body strong { font-weight: 700; }

.story-body .art { margin: 1.75rem 0; }
.story-body .art img { border-radius: 0; box-shadow: none; }
/* Every picture's caption (the hero's, the figures' and the carousel's) is Open Sans Regular at 0.8rem, slate, the
   picture's title included: the mock's caption is SF Pro, smaller than the text (owner, 8 November 2026: "not bold,
   regular"). It is as wide as its picture and starts at its left edge: a picture narrower than the column gets the
   same width rule for its caption (blog/art.css), and a carousel slide is a column as wide as its picture. */
.story-body .art figcaption, .story-body .car-slide figcaption {
  margin: 0.5rem auto 0; font: 400 0.8rem/1.5 var(--sans); color: var(--slate); text-align: left;
}
.story-body .car-slide { display: grid; grid-template-columns: fit-content(100%); justify-content: center; }
.story-body .car-slide figcaption { contain: inline-size; margin-inline: 0; }
.story-body .art figcaption cite, .hero-cap cite { font: inherit; color: inherit; }
.story-body .car-track { --g: var(--pad); }

/* The boxed note with a small ornament outside each corner: the closing "in the game" box, and pull quotes
   (<aside class="pull">). */
.story-body .game, .story-body .pull, .story-body .note {
  position: relative; margin: 2.75rem 1rem 2.25rem; padding: 1rem 1.1rem;
  border: 1px solid var(--gold); border-radius: 10px; background: rgba(236, 225, 207, 0.4);
}
@media (min-width: 768px) { .story-body .game, .story-body .pull, .story-body .note { margin-inline: 4.5rem; } }
.story-body .game::before, .story-body .game::after, .story-body .pull::before, .story-body .pull::after,
.story-body .note::before, .story-body .note::after {
  content: ""; position: absolute; left: -1.1rem; right: -1.1rem; height: 12px; pointer-events: none;
  background: url("/img/blog/corner.svg") left center / 12px no-repeat, url("/img/blog/corner.svg") right center / 12px no-repeat;
}
.story-body .game::before, .story-body .pull::before, .story-body .note::before { top: -0.95rem; }
.story-body .game::after, .story-body .pull::after, .story-body .note::after { bottom: -0.95rem; }
.story-body .game p:last-child, .story-body .pull p:last-child, .story-body .note p:last-child { margin-bottom: 0; }
.story-body .game .follow-line a { padding-block: 12px; }

/* Sources (website/README.md, "Sources: stars or numbers"): a hairline above, a red heading, then either a list with a
   sparkle for each source or numbered in red. */
.story-body .sources { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(177, 167, 154, 0.7); font: inherit; color: inherit; }
.story-body .sources h2 { margin: 0 0 1rem; color: var(--red); font: 500 1.5rem/1.25 var(--head); /* headline-l */ }
.sources-list { list-style: none; margin: 0; padding: 0; }
.sources-list li { position: relative; margin: 0 0 1rem; padding-left: 2rem; }
.sources-list.stars li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.05em; width: 1.05rem; height: 1.05rem;
  background: url("/img/blog/sparkle.svg") center / contain no-repeat;
}
.sources-list.numbered { counter-reset: source; }
.sources-list.numbered li { counter-increment: source; }
.sources-list.numbered li::before {
  content: counter(source) "."; position: absolute; left: 0; top: -0.1em; color: var(--red); font: 600 1.25rem/1.25 var(--head);
}

.story .more { max-width: calc(var(--col) + 2 * var(--pad)); margin: 1rem auto 0; padding: 1.5rem var(--pad) 0; border-top: 1px solid rgba(177, 167, 154, 0.7); }
.story .more h2 { margin: 0 0 1rem; color: var(--red); }
/* "More from the blog" as a row of compact cards (owner, 8 November 2026), in the article carousel's row (blog/
   carousel.js, the .cards kind): a 3:2 cover cut around the face, the date, the title and the summary clamped to three
   lines; the whole card is one link. About three in view from 1024 px (the section widens past the text column for
   them), two on a tablet, one and a peek of the next on a phone. The arrows show only when some card is out of view. */
.more .carousel { margin: 0; }
.more .car-track { --g: var(--pad); gap: 1.25rem; align-items: stretch; padding-block: 0.75rem; transition: none; }
.more .car-slide { flex: 0 0 85%; display: flex; }
.more .post-card { width: 100%; gap: 0.6rem; align-content: start; }
.more .post-card img { width: 100%; max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.more .post-title { font-size: 1.25rem; }
.more .post-about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.more .car-count { display: none; }
@media (min-width: 768px) { .more .car-slide { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (min-width: 1024px) {
  .story .more { max-width: calc(66rem + 2 * var(--pad)); }
  .more .car-slide { flex-basis: calc((100% - 2.5rem) / 3); }
}

/* The other pages (the blog index, Support, Privacy, Terms, Credits, the legal notice, 404), made only from the article's
   parts: the same 640 px column, the title in red (headline-xl, as the article's section headings), the sparkle divider
   under it and before each heading, the drawn initial on the first paragraph, sans captions and the boxed note. */
.page-head { padding-top: 2.5rem; }
.page-title { margin: 0; color: var(--red); }
.page-head .divider { margin: 1.25rem auto 0; }
/* The space above the intro is the title's, not the paragraph's: a top margin on the paragraph would leave the
   initial (a float placed before it) that much higher than the text. */
.page-head .page-title:has(+ .drop, + .lede) { margin-bottom: 1rem; }
.page-head .lede { margin: 0; }
.page .story-body { padding-top: 1.5rem; padding-bottom: 2rem; }
