/* base.css — layout shared by every token site. The style preset (styles/<name>.css) and the
 * token's colors/fonts (injected as :root variables by new_site.py) give each site its own look. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; }
svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* kit.js wallet UI */
:root {
  --kit-bg: var(--surface);
  --kit-fg: var(--ink);
  --kit-muted: var(--muted);
  --kit-accent: var(--accent);
  --kit-accent-fg: var(--accent-ink);
  --kit-line: var(--line);
  --kit-radius: var(--radius);
  --kit-font: var(--body);
  --kit-mono: var(--mono);
}

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font: 400 22px/1 var(--display); }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: var(--radius); object-fit: cover; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick { font: 500 13px/1 var(--mono); padding: 5px 8px; border-radius: calc(var(--radius) * .5); background: var(--ink); color: var(--bg); white-space: nowrap; }
.connect { flex: none; white-space: nowrap; cursor: pointer; padding: 10px 16px; font: 700 15px/1 var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.connect.is-connected { font-family: var(--mono); font-weight: 500; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 36px 0 56px; }
.kicker { margin: 0 0 14px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 22px; font: 400 clamp(46px, 7vw, 92px)/.95 var(--display); letter-spacing: -.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0 0 30px; max-width: 46ch; font-size: 19px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: var(--radius); font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }
.hero-text, .hero-art, .steps li { min-width: 0; }
.hero-art { display: grid; place-items: center; }
.hero-art > svg, .hero-art > img { width: min(100%, 460px); height: auto; }
.hero-art > img { border-radius: calc(var(--radius) * 1.4); }
.big-ticker { font: 400 clamp(80px, 14vw, 180px)/1 var(--display); color: var(--accent); }

/* contract address */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 22px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ca-label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ca code { flex: 1 1 320px; min-width: 0; font: 500 15px/1.4 var(--mono); word-break: break-all; }
.ca-soon { flex: 1; color: var(--muted); }
.ca button { cursor: pointer; padding: 8px 14px; font: 600 14px/1 var(--body); border-radius: calc(var(--radius) * .6); border: 2px solid var(--line); background: var(--bg); color: var(--ink); }

/* how it works */
.how { padding: 72px 0 24px; }
.how h2 { margin: 0 0 28px; font: 400 clamp(32px, 4.4vw, 52px)/1 var(--display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.steps-4 { --cols: 4; }
.steps li { position: relative; padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-icon { display: block; width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); }
.step-icon svg { width: 100%; height: 100%; }
.steps h3 { margin: 0 0 8px; font: 400 23px/1.15 var(--display); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* links */
.links { display: flex; flex-wrap: wrap; gap: 12px; padding: 48px 0 16px; }

/* footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 36px 0 44px; font: 500 13px/1.5 var(--mono); color: var(--muted); }

/* scroll reveal (added by app.js) */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rise.in { opacity: 1; transform: none; }
.steps li.rise:nth-child(2) { transition-delay: .08s; }
.steps li.rise:nth-child(3) { transition-delay: .16s; }
.steps li.rise:nth-child(4) { transition-delay: .24s; }

@media (max-width: 960px) {
  .steps-4 { --cols: 2; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .hero-art { order: -1; }
  .hero-art > svg, .hero-art > img { width: min(78%, 340px); }
  .steps { --cols: 1 !important; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .brand-mark + .brand-name { display: none; }
  .lede { font-size: 17px; }
  .btn { flex: 1; justify-content: center; }
  .ca { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* paper — editorial / newsprint: serif, heavy rules, columns, drop cap, no rounding. (like closing-bell) */
:root { --radius: 0px; }
.top { border-bottom: 3px double var(--ink); }
.brand { font-weight: 700; }
.tick { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.connect { border-width: 1px; background: var(--ink); color: var(--bg); }
.hero { border-bottom: 1px solid var(--ink); }
h1 { font-weight: 700; letter-spacing: -.025em; }
h1 em { font-style: italic; }
.lede::first-letter { float: left; font: 700 3.4em/.8 var(--display); margin: 6px 10px 0 0; color: var(--accent); }
.btn { border-width: 1px; }
.btn-main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-art > svg, .hero-art > img { border: 1px solid var(--ink); padding: 14px; background: var(--surface); }
.ca { border-width: 1px 0; background: transparent; padding-inline: 0; }
.ca button { border-width: 1px; }
.how h2 { font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.steps { gap: 0; }
.steps li { border: 0; background: transparent; padding: 4px 24px 8px; }
.steps li + li { border-left: 1px solid var(--ink); }
.steps li:first-child { padding-left: 0; }
.steps h3 { font-weight: 700; }
.step-icon { width: 36px; height: 36px; }
.foot { border-top: 3px double var(--ink); }
@media (max-width: 820px) { .steps li, .steps li:first-child { padding: 18px 0; } .steps li + li { border-left: 0; border-top: 1px solid var(--ink); } }
@media (max-width: 960px) and (min-width: 821px) { .steps-4 li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* token */
:root {
  --bg: #f3efe4;
  --surface: #fbf9f3;
  --ink: #1c2a48;
  --muted: #56617c;
  --accent: #d9412f;
  --accent-ink: #ffffff;
  --accent2: #8fb8de;
  --display: 'Fraunces', system-ui, sans-serif;
  --body: 'Source Serif 4', system-ui, sans-serif;
  --mono: 'Courier Prime', ui-monospace, monospace;
}
.pp-trail{stroke-dasharray:2 9;animation:pp-dash 1.6s linear infinite}@keyframes pp-dash{to{stroke-dashoffset:-22}}.pp-plane{transform-box:fill-box;transform-origin:50% 50%;animation:pp-float 4.5s ease-in-out infinite}@keyframes pp-float{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(6px,-10px) rotate(-3deg)}}.pp-cloud{animation:pp-drift 9s ease-in-out infinite}.pp-cloud.b{animation-delay:-4s}@keyframes pp-drift{50%{transform:translateX(-10px)}}