/* The Worldhoppers — theme stylesheet, direction A "Ars Arcanum".
 *
 * The guild as a scholar's codex: a quiet serif, numbers in a fine
 * monospace, bronze as the one metal, and sections on "plates" — a lighter
 * surface with a fine border and a bronze rule along its top, like the
 * plates of an atlas (setup/directions/chosen.md). Light and dark mode.
 *
 * Fork guide
 *
 * - Every colour, size and space is a token on :root below; the dark mode
 *   redefines the colour tokens only. The mode is [data-theme] on <html>:
 *   set before first paint by the inline script in
 *   partials/document/open.html (stored choice, else the system setting)
 *   and flipped by the header's switch (assets/js/nav.js). Without
 *   JavaScript, prefers-color-scheme decides.
 * - Contrast (WCAG 2.2, AA = 4.5:1 text, 3:1 large text and UI) is noted
 *   beside each colour. --line is decorative only: never text, never a
 *   control's only border (controls use --muted, 5.9:1 / 7.5:1).
 * - Breakpoints, mobile first, no sideways scroll from 320px up:
 *     >= 40em  two-column grids (images, cards, class chart)
 *     >= 56em  the two-col layout's columns, the roster's filter column,
 *              the profile's two columns, text-media side by side
 *     >= 64em  horizontal header navigation (below it: the Menu button)
 * - Fonts are self-hosted (assets/fonts, published at /fonts/ by
 *   partials/document/open.html): Cormorant Garamond (display), Source
 *   Serif 4 (text), IBM Plex Mono (numbers, times). SIL OFL 1.1, licence
 *   texts beside the files. No third-party request, ever.
 * - The base layer uses :where() (zero specificity), so every class rule
 *   wins over it. Buttons declare background and colour in every state.
 * - Spacing between elements in a slot is the slot's grid gap, never a
 *   margin; the frame (div.ce-frame) adds none of its own.
 * - The one inline style the templates write is --share on a bar's fill
 *   (class chart, profession skill): the bar's length is data.
 */

/* ----------------------------------------------------------------- fonts */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ---------------------------------------------------------------- tokens */

:root {
  /* Light mode. Ratios against --bg (Vellum) and --plate. */
  --bg: #F2F2EE;            /* Vellum, the page */
  --surface: #FBFBF8;       /* Folio, panels and inputs */
  --plate: #FDFDFB;         /* section plates */
  --ink: #1B2130;           /* text: 14.3:1 on bg, 15.8:1 on plate */
  --muted: #575D69;         /* secondary text, control borders: 5.9:1 / 6.5:1 */
  --line: #D3D4CC;          /* decorative rules and plate borders */
  --accent: #33506E;        /* Steel: links, buttons, bars: 7.4:1 / 8.2:1 */
  --on-accent: #FBFBF8;     /* text on Steel: 8.1:1 */
  --metal: #86561F;         /* Bronze: labels, plate rule, gains: 5.6:1 / 6.1:1 */
  --tint: #E7E7E0;          /* table heads, hovered rows; bronze on it 5.0:1 */
  /* The emblem (partials/glyphs.html "glyph-logo"). */
  --logo-shade: #86561F;
  --logo-light: #CFA160;
  --logo-dot: #86561F;
  /* Item quality, on a plate: all >= 4.9:1. */
  --q-poor: #6B6F78;
  --q-common: var(--ink);
  --q-uncommon: #2F6B2F;
  --q-rare: #1F5FA8;
  --q-epic: #7A3FA8;
  --q-legendary: #A04F00;

  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-base: 1.0625rem;   /* 17px */
  --text-sm: .9375rem;
  --text-xs: .8125rem;
  --text-lead: clamp(1.125rem, 1rem + .6vw, 1.3125rem);
  --text-h1: clamp(2.75rem, 1.8rem + 4vw, 5.5rem);
  --text-h1-inner: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --text-h2: clamp(1.5rem, 1.3rem + .8vw, 1.75rem);
  --text-h3: 1.375rem;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --gap: 1.5rem;            /* between plates */
  --radius: 2px;
  --measure: 62ch;
  --container: 65rem;       /* 1040px */
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

/* Dark mode: the colour tokens only. Ratios against --bg (Night) and
   --plate (Slate). */
:root[data-theme="dark"] {
  --bg: #12151B;            /* Night */
  --surface: #1A1E27;
  --plate: #1A1E27;         /* Slate */
  --ink: #E6E3DA;           /* Parchment: 14.2:1 / 13.0:1 */
  --muted: #A3A6AE;         /* 7.5:1 / 6.9:1 */
  --line: #323845;
  --accent: #9DB6D2;        /* 8.8:1 / 8.0:1 */
  --on-accent: #12151B;     /* on Steel: 8.8:1 */
  --metal: #CFA160;         /* Brass: 7.8:1 / 7.1:1 */
  --tint: #222733;
  --logo-shade: #B07A35;
  --logo-light: #CFA160;
  --logo-dot: #CFA160;
  --q-poor: #9A9EA6;        /* >= 6.2:1 on Slate */
  --q-uncommon: #7CC77F;
  --q-rare: #7FB0EE;
  --q-epic: #C59BEE;
  --q-legendary: #F0A35A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #12151B; --surface: #1A1E27; --plate: #1A1E27; --ink: #E6E3DA; --muted: #A3A6AE;
    --line: #323845; --accent: #9DB6D2; --on-accent: #12151B; --metal: #CFA160; --tint: #222733;
    --logo-shade: #B07A35; --logo-light: #CFA160; --logo-dot: #CFA160;
    --q-poor: #9A9EA6; --q-uncommon: #7CC77F; --q-rare: #7FB0EE; --q-epic: #C59BEE; --q-legendary: #F0A35A;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
  font-optical-sizing: auto;
}
:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
:where(p, ul, ol, dl, figure, blockquote) { margin: 0; }
:where(a) { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }
:where(img, svg, video) { max-width: 100%; }
:where(img) { height: auto; display: block; }
:where(table) { border-collapse: collapse; }
:where(code) { font-family: var(--font-data); font-size: .9em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.glyph-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- buttons */

.ce-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.ce-btn--primary,
.ce-btn--primary:visited { background: var(--accent); color: var(--on-accent); }
.ce-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ce-btn--secondary,
.ce-btn--secondary:visited { background: transparent; color: var(--accent); }
.ce-btn--secondary:hover { background: var(--accent); color: var(--on-accent); }
.page__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

/* ---------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
  position: relative;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.site-header__mark { width: 2.5rem; height: 2.5rem; color: var(--ink); flex: none; }
.site-header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  font-variant: small-caps;
  letter-spacing: .06em;
  white-space: nowrap;
}
.site-nav { order: 3; width: 100%; }
.site-nav__toggle {
  position: absolute;
  top: var(--space-4);
  right: calc(var(--gutter) + 3rem);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 2.5rem;
  padding: 0 var(--space-3);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  font-variant: small-caps;
  letter-spacing: .08em;
  font-weight: 600;
  cursor: pointer;
}
.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  position: relative;
}
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bars::before { top: -5px; }
.site-nav__toggle-bars::after { top: 5px; }
.site-nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0 var(--space-3);
}
.site-nav__toggle[aria-expanded="true"] + .site-nav__menu { display: block; }
.site-nav__item { border-bottom: 1px dotted var(--line); }
.site-nav__link,
.site-nav__sublink {
  display: block;
  padding: var(--space-2) 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
}
.site-nav__link[aria-current="page"],
.site-nav__link[data-ancestor],
.site-nav__sublink[aria-current="page"] { color: var(--metal); }
.site-nav__sub { list-style: none; margin: 0 0 var(--space-2); padding-left: var(--space-4); }
.site-nav__sublink { font-size: 1.2rem; }
.site-mode {
  position: absolute;
  top: var(--space-4);
  right: var(--gutter);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 50%;
  cursor: pointer;
}
.site-mode:hover { color: var(--metal); border-color: var(--metal); }
.site-mode__icon { width: 1.4rem; height: 1.4rem; }
.site-lang { order: 4; }
.site-lang__list { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.site-lang__link { color: var(--muted); font-variant: small-caps; letter-spacing: .08em; text-decoration: none; }
.site-lang__link[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--metal); }
.site-header__inner { padding-right: calc(var(--gutter) + 9.25rem); }
@media (max-width: 29.99em) {
  .site-header__inner { padding-right: calc(var(--gutter) + 5.75rem); }
  .site-header__name { font-size: 1.2rem; }
  .site-nav__toggle { font-size: 0; padding: 0 .7rem; }
}

@media (min-width: 64em) {
  .site-header__inner { flex-wrap: nowrap; padding-right: var(--gutter); padding-block: var(--space-5) var(--space-4); }
  .site-nav { order: 0; width: auto; }
  .site-nav__toggle { display: none; }
  .site-nav__menu,
  .site-nav__toggle[aria-expanded="true"] + .site-nav__menu {
    display: flex;
    gap: 1.1rem;
    padding: 0;
  }
  .site-nav__item { position: relative; border: 0; }
  .site-nav__link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    font-variant: small-caps;
    letter-spacing: .07em;
    color: var(--muted);
    padding: var(--space-1) 0;
    border-bottom: 1px solid transparent;
  }
  .site-nav__link:hover { color: var(--ink); }
  .site-nav__link[aria-current="page"],
  .site-nav__link[data-ancestor] { color: var(--ink); border-bottom-color: var(--metal); }
  .site-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 20;
    min-width: 13rem;
    padding: var(--space-2) var(--space-4);
    background: var(--plate);
    border: 1px solid var(--line);
    border-top: 2px solid var(--metal);
  }
  .site-nav__item--parent:is(:hover, :focus-within) .site-nav__sub { display: block; }
  .site-nav__sublink { font-family: var(--font-body); font-weight: 400; font-size: 1rem; }
  .site-mode { position: static; }
}

/* ----------------------------------------------------- main, page header */

.site-main { padding-bottom: var(--space-8); }
.page__header { padding-block: var(--space-7) var(--space-6); }
.page__kicker {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: var(--space-3);
}
.page__title { font-size: var(--text-h1-inner); line-height: 1; letter-spacing: -.005em; }
.page__lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin-top: var(--space-4);
}
.page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}
.page__header--home {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7) var(--space-7);
}
.page__header--home .page__title { font-size: var(--text-h1); }
.page__emblem {
  display: none;
  color: var(--ink);
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 1;
  height: auto;
  justify-self: end;
}
@media (min-width: 48em) {
  .page__header--home { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .page__emblem { display: block; }
}
.page__content > :where(.ce-layout) { margin-top: 0; }
.page__plates { display: grid; gap: var(--gap); margin-top: var(--gap); }
.page__back { margin-top: var(--space-6); }

/* ------------------------------------------------------- backend layouts */

.ce-layout__slot { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.ce-layout__cols { display: grid; gap: var(--gap); }
.ce-layout__slot--footer { margin-top: var(--gap); }
@media (min-width: 56em) {
  .ce-layout--two-col .ce-layout__cols { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: start; }
}

/* ---------------------------------------------------------------- plates */

/* The section look: a plate. Every guild data element, a text with a
   heading and the cta draw one; plate-head.html draws its head. */
.plate {
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 2px solid var(--metal);
  padding: var(--space-5) clamp(1rem, 3vw, 1.75rem) 1.625rem;
  min-width: 0;
}
.plate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  margin-bottom: .875rem;
  border-bottom: 1px dotted var(--muted);
}
.plate__title { font-size: var(--text-h2); }
.plate__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.plate__more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.plate__more:hover { text-decoration: underline; }
.plate__body > :first-child { margin-top: 0; }
.guild-note {
  font-size: var(--text-xs);
  font-family: var(--font-data);
  color: var(--muted);
  background: var(--tint);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
.guild-empty { color: var(--muted); font-style: italic; }

/* --- text -------------------------------------------------------------- */

.ce-text { max-width: var(--measure); }
.plate .ce-text { max-width: none; }
.ce-text > * + * { margin-top: var(--space-4); }
.ce-text :where(h2) { font-size: var(--text-h2); margin-top: var(--space-6); }
.ce-text :where(h3) { font-size: var(--text-h3); margin-top: var(--space-5); }
.ce-text :where(h4) { font-size: 1.15rem; margin-top: var(--space-5); }
.ce-text :where(ul, ol) { padding-left: 1.4em; }
.ce-text :where(li) + li { margin-top: var(--space-2); }
.ce-text :where(ul) li::marker { color: var(--metal); }
.ce-text :where(ol) li::marker { color: var(--metal); font-family: var(--font-display); font-weight: 700; }
.ce-text :where(strong) { font-weight: 600; }
.plate .ce-text { max-width: 70ch; }

/* GFM tables (render-table.html) */
.ce-table { overflow-x: auto; }
.ce-table__table { width: 100%; font-size: var(--text-sm); }
.ce-table__table :where(th, td) { padding: var(--space-2) var(--space-3); border-bottom: 1px dotted var(--line); text-align: left; }
.ce-table__table :where(th) { font-variant: small-caps; letter-spacing: .06em; color: var(--muted); background: var(--tint); }

/* --- button / icon chips ---------------------------------------------- */

.ce-text .ce-btn, .ce-cta .ce-btn { text-decoration: none; }
.ce-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; color: var(--metal); }
.ce-icon svg { width: 100%; height: 100%; }

/* --- cta (the invitation plate) ---------------------------------------- */

.plate--cta { padding-block: var(--space-6); }
.ce-cta__inner { display: grid; gap: var(--space-3); }
.ce-cta__heading { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); line-height: 1.05; }
.ce-cta__body { color: var(--muted); max-width: 60ch; }
.ce-cta__body > * + * { margin-top: var(--space-4); }
@media (min-width: 48em) {
  .ce-cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-6); }
  .ce-cta__heading { grid-column: 1; }
  .ce-cta__body { grid-column: 1; }
  .ce-cta__body p:has(> .ce-btn:only-child) { grid-column: 2; }
}

/* --- hero ---------------------------------------------------------------- */

.ce-hero { position: relative; padding: var(--space-7) var(--space-5); background: var(--plate); border-top: 2px solid var(--metal); overflow: hidden; }
.ce-hero__inner { position: relative; max-width: 46rem; display: grid; gap: var(--space-4); }
.ce-hero__heading { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1; }
.ce-hero__body { font-size: var(--text-lead); color: var(--muted); }
.ce-hero__body > * + * { margin-top: var(--space-4); }
.ce-hero--image { min-height: 24rem; display: grid; align-items: end; color: #F2F0EA; }
.ce-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(18 21 27 / .92) 0%, rgb(18 21 27 / .55) 55%, rgb(18 21 27 / .15)); }
.ce-hero--image .ce-hero__inner { z-index: 1; }
.ce-hero--image .ce-hero__body { color: #E6E3DA; }
/* On the photo the overlay is dark in both modes: light text, a light
   primary button and a light outline for the secondary (Parchment on the
   92% Night overlay: >= 12:1). */
.ce-hero--image .ce-hero__body a:not(.ce-btn) { color: #E6E3DA; }
.ce-hero--image .ce-btn--primary { background: #E6E3DA; color: #12151B; border-color: #E6E3DA; }
.ce-hero--image .ce-btn--primary:hover { background: #FFFFFF; color: #12151B; border-color: #FFFFFF; }
.ce-hero--image .ce-btn--secondary { background: transparent; color: #E6E3DA; border-color: #E6E3DA; }
.ce-hero--image .ce-btn--secondary:hover { background: #E6E3DA; color: #12151B; }
.ce-hero--image :focus-visible { outline-color: #E6E3DA; }

/* --- image, with its hidden img rows ------------------------------------ */

.ce-images { display: grid; gap: var(--space-4); }
@media (min-width: 40em) {
  .ce-images--cols-2, .ce-images--cols-3, .ce-images--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56em) {
  .ce-images--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-images--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ce-figure { margin: 0; display: grid; gap: var(--space-2); }
.ce-figure a { display: block; }
.ce-figure__img { width: 100%; border: 1px solid var(--line); background: var(--tint); }
.ce-figure__caption { font-size: var(--text-sm); color: var(--muted); font-style: italic; }

/* --- text-media ---------------------------------------------------------- */

.ce-text-media { display: grid; gap: var(--space-5); align-items: center; }
.ce-text-media__body > * + * { margin-top: var(--space-4); }
.ce-text-media__body :where(h2) { font-size: var(--text-h2); }
@media (min-width: 56em) {
  .ce-text-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
  .ce-text-media--left .ce-text-media__media { order: -1; }
}

/* --- cards, with its hidden card rows ----------------------------------- */

.ce-cards { display: grid; gap: var(--gap); }
@media (min-width: 40em) {
  .ce-cards--cols-2, .ce-cards--cols-3, .ce-cards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56em) {
  .ce-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ce-card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 2px solid var(--metal);
  padding: var(--space-4) var(--space-4) var(--space-5);
  color: var(--ink);
  text-decoration: none;
}
a.ce-card:hover { border-color: var(--metal); }
a.ce-card:hover .ce-card__heading { color: var(--accent); }
.ce-card__img { width: calc(100% + 2 * var(--space-4)); max-width: none; margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; aspect-ratio: 4 / 3; object-fit: cover; }
.ce-card__heading { font-size: var(--text-h3); }
.ce-card__text { color: var(--muted); font-size: var(--text-sm); }

/* --- quote ----------------------------------------------------------------- */

.ce-quote { margin: 0; padding-left: var(--space-5); border-left: 2px solid var(--metal); max-width: var(--measure); }
.ce-quote__body { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.3; margin: 0; }
.ce-quote__body > * + * { margin-top: var(--space-3); }
.ce-quote__attribution { margin-top: var(--space-3); font-variant: small-caps; letter-spacing: .08em; color: var(--muted); }

/* --- video-embed (click-to-load facade) ------------------------------------ */

.ce-video {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  background: #12151B;
  color: #E6E3DA;
  border-top: 2px solid var(--metal);
}
.ce-video__consent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.ce-video__consent:focus-visible { outline: 2px solid #E6E3DA; outline-offset: -6px; }
.ce-video__play {
  width: 4.25rem; height: 4.25rem; flex: none;
  border-radius: 50%;
  border: 1px solid #CFA160;
  position: relative;
  margin-bottom: var(--space-2);
}
.ce-video__play::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: .75rem 0 .75rem 1.2rem;
  border-color: transparent transparent transparent #CFA160;
}
.ce-video__consent:hover .ce-video__play { background: rgb(207 161 96 / .12); }
.ce-video__label { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.ce-video__note { font-size: var(--text-xs); font-family: var(--font-data); color: #A3A6AE; }
.ce-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- accordion and accordion-item ------------------------------------------ */

.ce-accordion { border-top: 1px solid var(--metal); }
.ce-accordion__item { border-bottom: 1px dotted var(--muted); }
.ce-accordion__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
}
.ce-accordion__summary::-webkit-details-marker { display: none; }
.ce-accordion__summary::after { content: "+"; color: var(--metal); font-family: var(--font-data); }
.ce-accordion__item[open] > .ce-accordion__summary::after { content: "−"; }
.ce-accordion__body { padding-bottom: var(--space-4); }
.ce-accordion__body > * + * { margin-top: var(--space-3); }

/* --- spacer ------------------------------------------------------------------ */

.ce-spacer--s { height: var(--space-4); }
.ce-spacer--m { height: var(--space-6); }
.ce-spacer--l { height: var(--space-7); }
.ce-spacer--xl { height: var(--space-8); }

/* --- page-teasers, and section lists ------------------------------------- */

.ce-teasers { margin-top: var(--gap); }
.page__content .ce-teasers { margin-top: 0; }
.ce-teasers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
@media (min-width: 48em) { .ce-teasers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ce-teasers__item { background: var(--plate); border: 1px solid var(--line); border-top: 2px solid var(--metal); padding: var(--space-4) var(--space-5) var(--space-5); }
.ce-teasers__title { font-size: var(--text-h3); }
.ce-teasers__link { color: var(--ink); text-decoration: none; }
.ce-teasers__link:hover { color: var(--accent); text-decoration: underline; }
.ce-teasers__summary { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-sm); }

.pager { margin-top: var(--gap); }
.pager__pages { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.pager__link, .pager__number { font-family: var(--font-data); padding: var(--space-1) var(--space-3); border: 1px solid var(--line); text-decoration: none; }

/* --- ce-form (the forms bundle; deckle-hosted's hosted-contact-form) ----- */

.ce-form {
  max-width: var(--measure);
  background: var(--plate);
  border: 1px solid var(--line);
  border-top: 2px solid var(--metal);
  padding: var(--space-5);
}
.ce-form__heading { font-size: var(--text-h2); margin-bottom: var(--space-4); }
.ce-form__form { display: grid; gap: var(--space-4); }
.ce-form__field { margin: 0; min-width: 0; border: 0; padding: 0; }
.ce-form__label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.ce-form__input,
.ce-form__textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: .65em .8em;
}
.ce-form__input:focus-visible,
.ce-form__textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ce-form__textarea { resize: vertical; min-height: 8rem; }
.ce-form__submit { justify-self: start; margin-top: var(--space-1); }
@media (min-width: 48em) {
  .ce-form__form { grid-template-columns: 1fr 1fr; }
  .ce-form__field:has(.ce-form__textarea), .ce-form__submit { grid-column: 1 / -1; }
}
.forms-form__result { display: none; font-weight: 600; margin-bottom: var(--space-3); }
.forms-form__result:target { display: block; }
.forms-form__intro, .forms-form__text, .forms-form__check { grid-column: 1 / -1; margin: 0; }
.forms-form__check { display: flex; gap: .6em; align-items: baseline; }
.forms-form__help { font-size: var(--text-sm); color: var(--muted); margin: var(--space-1) 0 0; }
.forms-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- html, error ---------------------------------------------------------- */

.ce-html { overflow-x: auto; max-width: var(--measure); }
/* An element whose template failed: ce/error.html draws it in place. Words
   first; the bronze rule marks it, never colour alone. */
.ce-error {
  max-width: var(--measure);
  padding: var(--space-3) var(--space-4);
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--metal);
}
.ce-error__title { margin: 0 0 var(--space-2); font-size: var(--text-h3); }
.ce-error__message { margin: 0; overflow-x: auto; white-space: pre-wrap; font-family: var(--font-data); font-size: var(--text-xs); }
.ce-error--inline { display: inline; padding: 0 var(--space-1); }
.ce-error--inline .ce-error__message { font-size: inherit; }

/* --- lightbox (assets/js/lightbox.js) ------------------------------------ */

.ce-lightbox__dialog {
  padding: 0; border: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: transparent;
  color: #E6E3DA;
}
.ce-lightbox__dialog[open] { display: flex; align-items: center; justify-content: center; }
.ce-lightbox__dialog::backdrop { background: rgb(18 21 27 / .94); }
.ce-lightbox__img { display: block; max-width: min(92vw, 90rem); max-height: 86vh; width: auto; height: auto; }
.ce-lightbox__close, .ce-lightbox__prev, .ce-lightbox__next {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: rgb(230 227 218 / .12);
  color: #E6E3DA;
  border: 0; border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem; line-height: 1;
}
.ce-lightbox__close:hover, .ce-lightbox__prev:hover, .ce-lightbox__next:hover { background: rgb(230 227 218 / .24); color: #FFFFFF; }
.ce-lightbox__close { top: var(--space-3); right: var(--space-3); }
.ce-lightbox__prev, .ce-lightbox__next { top: 50%; transform: translateY(-50%); }
.ce-lightbox__prev { left: var(--space-3); }
.ce-lightbox__next { right: var(--space-3); }
.ce-lightbox__prev[hidden], .ce-lightbox__next[hidden] { display: none; }
.ce-lightbox__close:focus-visible, .ce-lightbox__prev:focus-visible, .ce-lightbox__next:focus-visible { outline: 2px solid #E6E3DA; outline-offset: 3px; }

/* ===================================================== guild data elements */

/* --- chronicle (activity-feed, profile) ----------------------------------- */

.chronicle { list-style: none; margin: 0 0 0 .4rem; padding: 0; border-left: 1px solid var(--line); }
.chronicle__item { position: relative; display: grid; gap: var(--space-1) var(--space-4); padding: var(--space-2) 0 var(--space-2) 1.25rem; }
.chronicle__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.05rem;
  width: 9px; height: 9px;
  background: var(--plate);
  border: 1px solid var(--metal);
  transform: rotate(45deg);
}
.chronicle__time { font-family: var(--font-data); font-size: var(--text-xs); color: var(--muted); padding-top: .2rem; }
.chronicle__text a { font-weight: 600; }
@media (min-width: 40em) { .chronicle__item { grid-template-columns: 8.5rem minmax(0, 1fr); } }

/* --- class chart ---------------------------------------------------------- */

.classes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem 2.5rem; }
@media (min-width: 40em) { .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ce-layout__slot--sidebar .classes { grid-template-columns: minmax(0, 1fr); }
.classes__row { display: grid; grid-template-columns: 1.4rem 7.5rem minmax(0, 1fr) 2ch; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.classes__glyph { width: 1.4rem; height: 1.4rem; color: var(--metal); }
.classes__bar { height: 6px; background: var(--line); position: relative; }
.classes__fill { position: absolute; inset: 0 auto 0 0; width: var(--share, 0%); background: var(--accent); }
.classes__count { font-family: var(--font-data); font-size: var(--text-xs); text-align: right; font-variant-numeric: tabular-nums; }

/* --- leveling board (tabs: assets/js/guild.js) ----------------------------- */

.tabs__list { display: flex; gap: var(--space-4); margin-bottom: var(--space-2); }
.tabs__tab {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: var(--space-1) 0;
  font-variant: small-caps;
  letter-spacing: .08em;
  font-size: var(--text-sm);
  color: var(--muted);
  cursor: pointer;
}
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--metal); }
.tabs__label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; font-variant: small-caps; letter-spacing: .08em; color: var(--metal); margin: var(--space-2) 0 0; }
.is-tabbed .tabs__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs__panel + .tabs__panel { margin-top: var(--space-4); }
.is-tabbed .tabs__panel + .tabs__panel { margin-top: 0; }
.leveling__list { list-style: none; margin: 0; padding: 0; }
.leveling__item { display: grid; grid-template-columns: 1.4rem 1.6rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px dotted var(--muted); }
.leveling__item:last-child { border-bottom: 0; }
.leveling__pos { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.4rem; color: var(--metal); line-height: 1; }
.leveling__glyph { width: 1.6rem; height: 1.6rem; color: var(--metal); }
.leveling__name { font-weight: 600; color: var(--ink); text-decoration: none; }
a.leveling__name:hover { color: var(--accent); text-decoration: underline; }
.leveling__sub { display: block; font-size: var(--text-xs); color: var(--muted); }
.leveling__gain { font-family: var(--font-data); font-weight: 500; color: var(--metal); font-variant-numeric: tabular-nums; }

/* --- event list (event-list element, calendar page) ------------------------ */

.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px dotted var(--muted); }
.event-row:last-child { border-bottom: 0; }
.event-row__date { display: grid; justify-items: center; align-content: start; line-height: 1; }
.event-row__day { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; }
.event-row__month { font-variant: small-caps; letter-spacing: .1em; font-size: var(--text-xs); color: var(--metal); margin-top: var(--space-1); }
.event-row__title { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.event-row__title:hover { color: var(--accent); text-decoration: underline; }
.event-row__meta { font-family: var(--font-data); font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-1); }
.plate--past { opacity: .92; }
.subscribe__text { color: var(--muted); max-width: 60ch; }
.subscribe__actions { margin-block: var(--space-4); }
.subscribe__url { margin-top: var(--space-2); }
.subscribe__code { display: block; overflow-x: auto; white-space: nowrap; padding: var(--space-2) var(--space-3); background: var(--tint); border: 1px solid var(--line); user-select: all; }

/* --- facts (event page, profile) ------------------------------------------ */

.facts { display: grid; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(auto-fit, minmax(10rem, max-content)); } }
.facts__term { font-variant: small-caps; letter-spacing: .08em; font-size: var(--text-sm); color: var(--metal); font-weight: 600; }
.facts__value { margin: 0; font-family: var(--font-data); font-size: var(--text-sm); }
.facts--inline { margin: var(--space-4) 0 0; }

/* --- roster ---------------------------------------------------------------- */

.roster { display: grid; gap: var(--space-5); }
@media (min-width: 56em) { .roster--filters { grid-template-columns: 13rem minmax(0, 1fr); align-items: start; } }
.roster__filters { display: grid; gap: var(--space-4); align-content: start; }
.roster__filters[hidden] { display: none; }
.roster__filters-title { font-variant: small-caps; letter-spacing: .1em; font-weight: 600; color: var(--metal); }
.roster__field { display: grid; gap: var(--space-1); margin: 0; padding: 0; border: 0; min-width: 0; }
.roster__label { font-size: var(--text-sm); font-weight: 600; padding: 0; }
.roster__range { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.roster__range .roster__label { grid-column: 1 / -1; }
.roster__sublabel { font-size: var(--text-xs); color: var(--muted); }
.roster__select, .roster__input {
  width: 100%;
  min-width: 0;
  padding: .45rem .55rem;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
}
.roster__input { font-family: var(--font-data); }
.roster__reset {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.roster__count { padding-bottom: var(--space-2); border-bottom: 1px solid var(--metal); color: var(--muted); }
.roster__shown { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.roster__scroll { overflow-x: auto; }
.roster__table { width: 100%; min-width: 34rem; }
.roster__th { font-variant: small-caps; letter-spacing: .07em; font-weight: 600; font-size: var(--text-sm); color: var(--muted); text-align: left; padding: var(--space-3) var(--space-3) var(--space-2) 0; }
.roster__th--num, .roster__td--num { text-align: right; }
.roster__td { padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px dotted var(--line); font-size: var(--text-sm); vertical-align: middle; }
.roster__td--num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.roster__td--prof { color: var(--muted); font-size: var(--text-xs); }
.roster__row:hover { background: var(--tint); }
.roster__name { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
a.roster__name:hover { color: var(--accent); }
a.roster__name:hover .roster__who { text-decoration: underline; text-decoration-thickness: 1px; }
.roster__glyph { width: 1.5rem; height: 1.5rem; color: var(--metal); flex: none; }
.roster__surname { font-weight: 500; color: var(--muted); font-size: .85em; }
.roster__none { color: var(--muted); font-style: italic; padding-top: var(--space-3); }
@media (max-width: 47.99em) { .roster__th--prof, .roster__td--prof { display: none; } .roster__table { min-width: 0; } }

/* --- crafter directory ------------------------------------------------------ */

.crafters__search { display: grid; gap: var(--space-1); margin-bottom: var(--space-5); max-width: 28rem; }
.crafters__search[hidden] { display: none; }
.crafters__label { font-size: var(--text-sm); font-weight: 600; }
.crafters__input { padding: .55rem .7rem; font-size: 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--muted); border-radius: var(--radius); }
.crafters__none { color: var(--muted); font-style: italic; }
.crafters { display: grid; gap: var(--space-6); }
@media (min-width: 56em) { .crafters { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); } }
.crafters__prof[hidden] { display: none; }
.crafters__title { font-size: var(--text-h3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--metal); }
.crafters__count { font-family: var(--font-data); font-size: var(--text-xs); font-weight: 400; color: var(--muted); }
.crafters__people { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crafters__person { display: inline-flex; gap: var(--space-2); align-items: baseline; padding: .15rem .55rem; border: 1px solid var(--line); background: var(--surface); font-size: var(--text-sm); }
.crafters__name { font-weight: 600; color: var(--ink); text-decoration: none; }
a.crafters__name:hover { color: var(--accent); text-decoration: underline; }
.crafters__skill { font-family: var(--font-data); font-size: var(--text-xs); color: var(--metal); }
.crafters__recipes { margin-top: var(--space-3); }
.crafters__summary, .skills__summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--accent); }
.crafters__table { width: 100%; margin-top: var(--space-2); font-size: var(--text-sm); }
.crafters__th { text-align: left; font-variant: small-caps; letter-spacing: .07em; color: var(--muted); padding: var(--space-1) var(--space-3) var(--space-1) 0; border-bottom: 1px solid var(--line); }
.crafters__td { padding: var(--space-1) var(--space-3) var(--space-1) 0; border-bottom: 1px dotted var(--line); vertical-align: top; }
.crafters__td--who { color: var(--muted); }

/* --- member profile ----------------------------------------------------------- */

.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.profile__portrait { margin: 0; width: 5.25rem; height: 5.25rem; border: 1px solid var(--metal); border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--plate); }
.profile__img { width: 100%; height: 100%; object-fit: cover; }
.profile__glyph { width: 3rem; height: 3rem; color: var(--metal); }
.profile__surname { color: var(--muted); font-weight: 500; }
.profile__week { font-family: var(--font-data); font-size: var(--text-sm); color: var(--metal); margin-bottom: var(--space-4); }
.page--member .guild-empty { margin-bottom: var(--space-4); }
.profile__grid { display: grid; gap: var(--gap); }
.profile__side { display: grid; gap: var(--gap); align-content: start; }
@media (min-width: 56em) { .profile__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.gear { list-style: none; margin: 0; padding: 0; }
.gear__item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.gear__item:last-child { border-bottom: 0; }
.gear__slot { font-variant: small-caps; letter-spacing: .06em; font-size: var(--text-sm); color: var(--muted); }
.gear__name { font-weight: 600; }
.gear__ilvl { font-family: var(--font-data); font-size: var(--text-xs); color: var(--muted); }
.quality--poor { color: var(--q-poor); }
.quality--common { color: var(--q-common); }
.quality--uncommon { color: var(--q-uncommon); }
.quality--rare { color: var(--q-rare); }
.quality--epic { color: var(--q-epic); }
.quality--legendary, .quality--artifact, .quality--heirloom { color: var(--q-legendary); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.skills__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); }
.skills__name { font-weight: 600; }
.skills__value { font-family: var(--font-data); font-size: var(--text-xs); color: var(--metal); }
.skills__bar { grid-column: 1 / -1; height: 6px; background: var(--line); position: relative; }
.skills__fill { position: absolute; inset: 0 auto 0 0; width: var(--share, 0%); background: var(--accent); }
.skills__recipes { grid-column: 1 / -1; }
.skills__list { margin: var(--space-2) 0 0; padding-left: 1.2em; columns: 2 12rem; font-size: var(--text-sm); color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-6); font-size: var(--text-sm); }
.site-footer__inner { display: grid; gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 48em) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; font-variant: small-caps; letter-spacing: .05em; margin-bottom: var(--space-3); }
.site-footer__mark { width: 2rem; height: 2rem; color: var(--ink); flex: none; }
.site-footer__text, .site-footer__address { color: var(--muted); max-width: 38ch; font-style: normal; }
.site-footer__address { margin-top: var(--space-3); }
.site-footer__heading { font-variant: small-caps; letter-spacing: .1em; font-weight: 600; color: var(--metal); margin-bottom: var(--space-2); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer__link { color: var(--ink); text-decoration: none; }
.site-footer__link:hover { color: var(--accent); text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4) var(--space-6);
  border-top: 1px dotted var(--line);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ------------------------------------------------------------ feature bundles */

/* News and categories bundles, if a later change installs them: their
   layouts use page__*, ce-teasers__* and pager, styled above. */
.ce-news-list__image, .news-item__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: var(--space-3); }
.ce-news-list__date, .news-item__date { font-family: var(--font-data); font-size: var(--text-xs); color: var(--muted); }
.ce-news-list__categories, .news-item__categories { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
