/* Fern Reel Guide — site shell, typography and components */

/* Local copies of Fraunces, Inter and IBM Plex Mono (SIL Open Font License) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-400-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-400-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --porcelain: #eff1ee;
  --paper: #fbfcfa;
  --paper-2: #f5f7f4;
  --forest: #123f30;
  --forest-mid: #1d5b45;
  --forest-tint: #e3eae5;
  --ember: #d4531c;
  --ember-surface: #bd4712;
  --ember-dark: #93330a;
  --ember-light: #f08a4b;
  --ember-tint: #fbeade;
  --ink: #111e19;
  --ink-soft: #47584f;
  --rule: #cfd8d2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --radius-tile: 20px;
  --radius-inner: 12px;
  --radius-pill: 999px;

  --shell: 1200px;
  --prose: 68ch;
  --bar-h: 92px;
}

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

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

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--porcelain);
  background-image:
    radial-gradient(1100px 720px at 88% -12%, rgba(212, 83, 28, 0.13), rgba(212, 83, 28, 0) 62%),
    radial-gradient(820px 560px at 4% 2%, rgba(29, 91, 69, 0.09), rgba(29, 91, 69, 0) 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol, dl, table, figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- links: small arrow suffix ---------- */

a {
  color: var(--forest);
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ember-dark);
}

:where(main, footer) p > a,
:where(main, footer) li > a,
:where(main, footer) dd > a,
.lnk {
  &::after {
    content: "\2009\2192";
    font-family: var(--font-body);
    color: var(--ember);
  }
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.band {
  padding-block: var(--s-8);

  & > .shell > * + * {
    margin-top: var(--s-5);
  }
}

.band--tight { padding-block: var(--s-7); }
.band--tinted { background: rgba(227, 234, 229, 0.72); }

.prose {
  max-width: var(--prose);

  & > * + * { margin-top: var(--s-4); }
  & h2 { margin-top: var(--s-7); }
  & h3 { margin-top: var(--s-6); }
  & ul, & ol { padding-left: 1.35em; }
  & li + li { margin-top: var(--s-2); }
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin: 0 0 var(--s-3);
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.accent-word { color: var(--ember); }

.coins {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- header: underline tabs + coin chip ---------- */

.masthead {
  background: rgba(251, 252, 250, 0.9);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-dark);
  margin-top: 3px;
}

.masthead__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;

  &::-webkit-scrollbar { display: none; }

  & a {
    display: block;
    padding: var(--s-2) 0;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 3px solid transparent;

    &::after { content: none; }

    &:hover { border-bottom-color: var(--rule); }

    &[aria-current="page"] {
      color: var(--forest);
      font-weight: 600;
      border-bottom-color: var(--ember);
    }
  }
}

.coin-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  flex: 0 0 auto;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;

  &::after { content: none; }

  & .coin-chip__label {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b8ccc2;
  }
}

/* ---------- buttons: tactile soft-3D ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: var(--s-3) var(--s-5);
  border: 0;
  border-radius: var(--radius-inner);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #c44d15, #b04010);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 3px 0 #8b310a;

  &::after { content: none; }

  &:hover { background: linear-gradient(180deg, #cb5217, #a83c0e); }

  &:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 0 #8b310a;
  }

  &[disabled] {
    cursor: not-allowed;
    background: #d8ded9;
    color: #7d8b84;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #c2cac5;
  }
}

.btn--quiet {
  background: linear-gradient(180deg, #fff, var(--paper-2));
  color: var(--forest);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--rule);

  &:hover { background: linear-gradient(180deg, #fff, #eef2ef); }

  &:active { box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--rule); }
}

.btn--forest {
  background: linear-gradient(180deg, #235e49, var(--forest));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 0 #092219;

  &:hover { background: linear-gradient(180deg, #2a6b53, #143f31); }

  &:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #092219; }
}

.btn--small {
  min-height: 38px;
  padding: var(--s-2) var(--s-4);
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- badges: leading dot ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 4px 12px 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--forest-tint);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;

  &::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
  }
}

.badge--ember {
  background: var(--ember-tint);
  color: var(--ember-dark);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- tiles: rounded, accent header, border on hover ---------- */

.tile {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-tile);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  &:hover { border-color: var(--forest); }
}

.tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--ember-surface);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile__head--forest { background: var(--forest); }

.tile__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1 1 auto;
}

.tile__body--pad-lg { padding: var(--s-6); }

.tile__art {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--porcelain);
}

.tile__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.tile__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  flex: 1 1 auto;
}

.tile__foot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
}

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

.hero {
  background-image: url("/assets/img/band-hero.webp");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-9) var(--s-8);
}

.hero__title {
  font-size: clamp(2.4rem, 7.4vw, 4.75rem);
  line-height: 1.02;
  max-width: 22ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;

  & li {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--forest);
  }

  & b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    line-height: 1.1;
  }
}

.page-head {
  padding-block: var(--s-8) var(--s-6);

  & .lede { margin-top: var(--s-4); }
}

.page-head--carnival,
.page-head--volcanic,
.page-head--coastal {
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--rule);
}

.page-head--carnival { background-image: url("/assets/img/band-carnival.webp"); }
.page-head--volcanic { background-image: url("/assets/img/band-volcanic.webp"); }
.page-head--coastal { background-image: url("/assets/img/band-coastal.webp"); }

/* ---------- free-play statement ---------- */

.free-strip {
  background: var(--ember-surface);
  color: #fdf3ee;

  & .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-3) var(--s-6);
    padding-block: var(--s-4);
  }

  & p {
    margin: 0;
    max-width: 72ch;
    font-size: 0.9375rem;
  }

  & strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
  }

  & b {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }

  & a { color: #fff; }
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: var(--s-5);

  & > * { min-width: 0; }
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(300px, 100%), 1fr);
  gap: var(--s-5);
  overflow-x: auto;
  padding-bottom: var(--s-3);
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--forest-mid) var(--forest-tint);

  & > * { scroll-snap-align: start; }
}

.split {
  display: grid;
  gap: var(--s-6);
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);

  /* a wide table inside a column must scroll itself, not stretch the page */
  & > * { min-width: 0; }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4);

  & p { max-width: 52ch; color: var(--ink-soft); margin: var(--s-3) 0 0; }
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border-radius: var(--radius-tile);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap table { min-width: 620px; }

caption {
  caption-side: top;
  text-align: left;
  padding: var(--s-4) var(--s-5) 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

th, td {
  padding: var(--s-3) var(--s-5);
  text-align: left;
  vertical-align: top;
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 2px solid var(--forest);
}

tbody tr + tr th,
tbody tr + tr td {
  border-top: 1px solid var(--rule);
}

tbody th {
  font-family: var(--font-body);
  font-weight: 600;
}

td.num, th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- figures ---------- */

figure.inline-art {
  background: var(--paper);
  border-radius: var(--radius-tile);
  overflow: hidden;

  & img { width: 100%; }

  & figcaption {
    padding: var(--s-3) var(--s-5) var(--s-4);
    font-size: 0.8125rem;
    color: var(--ink-soft);
  }
}

/* ---------- FAQ ---------- */

.qa {
  display: grid;
  gap: var(--s-5);
}

.qa__item {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-tile);
  padding: var(--s-5) var(--s-6);

  &:hover { border-color: var(--forest); }

  & h3 { margin-bottom: var(--s-3); }
  & p { margin: 0; color: var(--ink-soft); }
  & p + p { margin-top: var(--s-3); }
}

.qa__item--myth {
  background: var(--ember-tint);
}

/* ---------- notes / disclaimer ---------- */

.note {
  background: var(--paper);
  border-radius: var(--radius-tile);
  padding: var(--s-6);

  & > * + * { margin-top: var(--s-3); }
  & p { color: var(--ink-soft); margin: 0; }
}

.note--forest {
  background: var(--forest);
  color: #dfe9e2;

  & h2, & h3 { color: #fff; }
  & p { color: #cddbd3; }
  & a { color: #fff; }
}

/* ---------- local record figures ---------- */

.stat-row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  margin: 0;
}

.stat {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-tile);
  padding: var(--s-5);

  &:hover { border-color: var(--forest); }

  & dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-mid);
  }

  & dd {
    margin: var(--s-2) 0 0;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
}

.stat dd.stat__date { font-size: 1.35rem; }

/* inside a tile the figures follow the text directly; the button keeps the base */
.tile__body:has(.stat-row) .tile__text { flex: 0 0 auto; }

.stat-row--tight {
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
}

.stat--sm {
  background: var(--paper-2);
  padding: var(--s-4);

  & dd { font-size: 1.5rem; }
  & dd.stat__date { font-size: 1.15rem; }
}

.definition-list {
  & dt {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: var(--s-5);
  }

  & dt:first-child { margin-top: 0; }
  & dd { margin: var(--s-2) 0 0; color: var(--ink-soft); }
}

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

.site-foot {
  background: var(--forest);
  color: #cddbd3;
  padding-block: var(--s-8) var(--s-6);
  font-size: 0.9375rem;

  & h2 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fb0a2;
    margin-bottom: var(--s-3);
  }

  & a { color: #fff; text-decoration-color: var(--ember); }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  & li + li { margin-top: var(--s-2); }
}

.site-foot__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--s-3);

  & svg { width: 34px; height: 34px; }
}

.site-foot__legal {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: var(--s-3);
  font-size: 0.875rem;
  color: #a9c2b6;

  & p { margin: 0; max-width: 88ch; }
}

/* ---------- fixed bottom bars ---------- */

.age-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: #e7ede9;
  font-size: 0.8125rem;
  line-height: 1.45;

  & .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-4);
    padding-block: var(--s-3);
  }

  & p { margin: 0; }

  & b {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--ember-light);
  }

  & a { color: #fff; }
}

.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: var(--bar-h);
  z-index: 41;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);

  &[hidden] { display: none; }

  & .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3) var(--s-5);
    padding-block: var(--s-4);
  }

  & p {
    margin: 0;
    max-width: 74ch;
    font-size: 0.875rem;
    color: var(--ink-soft);
  }
}

.skip-link {
  position: absolute;
  left: -9999px;

  &:focus {
    left: var(--s-4);
    top: var(--s-4);
    z-index: 60;
    padding: var(--s-3) var(--s-4);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-inner);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  :root { --bar-h: 108px; }

  .split { grid-template-columns: 1fr; }

  .masthead__inner {
    gap: var(--s-3) var(--s-4);
  }

  .masthead__nav {
    order: 3;
    flex: 1 1 100%;
  }

  .tabs { gap: var(--s-4); }

  .coin-chip { margin-left: auto; }

  .band { padding-block: var(--s-7); }

  .hero { padding-block: var(--s-7) var(--s-6); }
}

@media (max-width: 560px) {
  :root { --bar-h: 128px; }

  body { font-size: 1rem; }

  .shell { padding-inline: var(--s-4); }

  .tile__body { padding: var(--s-4); }

  .note, .qa__item { padding: var(--s-5); }
}
