/* ==========================================================================
   Max Rummy - "Card Table"

   Materiality: printed tokens on a felt table. Every surface is a panel with
   a 2px outline and a hard offset shadow, so depth comes from displacement
   rather than blur. Nothing is glassy, nothing glows.

   Locked for the whole site:
     THEME   one theme at a time, pistachio ground by default, felt-dark under
             prefers-color-scheme: dark
     ACCENT  one accent, felt green, in every section
     SHAPE   radius 10px on every panel, button, image and token
     TYPE    Archivo Black for display, Archivo for text
   ========================================================================== */

/* Width policy: headings and body copy are never capped at the element level.
   The only cap is .wrap, the parent container, which every section sits in. */

/* ---------------------------------------------------------------- tokens -- */
:root {
  color-scheme: light dark;

  --ground:   #e8efe5;
  --panel:    #fffdf8;
  --panel-2:  #f0f4ed;
  --ink:      #0c0f0d;
  --ink-2:    #39423b;
  --ink-3:    #56605a;
  --line:     #0c0f0d;
  --line-soft: #c3cfbf;

  --accent:      #0b6b4a;
  --accent-deep: #085439;
  --accent-wash: #d8eade;
  --on-accent:   #fffdf8;

  --shadow:    6px 6px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);
  --shadow-lg: 10px 10px 0 var(--line);

  --r: 10px;
  --bw: 2px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --step--1: .8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --step-3:  clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  --step-4:  clamp(2.5rem, 1.5rem + 4.6vw, 5rem);

  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 36px);
  --ease: cubic-bezier(.2, .8, .3, 1);
  --dur: 160ms;

  --z-bar: 30; --z-nav: 40; --z-menu: 50; --z-top: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:   #0e1310;
    --panel:    #171d19;
    --panel-2:  #1f2721;
    --ink:      #eaf0e9;
    --ink-2:    #b7c3ba;
    --ink-3:    #93a099;
    --line:     #eaf0e9;
    --line-soft: #38423b;

    --accent:      #3fd69a;
    --accent-deep: #62e5b1;
    --accent-wash: #1b2f26;
    --on-accent:   #0e1310;
  }
}
:root[data-theme="dark"] {
  --ground:   #0e1310;
  --panel:    #171d19;
  --panel-2:  #1f2721;
  --ink:      #eaf0e9;
  --ink-2:    #b7c3ba;
  --ink-3:    #93a099;
  --line:     #eaf0e9;
  --line-soft: #38423b;

  --accent:      #3fd69a;
  --accent-deep: #62e5b1;
  --accent-wash: #1b2f26;
  --on-accent:   #0e1310;
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 Archivo, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: "Archivo Black", Archivo, system-ui, sans-serif;
  font-weight: 400; line-height: 1.02; letter-spacing: -.02em;
  margin: 0; text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
button, a, summary, [role="button"] { cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  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; left: var(--gut); top: -80px; z-index: var(--z-top);
  background: var(--accent); color: var(--on-accent);
  padding: var(--s3) var(--s5); font-weight: 700; border-radius: var(--r);
}
.skip-link:focus { top: var(--s3); }
.tnum { font-variant-numeric: tabular-nums; }

/* the one repeated material: outlined panel, displaced shadow */
.panel {
  background: var(--panel);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ----------------------------------------------------------------- topbar -- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--ground);
  border-bottom: var(--bw) solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: var(--s4); height: 84px; }

.brand { display: flex; align-items: center; gap: var(--s3); margin-right: auto; }
.brand img {
  width: 54px; height: 54px; border-radius: 9px;
  border: var(--bw) solid var(--line);
}
.brand b {
  font-family: "Archivo Black", sans-serif; font-size: 1.625rem;
  letter-spacing: -.03em; line-height: 1;
}
.brand i { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a {
  font-weight: 600; font-size: .9375rem; padding: var(--s2) var(--s4);
  border: var(--bw) solid transparent; border-radius: var(--r); color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); border-color: var(--line); }
.nav a.is-active {
  color: var(--on-accent); background: var(--accent); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.tools { display: flex; align-items: center; gap: var(--s2); }
.iconbtn {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--panel); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.iconbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.iconbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.navbtn { display: none; }

@media (max-width: 880px) {
  .navbtn { display: grid; }
  .nav {
    position: fixed; inset: 84px var(--gut) auto var(--gut); z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: var(--s2);
    background: var(--panel); border: var(--bw) solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
    padding: var(--s3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.125rem; padding: var(--s3) var(--s4); }
}

/* --------------------------------------------------------------- controls -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 1rem;
  line-height: 1; white-space: nowrap;
  padding: 16px var(--s5);
  border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
.btn-go { background: var(--accent); color: var(--on-accent); }
.btn-go:hover { background: var(--accent-deep); }
.btn-plain { background: var(--panel); color: var(--ink); }
.btn-full { display: flex; width: 100%; }
.btn-big { padding: 20px var(--s6); font-size: 1.125rem; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
  background: var(--panel-2); border: var(--bw) solid var(--line-soft);
  border-radius: 7px; padding: 4px 10px; white-space: nowrap;
}
.tag.solid { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }

.stars { display: inline-flex; gap: 1px; color: var(--line-soft); }
.stars .on { color: var(--accent); }
.rate { display: inline-flex; align-items: center; gap: var(--s2); }
.rate b { font-family: "Archivo Black", sans-serif; font-size: 1rem; letter-spacing: -.02em; }

/* ------------------------------------------------------------- section head */
.band { padding-block: var(--s9); }
.band-sm { padding-block: var(--s7); }
.shead {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6);
}
.shead h2 { flex: 1 1 auto; }
.shead .n { font-weight: 700; color: var(--ink-3); font-size: var(--step--1); }

/* ------------------------------------------------------------------- lead -- */
.lead { padding-block: var(--s8) var(--s9); overflow-x: clip; }
.lead-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.lead h1 span { color: var(--accent); }
.lead p.sub { font-size: var(--step-1); color: var(--ink-2); margin: var(--s5) 0 var(--s6); }
.lead .acts { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* three tokens fanned like a dealt hand: the motif the whole system is named for */
.hand {
  position: relative; display: grid; place-items: center;
  min-height: 360px; padding-inline: 9%; overflow: visible;
}
.hand a {
  position: absolute; width: 46%; max-width: 230px; aspect-ratio: 3 / 4;
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow var(--dur) var(--ease);
}
.hand a img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--bw) solid var(--line); }
.hand a .cap {
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  flex: 1; padding: var(--s3);
}
.hand a .cap strong { font-family: "Archivo Black", sans-serif; font-size: .9375rem; letter-spacing: -.02em; }
.hand .c1 { transform: rotate(-9deg) translate(-54%, 8px) scale(.95); z-index: 1; }
.hand .c2 { transform: rotate(-1deg) translateY(-14px); z-index: 3; }
.hand .c3 { transform: rotate(9deg) translate(54%, 8px) scale(.95); z-index: 2; }
.hand a:hover { z-index: 4; box-shadow: var(--shadow-lg); }
.hand .c1:hover { transform: rotate(-9deg) translate(-54%, -8px) scale(.95); }
.hand .c2:hover { transform: rotate(-1deg) translateY(-28px); }
.hand .c3:hover { transform: rotate(9deg) translate(54%, -8px) scale(.95); }

/* ------------------------------------------------------------------ slab --- */
/* Four counts in one outlined strip, divided by rules rather than gaps. */
.slab {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
}
.slab > div { padding: var(--s5); border-left: var(--bw) solid var(--line); }
.slab > div:first-child { border-left: 0; }
.slab b {
  display: block; font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1;
}
.slab span { display: block; margin-top: 6px; font-size: var(--step--1); color: var(--ink-3); font-weight: 600; }

/* ------------------------------------------------------------------ tiles -- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.tile {
  display: flex; flex-direction: column;
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.tile .art {
  background: var(--panel-2); border-bottom: var(--bw) solid var(--line);
  display: grid; place-items: center; padding: var(--s5); min-height: 190px;
}
.tile .art img { width: 100%; max-width: 190px; aspect-ratio: 1; object-fit: contain; }
.tile .body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ------------------------------------------------------------------ table -- */
/* 22 rows of comparable data. A table is the honest component for this. */
.tablewrap {
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto;
}
table.dir { width: 100%; border-collapse: collapse; min-width: 720px; }
table.dir th, table.dir td { text-align: left; padding: var(--s3) var(--s4); }
table.dir thead th {
  font-family: Archivo, sans-serif; font-size: var(--step--1); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  border-bottom: var(--bw) solid var(--line); background: var(--panel-2);
  position: sticky; top: 0; z-index: 1;
}
table.dir tbody tr { border-bottom: 1px solid var(--line-soft); }
table.dir tbody tr:last-child { border-bottom: 0; }
table.dir tbody tr:hover { background: var(--accent-wash); }
table.dir td.rk { font-family: "Archivo Black", sans-serif; color: var(--ink-3); width: 3.5rem; }
table.dir tbody tr:hover td.rk { color: var(--accent); }
table.dir td.app { width: 42%; }
table.dir td.app a { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
table.dir td.app img {
  width: 44px; height: 44px; border-radius: 7px; flex: none;
  border: var(--bw) solid var(--line);
}
table.dir td.app span { display: block; }
table.dir td.app small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--step--1); }
table.dir td.num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
table.dir td.act { text-align: right; white-space: nowrap; }
table.dir td.act a { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
table.dir tbody tr:hover td.act svg { transform: translateX(3px); }
table.dir td.act svg { transition: transform var(--dur) var(--ease); }

/* ------------------------------------------------------------- entry page -- */
/* No sidebar anywhere on this page. Header slab, then a full-width spec
   ribbon, then one centred column, with the primary action following the
   reader in a docked bar. */
.entry { padding-block: var(--s7) 0; }
.entry-slab { display: grid; grid-template-columns: 220px 1fr; gap: var(--s6); padding: var(--s6); }
.entry-slab .art {
  align-self: start;
  border: var(--bw) solid var(--line); border-radius: var(--r);
  background: var(--panel-2); padding: var(--s4);
}
.entry-slab .art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.entry-slab h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); margin-bottom: var(--s3); }
.entry-head-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.entry-slab .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.entry-slab .note { margin: var(--s3) 0 0; font-size: var(--step--1); color: var(--ink-3); }

/* spec ribbon: six cells across the full width, no right rail */
.ribbon {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: var(--bw) solid var(--line); border-radius: var(--r);
  background: var(--panel); box-shadow: var(--shadow);
  overflow: hidden; margin-top: var(--s5);
}
.ribbon > div { padding: var(--s4); border-left: var(--bw) solid var(--line); }
.ribbon > div:first-child { border-left: 0; }
.ribbon dt { font-size: var(--step--1); color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.ribbon dd {
  margin: 0; font-family: "Archivo Black", sans-serif; font-size: 1.0625rem;
  letter-spacing: -.02em; overflow-wrap: anywhere;
}
.ribbon .hot dd { color: var(--accent); }

/* docked action bar, revealed once the header slab leaves the viewport */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  background: var(--panel); border-top: var(--bw) solid var(--line);
  transform: translateY(100%); transition: transform 240ms var(--ease);
}
.dock.is-up { transform: none; }
.dock .wrap { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s3); }
.dock img {
  width: 44px; height: 44px; border-radius: 7px; flex: none;
  border: var(--bw) solid var(--line);
}
.dock .who { display: flex; flex-direction: column; min-width: 0; }
.dock .who strong {
  font-family: "Archivo Black", sans-serif; font-size: 1rem; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock .btn { margin-left: auto; }
@media (max-width: 560px) {
  .dock .who span { display: none; }
  .dock .btn { padding: 14px var(--s4); }
}

/* one centred measure, nothing beside it */
.column { padding-block: var(--s8); }

.prose { font-size: var(--step-0); line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose .article-title {
  font-family: "Archivo Black", sans-serif; font-size: var(--step-2);
  color: var(--ink); line-height: 1.08; margin: 0 0 var(--s5);
}
.prose h2 {
  font-size: var(--step-2); color: var(--ink);
  margin: var(--s8) 0 var(--s4);
}
.prose h3 { font-size: var(--step-1); color: var(--ink); margin: var(--s6) 0 var(--s3); }
.prose ul { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.prose ul li { position: relative; padding-left: var(--s6); margin-bottom: var(--s3); }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent);
}

/* FAQ entries collapse, so a 5-question block is a scannable list not a wall */
.prose .faq-head { margin-bottom: var(--s5); }
.qa {
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); margin-bottom: var(--s3);
  box-shadow: var(--shadow-sm);
}
.qa summary {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4); font-weight: 700; color: var(--ink);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .35em;
  width: 12px; height: 12px;
  border-right: var(--bw) solid var(--accent); border-bottom: var(--bw) solid var(--accent);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa[open] summary { border-bottom: var(--bw) solid var(--line-soft); }
.qa > div { padding: var(--s4); color: var(--ink-2); }

/* ------------------------------------------------------------------ deck --- */
/* Related entries as a numbered stack, full width, not another card rail. */
.deck { border-top: var(--bw) solid var(--line); }
.deck a {
  display: grid; grid-template-columns: 3rem 56px 1fr auto auto;
  align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s3);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.deck a:hover { background: var(--accent-wash); padding-left: var(--s5); }
.deck .n { font-family: "Archivo Black", sans-serif; color: var(--ink-3); }
.deck a:hover .n { color: var(--accent); }
.deck img { width: 56px; height: 56px; border-radius: 7px; border: var(--bw) solid var(--line); }
.deck strong { font-family: "Archivo Black", sans-serif; font-size: 1.0625rem; letter-spacing: -.02em; }
.deck small { display: block; color: var(--ink-3); font-weight: 400; }
.deck .go { color: var(--ink-3); }
.deck a:hover .go { color: var(--accent); }
@media (max-width: 640px) {
  .deck a { grid-template-columns: 2rem 48px 1fr auto; gap: var(--s3); }
  .deck img { width: 48px; height: 48px; }
  .deck .rating { display: none; }
}

/* -------------------------------------------------------------- notes ----- */
/* The long homepage read is broken at its own subheadings into numbered
   panels. Two flowing columns pack by height, so there is never a stranded
   empty cell the way a fixed grid produces with an odd number of entries. */
.notes-lead {
  margin: 0 0 var(--s7);
  font-size: var(--step-1); line-height: 1.65; color: var(--ink-2);
}
.notes-lead p:last-child { margin-bottom: 0; }

.notes { columns: 2; column-gap: var(--s5); }
.notecard {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: block; margin: 0 0 var(--s5); padding: var(--s5);
  background: var(--panel); border: var(--bw) solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.notecard .n {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px;
  padding-inline: 6px; margin-bottom: var(--s3);
  background: var(--accent-wash); color: var(--accent);
  border: var(--bw) solid var(--accent); border-radius: 7px;
  font-family: "Archivo Black", sans-serif; font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.notecard h3 {
  font-size: 1.375rem; line-height: 1.12; color: var(--ink);
  margin-bottom: var(--s3);
}
.notecard .body { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.notecard .body p:last-child { margin-bottom: 0; }
.notecard .body ul { list-style: none; margin: 0; padding: 0; }
.notecard .body li { position: relative; padding-left: var(--s5); margin-bottom: var(--s2); }
.notecard .body li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 880px) { .notes { columns: 1; } }

/* --------------------------------------------------------------- caution -- */
.stop { padding-block: var(--s8); }
.stop-panel {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s5);
  padding: var(--s6);
}
.stop-panel .mark {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border: var(--bw) solid var(--line); border-radius: var(--r);
}
.stop-panel h2 { font-size: var(--step-2); margin-bottom: var(--s4); }
.stop-panel p { color: var(--ink-2); }
.stop-panel ul { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.stop-panel li { display: flex; align-items: center; gap: var(--s3); font-weight: 600; }
.stop-panel li svg { color: var(--accent); flex: none; }
@media (max-width: 560px) { .stop-panel { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- colophon -- */
.colophon { border-top: var(--bw) solid var(--line); background: var(--panel); }
.colophon .wrap { padding-block: var(--s7) calc(var(--s8) + 24px); }
.colophon .brand { margin-right: 0; gap: var(--s4); }
.colophon .brand img { width: 76px; height: 76px; border-radius: 12px; }
.colophon .brand b { font-size: 2rem; }
.colophon-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
.colophon p { color: var(--ink-3); font-size: var(--step--1); margin-top: var(--s3); }
.colophon h3 { font-family: Archivo, sans-serif; font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: var(--s3); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: var(--s2); }
.colophon li a { font-weight: 600; color: var(--ink-2); }
.colophon li a:hover { color: var(--accent); }
.colophon .legal {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center;
  justify-content: space-between; margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line-soft); font-size: var(--step--1); color: var(--ink-3);
}
.age {
  font-weight: 700; color: var(--accent); background: var(--accent-wash);
  border: var(--bw) solid var(--accent); border-radius: 7px; padding: 2px 10px;
}

/* --------------------------------------------------------------- to top --- */
.totop {
  position: fixed; right: var(--gut); bottom: var(--gut); z-index: var(--z-top);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
/* entry pages dock a bar along the bottom, so lift the button clear of it */
body.has-dock .totop { bottom: calc(var(--gut) + 76px); }

.crumbs {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  padding-block: var(--s4); font-size: var(--step--1); color: var(--ink-3);
}
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hand a { transform: none !important; position: static; width: 100%; max-width: none; }
  .hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); min-height: 0; }
}

/* ---------------------------------------------------------- breakpoints --- */
@media (max-width: 1080px) {
  .ribbon { grid-template-columns: repeat(3, 1fr); }
  .ribbon > div:nth-child(3n+1) { border-left: 0; }
  .ribbon > div:nth-child(n+4) { border-top: var(--bw) solid var(--line); }
}

@media (max-width: 880px) {
  .lead-grid { grid-template-columns: 1fr; }
  .hand { min-height: 300px; margin-top: var(--s6); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .slab { grid-template-columns: repeat(2, 1fr); }
  .slab > div:nth-child(odd) { border-left: 0; }
  .slab > div:nth-child(n+3) { border-top: var(--bw) solid var(--line); }
  .entry-slab { grid-template-columns: 1fr; }
  .entry-slab .art { max-width: 200px; }
  .band { padding-block: var(--s8); }
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .ribbon { grid-template-columns: repeat(2, 1fr); }
  .ribbon > div:nth-child(odd) { border-left: 0; }
  .ribbon > div:nth-child(n+3) { border-top: var(--bw) solid var(--line); }
  .colophon-grid { grid-template-columns: 1fr; }
  .lead .acts .btn { flex: 1 1 100%; }
  .hand a { width: 60%; }
}
