  :root {
    /* Surfaces — deep ink, slightly warmer than v4 (#0f1419 → #11151a) */
    --ink-deep: #11151a;
    --ink-panel: #161b21;
    --ink-border: #232a32;
    --ink-card-hover: #2a323b;

    /* Text */
    --text: #ebe9e4;          /* whisper of warm — was pure #e8e8e8 in v4 */
    --text-muted: #aab1b9;
    --text-dim: #707880;

    /* Brand accent — headband orange. v5 shifts to #F16C0A (matches live site).
       --accent-hover and --accent-dim re-derived for AA contrast on dark ink. */
    --accent: #F16C0A;
    --accent-hover: #ff8623;
    --accent-dim: #b8500a;
    --accent-soft: rgba(241, 108, 10, 0.12);

    /* Secondary warmth — parchment unchanged */
    --parchment: #d4b483;
    --parchment-dim: #8a7355;

    /* Semantic */
    --good: #6fb04e;
    --warn: #e8b04e;
    --bad: #e85c4e;

    /* Spacing / radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* Font stacks */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container: 75rem;
    --gutter: clamp(1rem, 2.5vw, 2rem);
  }

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

  html { background: var(--ink-deep); }

  body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink-deep);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  @media (min-width: 64rem) {
    body { font-size: 1.125rem; }
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
  }
  h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.01em; }
  h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; }

  p { margin: 0 0 1em; }

  a {
    color: var(--accent);
    text-decoration-color: rgba(241, 108, 10, 0.45);
    text-underline-offset: 0.18em;
    transition: color 150ms ease, text-decoration-color 150ms ease;
  }
  a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
  }

  code, pre {
    font-family: var(--font-mono);
    font-size: 0.9375em;
  }
  code {
    background: rgba(212, 180, 131, 0.08);
    color: var(--parchment);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 180, 131, 0.18);
  }

  /* Visually hidden */
  .visually-hidden {
    position: absolute;
    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;
    top: -3rem;
    left: 0.75rem;
    background: var(--accent);
    color: var(--ink-deep);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 100;
    transition: top 120ms ease;
  }
  .skip-link:focus { top: 0.75rem; color: var(--ink-deep); }

  .wrap {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  /* ===== Header / nav ===== */
  .site-header {
    border-bottom: 1px solid var(--ink-border);
    background: rgba(17, 21, 26, 0.92);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--text);
    min-height: 44px;
  }
  .brand:hover { color: var(--text); }
  .brand img {
    display: block;
    height: 38px;
    width: auto;
  }
  @media (min-width: 48rem) {
    .brand img { height: 42px; }
  }
  .brand-caption {
    display: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--parchment);
    border-left: 1px solid var(--ink-border);
    padding-left: 0.875rem;
    line-height: 1.1;
  }
  @media (min-width: 64rem) {
    .brand-caption { display: inline-block; }
  }

  .primary-nav { display: none; }
  @media (min-width: 64rem) {
    .primary-nav { display: flex; align-items: center; gap: 0.25rem; }
  }
  .primary-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 150ms ease, background 150ms ease;
  }
  .primary-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
  .primary-nav a[aria-current="page"] { color: var(--text); }
  .primary-nav a[aria-current="page"]::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--accent);
    margin-top: 0.25rem;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem !important;
    background: var(--accent);
    color: var(--ink-deep) !important;
    border: 1px solid var(--accent-hover);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
  }
  .nav-cta:hover { background: var(--accent-hover); }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--ink-border);
    background: transparent;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .hamburger:hover { border-color: var(--parchment-dim); }
  @media (min-width: 64rem) {
    .hamburger { display: none; }
  }

  .mobile-nav {
    display: none;
    border-top: 1px solid var(--ink-border);
    background: var(--ink-panel);
    padding-block: 0.5rem;
  }
  .mobile-nav[data-open="true"] { display: block; }
  .mobile-nav ul { list-style: none; padding: 0; margin: 0; }
  .mobile-nav li a {
    display: block;
    padding: 0.875rem var(--gutter);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--ink-border);
    min-height: 44px;
  }
  .mobile-nav li:last-child a { border-bottom: 0; }
  .mobile-nav li a:hover { background: rgba(255,255,255,0.03); }
  .mobile-nav li a[aria-current="page"] { color: var(--accent); }

  /* ===== Hero ===== */
  .hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ink-border);
    isolation: isolate;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.32;
    filter: saturate(0.95) contrast(1.05);
  }
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(17,21,26,0.40) 0%,
        rgba(17,21,26,0.35) 35%,
        rgba(17,21,26,0.82) 80%,
        rgba(17,21,26,1) 100%),
      linear-gradient(90deg,
        rgba(17,21,26,0.55) 0%,
        rgba(17,21,26,0.15) 45%,
        rgba(17,21,26,0.55) 100%);
    pointer-events: none;
  }
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 28% 38%, rgba(241,108,10,0.10), transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--parchment);
    margin: 0 0 1rem;
  }
  .eyebrow.prompt::before {
    content: "prompt> ";
    color: var(--accent);
    font-weight: 700;
  }

  h1.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    max-width: 22ch;
  }
  h1.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 800; }

  .hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 1.75rem;
  }
  @media (min-width: 48rem) {
    .hero-sub { font-size: 1.1875rem; }
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1;
    padding: 0.95rem 1.4rem;
    min-height: 2.875rem;
    background: var(--accent);
    color: var(--ink-deep);
    border: 1px solid var(--accent-hover);
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 0 var(--accent-soft);
    transition: background 150ms ease, color 150ms ease, box-shadow 200ms ease;
  }
  .btn-primary:hover {
    background: var(--accent-hover);
    color: var(--ink-deep);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 4px var(--accent-soft);
  }
  .btn-primary:focus-visible { outline-color: var(--accent); }
  .btn-primary .cursor {
    display: inline-block;
    width: 0.5em;
    height: 1em;
    background: currentColor;
    margin-left: 0.1em;
    vertical-align: -0.1em;
    animation: blink 1.1s steps(2, end) infinite;
  }
  @keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
  }

  .hero-connect {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 60ch;
  }
  .hero-connect code { font-size: 0.875em; }

  /* Live status strip */
  .status-strip {
    margin-top: 2rem;
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-md);
    background: rgba(22, 27, 33, 0.85);
    backdrop-filter: blur(4px);
    padding: 0.875rem 1.125rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
  }
  .status-strip .dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--good);
    margin-right: 0.5rem;
    vertical-align: 0.05em;
    box-shadow: 0 0 0 3px rgba(111, 176, 78, 0.18);
  }
  .status-strip strong {
    color: var(--text);
    font-weight: 600;
  }
  .status-strip .sep {
    color: var(--text-dim);
    user-select: none;
  }

  .a11y-callout {
    margin-top: 0.875rem;
    color: var(--parchment);
    font-size: 0.875rem;
    font-weight: 500;
  }
  .a11y-callout svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin-right: 0.3rem;
  }

  /* ===== Sections ===== */
  section { padding-block: clamp(2.5rem, 5vw, 4rem); }
  section + section { border-top: 1px solid var(--ink-border); }

  .section-head { margin-bottom: 1.75rem; max-width: 64ch; }
  .section-head .eyebrow { margin-bottom: 0.5rem; }
  .section-head p { color: var(--text-muted); margin-top: 0.5rem; }

  /* Feature cards */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  @media (min-width: 48rem) {
    .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  }
  .card {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: border-color 150ms ease;
  }
  @media (min-width: 48rem) {
    .card { padding: 1.75rem; }
  }
  .card:hover { border-color: var(--parchment-dim); }
  .card .eyebrow { margin-bottom: 0.625rem; }
  .card h3 { margin-bottom: 0.625rem; font-size: 1.1875rem; }
  .card p { color: var(--text-muted); margin: 0; }
  .card p strong { color: var(--text); font-weight: 600; }

  /* Gallery CSS retained (harmless) — see v5.1 note about cut section */
  .gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .gallery-header .section-head { margin-bottom: 0; }
  .gallery-aside {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  /* ===== World feature ===== */
  .world-feature .section-head { max-width: 64ch; }
  .world-map {
    margin: 0;
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-md);
    background: var(--ink-panel);
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: border-color 150ms ease;
  }
  .world-map:hover { border-color: var(--parchment-dim); }
  @media (min-width: 48rem) {
    .world-map { padding: 1.75rem; }
  }
  .world-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ink-border);
    background: #000;
  }
  .world-map figcaption {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
  }
  .world-map .link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
  }
  .world-map .link:hover { color: var(--accent-hover); text-decoration: underline; }

  /* Seasonal banner */
  .seasonal-card {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
  }
  @media (min-width: 48rem) {
    .seasonal-card { grid-template-columns: 1fr 1fr; padding: 1.75rem; gap: 1.75rem; }
  }
  .seasonal-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ink-border);
    background: #000;
  }
  .seasonal-body .eyebrow { margin-bottom: 0.5rem; }
  .seasonal-body h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    margin-bottom: 0.625rem;
  }
  .seasonal-body p { color: var(--text-muted); margin: 0; }
  .seasonal-body p a { font-weight: 500; }

  /* Sample transcript */
  .transcript-wrap {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
  .transcript-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--ink-border);
    background: rgba(0,0,0,0.2);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
  .transcript-bar .dots {
    display: inline-flex;
    gap: 0.35rem;
  }
  .transcript-bar .dots span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--ink-border);
  }
  pre.transcript {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
    background: transparent;
    white-space: pre;
    tab-size: 2;
  }
  @media (min-width: 48rem) {
    pre.transcript { padding: 1.75rem; font-size: 0.9375rem; }
  }
  pre.transcript .cmd    { color: var(--accent); }
  pre.transcript .npc    { color: var(--parchment); }
  pre.transcript .chan   { color: var(--good); }
  pre.transcript .system { color: var(--text-muted); }
  pre.transcript .prompt { color: var(--text-dim); }
  pre.transcript .map    { color: var(--parchment-dim); }
  pre.transcript .vnum   { color: var(--text-dim); }
  pre.transcript .roomname { color: var(--text); font-weight: 500; }

  /* Patch + dev */
  .two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  @media (min-width: 64rem) {
    .two-col { grid-template-columns: 2fr 1fr; gap: 2.5rem; }
  }
  .patch-list { list-style: none; padding: 0; margin: 0; }
  .patch-entry {
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--ink-border);
  }
  .patch-entry:first-child { padding-top: 0; }
  .patch-entry:last-child { border-bottom: 0; }
  .patch-meta {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
  }
  .patch-meta .ver {
    color: var(--parchment);
    font-family: var(--font-body);
    font-weight: 500;
    margin-left: 0.4rem;
  }
  .patch-entry h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
  }
  .patch-entry h3 a { color: var(--text); text-decoration: none; }
  .patch-entry h3 a:hover { color: var(--accent); }
  .patch-entry p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

  /* ===== Stats card (NEW in v5.2 — replaces "From the dev team") ===== */
  .stats-card {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
  .stats-card .eyebrow { margin-bottom: 0.5rem; }
  .stats-card > h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1875rem;
    margin-bottom: 1.25rem;
  }
  .stats-card .stats-group + .stats-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink-border);
  }
  .stats-card .stats-group-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 0.75rem;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem 1rem;
  }
  @media (min-width: 30rem) and (max-width: 63.9375rem) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 64rem) and (max-width: 79.9375rem) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 80rem) {
    .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  }
  .stat {
    padding: 0.625rem 0 0;
    border-top: 1px solid var(--ink-border);
  }
  .stats-grid > .stat:nth-child(1),
  .stats-grid > .stat:nth-child(2),
  .stats-grid > .stat:nth-child(3) {
    /* The first row's top-border doubles up with the group label area;
       suppress when the row is the very first under a label */
    border-top: 1px solid var(--ink-border);
  }
  .stat .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
  }
  .stat .num.mono {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0;
  }
  .stat .label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: block;
  }
  .stat .label em {
    font-style: normal;
    color: var(--text);
  }

  /* Audience panels */
  .audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  @media (min-width: 48rem) {
    .audience-grid { grid-template-columns: 1fr 1fr; }
  }
  .audience-panel {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
  }
  .audience-panel h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
  }
  .audience-panel p { color: var(--text-muted); margin-bottom: 1rem; }
  .audience-link {
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
  }
  .audience-link:hover { color: var(--accent-hover); text-decoration: underline; }

  /* Community cards */
  .community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  @media (min-width: 48rem) {
    .community-grid { grid-template-columns: 1fr 1fr; }
  }
  .community-card {
    border: 1px solid var(--ink-border);
    background: var(--ink-panel);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
  }
  .community-card .icon-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    color: var(--parchment);
  }
  .community-card .icon-row svg { width: 1.25rem; height: 1.25rem; }
  .community-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
  .community-card p { color: var(--text-muted); margin: 0.5rem 0 1.25rem; }
  .community-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    min-height: 44px;
    transition: border-color 150ms ease, color 150ms ease;
  }
  .community-link:hover { border-color: var(--parchment-dim); color: var(--accent-hover); }

  /* Footer */
  footer {
    border-top: 1px solid var(--ink-border);
    background: var(--ink-deep);
    padding-block: 2.5rem 1.5rem;
  }
  .pull-quote {
    text-align: center;
    padding-block: 1.5rem 0.75rem;
    border-bottom: 1px solid var(--ink-border);
    margin-bottom: 2rem;
  }
  .pull-quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    color: var(--parchment);
    max-width: 36ch;
    margin-inline: auto;
  }
  .pull-quote cite {
    display: block;
    margin-top: 0.875rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .foot-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  @media (min-width: 48rem) {
    .foot-cols { grid-template-columns: repeat(3, 1fr); }
  }
  .foot-cols h4 {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--parchment);
    margin: 0 0 0.875rem;
  }
  .foot-cols ul { list-style: none; padding: 0; margin: 0; }
  .foot-cols li { margin-bottom: 0.5rem; }
  .foot-cols a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
  }
  .foot-cols a:hover { color: var(--text); text-decoration: underline; }

  /* Vote rings */
  .vote-rings {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ink-border);
  }
  .vote-rings .eyebrow {
    margin-bottom: 0.625rem;
    color: var(--parchment);
  }
  .vote-rings-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .vote-rings a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-sm);
    background: var(--ink-panel);
    line-height: 0;
    min-height: 44px;
    min-width: 44px;
    transition: border-color 150ms ease;
  }
  .vote-rings a:hover { border-color: var(--parchment-dim); }
  .vote-rings img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 120px;
  }

  .foot-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-border);
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  /* Mobile sticky CTA */
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
    background: rgba(17, 21, 26, 0.94);
    border-top: 1px solid var(--ink-border);
    backdrop-filter: blur(6px);
    z-index: 30;
    display: flex;
  }
  .sticky-cta a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    min-height: 44px;
    background: var(--accent);
    color: var(--ink-deep);
    border: 1px solid var(--accent-hover);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
  }
  .sticky-cta a:hover { background: var(--accent-hover); }
  @media (min-width: 64rem) {
    .sticky-cta { display: none; }
  }
  @media (max-width: 63.9375rem) {
    body { padding-bottom: 4.5rem; }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    .btn-primary .cursor { animation: none !important; opacity: 1; }
  }
/* --------------------------------------------------------------------- */
/* Foundation hardening (session 2): utility classes that replaced       */
/* inline style="..." attributes in Pug mixins, plus styling for new     */
/* mixins introduced for the page agents (pageHero, faqItem, btn-ghost). */
/* --------------------------------------------------------------------- */

/* worldMap.pug — the "Explore the world map" link row. Was inline    */
/* style="margin-top:0.875rem; margin-bottom:0;".                     */
.world-map__link-row { margin-top: 0.875rem; margin-bottom: 0; }

/* communityCard.pug — the per-icon eyebrow chip ran with             */
/* style="margin:0;" inline. Same effect, named class.                */
.eyebrow--inline { margin: 0; }

/* start-stub.pug — placeholder /preview/start page. Drop-in for the  */
/* previous inline style="..." soup so the stub looks identical and   */
/* the page agents have a class hook if they extend the stub.         */
.start-stub {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--text, #ebe9e4);
}
.start-stub__inner { max-width: 36rem; text-align: center; }
.start-stub__eyebrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment, #d4b483);
  margin-bottom: 0.75rem;
}
.start-stub__h1 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.start-stub__copy {
  color: var(--text-muted, #b8b8b8);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.start-stub__back {
  color: var(--accent, #F16C0A);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* pageHero.pug — base hero shape for non-home pages. The home hero    */
/* uses .hero (a richer treatment with bg image + status strip).       */
/* Page hero is deliberately quieter.                                  */
.page-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-hero-inner { max-width: 56rem; }
.page-hero-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
}
.page-hero-title .accent { color: var(--accent, #F16C0A); }
.page-hero-sub {
  color: var(--text-muted, #b8b8b8);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 48rem;
  margin: 0;
}

/* faqItem.pug — accordion built on <details>/<summary>. Keyboard-      */
/* navigable and reduced-motion safe by virtue of native semantics.    */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}
.faq-item__q {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--text, #ebe9e4);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--accent, #F16C0A);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] > .faq-item__q::after { content: "-"; }
.faq-item__a {
  color: var(--text-muted, #b8b8b8);
  padding: 0 0 1rem;
  line-height: 1.6;
}
.faq-item__a p { margin: 0 0 0.75rem; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ctaButton.pug — ghost variant for secondary CTAs. Primary uses the  */
/* existing .btn-primary rules.                                        */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text, #ebe9e4);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  border-color: var(--accent, #F16C0A);
  color: var(--accent, #F16C0A);
}

/* role="list" reset — the .card-grid containers got role="list" added */
/* for WCAG correctness (matches role="listitem" on the village /      */
/* card children). Some browsers drop list semantics when list-style   */
/* is "none", and we add the role back. The reset below makes sure     */
/* the role doesn't bring back unwanted default styling.               */
.card-grid[role="list"] { list-style: none; padding: 0; margin: 0 0 0 0; }

/* ===== Village picker (+villageCard mixin) =========================== */
/* Shared styling for the six-village grid used on /start and /world.   */
/* Lives in site.css (not start.css) because the mixin is a foundation  */
/* component; whichever page calls +villageCard gets the styling for    */
/* free. Color modifiers (.v-leaf / .v-sand / ...) tint just the glyph. */
.villages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
}
@media (min-width: 540px) {
  .villages { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .villages { grid-template-columns: repeat(3, 1fr); }
}
.village {
  background: var(--ink-panel);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.village__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.village__glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.village__name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.village__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.village.v-leaf  .village__glyph { color: var(--accent); }
.village.v-sand  .village__glyph { color: var(--parchment); }
.village.v-mist  .village__glyph { color: var(--text-muted); }
.village.v-cloud .village__glyph { color: var(--warn); }
.village.v-stone .village__glyph { color: var(--good); }
.village.v-sound .village__glyph { color: var(--bad); }

  /* Seasonal card — no-image variant.
   *
   * The mixin used to require an image. It now accepts null/empty for
   * events whose banner art doesn't exist yet, and emits class
   * 'no-image' in that case. Collapse the 2-col grid back to single
   * column so the body fills the whole card cleanly.
   */
  .seasonal-card.no-image {
    grid-template-columns: 1fr;
  }
  .seasonal-subtitle {
    color: var(--accent);
    font-style: italic;
    margin: -0.25rem 0 0.5rem;
  }

  /* Footer pull-quote easter-egg link — the period at the end of
   * 'A shinobi must read between the lines.' is a real <a> to the
   * hidden dashboard page. It looks identical to a plain period.
   * Only revealed by the pointer cursor on hover. */
  .dot-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .dot-link:hover,
  .dot-link:focus {
    color: inherit;
    text-decoration: none;
  }
