/* loqah.com, every page.
 *
 * Two faces, as in the app, and no others:
 *   IBM Plex Mono    everything written: headings, body, names, notes
 *   Hanken Grotesk   tracked capitals only: labels, buttons, eyebrows
 * The colours are the app's own (app/lib/design/palette.dart).
 */

:root {
  --navy: #0E1B2C;
  --navy-deep: #0A1420;
  --navy-card: #13233A;
  --paper: #F6F1E7;
  --paper-shade: #EBE3D2;
  --paper-deep: #E2D7C0;
  --gold: #C9A227;
  --gold-l: #E3C558;
  --gold-d: #9B7B18;
  --ink: #2A2118;
  --ink-soft: #6B5D48;
  --oxblood: #7B2D26;
  --copper: #B87333;
  --copper-l: #E0A96D;
  --silver: #8C93A0;
  --silver-l: #C4CAD4;
  --leather-oxblood: #5E241F;
  --leather-navy: #14263B;
  --leather-forest: #1E3A2E;
  --on: rgba(246, 241, 231, .94);
  --soft: rgba(246, 241, 231, .66);
  --faint: rgba(246, 241, 231, .38);
  --line: rgba(201, 162, 39, .18);
  --line-2: rgba(201, 162, 39, .40);
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --label: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: min(1120px, 90vw);
  --read: min(720px, 90vw);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--on);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-l); text-decoration: none; }
a:hover { color: var(--paper); }
::selection { background: rgba(201, 162, 39, .32); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* The security ground every page of the passport carries: a fine lattice. */
.ground {
  background-color: var(--navy-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, .035) 0 0.5px, transparent 0.5px 8px),
    repeating-linear-gradient(-45deg, rgba(201, 162, 39, .035) 0 0.5px, transparent 0.5px 8px);
}
.paper-ground {
  background-color: var(--paper);
  color: var(--ink);
  background-image:
    repeating-linear-gradient(45deg, rgba(111, 82, 51, .045) 0 0.5px, transparent 0.5px 8px),
    repeating-linear-gradient(-45deg, rgba(111, 82, 51, .045) 0 0.5px, transparent 0.5px 8px);
}

.wrap { width: var(--wrap); margin: 0 auto; }
.read { width: var(--read); margin: 0 auto; }

/* ------------------------------------------------------------- type */

.label, .eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold); margin: 0 0 18px; display: block; }
h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.18; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
h1 b, h2 b { font-weight: 600; color: var(--gold-l); }
.paper-ground h1 b, .paper-ground h2 b { color: var(--gold-d); }
.lede { font-size: clamp(14.5px, 1.2vw, 16px); color: var(--soft); max-width: 58ch; margin: 22px 0 0; }
.paper-ground .lede, .paper-ground p { color: var(--ink-soft); }
p { margin: 16px 0 0; color: var(--soft); }
.caps { text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------- top bar */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 20, 32, .97);
  border-bottom: 1px solid rgba(201, 162, 39, .12);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.brand img { width: auto; height: 34px; }
.brand img.word { height: 18px; }
.brand span {
  font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .32em;
}
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top nav a { font-family: var(--label); font-weight: 600; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--soft); }
.top nav a:hover { color: var(--paper); }
@media (max-width: 760px) { .top nav a.hide-s { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--label); font-weight: 700; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
/* Gold is for the one thing to do. */
.btn.gold {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 50%, var(--gold) 100%);
  box-shadow: 0 8px 26px rgba(201, 162, 39, .22);
}
.btn.gold:hover { color: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(201, 162, 39, .3); }
.btn.line { color: var(--on); border: 1px solid var(--line-2); }
.btn.line:hover { color: var(--paper); border-color: var(--gold); }
.btn.small { height: 38px; padding: 0 18px; font-size: 10.5px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 18px;
  border-radius: 14px; border: 1px solid var(--line-2); color: var(--paper);
  background: rgba(10, 20, 32, .5);
}
.store:hover { border-color: var(--gold); color: var(--paper); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store small { display: block; font-family: var(--label); font-weight: 600; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--soft); line-height: 1.2; }
.store strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 15px; line-height: 1.25; }

/* ------------------------------------------------------------- sections */

section { position: relative; }
/* A link to a section lands below the bar, not under it. */
section[id] { scroll-margin-top: 58px; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-tight { padding: clamp(56px, 8vw, 96px) 0; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--soft); }
.points li::before { content: ''; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg); }
.points b { color: var(--on); font-weight: 600; }
.paper-ground .points li { color: var(--ink-soft); }
.paper-ground .points b { color: var(--ink); }

/* ------------------------------------------------------------- the stamp
 * Perforated stock: the holes are a mask on the padding ring, the art sits
 * in the content box. Paper grain is a faint gradient, as in the app.
 */
.stamp { margin: 0; display: inline-block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); }
.stamp .sheet {
  /* Padding under half the pitch, so only the edge row of holes shows. */
  --hole: 3.3px; --pitch: 12px;
  display: block; padding: 7px;
  background:
    radial-gradient(120% 120% at 30% 20%, #FCF8EF 0%, #F2E9D6 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle, #0000 calc(var(--hole) - .4px), #000 var(--hole))
      calc(var(--pitch) / -2) calc(var(--pitch) / -2) / var(--pitch) var(--pitch) round padding-box;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle, #0000 calc(var(--hole) - .4px), #000 var(--hole))
      calc(var(--pitch) / -2) calc(var(--pitch) / -2) / var(--pitch) var(--pitch) round padding-box;
}
.stamp .art {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: #F1E8D3;
}
.stamp.tall .art { aspect-ratio: 1 / 1.08; }
.stamp .art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.stamp .art::after { /* the grain of the stock, over the print too */
  content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .5;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 90, 50, .08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 50, .07), transparent 45%);
}
.stamp .lq { position: absolute; top: 5%; left: 6%; font-family: var(--label); font-weight: 800;
  font-size: 9px; color: #3A2E20; letter-spacing: .04em; z-index: 1; }

/* The cancellation, struck across the stamp's lower corner. */
.postmark { position: absolute; pointer-events: none; }
.postmark text { font-family: var(--label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------- badges */

.ruling {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--label); font-weight: 700; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
}
.ruling.gold { color: var(--gold-l); border: 1px solid rgba(227, 197, 88, .5); background: rgba(201, 162, 39, .1); }
.ruling.copper { color: var(--copper-l); border: 1px solid rgba(224, 169, 109, .5); background: rgba(184, 115, 51, .1); }
.ruling.silver { color: var(--silver-l); border: 1px solid rgba(196, 202, 212, .45); background: rgba(140, 147, 160, .1); }
.paper-ground .ruling.gold { color: var(--gold-d); border-color: rgba(155, 123, 24, .55); background: rgba(201, 162, 39, .12); }
.ruling i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }

/* ------------------------------------------------------------- phone */

.phone {
  position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 19.2; margin: 0 auto;
  border-radius: 46px; padding: 11px; background: #05090F;
  box-shadow: 0 0 0 1.5px #1D2A3B, 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone::before { /* the island */
  content: ''; position: absolute; top: 19px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  border-radius: 20px; background: #05090F; z-index: 3;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  font-size: 10px; line-height: 1.5;
}
.screen.night { background: var(--navy); color: var(--on); }
.screen.day { background: var(--paper); color: var(--ink); }
.screen .bar { height: 46px; }
.screen .head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 10px;
  border-bottom: 1px solid rgba(201, 162, 39, .35); margin: 0 14px; padding-left: 4px; padding-right: 4px; }
.screen .head .word { display: block; height: 15px; width: auto; margin-bottom: 4px; }
.screen .head .sub { font-family: var(--label); font-weight: 600; letter-spacing: .2em; font-size: 6px; color: var(--soft); }
.screen .head .icons { display: flex; gap: 10px; }
.screen .head .icons i { width: 11px; height: 11px; border: 1.4px solid var(--gold); border-radius: 3px; display: block; opacity: .9; }
.screen .tabs {
  position: absolute; left: 10px; right: 10px; bottom: 12px; height: 50px; border-radius: 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center;
  background: rgba(30, 44, 64, .92); border: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--label); font-weight: 600; font-size: 5.6px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.screen.day .tabs { background: rgba(233, 225, 207, .96); color: var(--ink-soft); border-color: rgba(0, 0, 0, .04); }
.screen .tabs span { display: grid; justify-items: center; gap: 4px; }
.screen .tabs span::before { content: ''; width: 12px; height: 10px; border-radius: 3px; border: 1.4px solid currentColor; opacity: .8; }
.screen .tabs .on { color: var(--gold-l); background: rgba(123, 45, 38, .85); border-radius: 22px; height: 40px; margin: 0 5px; align-content: center; }
.screen.day .tabs .on { color: var(--paper); background: var(--oxblood); }

/* ------------------------------------------------------------- the shelf */

.idcard {
  margin: 14px 14px 0; border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(201, 162, 39, .18);
}
.idcard .row { display: flex; gap: 10px; align-items: center; }
.idcard .photo { width: 46px; height: 58px; border: 1px solid rgba(201, 162, 39, .7); border-radius: 3px; padding: 2px; flex: none; }
.idcard .photo div { width: 100%; height: 100%; border-radius: 2px;
  background: radial-gradient(circle at 50% 36%, #C9B79A 0 22%, transparent 23%),
              radial-gradient(ellipse at 50% 100%, #B9A688 0 44%, transparent 45%), #3A4A5E; }
.idcard .k { font-family: var(--label); font-weight: 600; font-size: 5.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.idcard .v { font-family: var(--mono); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.idcard .code { height: 16px; margin: 10px 0 8px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--on) 0 1px, transparent 1px 3px, var(--on) 3px 5px, transparent 5px 6px, var(--on) 6px 7px, transparent 7px 10px); }
.idcard .figs { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.idcard .figs .v { font-size: 11px; }
.idcard .figs .gold { color: var(--gold-l); }
.shelf-label { margin: 16px 18px 8px; font-family: var(--label); font-weight: 600; font-size: 7px; letter-spacing: .26em; color: var(--soft); text-transform: uppercase; }
.spines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 9px; padding: 0 16px; }
.spine {
  position: relative; aspect-ratio: 3 / 4.1; border-radius: 3px 6px 6px 3px; padding: 8px 6px;
  display: grid; align-content: space-between; justify-items: center; text-align: center;
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, .25), inset -1px 0 0 rgba(255, 255, 255, .06), 0 4px 10px rgba(0, 0, 0, .35);
  color: var(--gold-l);
}
.spine.ox { background: linear-gradient(135deg, var(--leather-oxblood), #431713); }
.spine.nv { background: linear-gradient(135deg, #1B3350, #0C1826); }
.spine.fo { background: linear-gradient(135deg, #24463A, #122619); }
.spine b { font-family: var(--mono); font-weight: 600; font-size: 6.6px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.spine small { font-family: var(--label); font-weight: 600; font-size: 5px; letter-spacing: .16em; opacity: .75; text-transform: uppercase; }
.spine em { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(227, 197, 88, .55); display: block; }

/* ------------------------------------------------------------- volume page */

.leaf {
  position: relative; color: var(--ink); border-radius: 4px 12px 12px 4px; padding: 28px 26px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 6px 0 14px -8px rgba(60, 40, 20, .35);
}
.leaf .state { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.leaf .name { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-top: 16px; }
.leaf .story { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); text-align: justify; hyphens: auto; margin: 8px auto 0; max-width: 36ch; }
.leaf .dated { display: flex; justify-content: center; gap: 10px; margin-top: 14px; font-family: var(--label);
  font-weight: 600; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.leaf .dated b { color: var(--ink); font-family: var(--mono); letter-spacing: .1em; }
.leaf .no { position: absolute; right: 18px; bottom: 12px; font-family: var(--mono); font-size: 9px; color: rgba(42, 33, 24, .4); }

/* ------------------------------------------------------------- cards and grids */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  border-radius: 18px; padding: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 35, 58, .7), rgba(14, 27, 44, .4));
}
.card .num { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--gold); }
.card h3 { margin-top: 14px; }
.card p { font-size: 14px; }
.paper-ground .card { background: rgba(255, 255, 255, .45); border-color: rgba(111, 82, 51, .16); }
.paper-ground .card p { color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: 56px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; text-align: center; }
.gallery .stamp { width: 100%; }
.gallery figcaption { margin-top: 12px; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.gallery figcaption small { display: block; margin-top: 4px; font-family: var(--label); font-weight: 600; font-size: 8.5px; letter-spacing: .2em; color: var(--faint); }

.table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14px; }
.table td { padding: 12px 0; border-bottom: 1px solid rgba(246, 241, 231, .08); color: var(--soft); vertical-align: top; }
.table td:last-child { text-align: right; font-weight: 600; color: var(--on); white-space: nowrap; padding-left: 16px; }
.table tr.head td { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); border-bottom-color: var(--line-2); padding-top: 26px; }

.ladder { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 6px; }
.ladder li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 10px;
  font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); border: 1px solid transparent; }
.ladder li span { font-weight: 500; letter-spacing: 0; color: var(--faint); }
.ladder li.done { color: var(--on); }
.ladder li.here { color: var(--gold-l); border-color: rgba(201, 162, 39, .55); background: rgba(201, 162, 39, .1); }
.bar-track { height: 6px; border-radius: 3px; background: rgba(246, 241, 231, .1); overflow: hidden; margin-top: 12px; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); border-radius: 3px; }

/* ------------------------------------------------------------- states list */

.states { columns: 3 220px; column-gap: 32px; margin-top: 40px; padding: 0; list-style: none; }
.states li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid rgba(246, 241, 231, .07);
  display: flex; justify-content: space-between; gap: 12px; }
.states a { color: var(--on); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.states a:hover { color: var(--gold-l); }
.states span { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

/* ------------------------------------------------------------- questions */

.qa details { border-bottom: 1px solid rgba(246, 241, 231, .09); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 34px 22px 0; position: relative;
  font-weight: 600; font-size: 15.5px; color: var(--on); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0 0 24px; max-width: 64ch; }

/* ------------------------------------------------------------- long pages */

.doc { padding: 70px 0 40px; }
.doc .crumbs { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.doc .crumbs a { color: var(--soft); }
.doc h1 { margin-top: 22px; font-size: clamp(27px, 3.8vw, 44px); }
.doc h2 { margin-top: 64px; font-size: clamp(20px, 2.4vw, 27px); }
.doc h3 { margin-top: 34px; color: var(--gold-l); }
.doc ul { color: var(--soft); padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--on); font-weight: 600; }
.doc .card { margin-top: 30px; }
.doc a { border-bottom: 1px solid var(--line-2); }
/* Lists that are laid out as grids or columns are not bullet lists: none of
   .doc's indent or spacing, so they line up with the text above them. */
.doc ul.states, .doc ul.places, .doc ul.nearby { padding-left: 0; }
.doc .states li, .doc .places li, .doc .nearby li { margin: 0; }
/* Buttons that carry a place's or a state's name may be long: they wrap
   inside themselves rather than run off the side of a phone. */
.doc .acts .btn, .doc .near .btn { white-space: normal; height: auto; min-height: 38px; padding: 9px 16px;
  line-height: 1.35; text-align: center; max-width: 100%; }
.doc .nearby li { grid-template-columns: 76px minmax(0, 1fr); }
.doc .nearby li > div, .doc .place > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .doc .facts div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .doc .facts dd { font-size: 13px; overflow-wrap: anywhere; }
  .doc .nearby li { padding: 14px; gap: 14px; }
}

/* ------------------------------------------------------------- foot */

footer { border-top: 1px solid rgba(201, 162, 39, .14); padding: 60px 0 56px; margin-top: 0; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { color: var(--soft); font-size: 13.5px; }
footer a:hover { color: var(--paper); }
footer .fine { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; margin-top: 18px; }
footer p { font-size: 13.5px; max-width: 40ch; }

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

.rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
}

/* the site's head, as the app's OfficeBar: wordmark, REPUBLIC OF WANDERERS, a foil rule */
.top { background: rgba(10, 20, 32, .97); border-bottom: 0; }
.top .wrap { height: 70px; }
.brandcol { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brandcol img { height: 19.8px; width: auto; display: block; }
.brandcol span { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: 2.2px; color: rgba(246,241,231,.62); }
.top .foilrule { height: 1px; background: linear-gradient(90deg, #9B7B18, #C9A227 25%, #E3C558 50%, #C9A227 75%, #9B7B18); opacity: .6; }
.btn.gold { border-radius: 14px; font-family: var(--mono); font-weight: 700; font-size: 13.5px; letter-spacing: 0; text-transform: none; color: #0A1420;
  background: linear-gradient(135deg, #B8952A 0%, #C9A227 12%, #E3C558 50%, #C9A227 88%, #B8952A 100%); box-shadow: 0 6px 14px rgba(155,123,24,.24); }
.btn.gold.small { height: 40px; padding: 0 18px; font-size: 12.5px; }

/* ---------------------------------------------------------- small screens
   Nothing on a page may be wider than the phone it is read on: the page
   never moves sideways. clip, not hidden, so the sticky header and the
   opening's pinned stage keep working.
   'Small' is anything under 900 wide: a large phone set to a small display
   size reports 600 to 900 CSS pixels, and is still a phone in the hand. */
html { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
.kick { text-wrap: balance; }
@media (max-width: 899px) {
  /* The bar: mark, name and line, and one button, on one line at 320. */
  body .top .wrap { height: 58px; gap: 12px; }
  body .top .brand { gap: 8px; min-width: 0; }
  body .top .brand > img { height: 30px !important; margin-top: 0 !important; }
  body .top .brandcol { gap: 3px; min-width: 0; }
  body .top .brandcol img { height: 15px; }
  body .top .brandcol span { font-size: 7.5px; letter-spacing: 1.5px; white-space: nowrap; }
  body .top nav { gap: 0; flex: none; }
  body .top .btn.gold.small { height: 34px; padding: 0 13px; font-size: 11.5px; border-radius: 11px;
    box-shadow: 0 4px 10px rgba(155, 123, 24, .22); }
  .kick { font-size: 10px; letter-spacing: 2px; }
  body { font-size: 14px; }
  .lede { font-size: 14px; }
  .doc { padding-top: 48px; }
  .doc h2 { margin-top: 48px; }
  /* Store buttons side by side, never one under the other. */
  .stores { flex-wrap: nowrap; gap: 8px; }
  .store { height: 46px; padding: 0 13px 0 11px; gap: 9px; border-radius: 12px; }
  .store svg { width: 18px; height: 18px; }
  .store small { font-size: 7.5px; letter-spacing: .16em; white-space: nowrap; }
  .store strong { font-size: 13px; white-space: nowrap; }
}
@media (max-width: 899px) {
  /* Thirty six states as two short columns, not one long one. */
  .states { columns: 2; column-gap: 18px; margin-top: 28px; }
  /* The name, and its count under it, always: every row the same shape. */
  .states li { padding: 10px 0; gap: 2px; flex-direction: column; align-items: flex-start; }
  .states a { min-width: 0; overflow-wrap: anywhere; }
  .states a { font-size: 11px; letter-spacing: .05em; line-height: 1.35; }
  .states span { font-size: 10.5px; }
}
@media (max-width: 370px) {
  .store { padding: 0 10px 0 9px; gap: 7px; }
  .store strong { font-size: 12px; } .store small { font-size: 7px; letter-spacing: .14em; }
}
@media (max-width: 340px) {
  body .top .brandcol span { display: none; }
}
