/* Ibile — marketing site.
 *
 * One idea carries the design: the site is a table you sit down at. The board on the home page is the
 * one loud thing (38 seeds, one per game, sown into six pits by family); everything around it stays
 * quiet — indigo and bone grounds, Tanker for the few big words, General Sans for everything else, and
 * the four play colours used only where they mean something (a family, a currency, a state).
 */

:root {
  --ground: #0f1d38;       /* indigo night: the page */
  --ground-2: #16284a;     /* a raised indigo surface */
  --ground-3: #0a1529;     /* a sunk indigo surface */
  --bone: #f2e9d8;         /* type on indigo, and the light ground */
  --bone-2: #e7dcc6;
  --ink: #0f1d38;          /* type on bone */
  --wood: #5a3620;         /* the carved board */
  --wood-hi: #7a4c2d;
  --wood-lo: #3a2213;
  --verm: #e8432e;
  --leaf: #2e8b5b;
  --brass: #e3a93c;
  --blue: #5c7cb8;
  --muted: rgba(242, 233, 216, 0.68);
  --muted-ink: rgba(15, 29, 56, 0.7);
  --rule: rgba(242, 233, 216, 0.14);
  --rule-ink: rgba(15, 29, 56, 0.14);
  --disp: 'Tanker', 'Arial Black', Impact, sans-serif;
  --body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol, dl { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }

/* ───────── type ───────── */

.display {
  font-family: var(--disp);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
}
.h2 {
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ───────── buttons ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--brass);
  background: var(--brass); color: var(--ink);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: #f0bb57; border-color: #f0bb57; }
.btn.line { background: transparent; color: var(--bone); border-color: rgba(242, 233, 216, 0.4); }
.btn.line:hover { border-color: var(--bone); }
.bone .btn.line { color: var(--ink); border-color: var(--rule-ink); }
.bone .btn.line:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { color: var(--brass); font-weight: 600; text-underline-offset: 3px; }
.bone .text-link { color: #9c6a12; }

/* ───────── nav ───────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 29, 56, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
@supports (backdrop-filter: blur(8px)) { .nav { background: rgba(15, 29, 56, 0.82); backdrop-filter: blur(10px); } }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand .wm { font-family: var(--disp); font-size: 1.35rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current='page'] { color: var(--bone); }
.nav-links a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav .btn { min-height: 42px; padding: 0 18px; }

.menu { display: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 10px;
    border: 1px solid var(--rule); display: flex; align-items: center; font-weight: 600;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { border-color: var(--bone); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
    background: var(--ground-2); border: 1px solid var(--rule); border-radius: 14px; padding: 10px;
    display: grid; gap: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .menu-panel a:not(.btn) { padding: 12px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
  .menu-panel a:not(.btn):hover { background: rgba(242, 233, 216, 0.06); }
  .menu-panel .btn { margin-top: 8px; }
}

/* ───────── sections ───────── */

.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.tight { padding: clamp(48px, 7vw, 80px) 0; }
.bone { background: var(--bone); color: var(--ink); }
.bone .lede, .bone .small { color: var(--muted-ink); }
.sunk { background: var(--ground-3); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .lede { max-width: 56ch; }

/* ───────── home: hero + board ───────── */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 24px; max-width: 880px; }
.hero .btn-row { margin-top: 4px; }
.hero-note { font-size: 0.95rem; color: var(--muted); }

.board-wrap { margin-top: clamp(44px, 6vw, 72px); }
.board {
  --pit: clamp(86px, 8.6vw, 124px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(64px, 1fr) repeat(6, var(--pit)) minmax(64px, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) clamp(50px, 4.4vw, 58px);
  border-radius: clamp(40px, 6vw, 88px);
  background:
    radial-gradient(120% 180% at 30% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.06) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 45%, var(--wood-lo));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -6px 16px rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.store {
  height: calc(var(--pit) * 1.28);
  width: min(100%, calc(var(--pit) * 0.9));
  justify-self: center;
  border-radius: 999px;
  background: radial-gradient(90% 70% at 50% 35%, #2a170c, #1d0f07 70%);
  box-shadow: inset 0 8px 18px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; text-align: center; padding: 10px;
}
.store .n { font-family: var(--disp); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--bone); }
.store .l { font-size: 0.8rem; color: rgba(242, 233, 216, 0.7); line-height: 1.3; }
.store svg { width: 78%; }

.pit {
  position: relative;
  width: var(--pit); height: var(--pit);
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(80% 80% at 50% 38%, #2d1a0e, #1c0f07 72%);
  box-shadow: inset 0 10px 22px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pit:hover { box-shadow: inset 0 10px 22px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(242, 233, 216, 0.25); }
.pit[aria-pressed='true'] { box-shadow: inset 0 10px 22px rgba(0, 0, 0, 0.65), 0 0 0 3px var(--fam); }
.pit:focus-visible { outline-offset: 5px; border-radius: 50%; }
.seed {
  position: absolute;
  width: 17%; height: 12.5%;
  left: var(--x); top: var(--y);
  border-radius: 50%;
  background: radial-gradient(70% 70% at 35% 30%, #fffaf0, var(--bone) 45%, #b8a98c);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) rotate(var(--r));
}
.pit[aria-pressed='true'] .seed { background: radial-gradient(70% 70% at 35% 30%, #fff, var(--fam) 55%, #3a2213); }
.pit-name {
  position: absolute; left: 50%; bottom: calc(-1 * clamp(32px, 3vw, 38px));
  transform: translateX(-50%); white-space: nowrap;
  font-size: 0.88rem; font-weight: 600; color: var(--bone);
}
.pit-name span { color: var(--muted); font-weight: 500; }

.board.pre .seed { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .board.sow .seed { animation: sow 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: var(--d); }
}
@keyframes sow {
  from { opacity: 0; transform: translate(-50%, -160%) rotate(var(--r)) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
}

.board-caption {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px;
  min-height: 150px;
  padding-top: 26px; border-top: 1px solid var(--rule);
}
.board-caption .fam-name { font-family: var(--disp); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--fam, var(--bone)); }
.board-caption p { color: var(--muted); margin-top: 10px; max-width: 42ch; }
.board-caption ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.board-caption li a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--rule); font-weight: 500; font-size: 0.95rem;
}
.board-caption li a:hover { border-color: var(--bone); }

@media (max-width: 980px) {
  .board {
    --pit: clamp(78px, 24vw, 120px);
    grid-template-columns: repeat(3, var(--pit));
    justify-content: center;
    row-gap: 58px; padding: 26px 22px 60px;
    border-radius: 48px;
  }
  .store { display: none; }
  .board-caption { grid-template-columns: 1fr; }
}

/* ───────── home: ways to play ───────── */

.ways { border-top: 1px solid var(--rule); }
.bone .ways { border-top-color: var(--rule-ink); }
.way {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 56px;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--rule);
}
.bone .way { border-bottom-color: var(--rule-ink); }
.way h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.05; }
.way p { color: var(--muted); max-width: 56ch; }
.bone .way p { color: var(--muted-ink); }
.way p + p { margin-top: 12px; }
@media (max-width: 760px) { .way { grid-template-columns: 1fr; } }

/* ───────── home: heritage ledger ───────── */

.ledger { list-style: none; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.9fr) minmax(0, 2.2fr);
  gap: 8px 28px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule-ink);
}
.ledger .g { font-family: var(--disp); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.05; }
.ledger .g a { text-decoration: none; }
.ledger .g a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ledger .r { font-weight: 600; color: #9c3a21; }
.ledger .h { color: var(--muted-ink); }
@media (max-width: 760px) {
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
}

/* ───────── home: wallet ───────── */

.tokens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.token { display: grid; gap: 12px; align-content: start; }
.token svg { width: 56px; height: 56px; }
.token h3 { font-size: 1.35rem; }
.token p { color: var(--muted); }
.cash-line {
  margin-top: clamp(36px, 5vw, 56px); padding: 20px 24px; border-radius: 14px;
  background: var(--ground-2); border-left: 4px solid var(--brass);
  max-width: 760px;
}
@media (max-width: 760px) { .tokens { grid-template-columns: 1fr; } }

/* ───────── two-column split ───────── */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.split .stack { display: grid; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: 14px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--leaf); box-shadow: inset 0 0 0 4px var(--ground);
}
.bone .checks li::before { box-shadow: inset 0 0 0 4px var(--bone); }

/* ───────── join ───────── */

.join { text-align: left; }
.join-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: 10px;
  border: 2px solid rgba(242, 233, 216, 0.3); background: var(--ground-3); color: var(--bone);
  font: 500 1rem var(--body);
}
.signup input::placeholder { color: rgba(242, 233, 216, 0.45); }
.signup input:focus { outline: none; border-color: var(--brass); }
.signup .btn { min-height: 52px; }
.form-note { min-height: 1.6em; margin-top: 10px; font-size: 0.95rem; }
.form-note[data-state='ok'] { color: var(--brass); }
.form-note[data-state='error'] { color: #ff8a78; }
@media (max-width: 860px) { .join-in { grid-template-columns: 1fr; } }

/* ───────── inner pages ───────── */

.phead { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.phead-in { display: grid; gap: 20px; max-width: 900px; }
.phead .display { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.crumb { font-weight: 600; color: var(--brass); text-decoration: none; }

/* games index */
.fam-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.fam-filter button {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--bone);
  font: 500 0.95rem var(--body);
}
.fam-filter button:hover { border-color: var(--bone); }
.fam-filter button[aria-pressed='true'] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.fam-filter .c { color: var(--muted); margin-left: 6px; }
.fam-filter button[aria-pressed='true'] .c { color: var(--muted-ink); }

.fam { padding-top: 28px; }
.fam + .fam { margin-top: clamp(40px, 6vw, 72px); }
.fam[hidden] { display: none; }
.fam-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; align-items: end; margin-bottom: 18px; }
.fam-head h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.fam-head h2 .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 12px; vertical-align: 0.3em; background: var(--fam); }
.fam-head p { color: var(--muted); }
@media (max-width: 760px) { .fam-head { grid-template-columns: 1fr; } }

.game { border-top: 1px solid var(--rule); }
.game:last-child { border-bottom: 1px solid var(--rule); }
.game summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) 90px 90px minmax(0, 1.6fr) 28px;
  gap: 8px 20px; align-items: center; padding: 16px 4px;
}
.game summary::-webkit-details-marker { display: none; }
.game summary:hover .gn { text-decoration: underline; text-underline-offset: 4px; }
.game .gn { font-weight: 600; font-size: 1.12rem; }
.game .gr, .game .gp, .game .gt { color: var(--muted); font-size: 0.95rem; }
.game .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.game .chev { width: 22px; height: 22px; justify-self: end; transition: transform 0.2s; }
.game[open] .chev { transform: rotate(180deg); }
.game .more { padding: 0 4px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; }
.game .more p { max-width: 56ch; }
.game .more ol { padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.game .meta-m { display: none; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) {
  .game summary { grid-template-columns: minmax(0, 1fr) auto 28px; }
  .game .gr { grid-column: 1; grid-row: 2; }
  .game .gp, .game .gt { display: none; }
  .game .tags { grid-column: 1 / -1; }
  .game .chev { grid-column: 3; grid-row: 1; }
  .game .meta-m { display: inline; }
  .game .more { grid-template-columns: 1fr; }
}

/* lists of statements (about, responsible play, careers) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--rule); }
.bone .facts { border-top-color: var(--rule-ink); }
.fact { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.bone .fact { border-bottom-color: var(--rule-ink); }
.fact h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fact p { color: var(--muted); }
.bone .fact p { color: var(--muted-ink); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.metric .n { font-family: var(--disp); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; }
.metric .l { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.roles { border-top: 1px solid var(--rule); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.role h3 { font-size: 1.3rem; }
.role .meta { color: var(--muted); font-size: 0.92rem; margin: 4px 0 10px; }
.role p { color: var(--muted); max-width: 62ch; }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; } }

.factsheet { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.factsheet dt, .factsheet dd { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.factsheet dt { font-weight: 600; }
.factsheet dd { color: var(--muted); }
@media (max-width: 640px) {
  .factsheet { grid-template-columns: 1fr; }
  .factsheet dt { border-bottom: 0; padding-bottom: 0; }
}

.quote-block { padding: 24px 28px; border-radius: 14px; background: var(--ground-2); }
.quote-block h3 { font-size: 1rem; margin-bottom: 10px; color: var(--brass); }

.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--rule); }
.contact { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.contact p { color: var(--muted); }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }

/* FAQ */
.qa-list { max-width: 820px; border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-weight: 600; font-size: 1.12rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(45deg);
  transition: transform 0.2s;
}
.qa[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.qa .ans { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }
.qa .ans b { color: var(--bone); font-weight: 600; }
.qa .ans a { color: var(--brass); font-weight: 600; }

/* legal */
.legal { max-width: 760px; }
.legal .updated { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal p, .legal li { color: rgba(242, 233, 216, 0.85); }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 1.2em; display: grid; gap: 10px; margin-top: 12px; }
.legal a { color: var(--brass); font-weight: 600; }
.legal b { color: var(--bone); }

/* single-message pages (404, payment return) */
.message { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 48px 0; }
.message-in { display: grid; gap: 22px; max-width: 700px; }

/* ───────── footer ───────── */

footer { background: var(--ground-3); padding: 64px 0 32px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
.foot-in > div:first-child p { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: 0.95rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-col h2 { font-size: 0.95rem; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; }
.foot-col a:hover { color: var(--bone); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.foot-bottom a { color: var(--muted); margin-left: 18px; }
@media (max-width: 760px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom a { margin: 0 18px 0 0; }
}

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