/* Sideband shell, typography, and responsive navigation adapted to ThankPad's routes. */
@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --canvas: #0d0c0b;
  --surface: #141211;
  --surface-hover: #1b1815;
  --field: #151210;
  --line: #332b25;
  --line-strong: #4a3830;
  --joint: #86634b;
  --panel-glass: #141211ed;
  --text: #f7efe7;
  --muted: #b9aaa0;
  --quiet: #a19286;
  --brand: #f4c9a8;
  --accent: #efa468;
  --accent-strong: #ffc59c;
  --on-accent: #24150e;
  --success: #7edab0;
  --danger: #ef9296;
  --body-font: "DM Sans", system-ui, sans-serif;
  --frame-width: 76.25rem;
  --page-inset: clamp(15px, 2.15vw, 27px);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}
body { -webkit-font-smoothing: antialiased; }
::selection { background:#82492b; color:white; }
#terminal-background {
  position:fixed; z-index:-1; inset:0; pointer-events:none; overflow:hidden;
  background:radial-gradient(ellipse at 1% 28%,#301d12 0%,transparent 55%),
    radial-gradient(ellipse at 96% 80%,#2c1b11 0%,transparent 53%),var(--canvas);
}
#terminal-background .pixel-blast-container {
  position:absolute; inset:0; opacity:.65;
  mask-image:linear-gradient(90deg,#000 0%,#0008 26%,#0003 47%,#0008 68%,#000 100%);
}
.page-frame { display:flex; flex-direction:column; min-height:calc(100dvh - 58px); margin:28px auto 30px; background:#100e0ded; border:1px solid var(--line); }
.thank-footer { margin-top:auto; }
[data-page] { min-height:min(630px, calc(100svh - 167px)); }
.wordbar { min-height:57px; background:#141110cc; padding:0 var(--page-inset); }
.top-identity { min-width:0; display:flex; align-items:center; gap:11px; }
.wordmark { display:inline-flex; gap:8px; font-size:14px; font-weight:700; letter-spacing:.15em; }
.wordmark .mobile-brand-mark { display:none; }
.top-divider { height:15px; width:1px; background:#47352a; }
.breadcrumb { color:var(--muted); font:12px var(--mono-font); white-space:nowrap; }
.wordbar-links { gap:10px; }
.network-label { gap:5px; color:var(--muted); letter-spacing:normal; text-transform:none; font:12px var(--mono-font); }
.network-label i { width:6px; height:6px; margin-right:2px; transform:rotate(45deg); border-radius:0; background:var(--success); }
.top-wallet { min-height:35px; border-radius:3px; min-width:36px; padding:.4rem .62rem; font-size:13px; }
.top-wallet[aria-expanded="true"], .top-wallet[data-connected] svg { color:var(--success); }
.top-wallet svg { width:.93rem; height:.93rem; }
.button-primary { --button-line:#ffe0c5; border-radius:0; box-shadow:none; }
.button-primary:hover { --button-bg:#ffdcbe; --button-line:#ffe8d5; box-shadow:none; }
.button-primary:active { --button-bg:#e4aa80; }
.button-outline { --button-bg:#191512; --button-line:var(--line-strong); border-radius:3px; box-shadow:none; }
.button-outline:hover { --button-bg:#271d16; --button-line:#72513b; }
.button-junction::before { --joint:#856146; }
.hero-harvest { min-height:312px; background:#160f0b; }
.harvest-visual { background-size:auto max(100%, 385px); background-position:right center; }
.harvest-visual::after { background:linear-gradient(90deg,#160e0aed 0%,#160f0aee 26%,#160f0ac2 49%,#160f0a28 68%,transparent 93%); }
.harvest-copy { padding:2.4rem var(--page-inset); max-width:39rem; }
.harvest-copy h1 { font-size:clamp(2.35rem,4.6vw,4.08rem); font-weight:600; letter-spacing:-.065em; line-height:1.04; margin:.56rem 0 0; }
.harvest-copy h1 em { font:inherit; color:#f4c9a8; }
.harvest-copy > p:not(.route-label) { margin-top:.77rem; max-width:39ch; line-height:1.5; }
.harvest-copy .button-row { margin-top:1.1rem; }
.harvest-copy .button { min-height:42px; }
.route-label, .charity-focus { font-size:.69rem; letter-spacing:.065em; }
.giving-strip { background:#18130f; }
.giving-strip dd, .charity-metric strong { font-family:var(--mono-font); letter-spacing:-.035em; }
.market-head h2 { font-size:1.23rem; font-weight:600; letter-spacing:-.025em; }
.market-table th { background:#1a1512; font-size:11px; }
.market-table :is(td,th):nth-child(n+3) { font-family:var(--mono-font); }
.market-frame { border-color:var(--line); }
.simple-banner { padding:20px var(--page-inset) 23px; min-height:115px; background:linear-gradient(105deg,#261a125e,transparent 62%); }
.simple-banner h1 { font-size:clamp(2.05rem,4vw,3.05rem); font-weight:600; letter-spacing:-.06em; line-height:1.04; margin:.3rem 0 0; }
.simple-banner>p { font-size:15px; line-height:1.45; }
.charity-card { background:var(--surface); border-color:var(--line); border-radius:3px; }
.charity-icon { background:#1b1815; }
.charity-metric { background:#1b1713; }
.charity-metric strong { color:#f4c9a8; }
.charity-search input { border-radius:3px; }

@media (min-width:800px) {
  .page-frame { width:min(calc(100% - 166px),var(--frame-width)); }
  .site-header { --rail-width:51px; --nav-row:47px; inset:28px auto auto max(12px,calc((100vw - min(1220px,100vw - 166px))/2 - 67px)); }
  .nav-dock { background:#100d0bee; border-color:var(--line); box-shadow:none; }
  .nav-brand img { padding:1px; width:34px; height:34px; }
  .site-header .main-nav { padding:0; }
  .site-header .main-nav a:not(:last-child) { border-bottom:1px solid var(--line); }
  .site-header .main-nav::after { inset:0 0 auto; border-radius:0; background:#2a2018; border-color:#65422c; }
}
@media (max-width:799px) {
  .page-frame { width:100%; margin:0; overflow-x:clip; border-inline:0; border-top:0; }
  .wordbar { min-height:54px; }
  .site-header { height:0; min-height:0; padding:0; }
  .site-header .nav-brand { display:none; }
  .wordmark .mobile-brand-mark { display:block; flex:none; }
  .site-header .main-nav { inset:auto 0 0; width:100%; max-width:none; padding:5px 6px calc(5px + env(safe-area-inset-bottom)); border:0; border-top:1px solid var(--line); background:#15110fee; box-shadow:none; }
  .site-header .main-nav::before { display:none; }
  .site-header .main-nav::after { background:#2a1f17; border-color:#503827; }
  .wordbar-links { width:auto; justify-content:flex-end; }
  .network-label { display:none; }
  .top-wallet { max-width:100%; }
}
@media (max-width:620px) {
  .hero-harvest { min-height:358px; }
  .harvest-visual { background-position:86% top; background-size:auto 210px; }
  .harvest-visual::after { background:linear-gradient(0deg,#160f0a 43%,#160f0ade 55%,transparent 96%); }
  .harvest-copy { padding:8.3rem var(--page-inset) 1.35rem; }
  .harvest-copy h1 { font-size:clamp(2.27rem,8.8vw,3.35rem); }
  .harvest-copy .button-row { margin-top:.9rem; }
  .charity-toolbar { align-items:flex-start; }
}
@media (max-width:468px) {
  .wordbar { padding:0 .85rem; }
  .top-identity { gap:7px; }
  .breadcrumb { font-size:10px; }
  .top-wallet .wallet-label { font-size:.73rem; }
}
@media (max-width:360px) {
  .top-identity .breadcrumb, .top-divider { display:none; }
}
@media (prefers-reduced-motion:reduce) { #terminal-background .pixel-blast-container { opacity:.36; } }
