/*
  EVENLY, redesign 19 Nov (ref 2,4: immersive misty corporate scroll).
  Concept: one bill is a mountain peak at dusk. Scroll and the fog rolls in, the peak is cut into shares that drift
  apart into the mist, each landing at its own address. Every page shares the same weather: pale fog, deep dusk.
  Type: Jost (thin, wide-tracked uppercase) for headings and UI labels, Hanken Grotesk for reading, DM Mono for chain data.
  Colour: fog paper, dusk slate, graphite ink, one ballpoint blue accent (the brand mark). Alpenglow is scenery only.
  Radius rule: buttons and indicators are round (999px / circles), cards and fields 3px. Easing: one expo-out.
*/
:root {
  --bg: #e9e6df;
  --paper: #f4f2ed;
  --panel: rgba(246, 244, 239, 0.74);
  --panel-2: #d9d5cc;
  --ink: #23262d;
  --fg: #23262d;
  --mute: #63635f;
  --dim: #8e8c86;
  --line: rgba(35, 38, 45, 0.12);
  --line-2: rgba(35, 38, 45, 0.24);
  --dusk: #1b2130;
  --dusk-2: #2a3245;
  --dusk-fg: #ece8e0;
  --dusk-mute: #a6aab5;
  --dusk-line: rgba(236, 232, 224, 0.18);
  --acc: #3d48c2;
  --acc-2: #2f39a3;
  --acc-ink: #ffffff;
  --acc-wash: rgba(61, 72, 194, 0.09);
  --glow: #e3a27c;
  --ok: #2f7a5a;
  --warn: #93600f;
  --bad: #b23a2e;
  --display: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 3px;
  --track: 0.2em;
  --gutter: clamp(16px, 3vw, 44px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--display); font-weight: 300; letter-spacing: 0.14em; line-height: 1.22; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--acc-ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.label { font: 400 11px/1.4 var(--display); letter-spacing: var(--track); text-transform: uppercase; color: var(--mute); }

/* buttons: round, thin, tracked */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; padding: 13px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font: 500 12px/1.2 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { background: #2f333c; }
.btn:active { transform: scale(0.98); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.acc:hover { background: var(--acc-2); border-color: var(--acc-2); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.sm { padding: 9px 15px; font-size: 11px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color .2s, color .2s; }
.link:hover { border-color: var(--acc); color: var(--acc); }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 400 10.5px var(--display); letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; color: var(--mute); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; background: currentColor; }
.pill.open::before { background: transparent; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.open { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.acc { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.field { width: 100%; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 13px; color: var(--fg); font: 15px var(--body); transition: border-color .15s, background .15s; }
.field.mono { font-family: var(--mono); font-size: 13.5px; }
.field:focus { border-color: var(--acc); outline: none; background: #fff; box-shadow: 0 0 0 3px var(--acc-wash); }
.msg { font: 13px/1.5 var(--mono); color: var(--mute); }
.msg.ok { color: var(--ok); } .msg.err { color: var(--bad); }
.banner { background: var(--dusk); color: var(--dusk-fg); text-align: center; font: 500 12px var(--display); letter-spacing: .16em; padding: 9px 16px; }
.diamond { display: inline-block; width: 9px; height: 9px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }

/* weather for inner pages: pale fog with a far ridge dissolving at the bottom and slow cloud drift */
.weather { position: relative; isolation: isolate; min-height: 100vh; }
.weather::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 45% at 78% 8%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(60% 40% at 10% 30%, rgba(255, 255, 255, 0.45), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 300' preserveAspectRatio='none'%3E%3Cpath d='M0 230 L120 196 L210 214 L330 150 L420 182 L520 120 L585 146 L660 84 L700 104 L760 58 L830 118 L900 98 L990 160 L1080 132 L1180 186 L1290 150 L1400 200 L1500 176 L1600 210 L1600 300 L0 300Z' fill='%23aeb0b6' fill-opacity='.32'/%3E%3Cpath d='M0 260 L160 232 L300 250 L460 210 L600 236 L760 200 L900 240 L1060 214 L1220 246 L1380 222 L1600 250 L1600 300 L0 300Z' fill='%23c9c7c1' fill-opacity='.5'/%3E%3C/svg%3E") bottom / 100% 34vh no-repeat,
    linear-gradient(180deg, #dfdcd5 0%, var(--bg) 40%, #eceae4 100%); }
.weather::after { content: ""; position: fixed; inset: -10% -40%; z-index: -1; pointer-events: none; opacity: .7;
  background: radial-gradient(30% 14% at 30% 78%, rgba(255, 255, 255, 0.8), transparent 70%), radial-gradient(26% 12% at 72% 70%, rgba(255, 255, 255, 0.7), transparent 70%), radial-gradient(22% 10% at 50% 92%, rgba(255, 255, 255, 0.9), transparent 70%);
  animation: drift 70s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.quiet { background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 1px 0 rgba(35, 38, 45, 0.05), 0 30px 60px -44px rgba(27, 33, 48, 0.45); border-radius: var(--r); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* launch bar (coin contract): ticker, CA, copy, buy, chart */
.lbar { position: relative; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 7px var(--gutter); background: var(--dusk); color: var(--dusk-mute); font: 11.5px var(--mono); flex-wrap: wrap; }
.lbar b { color: var(--dusk-fg); font-weight: 500; letter-spacing: .08em; }
.lbar .ca { color: var(--dusk-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.lbar button, .lbar a { background: none; border: 1px solid var(--dusk-line); color: var(--dusk-fg); padding: 3px 11px; border-radius: 999px; cursor: pointer; text-decoration: none; font: inherit; }
.lbar a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.lbar a.buy { background: var(--acc); border-color: var(--acc); color: #fff; }
.lbar .sp { flex: 1; }
@media (max-width: 640px) { .lbar { gap: 6px; flex-wrap: nowrap; } .lbar .ca { max-width: 12ch; min-width: 0; } .lbar button, .lbar a { padding: 3px 9px; white-space: nowrap; } .lbar .hide-sm { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
