/* tokens.css */
/* The site's design tokens: the only place a colour, a font size, a shadow, a
   radius, a z-index or a duration is written. A new design changes this file
   first (STYLE.md). The look is "Night Session" (owner 2026-11-23, the Claude
   Design mock-up, artifact 49845qrSA4jqMSQhT5cqoX): a dark header and
   footer, light reading pages, Reddit Sans, the brand's violet.

   Breakpoints cannot be variables (media queries do not read them). The site
   uses three, written as literals and nowhere else:
     1100px  laptop: the menu loses its icons, the sidebar goes under the text
     900px   tablet: the menu folds into its button, grids go two by two
     560px   phone: one column, narrower gutters */

:root {
    /* colours: the page */
    --color-ink: #1b1a1f;
    --color-ink-soft: #4f4d57;
    --color-ink-muted: #6b6973; /* meta: dates, captions */
    --color-icon: #3a3842;
    --color-paper: #fafafb;
    --color-surface: #fff;    /* cards and boxes on the page */
    --color-mist: #f0eff3;
    --color-line: #e6e4ea;
    --color-field-border: #8e8b96;
    --color-night: #121015;
    --color-deep: #1b1426;
    --color-black: #000;
    --color-on-dark: #fff;
    --color-on-dark-soft: rgba(255, 255, 255, 0.85);
    --color-on-dark-muted: rgba(255, 255, 255, 0.82);
    --color-on-dark-faint: rgba(255, 255, 255, 0.42); /* a choice this page lacks (the language switch) */
    --color-on-dark-wash: rgba(255, 255, 255, 0.12);
    --color-line-on-dark: rgba(255, 255, 255, 0.14);

    /* colours: accent and states */
    --color-accent: #5b49d6;
    --color-accent-deep: #4a3ab8;
    --color-accent-on-dark: #b3a9ff; /* the accent over the night */
    --color-accent-glow: #c9c1ff;    /* the hero's line above its title */
    --color-tag: #e5484d;            /* a "Free" badge */
    --color-deal-bg: #f6e9eb;
    --color-deal-ink: #6e1622;
    --color-alert: #c4302b;
    --color-error-soft: #fbeeee;
    --color-meta-icon: #8b7cf6;
    --color-star: #f0b400;
    --color-star-off: #d9d9d9;

    /* colours: over pictures */
    --color-hero-card: rgba(18, 16, 21, 0.88);
    --color-scrim: rgba(20, 20, 24, 0.45);
    --color-scrim-play: rgba(0, 0, 0, 0.65);
    --color-scrim-caption: rgba(0, 0, 0, 0.7);
    --rgb-cover-shade: 0 0 0; /* a cover's shade, its opacity is the block's --dim */
    --hero-fade: linear-gradient(90deg, rgba(20, 16, 16, 0.78) 0%, rgba(20, 16, 16, 0.45) 55%, rgba(20, 16, 16, 0.1) 100%);
    --avatar-saturation: 45%; /* initials avatars: the hue is drawn from the name (--hue) */
    --avatar-lightness: 42%;

    /* colours: the announcement bar's defaults (the admin's Settings set their own) */
    --announce-from: #8f1d2c;
    --announce-to: #8f1d2c;
    --announce-ink: #fff;

    /* colours: the WooCommerce plugins' boxes the shop imitates (UpsellWP's offer, the next-order coupon) */
    --color-offer-border: #c3c4c7;
    --color-offer-bg: #fbfbfb;
    --color-offer-head: #32cd32;
    --color-coupon-border: #f3f4f6;
    --color-coupon-bg: #f8fafc;

    /* brand colours: other companies' own, never restyled */
    --brand-paypal: #ffc439;
    --brand-paypal-hover: #f2b52e;
    --brand-paypal-ink: #111;
    --brand-patreon: #ff424d;
    --brand-patreon-dark: #141518;
    --brand-mail: #7fb0db;
    --brand-facebook: #3b5998;
    --brand-linkedin: #0077b5;
    --brand-reddit: #ff4500;
    --brand-tumblr: #35465c;
    --brand-x: #000;

    /* type */
    --font-body: 'Reddit Sans', Arial, Helvetica, sans-serif;
    --font-mono: ui-monospace, monospace;
    --leading-body: 1.65;
    --leading-prose: 1.8;

    /* type scale: the steps a design keeps */
    --text-2xs: 0.75rem;   /* labels: tags, badges, the pager's words */
    --text-xs: 0.8125rem;    /* captions, meta, small notes */
    --text-sm: 0.875rem;     /* secondary text */
    --text-md: 0.9375rem;    /* buttons, the sidebar, forms */
    --text-base: 1rem;
    --text-lg: 1.125rem;    /* small headings */
    --text-xl: 1.3125rem;     /* the text's h3 */
    --text-2xl: 1.75rem;      /* the text's h2 */
    --text-3xl: 2.25rem;   /* the counters, a price */
    --text-prose: 1.1875rem; /* a post's text */
    /* display sizes: grow with the window */
    --text-display-hero: clamp(2.4rem, 4.4vw, 3.75rem);
    --text-display-section: clamp(1.9rem, 3.2vw, 2.625rem);
    --text-display-page: clamp(2rem, 3.6vw, 3.125rem);
    --text-display-product: clamp(2rem, 3.4vw, 3rem);
    --text-display-post: clamp(1.6rem, 2.6vw, 2.1rem);
    --text-smaller: 0.85em; /* relative: a struck-out price */

    /* spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* widths */
    --measure: 52rem;     /* the text column */
    --wide: 76rem;        /* the page */
    --frame: 84rem;       /* the header, the strip, the footer */
    --page-wide: 72rem;   /* a page laid out in columns */
    --sidebar: 19rem;
    --gutter: 1.5rem;
    --gutter-phone: 1rem;

    /* radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-round: 50%;
    --radius-pill: 999px;

    /* shadows */
    --shadow-bar: 0 2px 10px rgba(0, 0, 0, 0.12);
    --shadow-float: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-menu: 0 16px 40px rgba(18, 16, 21, 0.28);
    --shadow-dropdown: 0 16px 32px rgba(18, 16, 21, 0.24);
    --shadow-card: 0 0 0 1px #e6e4ea;
    --shadow-card-hover: 0 0 0 1px #dcdae1, 0 12px 32px rgba(18, 16, 21, 0.1);
    --shadow-drawer: -8px 0 32px rgba(0, 0, 0, 0.18);

    /* stacking */
    --z-top-button: 9;
    --z-strip: 11;
    --z-header: 12;
    --z-skip: 20;
    --z-drawer: 200;
    --z-toast: 210; /* an achievement's toast, above the cart's drawer */

    /* motion */
    --duration-fast: 0.15s;
    --duration-base: 0.2s;
    --duration-slow: 0.25s;
    --duration-slower: 0.3s;
    --ease: ease;
}

/* base/fonts.css */
/* Reddit Sans, served by the site itself (no third party on load) */
@font-face { font-family: 'Reddit Sans'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/reddit-sans-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: 'Reddit Sans'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/reddit-sans-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: 'Reddit Sans'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/reddit-sans-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* base/reset.css */
/* the page itself: box model, body text, links, focus, the shared utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font: 400 var(--text-base)/var(--leading-body) var(--font-body);
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover { color: var(--color-accent-deep); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* an element the script hides stays hidden whatever display its class gives it (the one !important of the site) */
[hidden] { display: none !important; }

.site-skip { position: absolute; left: -9999px; }
.site-skip:focus { left: 1rem; top: 1rem; z-index: var(--z-skip); background: var(--color-paper); padding: var(--space-2) var(--space-4); }
.site-wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.site-strip .site-wrap, .site-header .site-wrap, .site-footer .site-wrap { max-width: var(--frame); }
@media (max-width: 560px) {
    .site-wrap { padding: 0 var(--gutter-phone); }
}
.site-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.site-icon { width: 1.15em; height: 1.15em; flex: none; display: block; }

/* base/prose.css */
/* the written text of a page or a post (article.prose): headings, paragraphs,
   quotes, figures; the content blocks build on it */
.prose { line-height: var(--leading-prose); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--text-2xl); line-height: 1.2; margin: var(--space-12) 0 var(--space-4); font-weight: 800; letter-spacing: -0.015em; }
.prose h3 { font-size: var(--text-xl); line-height: 1.3; margin: var(--space-10) 0 var(--space-3); font-weight: 800; }
.prose h4 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.35rem; }
.prose li { margin: 0.35rem 0; }
.prose blockquote { margin: var(--space-8) 0; padding: 0; font-size: var(--text-xl); line-height: 1.5; font-weight: 600; color: var(--color-ink); }
.prose blockquote.site-pullquote { font-size: var(--text-xl); line-height: 1.5; color: var(--color-ink); }
.prose cite { display: block; font-style: normal; font-weight: 600; margin-top: var(--space-2); font-size: var(--text-md); }
.prose figure { margin: var(--space-8) 0; }
.prose .site-image img { max-height: 40rem; width: auto; margin: 0 auto; }
.prose figcaption { font-size: var(--text-xs); color: var(--color-ink-soft); margin-top: var(--space-2); line-height: 1.5; }
.prose figcaption a { color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--color-line); margin: var(--space-12) 0; }
.prose pre { background: var(--color-mist); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); overflow-x: auto; font-size: var(--text-sm); line-height: 1.6; }

/* WordPress's text alignment, kept by the importer */
.site-align-center { text-align: center; }
.site-align-right { text-align: right; }

/* layout/header.css */
/* the announcement bar (the admin's Settings: its colours come as --announce-from, --announce-to, --announce-ink) */
.site-announce { text-align: center; font-size: var(--text-sm); font-weight: 600; padding: 0.55rem var(--space-4); line-height: 1.4; background: linear-gradient(90deg, var(--announce-from), var(--announce-to)); color: var(--announce-ink); }
.site-announce a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* the header: dark and sticky (it carries the search the WordPress strip held), logo, menu, tools */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--color-night); color: var(--color-on-dark); border-bottom: 1px solid var(--color-line-on-dark); }
/* the gaps narrow with the window: the menu in its longest language (German, French) clears the tools down to 1101px */
.site-header__bar { display: flex; align-items: center; gap: clamp(var(--space-5), 3vw - 1rem, var(--space-8)); min-height: 4.5rem; }
.site-logo { flex: none; display: flex; align-items: center; gap: var(--space-3); color: var(--color-on-dark); text-decoration: none; }
.site-logo:hover { color: var(--color-on-dark); }
.site-logo img { width: 2.5rem; height: 2.5rem; }
.site-logo__name { font-weight: 800; font-size: var(--text-lg); line-height: 1.1; letter-spacing: -0.01em; }
.site-logo__name span { display: block; font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-dark-soft); }
.site-nav { flex: 1; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: var(--space-1) clamp(1.1rem, 2.2vw - 0.6rem, 1.75rem); list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-on-dark); text-decoration: none; font-weight: 600; font-size: var(--text-md); padding: 0.6rem 0; }
.site-nav__list > li > a .site-icon { display: none; }
.site-nav a:hover { color: var(--color-accent-on-dark); }
.site-nav__list > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent-on-dark); }
.site-nav__list > .site-nav__all { display: none; }
.site-sub-toggle { background: none; border: 0; padding: 0.3rem 0 0.3rem 0.25rem; color: var(--color-on-dark); cursor: pointer; display: flex; }
.site-sub-toggle .site-icon { width: 0.85rem; height: 0.85rem; transition: transform var(--duration-fast); }
.site-sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 15.5rem; margin: 0; padding: var(--space-2); list-style: none; background: var(--color-night); border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-menu); }
.site-sub a { display: flex; width: 100%; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); font-weight: 500; }
.site-sub a .site-icon { width: 1.1rem; height: 1.1rem; color: var(--color-on-dark-soft); }
.site-sub a:hover { background: var(--color-on-dark-wash); color: var(--color-on-dark); }
.has-sub:hover > .site-sub, .has-sub:focus-within > .site-sub, .has-sub.is-open > .site-sub { display: block; }
.has-sub.is-open .site-sub-toggle .site-icon, .has-sub:hover .site-sub-toggle .site-icon { transform: rotate(180deg); }

/* the tools: search, account, cart, the whole catalogue */
.site-header__tools { flex: none; display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-search-toggle, .site-nav__account a, .site-cart { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; position: relative; background: none; border: 0; border-radius: var(--radius-sm); color: var(--color-on-dark); cursor: pointer; padding: 0; }
.site-search-toggle:hover, .site-nav__account a:hover, .site-cart:hover, .site-search-toggle[aria-expanded="true"] { background: var(--color-on-dark-wash); color: var(--color-on-dark); }
.site-search-toggle .site-icon, .site-nav__account .site-icon, .site-cart .site-icon { width: 1.25rem; height: 1.25rem; }
.site-nav__avatar { width: 24px; height: 24px; border-radius: var(--radius-round); object-fit: cover; }
.site-nav__account a.has-avatar .site-icon { display: none; }
.site-cart__count { position: absolute; top: 0.3rem; right: 0.2rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-dark); font-size: var(--text-2xs); font-weight: 700; line-height: 1.15rem; text-align: center; }
.site-header__cta { margin-left: var(--space-3); padding: 0.6rem 1.1rem; border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-sm); color: var(--color-on-dark); font-weight: 700; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.site-header__cta:hover { background: var(--color-on-dark-wash); color: var(--color-on-dark); }
.site-menu-toggle { display: none; background: none; border: 0; width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; color: var(--color-on-dark); }
.site-menu-toggle__bars, .site-menu-toggle__bars::before, .site-menu-toggle__bars::after { display: block; width: 1.4rem; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ''; }
.site-menu-toggle__bars::before { position: absolute; top: -7px; }
.site-menu-toggle__bars::after { position: absolute; top: 7px; }

/* the language menu (src/page.js langSwitchHtml): a <details>, the page's flag and code on the button, the
   languages by name in the menu; the page's own pressed, one this page lacks faint; in the bar, and in the
   phone menu below 560px */
.site-langs { position: relative; flex: none; margin-right: var(--space-2); }
.site-langs__current { height: 2.75rem; display: inline-flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2); border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-sm); color: var(--color-on-dark-soft); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; list-style: none; cursor: pointer; }
.site-langs__current::-webkit-details-marker { display: none; }
.site-langs__current:hover, .site-langs[open] > .site-langs__current { background: var(--color-on-dark-wash); color: var(--color-on-dark); }
.site-langs__current:focus-visible { outline: 2px solid var(--color-accent-on-dark); outline-offset: 2px; }
.site-langs__current > .site-icon { width: 0.9rem; height: 0.9rem; }
.site-langs[open] > .site-langs__current > .site-icon { transform: rotate(180deg); }
.site-flag { width: 1.25rem; height: 0.875rem; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--color-line-on-dark); }
.site-langs__menu { position: absolute; top: calc(100% + var(--space-1)); right: 0; z-index: 2; min-width: 11rem; display: flex; flex-direction: column; padding: var(--space-2); background: var(--color-night); border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-menu); }
.site-langs__menu > .site-langs__option { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 0.6rem 0.8rem; background: none; border: 0; border-radius: var(--radius-sm); color: var(--color-on-dark-soft); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.site-langs__menu > .site-langs__option:hover { background: var(--color-on-dark-wash); color: var(--color-on-dark); }
.site-langs__menu > .site-langs__option[aria-pressed="true"] { background: var(--color-on-dark-wash); color: var(--color-on-dark); cursor: default; }
.site-langs__menu > .site-langs__option.is-unavailable { color: var(--color-on-dark-faint); cursor: help; }
.site-langs__menu > .site-langs__option.is-unavailable .site-flag { opacity: 0.5; }
.site-langs__menu > .site-langs__option.is-unavailable:hover { background: none; color: var(--color-on-dark-faint); }
.site-langs__menu > .site-langs__option:focus-visible { outline: 2px solid var(--color-accent-on-dark); outline-offset: -2px; }
.site-nav__list > .site-nav__langs { display: none; }

/* a line about the language, drawn by assets/site.js: the French twin offered to a reader who chose French (after
   the header, it scrolls away), or why a language is missing here (--bar, inside the sticky header) */
.site-lang-note { background: var(--color-mist); color: var(--color-ink); border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.site-lang-note__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.site-lang-note__text { margin: 0; padding: var(--space-2) 0; }
a.site-lang-note__text { color: var(--color-accent); font-weight: 600; text-decoration: none; }
a.site-lang-note__text:hover { text-decoration: underline; }
.site-lang-note__close { flex: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: inherit; font-size: var(--text-xl); line-height: 1; cursor: pointer; }
.site-lang-note__close:hover { color: var(--color-accent); }
.site-lang-note--bar { background: var(--color-deep); color: var(--color-on-dark); border-top: 1px solid var(--color-line-on-dark); border-bottom: 0; }
.site-lang-note--bar .site-lang-note__close:hover { color: var(--color-accent-on-dark); }

/* the search, opened from its button under the bar */
.site-header__search { border-top: 1px solid var(--color-line-on-dark); padding: var(--space-4) 0; }
.site-search { display: flex; align-items: stretch; max-width: 40rem; border-radius: var(--radius-md); background: var(--color-surface); }
.site-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: var(--text-base); padding: 0.8rem var(--space-4); min-width: 0; color: var(--color-ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { outline: 3px solid var(--color-accent-on-dark); outline-offset: 2px; }
.site-search button { border: 0; background: var(--color-accent); color: var(--color-on-dark); padding: 0 var(--space-5); border-radius: 0 var(--radius-md) var(--radius-md) 0; cursor: pointer; display: flex; align-items: center; }
.site-search button .site-icon { width: 1.1rem; height: 1.1rem; }

@media (max-width: 1100px) {
    .site-header__bar { gap: var(--space-4); }
    .site-nav__list { gap: var(--space-1) 0.95rem; }
    .site-header__cta { display: none; }
}
/* the menu folds into its button */
@media (max-width: 900px) {
    .site-header__bar { min-height: 4rem; }
    .site-menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-night); border-bottom: 1px solid var(--color-line-on-dark); box-shadow: var(--shadow-dropdown); padding: var(--space-2) var(--space-5) var(--space-5); max-height: calc(100vh - 4rem); overflow-y: auto; }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--color-line-on-dark); }
    .site-nav__list > li > a { flex: 1; padding: 0.9rem 0; }
    .site-nav__list > li > a .site-icon { display: block; width: 1.2rem; height: 1.2rem; color: var(--color-on-dark-soft); }
    .site-nav__list > li > a[aria-current="page"] { box-shadow: none; color: var(--color-accent-on-dark); }
    .site-nav__list > .site-nav__all { display: flex; }
    .site-sub-toggle { padding: 0.9rem var(--space-1) 0.9rem var(--space-4); }
    .site-sub { position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 0.6rem 1.75rem; min-width: 0; background: none; }
    .has-sub:hover > .site-sub { display: none; }
    .has-sub.is-open > .site-sub { display: block; }
    .site-sub a { padding: var(--space-2) 0; }
    .site-sub a:hover { background: none; }
}
@media (max-width: 560px) {
    /* the tools never leave the screen (a 320px phone, or larger text): the logo's name gives way first */
    .site-logo { flex: 0 1 auto; min-width: 0; }
    .site-logo img { flex: none; }
    .site-logo__name { font-size: var(--text-base); min-width: 0; overflow: hidden; }
    .site-logo__name, .site-logo__name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .site-header__tools { gap: 0; }
    .site-header__bar { gap: var(--space-3); }
    .site-header__tools > .site-langs { display: none; }
    .site-nav__list > .site-nav__langs { display: flex; padding: var(--space-3) 0; }
    .site-nav__langs .site-langs { margin-right: 0; }
    .site-nav__langs .site-langs__menu { position: static; margin-top: var(--space-2); box-shadow: none; }
}

/* layout/page.css */
/* the frame of a page or a post: its title, the text column beside the sidebar */
.page-title { margin: var(--space-16) 0 var(--space-6); font-size: var(--text-display-page); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) var(--sidebar); gap: 3.5rem; justify-content: center; padding: var(--space-12) 0 var(--space-20); }
.post-layout--single { grid-template-columns: minmax(0, var(--measure)); }
/* a page laid out in columns or a cover (WordPress's builder pages) takes a wider column */
.post-layout--wide { grid-template-columns: minmax(0, var(--page-wide)); }
.post-layout--cover { padding-top: 0; }
.post-main { min-width: 0; }
/* a listing of posts (the blog, a term, a search) beside the sidebar: its cards take the column's width */
.post-layout--listing { grid-template-columns: minmax(0, 1fr) var(--sidebar); }
.post-layout--listing .page-title { margin-top: 0; }
/* a post reads larger than a page (the design: 19px) */
.post-main .prose { font-size: var(--text-prose); color: var(--color-ink); }
.post-main .prose figcaption, .post-main .prose pre { font-size: var(--text-sm); }

/* the sidebar */
.site-aside { font-size: var(--text-md); line-height: 1.55; }
.site-aside section { background: var(--color-surface); box-shadow: var(--shadow-card); padding: var(--space-6); margin-bottom: var(--space-5); border-radius: var(--radius-xl); }
.site-aside h2 { font-size: var(--text-xs); margin: 0 0 var(--space-4); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-soft); }
.site-aside p { margin: 0 0 0.9rem; color: var(--color-ink-soft); }
.site-aside section > p:last-child { margin-bottom: 0; }
.site-aside ul { list-style: none; margin: 0; padding: 0; }
.site-aside li { margin: 0.6rem 0; }
.site-aside a { color: var(--color-ink); text-decoration: none; font-weight: 500; }
.site-aside a:hover { color: var(--color-accent); }
.site-aside p a { color: var(--color-accent); }
.site-aside .site-button, .site-aside .site-button:hover { color: var(--color-on-dark); }
.site-search--aside, .site-notfound__search { box-shadow: inset 0 0 0 1px var(--color-field-border); }
.site-search--aside:focus-within, .site-notfound__search:focus-within { outline-color: var(--color-accent); }
.site-search--aside input { width: 100%; padding: 0.6rem var(--space-3); font-size: var(--text-md); }
.site-search--aside button { padding: 0 0.9rem; }

@media (max-width: 1100px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

/* layout/footer.css */
/* the dark footer, and the button back to the top */
.site-footer { background: var(--color-night); color: var(--color-on-dark-muted); font-size: var(--text-md); padding: var(--space-16) 0 0; }
.site-footer a { color: var(--color-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-10); }
.site-footer h2 { color: var(--color-on-dark); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__brand .site-logo { margin-bottom: var(--space-4); }
.site-footer__brand .site-logo__name { font-size: var(--text-lg); }
.site-footer__brand > p { margin: 0 0 var(--space-8); max-width: 22rem; line-height: 1.6; }
.site-footer__news { max-width: 24rem; }
.site-footer__news p { margin: 0; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 0.6rem; }
.site-footer__social .site-icon { width: 1rem; height: 1rem; }
.site-footer .site-newsletter input[type="email"] { border-color: transparent; }
.site-footer .site-newsletter__status { color: var(--color-on-dark); }
.site-footer__bottom { margin-top: var(--space-12); padding: var(--space-6) 0; border-top: 1px solid var(--color-line-on-dark); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); }
.site-footer__bottom img { height: 1.6rem; width: auto; }
.site-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: var(--z-top-button); width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; background: var(--color-night); color: var(--color-on-dark); border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-md); opacity: 0; pointer-events: none; transition: opacity var(--duration-base); }
.site-top.is-visible { opacity: 1; pointer-events: auto; }
.site-top:hover { background: var(--color-accent); color: var(--color-on-dark); }

@media (max-width: 1100px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* components/button.css */
/* buttons: the violet one, its ghost and dark variants, the brands' own */
.site-button, .site-button--ghost {
    display: inline-block; padding: 0.9rem 1.5rem; font: inherit; font-weight: 700; font-size: var(--text-base); line-height: 1.3; cursor: pointer;
    text-decoration: none; border: 1.5px solid var(--color-accent); background: var(--color-accent); color: var(--color-on-dark); border-radius: var(--radius-md);
}
.site-button:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: var(--color-on-dark); }
.site-button:disabled { opacity: 0.6; cursor: progress; }
.site-button--ghost { background: transparent; border-color: currentColor; color: inherit; }
.site-button--ghost:hover { background: var(--color-mist); color: inherit; }
/* over a dark picture or band: a light frame */
.site-button--dark { background: var(--color-on-dark-wash); border-color: var(--color-line-on-dark); color: var(--color-on-dark); }
.site-button--dark:hover { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-night); }
.site-button--small { padding: 0.5rem 0.9rem; font-size: var(--text-sm); border-radius: var(--radius-sm); }
/* a centred column of wide buttons (the links page) */
.site-button--stack { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); width: min(100%, 20rem); text-transform: uppercase; letter-spacing: 0.03em; }
.site-button--stack svg { width: 1em; height: 1em; fill: currentColor; }
.site-button--patreon { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--brand-patreon-dark); border-color: var(--brand-patreon-dark); }
.site-button--patreon:hover { background: var(--brand-patreon); border-color: var(--brand-patreon); }
.site-button--patreon .site-icon { width: 1.1rem; height: 1.1rem; }
.site-button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }
.site-button-row--stack { justify-content: center; margin: 0.7rem 0; }

/* components/form.css */
/* forms: the newsletter, a labelled field, the contact form */
.site-newsletter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--space-5) 0 0; }
.site-newsletter input[type="email"] { flex: 1 1 14rem; font: inherit; padding: var(--space-3) 0.9rem; border: 1px solid var(--color-field-border); border-radius: var(--radius-md); background: var(--color-paper); color: var(--color-ink); min-width: 0; }
.site-newsletter--compact { flex-direction: column; align-items: stretch; }
.site-newsletter--compact input[type="email"] { flex: none; }
.site-newsletter--compact .site-button { align-self: flex-start; padding: 0.7rem 1.1rem; }
.site-newsletter__status { flex-basis: 100%; margin: 0; font-size: var(--text-sm); font-weight: 600; }
.site-newsletter__status:empty { display: none; }
.site-newsletter.is-done input, .site-newsletter.is-done .site-button { display: none; }

.site-field { margin: 0 0 var(--space-4); }
.site-field label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 500; }
.site-field__hint { font-weight: 400; font-size: var(--text-xs); color: var(--color-ink-soft); }
.site-field input { font: inherit; font-weight: 400; padding: 0.7rem 0.85rem; border: 1px solid var(--color-field-border); border-radius: var(--radius-md); background: var(--color-paper); color: var(--color-ink); }
.site-field input:disabled { background: var(--color-mist); color: var(--color-ink-soft); }

.site-contact { max-width: 40rem; }
.site-contact textarea, .site-contact input[type="email"], .site-contact input[type="text"] { font: inherit; font-weight: 400; padding: 0.7rem 0.85rem; border: 1px solid var(--color-field-border); border-radius: var(--radius-md); background: var(--color-paper); color: var(--color-ink); width: 100%; }
.site-contact textarea { resize: vertical; }
.site-contact__status:empty { display: none; }
.site-contact__status { padding: var(--space-3) var(--space-4); background: var(--color-mist); border-radius: var(--radius-md); }
.site-contact.has-error .site-contact__status { background: var(--color-error-soft); color: var(--color-alert); }
.site-contact.is-done .site-field, .site-contact.is-done .site-button-row { display: none; }

/* components/notice.css */
/* a notice above a form or a page (account, cart, receipt) */
.site-notice { background: var(--color-mist); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-5); border-radius: var(--radius-lg); }
.site-notice p { margin: 0 0 0.6rem; }
.site-notice p:last-child { margin: 0; }
.site-notice--error { background: var(--color-error-soft); color: var(--color-alert); }

/* components/card.css */
/* listings: the cards of posts, their pager, an empty listing, related posts
   (a card's title is `.site-card a h2`, so a section's or the post's h2 rules never reach it) */
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-8) 1.75rem; margin: var(--space-8) 0 var(--space-12); }
.site-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-6); }
.site-card { min-width: 0; }
.site-card a { color: var(--color-ink); text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.site-card img, .site-card__blank { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--color-mist); display: block; border-radius: var(--radius-lg); transition: opacity var(--duration-fast); }
.site-card a:hover img { opacity: 0.9; }
.site-card__body { padding: var(--space-4) 0 0; }
.site-card a h2 { font-size: var(--text-xl); line-height: 1.3; margin: 0 0 var(--space-2); font-weight: 800; letter-spacing: -0.01em; }
.site-card a:hover h2 { color: var(--color-accent); }
.site-byline { font-size: var(--text-sm); color: var(--color-ink-muted); line-height: 1.6; margin: 0; }
.site-pager { display: flex; justify-content: space-between; align-items: center; padding: var(--space-6) 0 var(--space-16); border-top: 1px solid var(--color-line); }
.site-empty { margin: var(--space-8) 0 var(--space-20); color: var(--color-ink-soft); }
.site-message { padding-bottom: var(--space-20); }
/* the 404 page: a search and the ways back */
.site-notfound__search { max-width: 28rem; margin: var(--space-6) 0; }
.site-notfound__ways { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); padding: 0; margin: 0; list-style: none; }
.site-related { margin-top: 3.5rem; padding-top: var(--space-8); border-top: 1px solid var(--color-line); }
.site-related h2 { margin-top: 0; }
.site-related .site-cards { margin-bottom: 0; }

@media (max-width: 900px) {
    .site-cards--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-cards--three, .site-cards--two { grid-template-columns: 1fr; }
    .site-message { padding-bottom: 0; } /* the phone gutter used to reset it (see pages/shop.css) */
}

/* components/drawer.css */
/* the cart's drawer (assets/site.js), from any page */
html.has-drawer { overflow: hidden; }
.site-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.site-drawer__shade { position: absolute; inset: 0; background: var(--color-scrim); }
.site-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(26rem, 100%); background: var(--color-paper); color: var(--color-ink); display: flex; flex-direction: column; box-shadow: var(--shadow-drawer); }
.site-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-line); }
.site-drawer__head h2 { margin: 0; font-size: var(--text-lg); }
.site-drawer__x, .site-drawer__remove { border: 0; background: none; color: var(--color-ink-soft); font-size: var(--text-xl); line-height: 1; cursor: pointer; padding: var(--space-1) var(--space-2); }
.site-drawer__x:hover, .site-drawer__remove:hover { color: var(--color-alert); }
.site-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-2) var(--space-5); }
.site-drawer__empty { color: var(--color-ink-soft); margin: var(--space-6) 0; }
.site-drawer__lines { list-style: none; margin: 0; padding: 0; }
.site-drawer__lines li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
.site-drawer__lines img, .site-drawer__noimg { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-mist); }
.site-drawer__line { display: flex; flex-direction: column; min-width: 0; }
.site-drawer__line a { color: var(--color-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.site-drawer__line a:hover { color: var(--color-accent); }
.site-drawer__line small { color: var(--color-ink-soft); }
.site-drawer__price { font-weight: 600; white-space: nowrap; }
.site-drawer__deal { display: flex; justify-content: space-between; color: var(--color-accent); margin: var(--space-3) 0 0; }
.site-drawer__foot { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 0.6rem; }
.site-drawer__foot .site-button { text-align: center; justify-content: center; }
.site-drawer__total { display: flex; justify-content: space-between; margin: 0 0 var(--space-1); font-size: var(--text-lg); }

/* components/social.css */
/* the networks as icons, in a page's text (the social links block) */
.site-social { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.site-social a { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; background: var(--color-night); color: var(--color-on-dark); border-radius: var(--radius-sm); }
.site-social a:hover { background: var(--color-accent); color: var(--color-on-dark); }
.site-social .site-icon { width: 1.05rem; height: 1.05rem; }

/* components/achievement.css */
/* an achievement unlocked (assets/site.js): a dark card at the bottom right, from any page */
.site-achv { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-3); width: min(22rem, calc(100% - 2 * var(--space-5))); pointer-events: none; }
.site-achv__toast { position: relative; pointer-events: auto; background: var(--color-night); color: var(--color-on-dark); border: 1px solid var(--color-line-on-dark); border-radius: var(--radius-xl); box-shadow: var(--shadow-menu); overflow: hidden; animation: site-achv-in var(--duration-slower) var(--ease) both; }
.site-achv__toast::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--color-accent-on-dark), transparent); }
.site-achv__toast.is-leaving { animation: site-achv-out var(--duration-slow) var(--ease) both; }
.site-achv__link { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) var(--space-10) var(--space-4) var(--space-4); color: inherit; text-decoration: none; }
.site-achv__link:hover .site-achv__name { color: var(--color-accent-on-dark); }
.site-achv__link:focus-visible { outline: 2px solid var(--color-accent-on-dark); outline-offset: -2px; border-radius: var(--radius-xl); }
.site-achv__badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-round); background: var(--color-deep); border: 1px solid var(--color-accent-on-dark); color: var(--color-accent-on-dark); }
.site-achv__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-achv__label { font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-on-dark); }
.site-achv__name { font-size: var(--text-base); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; transition: color var(--duration-fast) var(--ease); }
.site-achv__desc { font-size: var(--text-sm); line-height: 1.4; color: var(--color-on-dark-soft); }
.site-achv__guest { font-size: var(--text-xs); color: var(--color-on-dark-muted); margin-top: var(--space-1); }
.site-achv__close { position: absolute; top: var(--space-2); right: var(--space-2); display: inline-flex; padding: var(--space-1); border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-on-dark-muted); cursor: pointer; line-height: 0; }
.site-achv__close:hover { color: var(--color-on-dark); background: var(--color-on-dark-wash); }
.site-achv__close:focus-visible { outline: 2px solid var(--color-accent-on-dark); outline-offset: 1px; }

@keyframes site-achv-in { from { opacity: 0; transform: translateY(var(--space-4)); } to { opacity: 1; transform: none; } }
@keyframes site-achv-out { to { opacity: 0; transform: translateY(var(--space-2)); } }

@media (prefers-reduced-motion: reduce) {
    .site-achv__toast, .site-achv__toast.is-leaving { animation: none; }
    .site-achv__name { transition: none; }
}
@media (max-width: 560px) {
    .site-achv { right: var(--gutter-phone); bottom: var(--gutter-phone); width: calc(100% - 2 * var(--gutter-phone)); }
}

/* blocks/table.css */
/* a table */
.site-table { overflow-x: auto; line-height: 1.6; }
.site-table table { border-collapse: collapse; width: 100%; font-size: var(--text-md); }
.site-table th, .site-table td { border-bottom: 1px solid var(--color-line); padding: 0.6rem var(--space-3); text-align: left; vertical-align: top; }
.site-table th { background: var(--color-mist); }

/* blocks/gallery.css */
/* a gallery of pictures */
.site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-3); margin: var(--space-8) 0; }
.site-gallery .site-image { margin: 0; }

/* blocks/accordion.css */
/* questions and answers: the FAQ block, and GenerateBlocks' accordion (each question opens its answer) */
.site-faq details { border-top: 1px solid var(--color-line); padding: 0.9rem 0; }
.site-faq summary { font-weight: 600; cursor: pointer; }
.site-accordion { margin: var(--space-8) 0; border-top: 1px solid var(--color-line); }
.site-accordion__item { border-bottom: 1px solid var(--color-line); }
.site-accordion__item summary { cursor: pointer; font-weight: 600; padding: var(--space-4) var(--space-8) var(--space-4) 0; position: relative; list-style: none; }
.site-accordion__item summary::-webkit-details-marker { display: none; }
.site-accordion__item summary::after { content: '+'; position: absolute; right: 0.25rem; top: 0.85rem; font-size: var(--text-xl); font-weight: 400; }
.site-accordion__item[open] summary::after { content: '−'; }
.site-accordion__body { padding: 0 0 var(--space-4); }
.site-accordion__body > :last-child { margin-bottom: 0; }

/* blocks/embed.css */
/* an embed: a link the page script turns into a player on a click (no third party on load) */
.site-embed a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 14rem; background: var(--color-night); color: var(--color-on-dark); text-decoration: none; font-weight: 600; }
.site-embed a::before { content: '▶'; font-size: var(--text-xl); }
/* an embed with its picture (a video's thumbnail, a playlist's cover), fetched through this site */
.site-embed.has-thumb a { position: relative; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.site-embed--spotify.has-thumb a { aspect-ratio: 1; }
.site-embed.has-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; transition: transform var(--duration-slower) var(--ease); }
.site-embed.has-thumb a:hover img { transform: scale(1.03); }
.site-embed.has-thumb a::before { position: relative; z-index: 2; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: var(--radius-round); background: var(--color-scrim-play); padding-left: 0.2rem; }
.site-embed.has-thumb span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--space-6) 0.9rem 0.6rem; background: linear-gradient(transparent, var(--color-scrim-caption)); font-size: var(--text-xs); text-align: left; }
/* the player, once clicked; the album player is our own */
.site-embed iframe, .site-album-player iframe { width: 100%; min-height: 22rem; border: 0; display: block; }
.site-embed--youtube iframe, .site-embed--vimeo iframe { min-height: 0; aspect-ratio: 16 / 9; height: auto; }

/* blocks/columns.css */
/* WordPress's grids and columns, kept (owner 2026-11-23): twelfths (--span), two by two on a tablet, one by one on a phone */
.site-columns { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); margin: var(--space-8) 0; }
.site-column { grid-column: span var(--span, 12); min-width: 0; }
.site-column > :first-child { margin-top: 0; }
.site-column > :last-child { margin-bottom: 0; }
.site-column .site-embed, .site-column figure { margin: 0 0 var(--space-4); }
@media (max-width: 900px) {
    .site-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-column { grid-column: auto; }
}
@media (max-width: 560px) { .site-columns { grid-template-columns: minmax(0, 1fr); } }

/* cards: a square picture, a name, a role, a few words and a button (the team) */
.site-columns--cards { text-align: center; gap: var(--space-10) 1.75rem; }
.site-columns--cards .site-image img { width: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.site-columns--cards h3 { font-size: var(--text-lg); margin: 0.9rem 0 0.15rem; }
.site-columns--cards h4 { font-size: var(--text-md); font-weight: 500; color: var(--color-ink-soft); margin: 0 0 0.6rem; }
.site-columns--cards p { font-size: var(--text-md); line-height: 1.6; text-align: center; }
.site-columns--cards .site-button-row { justify-content: center; margin-top: var(--space-3); }
.site-columns--cards .site-button { font-size: var(--text-sm); padding: 0.6rem var(--space-4); width: 75%; justify-content: center; background: var(--color-night); border-color: var(--color-night); }
.site-columns--cards .site-button:hover { background: var(--color-black); }

/* blocks/cover.css */
/* a cover: a picture across the whole window, its words over it; the block gives --dim (the shade, 0 to 1) and --focal (the picture's point of interest) */
.site-cover { position: relative; display: flex; align-items: center; min-height: 30rem; margin: 0 calc(50% - 50vw) var(--space-12); padding: var(--space-16) max(var(--space-6), calc(50vw - 38rem)); color: var(--color-on-dark); overflow: hidden; }
.site-cover > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: var(--focal, 50% 50%); }
.site-cover::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(var(--rgb-cover-shade) / var(--dim, 0.5)); }
.site-cover__inner { position: relative; z-index: 2; max-width: 34rem; }
.site-cover--right { justify-content: flex-end; }
.site-cover--center { justify-content: center; text-align: center; }
.site-cover h2, .site-cover h3 { color: var(--color-on-dark); margin-top: 0; }
.site-cover p { font-size: var(--text-lg); line-height: 1.7; }
@media (max-width: 560px) { .site-cover { min-height: 24rem; padding-top: var(--space-12); padding-bottom: var(--space-12); } }

/* blocks/carousel.css */
/* a carousel of cards (the clients' words): scrolls by hand, by its arrows, and turns by itself (assets/site.js, data-carousel) */
.site-carousel { position: relative; margin: var(--space-8) 0; }
.site-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: var(--space-1); }
.site-carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .site-carousel__track { scroll-behavior: auto; } }
.site-carousel__slide { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-xl); padding: 1.75rem var(--space-6); line-height: 1.6; }
.site-carousel__slide figure { margin: 0 0 var(--space-4); }
.site-carousel__slide img { width: 5.5rem; height: 5.5rem; max-height: none; border-radius: var(--radius-round); object-fit: cover; }
.site-carousel__slide h4 { margin: 0; font-size: var(--text-lg); }
.site-carousel__slide p { margin: var(--space-1) 0 0; font-size: var(--text-md); }
.site-carousel__slide p:last-child { margin-top: var(--space-4); font-style: italic; color: var(--color-ink-soft); }
.site-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 1px solid var(--color-line); border-radius: var(--radius-round); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-2xl); line-height: 1; cursor: pointer; box-shadow: var(--shadow-float); }
.site-carousel__nav--prev { left: -1.3rem; }
.site-carousel__nav--next { right: -1.3rem; }
@media (max-width: 900px) { .site-carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 560px) { .site-carousel__track { grid-auto-columns: 85%; } .site-carousel__nav { display: none; } }

/* blocks/tabs.css */
/* tabs (the playlists, the conditions of use): every panel shown until the script picks one (.is-ready, .is-active) */
.site-tabs { margin: var(--space-8) 0; }
.site-tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--color-night); margin-bottom: 1.75rem; }
.site-tabs__tab { border: 0; background: var(--color-mist); color: var(--color-ink); font: inherit; font-weight: 600; font-size: var(--text-md); padding: 0.7rem 1.1rem; cursor: pointer; }
.site-tabs__tab:hover { background: var(--color-line); }
.site-tabs__tab.is-active { background: var(--color-night); color: var(--color-on-dark); }
.site-tabs__heading { font-size: var(--text-xl); margin: var(--space-8) 0 var(--space-4); }
.site-tabs.is-ready .site-tabs__panel:not(.is-active) { display: none; }
.site-tabs.is-ready .site-tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* blocks/stats.css */
/* figures counted up when they come into view (the team page; assets/site.js) */
.site-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-8); margin: var(--space-10) 0; text-align: center; }
.site-stat__value { display: block; font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.site-stat__label { display: block; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 700; }

/* blocks/callout.css */
/* a box set apart (the admin's editor, the Codex's callout) */
.site-callout { background: var(--color-mist); border-left: 4px solid var(--color-accent); padding: var(--space-4) var(--space-5); margin: var(--space-6) 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.site-callout p { margin: 0 0 0.6rem; }
.site-callout p:last-child { margin: 0; }

/* blocks/dynamic.css */
/* the dynamic blocks drawn by the page: products, social links (the knowledge base index is in pages/kb.css, the contact form in components/form.css) */
.site-products-block { margin: var(--space-8) 0; }
.site-social--inline { justify-content: flex-start; margin: var(--space-4) 0; }

/* blocks/image.css */
/* a picture's own placement and size, as WordPress kept them: last of the
   blocks, so the author's choice wins over a block's picture rule (it was an
   inline style); the figure carries --w (a resized width) and --h (a height) */
.site-image.site-image--center { margin-left: auto; margin-right: auto; }
.site-image.site-image--right { margin-left: auto; }
.site-image--sized { max-width: var(--w); }
.site-image.site-image--sized img { width: 100%; }
.site-image.site-image--capped img { max-height: var(--h); width: auto; }

/* pages/home.css */
/* the home page: the hero (its picture comes as --hero) with its dark card, the partners' band, then the sections */
.home-hero { position: relative; display: flow-root; color: var(--color-on-dark); background: var(--color-night) 70% 40%/cover no-repeat; background-image: var(--hero, none); }
.home-hero .site-wrap { position: relative; }
.home-hero__inner { max-width: 38rem; margin: var(--space-20) 0 var(--space-16); padding: var(--space-12) 2.75rem; background: var(--color-hero-card); border-radius: var(--radius-xl); }
.home-hero h1 { font-size: var(--text-display-hero); line-height: 1.02; margin: 0 0 var(--space-5); font-weight: 800; letter-spacing: -0.025em; }
.home-hero p { font-size: var(--text-lg); line-height: 1.65; color: var(--color-on-dark-soft); }
.home-hero .home-eyebrow { font-size: var(--text-md); font-weight: 600; color: var(--color-accent-glow); margin: 0 0 var(--space-4); }
.home-hero .site-button-row { margin-bottom: 0; }

/* the partners: a dark band, eight logos at a time (assets/site.js turns them) */
.home-trust { background: var(--color-night); color: var(--color-on-dark-muted); border-top: 1px solid var(--color-line-on-dark); }
.home-trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-10); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.home-trust__title { margin: 0; flex: none; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-dark-muted); }
.home-logos { flex: 1 1 32rem; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); justify-items: center; align-items: center; gap: var(--space-5); }
.home-logos > * { display: block; transition: opacity var(--duration-slower) var(--ease); }
.home-logos > :nth-child(n+9) { display: none; }
.home-logos > .is-fading { opacity: 0; }
.home-logos img { width: 3.75rem; height: 3.75rem; object-fit: contain; padding: 0.4rem; background: var(--color-surface); border-radius: var(--radius-lg); }

.home-section { padding: var(--space-20) 0; background: var(--color-paper); }
.home-section--mist { background: var(--color-mist); }
.home-section__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: center; }
.home-section__grid--flip > :first-child { order: 2; }
.home-section__picture img { margin: 0 auto; max-height: 34rem; width: auto; }
.home-section h2 { font-size: var(--text-display-section); line-height: 1.1; margin: 0 0 var(--space-5); font-weight: 800; letter-spacing: -0.02em; }
.home-section p { font-size: var(--text-lg); color: var(--color-ink-soft); }
.home-section .home-eyebrow { color: var(--color-accent); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 var(--space-3); }
.home-head { max-width: 45rem; margin-bottom: var(--space-10); }
.home-head > :last-child { margin-bottom: 0; }

/* a list whose items open with a name (the Toolbox's apps) becomes cards; any other list gets ticks */
.home-section ul { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.home-section li { position: relative; padding-left: 2rem; margin: 0; font-size: var(--text-base); }
.home-section li::before { content: ''; position: absolute; left: 0.35rem; top: 0.3rem; width: 0.45rem; height: 0.8rem; border: solid var(--color-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.home-section ul:has(> li > strong:first-child) { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-4); }
.home-section li:has(> strong:first-child) { padding: var(--space-5); background: var(--color-surface); box-shadow: var(--shadow-card); border-radius: var(--radius-lg); color: var(--color-ink-soft); font-size: var(--text-md); line-height: 1.55; }
.home-section li:has(> strong:first-child)::before { content: none; }
.home-section li > strong:first-child { display: block; margin-bottom: var(--space-1); color: var(--color-ink); font-size: var(--text-lg); font-weight: 800; }

/* an offer: a dark band */
.home-section--feature { background: var(--color-deep); color: var(--color-on-dark); }
.home-section--feature p { color: var(--color-on-dark-soft); }
.home-section--feature a:not(.site-button) { color: var(--color-accent-on-dark); }
.home-section--feature .site-align-center { text-align: left; }
.home-section--feature .home-section__grid { grid-template-columns: 0.9fr 1.1fr; }
.home-section--feature .home-section__grid > :first-child { order: 2; }
.site-button--light { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-deep); }
.site-button--light:hover { background: var(--color-accent-glow); border-color: var(--color-accent-glow); color: var(--color-deep); }

/* three strengths, as cards */
.home-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.home-trio > div { background: var(--color-surface); border-radius: var(--radius-xl); padding: var(--space-8); }
.home-trio h3 { font-size: var(--text-xl); font-weight: 800; margin: 0 0 var(--space-3); text-transform: none; }
.home-trio p { font-size: var(--text-base); margin: 0; }

/* the newsletter: an accent band */
.home-section--newsletter { padding-top: 0; }
.home-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-12); border-radius: var(--radius-2xl); background: var(--color-accent); color: var(--color-on-dark); }
.home-band > div { flex: 1 1 22rem; }
.home-band h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.home-band p { color: var(--color-on-dark-soft); margin: 0; }
.home-band .site-newsletter { flex: 1 1 24rem; margin: 0; }
.home-band .site-newsletter input[type="email"] { border-color: transparent; padding: 0.9rem var(--space-4); }
.home-band .site-newsletter .site-button { background: var(--color-night); border-color: var(--color-night); }
.home-band .site-newsletter .site-button:hover { background: var(--color-deep); border-color: var(--color-deep); }
.home-band .site-newsletter__status { color: var(--color-on-dark); }

.home-section .site-related { border-top: 0; margin-top: 0; padding-top: 0; }
.home-section .site-related > h2 { display: none; }
.home-section--posts .site-cards { margin: 0; }

@media (max-width: 1100px) {
    .home-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-section__grid, .home-section--feature .home-section__grid, .home-trio { grid-template-columns: 1fr; gap: var(--space-8); }
    .home-section__grid--flip > :first-child, .home-section--feature .home-section__grid > :first-child { order: 0; }
    .home-hero__inner { margin: var(--space-12) 0; }
}
@media (max-width: 560px) {
    .home-section { padding: var(--space-12) 0; }
    .home-hero__inner { padding: var(--space-8) var(--space-6); }
    .home-band { padding: var(--space-8) var(--space-6); }
}

/* pages/post.css */
/* a post: its title, meta and picture (the Night Session design), the tags, pager, share links, related posts; the link to the other language */
.post-head { padding: var(--space-16) 0 0; }
.post-head__text { max-width: 52rem; }
.post-head__crumbs { font-size: var(--text-sm); color: var(--color-ink-muted); margin-bottom: var(--space-5); }
.post-head__crumbs a { color: var(--color-ink-muted); text-decoration: none; }
.post-head__crumbs a:last-child { color: var(--color-accent); font-weight: 600; }
.post-head__crumbs a:hover { text-decoration: underline; }
.post-head h1 { margin: 0 0 var(--space-5); font-size: var(--text-display-page); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.post-head__picture { max-width: calc(var(--measure) + var(--sidebar) + 3.5rem + 2 * var(--gutter)); margin-top: var(--space-10); }
.post-head__picture img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-2xl); }
.post-meta { margin: 0; font-size: var(--text-md); color: var(--color-ink-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; color: var(--color-ink); }
.post-meta__author { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--color-ink); }
.post-meta__author .site-icon { color: var(--color-meta-icon); width: 1rem; height: 1rem; }
.post-meta__sep { opacity: 0.6; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 1.75rem; font-size: var(--text-sm); }
.post-tags ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.post-tags a { display: inline-block; padding: 0.35rem 0.75rem; background: var(--color-mist); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: none; border-radius: var(--radius-xs); }
.post-tags a:hover { background: var(--color-line); color: var(--color-ink); }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin: 0 0 var(--space-10); font-size: var(--text-md); line-height: 1.45; }
.post-pager span { display: block; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-soft); margin-bottom: 0.2rem; }
.post-pager a { text-decoration: none; }
.post-pager a:hover { text-decoration: underline; }
.post-pager__next { text-align: right; }
/* each network's link wears its brand (--share-bg) */
.post-share { display: flex; align-items: center; justify-content: flex-start; gap: 0.9rem; margin: var(--space-12) 0 0; padding: 1.75rem 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.post-share > span { font-weight: 600; font-size: var(--text-md); }
.post-share ul { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.post-share a { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); color: var(--color-on-dark); background: var(--share-bg, var(--color-icon)); }
.post-share a:hover { filter: brightness(1.15); color: var(--color-on-dark); }
.post-share .site-icon { width: 1rem; height: 1rem; }
.post-share--mail { --share-bg: var(--brand-mail); }
.post-share--facebook { --share-bg: var(--brand-facebook); }
.post-share--linkedin { --share-bg: var(--brand-linkedin); }
.post-share--reddit { --share-bg: var(--brand-reddit); }
.post-share--tumblr { --share-bg: var(--brand-tumblr); }
.post-share--x { --share-bg: var(--brand-x); }
.post-related { margin-top: var(--space-12); }
.post-related h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-6); font-weight: 800; letter-spacing: -0.015em; }

@media (max-width: 560px) {
    .post-head { padding-top: var(--space-10); }
    .post-head__picture img { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
    .post-pager { grid-template-columns: 1fr; gap: var(--space-4); }
    .post-pager__next { text-align: left; }
    .post-share { flex-direction: column; }
}

/* pages/kb.css */
/* the knowledge base (/information/): the help centre's front page and its section cards (the kb_index block),
   a section's questions, an article's trail, pager and sidebar (src/page.js, src/blocksHtml.js) */

/* the front page: its line, the search over the questions, the cards (inside .prose: its paragraphs' margins are matched here) */
.kb-home .prose { line-height: var(--leading-body); }
.kb-home__eyebrow { margin: var(--space-12) 0 var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.kb-home .page-title { margin: 0 0 var(--space-4); }
.kb-home .kb-home__intro { max-width: 40rem; margin: 0 0 var(--space-6); font-size: var(--text-lg); color: var(--color-ink-soft); }
.kb-search { max-width: 40rem; box-shadow: var(--shadow-card); border-radius: var(--radius-xl); }
.kb-search:focus-within { outline-color: var(--color-accent); }
.kb-search input { padding: var(--space-4) var(--space-5); font-size: var(--text-lg); }
.kb-search button { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; padding: 0 var(--space-6); }
.kb-home .kb-search__none { margin: var(--space-4) 0 0; color: var(--color-ink-soft); }
.kb-cards { columns: 3; column-gap: var(--space-6); margin: var(--space-10) 0 var(--space-8); }
.kb-card { break-inside: avoid; margin: 0 0 var(--space-6); padding: var(--space-6); background: var(--color-surface); box-shadow: var(--shadow-card); border-radius: var(--radius-2xl); }
.kb-card h2 { margin: 0; font-size: var(--text-xl); line-height: 1.25; }
.kb-card h3 { margin: var(--space-6) 0 var(--space-1); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.kb-card h2 a, .kb-card h3 a { color: var(--color-ink); text-decoration: none; }
.kb-card h3 a { color: var(--color-ink-soft); }
.kb-card h2 a:hover, .kb-card h3 a:hover { color: var(--color-accent); }
.kb-home .kb-card__count { margin: var(--space-1) 0 var(--space-3); font-size: var(--text-sm); color: var(--color-ink-muted); }
.kb-questions { list-style: none; margin: 0; padding: 0; }
.prose .kb-questions { margin: 0; }
.kb-questions li { margin: 0; border-top: 1px solid var(--color-line); }
.kb-questions a { display: block; padding: 0.65rem 0; font-size: var(--text-md); font-weight: 500; line-height: 1.4; color: var(--color-ink); text-decoration: none; }
.kb-questions a:hover { color: var(--color-accent); }
.kb-home .kb-home__ask { margin: 0; color: var(--color-ink-soft); }

/* a section's page and an article: the trail above the title */
.kb-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; font-size: var(--text-sm); color: var(--color-ink-muted); }
.kb-crumbs li + li::before { content: "/"; margin-right: var(--space-2); opacity: 0.6; }
.kb-crumbs a { color: var(--color-ink-muted); text-decoration: none; }
.kb-crumbs li:last-child a { color: var(--color-accent); font-weight: 600; }
.kb-crumbs a:hover { text-decoration: underline; }
.kb-article .page-title, .kb-section .page-title { margin-top: 0; }
.kb-article .page-title { font-size: var(--text-display-product); }
.kb-pager { margin: var(--space-10) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--color-line); }

/* a section's questions, each with Yoast's line under it */
.kb-section__count { margin: calc(-1 * var(--space-3)) 0 var(--space-6); color: var(--color-ink-muted); }
.kb-list { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.kb-list li { margin: 0 0 var(--space-3); }
.kb-list a { display: block; padding: var(--space-5) var(--space-6); background: var(--color-surface); box-shadow: var(--shadow-card); border-radius: var(--radius-xl); color: var(--color-ink); text-decoration: none; transition: box-shadow var(--duration-fast); }
.kb-list a:hover { box-shadow: var(--shadow-card-hover); }
.kb-list__question { display: block; font-size: var(--text-lg); font-weight: 700; line-height: 1.35; }
.kb-list a:hover .kb-list__question { color: var(--color-accent); }
.kb-list__summary { display: block; margin-top: var(--space-1); font-size: var(--text-md); color: var(--color-ink-soft); line-height: 1.5; }
.kb-section__subs { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.kb-section__subs li { margin: 0 0 var(--space-2); }
.kb-section__subs a { font-weight: 700; }
.kb-section__subs span { color: var(--color-ink-muted); font-size: var(--text-sm); }

/* the sidebar: the question read and the section shown are marked */
.kb-aside a[aria-current="page"] { color: var(--color-accent); font-weight: 700; }
.kb-aside__questions li { margin: 0; border-top: 1px solid var(--color-line); }
.kb-aside__questions li:first-child { border-top: 0; }
.kb-aside__questions a { display: block; padding: var(--space-2) 0; line-height: 1.4; }
.kb-aside__count { color: var(--color-ink-muted); font-size: var(--text-sm); }
.kb-aside__sections ul { margin: var(--space-1) 0 0 var(--space-4); }

@media (max-width: 1100px) {
    .kb-cards { columns: 2; }
}
@media (max-width: 560px) {
    .kb-cards { columns: 1; }
    .kb-home__eyebrow { margin-top: var(--space-8); }
    .kb-search input { font-size: var(--text-base); }
    .kb-card, .kb-list a { padding: var(--space-5); }
}

/* pages/shop.css */
/* the shop: a listing, a product (its add-to-cart, reviews, bought together) */
.shop-product, .shop-list, .shop-cart, .shop-receipt { padding-top: var(--space-8); padding-bottom: var(--space-16); }
.shop-crumbs { font-size: var(--text-sm); color: var(--color-ink-soft); margin-bottom: var(--space-8); }
.shop-crumbs a { color: var(--color-ink-muted); text-decoration: none; }
.shop-crumbs a:hover { text-decoration: underline; }
.shop-product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.shop-product__image img { width: 100%; height: auto; display: block; }
.shop-product__title { font-size: var(--text-display-product); line-height: 1.06; margin: 0 0 var(--space-5); font-weight: 800; letter-spacing: -0.025em; }
.shop-product__price { font-size: var(--text-xl); margin: 0 0 var(--space-4); }
.shop-price del { color: var(--color-ink-soft); font-size: var(--text-smaller); }
.shop-price ins { text-decoration: none; }
.shop-deal { background: var(--color-deal-bg); color: var(--color-deal-ink); font-weight: 600; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin: 0 0 var(--space-6); }
.shop-add { margin: 0 0 var(--space-6); padding-bottom: var(--space-6); border-bottom: 2px solid var(--color-ink); }
.shop-add__nyp { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; max-width: 14rem; }
.shop-add__nyp input, .shop-add__qty { font: inherit; padding: 0.6rem var(--space-3); border: 1px solid var(--color-field-border); border-radius: var(--radius-sm); }
.shop-add__base { display: block; font-size: var(--text-xs); color: var(--color-ink-soft); margin: 0.35rem 0 var(--space-5); }
.shop-add__row { display: flex; gap: var(--space-3); align-items: center; }
.shop-add__qty { width: 4.5rem; }
.shop-note { background: var(--color-mist); padding: 0.85rem var(--space-4); border-left: 4px solid var(--color-accent); }
.shop-meta { font-size: var(--text-md); color: var(--color-ink-soft); }
.shop-meta p { margin: 0 0 0.6rem; }
.shop-meta a { color: var(--color-ink); }
.shop-stars { color: var(--color-star); letter-spacing: 0.05em; }
.shop-stars span { color: var(--color-star-off); }
.shop-stars .is-on, .shop-stars .is-half { color: var(--color-star); }
.shop-tabs { margin-top: 3.5rem; }
.shop-tabs__title { font-size: var(--text-2xl); margin: var(--space-10) 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-line); }
.shop-description { max-width: none; }
.shop-reviews { list-style: none; margin: 0; padding: 0; }
.shop-reviews li { padding: 1.1rem 0; border-bottom: 1px solid var(--color-line); }
.shop-reviews p { margin: 0.35rem 0 0; }
.shop-reviews__who { font-size: var(--text-md); color: var(--color-ink-soft); }
.shop-reviews__verified { font-size: var(--text-xs); color: var(--color-accent); }
.shop-review-form { margin-top: var(--space-8); max-width: 40rem; }
.shop-review-form h3 { font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.shop-review-form textarea { font: inherit; width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-field-border); border-radius: var(--radius-sm); }
.shop-review-form__note { font-size: var(--text-xs); color: var(--color-ink-soft); }
.shop-rating { border: 0; padding: 0; margin: 0 0 var(--space-4); display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.shop-rating legend { float: left; width: 100%; font-weight: 500; margin-bottom: 0.35rem; }
.shop-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-rating label { font-size: var(--text-2xl); color: var(--color-star-off); cursor: pointer; line-height: 1; }
.shop-rating input:checked ~ label, .shop-rating label:hover, .shop-rating label:hover ~ label { color: var(--color-star); }
.shop-rating input:focus-visible + label { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--space-6); }
.shop-card { border: 1px solid var(--color-line); border-radius: var(--radius-xl); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); background: var(--color-paper); }
.shop-card a { color: var(--color-ink); text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem; }
.shop-card a:hover .shop-card__title { color: var(--color-accent); }
.shop-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.shop-card__title { font-weight: 500; line-height: 1.35; }
.shop-card .shop-price { margin-top: auto; }
.shop-card.is-owned::after { content: attr(data-owned-label); align-self: flex-start; font-size: var(--text-xs); font-weight: 700; color: var(--color-accent); }
.shop-together, .shop-related { margin-top: 3.5rem; }
.shop-together h2, .shop-related h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-5); font-weight: 500; }
.shop-together__row { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.shop-grid--together { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.shop-grid--together .shop-card { width: 11rem; }
.shop-together__plus { color: var(--color-ink-soft); font-size: var(--text-xl); }
/* the listing's filter bar: segmented choices and dropdowns (rectangular, never pills), 44px tall; the count and the sort at the end */
.shop-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-8); }
.shop-filter__choices, .shop-filter__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.shop-filter__end { margin-left: auto; }
.shop-filter__seg { display: inline-flex; border: 1px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.shop-filter__seg button { font: inherit; font-weight: 500; min-height: 2.75rem; padding: 0 var(--space-4); border: 0; background: transparent; color: var(--color-ink); cursor: pointer; transition: background var(--duration-fast) var(--ease); }
.shop-filter__seg button + button { border-left: 1px solid var(--color-line); }
.shop-filter__seg button:hover { background: var(--color-mist); }
.shop-filter__seg button[aria-checked="true"] { background: var(--color-accent); color: var(--color-on-dark); }
.shop-filter__seg button:focus-visible { outline-offset: -3px; }
.shop-filter__select { position: relative; display: inline-flex; color: var(--color-ink-muted); }
/* the chevron, drawn in the text's colour, with room on both sides */
.shop-filter__select::after {
    content: ''; position: absolute; top: 50%; right: var(--space-4); width: 0.5rem; height: 0.5rem; margin-top: -0.4rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.shop-filter__select select {
    appearance: none; font: inherit; font-weight: 500; width: 100%; min-height: 2.75rem; padding: 0 var(--space-10) 0 var(--space-4);
    border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease);
}
.shop-filter__select:hover { color: var(--color-ink); }
.shop-filter__select select:hover { border-color: var(--color-field-border); }
.shop-filter__count { color: var(--color-ink-soft); font-size: var(--text-md); }
.shop-empty { text-align: center; padding: var(--space-12) var(--space-6); background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.shop-empty p { margin: 0 0 var(--space-5); color: var(--color-ink-soft); }
.shop-list__lead { color: var(--color-ink-soft); max-width: 46rem; }

/* on a phone this frame has no top and bottom padding: the phone gutter (base/reset.css) used to come last and reset it; kept until the new design decides */
@media (max-width: 560px) {
    .shop-product, .shop-list, .shop-cart, .shop-receipt { padding-top: 0; padding-bottom: 0; }
    /* the filter bar: the segments across the width, the dropdowns two by two, the count beside the sort */
    .shop-filter { flex-direction: column; align-items: stretch; }
    .shop-filter__choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .shop-filter__seg { grid-column: 1 / -1; display: flex; }
    .shop-filter__seg button { flex: 1 1 0; padding: 0 var(--space-2); }
    .shop-filter__end { margin-left: 0; justify-content: space-between; flex-wrap: nowrap; }
    .shop-filter__end .shop-filter__select { flex: 0 1 12rem; }
}
@media (max-width: 900px) {
    .shop-product__top { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* pages/cart.css */
/* the cart, the checkout, the receipt: the order table, the offer, the coupons */
.shop-order { width: 100%; border-collapse: collapse; margin: var(--space-4) 0 var(--space-6); }
.shop-order th, .shop-order td { text-align: left; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--color-line); vertical-align: middle; }
.shop-order thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-ink-soft); }
.shop-order tfoot th { font-weight: 500; }
.shop-order__total th, .shop-order__total td { font-size: var(--text-lg); font-weight: 700; }
.shop-order .shop-num { text-align: right; white-space: nowrap; }
.shop-cart__img { width: 64px; }
.shop-cart__img img { display: block; border-radius: var(--radius-md); }
.shop-cart__nyp { display: inline-flex; align-items: center; gap: var(--space-1); }
.shop-cart__nyp input { font: inherit; padding: 0.6rem var(--space-3); border: 1px solid var(--color-field-border); border-radius: var(--radius-sm); width: 6.5rem; }
.shop-cart__remove { background: none; border: 1px solid var(--color-line); border-radius: var(--radius-round); width: 1.8rem; height: 1.8rem; cursor: pointer; color: var(--color-ink-soft); font-size: var(--text-lg); line-height: 1; }
.shop-cart__remove:hover { color: var(--color-alert); border-color: var(--color-alert); }
.shop-cart__off { color: var(--color-accent); }
.shop-cart__empty { font-size: var(--text-lg); }
.shop-checkout { max-width: 34rem; margin-left: auto; }
.shop-checkout__row { display: flex; gap: var(--space-2); }
.shop-checkout__row input { flex: 1; font: inherit; padding: 0.6rem var(--space-3); border: 1px solid var(--color-field-border); border-radius: var(--radius-sm); }
.shop-checkout__coupon label { font-weight: 500; display: block; margin-bottom: 0.35rem; }
.shop-coupon { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--color-mist); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 0.15rem var(--space-2); font-size: var(--text-sm); }
.shop-coupon button { background: none; border: 0; cursor: pointer; color: var(--color-ink-soft); }
.shop-checkout__who, .shop-checkout__small { font-size: var(--text-sm); color: var(--color-ink-soft); }
.shop-checkout__pay { flex-direction: column; align-items: stretch; }
.shop-checkout__paypal { background: var(--brand-paypal); border-color: var(--brand-paypal); color: var(--brand-paypal-ink); }
.shop-checkout__paypal:hover { background: var(--brand-paypal-hover); border-color: var(--brand-paypal-hover); color: var(--brand-paypal-ink); }
.shop-checkout__waiver { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--text-md); margin: var(--space-4) 0; }
.shop-checkout__waiver input { margin-top: 0.3rem; }
.shop-offer { border: 2px dashed var(--color-offer-border); background: var(--color-offer-bg); margin: 0 0 var(--space-6); }
.shop-offer__title { margin: 0; padding: 0.6rem var(--space-4); background: var(--color-offer-head); color: var(--color-on-dark); font-weight: 700; }
.shop-offer__body { display: flex; gap: var(--space-4); padding: var(--space-4); align-items: flex-start; }
.shop-offer__body p { margin: 0 0 0.6rem; }
.shop-offer__body img { flex: none; border-radius: var(--radius-md); }
.shop-offer__take { display: flex; gap: var(--space-2); align-items: center; font-weight: 700; cursor: pointer; }
.shop-next-coupon { border: 1px solid var(--color-coupon-border); background: var(--color-coupon-bg); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); margin: var(--space-8) 0; max-width: 34rem; }
.shop-next-coupon h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.shop-next-coupon__code { font-family: var(--font-mono); font-size: var(--text-xl); letter-spacing: 0.08em; font-weight: 700; }
.shop-receipt__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); margin: 0 0 var(--space-6); }

/* the cart's lines as cards on a tablet */
@media (max-width: 900px) {
    .shop-order--cart thead { display: none; }
    .shop-order--cart tr { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
    .shop-order--cart td { border: 0; padding: 0; }
    .shop-order--cart .shop-cart__img { grid-row: span 3; }
    .shop-checkout { max-width: none; }
}

/* pages/comments.css */
/* a post's comments (src/comments.js); the form is drawn by assets/site.js; an initials avatar's colour comes from --hue (a picture has none, so no background) */
.post-comments { margin: var(--space-12) 0 0; padding-top: var(--space-8); border-top: 1px solid var(--color-line); }
.post-comments h2 { font-size: var(--text-xl); margin: 0 0 var(--space-5); }
.comment-list, .comment__replies { list-style: none; margin: 0; padding: 0; }
.comment { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); }
.comment__replies { margin: var(--space-3) 0 0 2.75rem; }
.comment__replies .comment { border-bottom: 0; padding-bottom: 0; }
.comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.comment__avatar { width: 2.1rem; height: 2.1rem; border-radius: var(--radius-round); color: var(--color-on-dark); background: hsl(var(--hue) var(--avatar-saturation) var(--avatar-lightness)); font-size: var(--text-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.comment__name { font-weight: 700; }
.comment__badge { font-size: var(--text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-accent); border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 0.05rem 0.35rem; }
.comment__head time { color: var(--color-ink-soft); font-size: var(--text-sm); }
.comment__text { margin: var(--space-2) 0 0 2.7rem; overflow-wrap: anywhere; }
.comment__text p { margin: 0 0 0.6rem; }
.comment__actions { margin-left: 2.7rem; display: flex; gap: var(--space-4); }
.comment__actions button { border: 0; background: none; padding: 0; font: inherit; font-size: var(--text-sm); color: var(--color-ink-soft); cursor: pointer; }
.comment__actions button:hover { color: var(--color-accent); }
.comment.is-pending { opacity: 0.75; }
.comment__pending { margin: var(--space-1) 0 0 2.7rem; font-size: var(--text-sm); color: var(--color-ink-soft); }
.comment-form { margin-top: var(--space-6); }
.comment .comment-form { margin-left: 2.7rem; }
.comment-form__form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.comment-form__form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: var(--space-3); border: 1px solid var(--color-line); border-radius: var(--radius-md); resize: vertical; }
.comment-form__note:empty { display: none; }
.comment-form__note { color: var(--color-alert); margin: var(--space-2) 0 0; }
.comment-form__replying { font-weight: 600; margin: 0 0 var(--space-2); }

/* pages/account.css */
/* the account pages: sign in beside create, the menu beside the content, the reader's picture and what they have in the apps */
.site-account { padding-top: var(--space-10); padding-bottom: var(--space-16); }
.site-account h2 { font-size: var(--text-2xl); margin: 0 0 var(--space-4); }
.site-account__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
.site-account__box { border: 1px solid var(--color-line); border-radius: var(--radius-xl); padding: 1.75rem var(--space-8); }
.site-account__form { max-width: 30rem; }
.site-account__small { font-size: var(--text-sm); color: var(--color-ink-soft); }
.site-account__or { display: flex; align-items: center; gap: var(--space-3); color: var(--color-ink-soft); font-size: var(--text-sm); margin: var(--space-6) 0 var(--space-4); }
.site-account__or::before, .site-account__or::after { content: ''; flex: 1; border-top: 1px solid var(--color-line); }
.site-account__frame { display: grid; grid-template-columns: 15rem 1fr; gap: var(--space-10); align-items: start; }
.site-account__menu ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-line); border-radius: var(--radius-xl); overflow: hidden; }
.site-account__menu li + li { border-top: 1px solid var(--color-line); }
.site-account__menu a, .site-account__menu button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.8rem var(--space-4); color: var(--color-ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.site-account__menu a:hover, .site-account__menu button:hover { background: var(--color-mist); color: var(--color-accent); }
.site-account__menu .is-active a { background: var(--color-mist); color: var(--color-accent); box-shadow: inset 3px 0 0 var(--color-accent); }
.site-account__menu .site-icon { width: 1.15rem; height: 1.15rem; }
.site-account__content > :first-child { margin-top: 0; }
.site-account__content h2 { margin-top: var(--space-10); }

.account-me { display: flex; align-items: center; gap: var(--space-5); margin: 0 0 var(--space-6); }
.account-me > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.account-me small { color: var(--color-ink-soft); }
.account-avatar { width: 96px; height: 96px; border-radius: var(--radius-round); object-fit: cover; flex: none; font-size: var(--text-2xl); }
.account-me__form input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.account-me__form label { cursor: pointer; position: relative; }
.account-me__form label:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.account-me__remove { border: 0; background: none; padding: 0; font: inherit; font-size: var(--text-sm); color: var(--color-ink-soft); text-decoration: underline; cursor: pointer; }
.account-apps { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.account-apps h2 { font-size: var(--text-xl); margin: 0 0 var(--space-4); }
.account-block { margin: 0 0 var(--space-6); }
.account-block h3 { font-size: var(--text-base); margin: 0 0 0.6rem; display: flex; align-items: baseline; gap: var(--space-3); }
.account-block h3 a { font-size: var(--text-sm); font-weight: 500; }
.account-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--space-3); }
.account-cards li { display: flex; align-items: center; gap: var(--space-3); padding: 0.6rem var(--space-3); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.account-cards li span { display: flex; flex-direction: column; min-width: 0; }
.account-cards small, .account-list small { color: var(--color-ink-soft); }
.account-thumb { width: 48px; height: 48px; border-radius: var(--radius-round); object-fit: cover; flex: none; }
.account-list { margin: 0; padding-left: 1.1rem; }
.account-list li { margin: var(--space-1) 0; }
.account-apps h2 small { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-soft); margin-left: var(--space-2); }
.account-achievements { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-3); }
.account-achievements li { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.account-achievements strong { line-height: 1.3; }
.account-achievements span { font-size: var(--text-sm); color: var(--color-ink-soft); }

@media (max-width: 900px) {
    .site-account__pair, .site-account__frame { grid-template-columns: 1fr; gap: var(--space-6); }
    .site-account__box { padding: var(--space-5); }
}
/* on a phone this frame has no top and bottom padding: the phone gutter (base/reset.css) used to come last and reset it; kept until the new design decides */
@media (max-width: 560px) {
    .site-account { padding-top: 0; padding-bottom: 0; }
}
