/* fedimintcard.org: one column on a blue ground, gold only where the chip is. Shared by every page. */
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --night: #1a3272;
  --navy: #22408a;
  --blue: #2b4ea6;
  --ink: #eef3ff;
  --mist: #b9c8ee;
  --dim: #a9b8e2;
  --line: rgba(214, 226, 255, .22);
  --gold: #d2bb6a;
  --gold-hi: #f4e9b0;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.6 var(--sans);
  background: radial-gradient(1200px 760px at 85% -10%, #4f7fe6 0%, transparent 62%), linear-gradient(180deg, #2a4fae 0%, #1f3d8c 45%, var(--night) 100%);
  background-attachment: fixed;
  padding-inline: clamp(16px, 5vw, 56px); padding-block: 0;
}
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.lock { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 26px; letter-spacing: -.01em; }
.lock img { height: 26px; width: auto; }
.lock b { font-weight: 800; color: var(--ink); }
.lock span { font-weight: 400; color: var(--mist); }
.status { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi);
  border: 1px solid rgba(210, 187, 106, .45); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(40px, 8vw, 96px); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--mist); max-width: 34em; margin: 22px 0 0; }
.cards { position: relative; aspect-ratio: 1 / .82; max-width: 100%; }
.cards img { position: absolute; width: 82%; height: auto; border-radius: 4.2% / 6.6%; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.cards .back { right: 0; top: 0; transform: rotate(7deg); opacity: .96; }
.cards .front { left: 0; bottom: 0; transform: rotate(-6deg); }

figure.film { margin: 28px 0 0; display: grid; gap: 12px; }
figure.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); }
figure.film figcaption { color: var(--dim); font-size: 15px; }
section { border-top: 1px solid var(--line); padding-block: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; text-wrap: balance; }
.sub { color: var(--mist); margin: 0; max-width: 40em; }

ol.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
ol.steps li { counter-increment: step; background: rgba(10, 22, 60, .32); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
ol.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font: 700 15px/1 var(--sans); color: var(--night); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, #a88a3c); }
ol.steps h3 { font-size: 19px; font-weight: 700; margin: 14px 0 6px; }
ol.steps p { margin: 0; color: var(--mist); font-size: 16px; }

.num { font-variant-numeric: tabular-nums; }

.note { margin-top: 16px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(210, 187, 106, .4); background: rgba(210, 187, 106, .07); color: var(--ink); max-width: 46em; }

ul.links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
ul.links a { display: block; height: 100%; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 22, 60, .28); }
ul.links a:hover { border-color: rgba(210, 187, 106, .55); color: var(--ink); }
ul.links b { display: block; font-weight: 700; }
ul.links span { color: var(--dim); font-size: 15px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--dim); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer p { margin: 0; max-width: 46em; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--mist); }

/* risks: one row per risk, its claim in bold */
ul.risks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
ul.risks li { padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--mist); font-size: 16px; min-width: 0; }
ul.risks b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* policy and help pages */
.doc { max-width: 46rem; padding-block: clamp(16px, 4vw, 40px) clamp(40px, 7vw, 72px); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 12px; }
.doc h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.doc .lede { color: var(--mist); font-size: 19px; margin: 16px 0 0; }
.doc .facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .facts li { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.doc section { padding-block: 28px; }
.doc section:first-of-type { margin-top: 32px; }
.doc h2 { font-size: 24px; }
.doc p, .doc li { color: var(--mist); }
.doc p { margin: 10px 0 0; }
.doc ul:not(.facts) { margin: 10px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .facts li + li { margin-top: 0; }
.doc strong { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .cards { max-width: 520px; }
  ol.steps, ul.links, ul.risks { grid-template-columns: 1fr; }
  }
@media (max-width: 420px) { .status { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cards img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .cards:hover .front { transform: rotate(-3deg) translateY(-6px); }
  .cards:hover .back { transform: rotate(10deg) translateX(6px); }
}
