/* Carvecrest shared base: tokens, fonts, navbar, footer, buttons, CA box, countdown, toast. Pages add their own CSS after this. */

@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-400.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-500.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-600.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-700.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/outfit-800.woff2) format('woff2'); }
/* Display face: Bowlby One (OFL), self-hosted latin subset from Google Fonts v25. */
@font-face { font-family: 'Bowlby One CC'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/bowlby-one-400.woff2) format('woff2'); }

:root {
  --ink: #2a1f3d; --ink-2: #4a3a66; --ink-3: #6d5a8a;
  --cream: #fff4e6; --snow: #fff8f4; --paper: #fffaf6;
  --peach: #ffc4a3; --peach-2: #ffd9bf; --rose: #f1bfb6; --lilac: #b9a2e8; --lilac-2: #d9cbf3; --dusk: #5b5aa6;
  --up: #2fd987; --down: #ff4f6d;
  --gold: #ffd36b; --gold-2: #ffb35c; --gold-deep: #c97a2f;
  --glass: rgba(255, 248, 244, 0.72); --glass-ink: rgba(42, 31, 61, 0.78);
  --line: rgba(42, 31, 61, 0.12); --line-2: rgba(42, 31, 61, 0.2);
  --shadow: 0 18px 50px -18px rgba(42, 31, 61, 0.45);
  --display: 'Bowlby One CC', 'Bowlby One', 'Outfit', system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--rose); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
code { font-family: var(--mono); }
kbd { font: 700 0.8em var(--body); padding: 0.12em 0.5em; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); color: var(--ink); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.up { color: var(--up); } .down { color: var(--down); }
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow { font: 800 13px/1.2 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; line-height: 0.98; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn { --bh: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 26px; border-radius: 14px; border: 0;
  font: 800 15px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--cream); background: linear-gradient(180deg, #4a3a66, #2a1f3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 0 #170f24, 0 12px 26px -10px rgba(23, 15, 36, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #170f24; }
.btn-gold { color: var(--ink); background: linear-gradient(180deg, #ffe39a 0%, var(--gold) 38%, var(--gold-2) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(201, 122, 47, 0.35), 0 4px 0 var(--gold-deep), 0 14px 30px -10px rgba(201, 122, 47, 0.7); }
.btn-gold:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 var(--gold-deep); }
.btn-ink { color: var(--cream); }
.btn-ghost { color: var(--ink); background: rgba(255, 248, 244, 0.6); box-shadow: inset 0 0 0 2px var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--line-2); }
.btn-sm { --bh: 40px; padding: 0 16px; font-size: 12.5px; border-radius: 11px; }
.btn-sm.btn-gold, .btn-sm.btn-ink { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--gold-deep); }
.btn-sm.btn-ink { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 0 #170f24; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 0; cursor: pointer; color: var(--ink);
  background: rgba(255, 248, 244, 0.7); box-shadow: inset 0 0 0 1.5px var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; transition: background 0.15s, transform 0.15s; }
.icon-btn:hover { background: var(--paper); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* ── navbar ──────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h); transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s; }
.nav-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav.is-solid, .nav.drawer-open { background: rgba(255, 244, 236, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 21px/1 var(--display); letter-spacing: 0.01em; color: var(--ink); flex: none; }
.nav-logo svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(42, 31, 61, 0.25)); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { white-space: nowrap; padding: 9px 12px; border-radius: 10px; font: 700 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); opacity: 0.82; transition: opacity 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; background: rgba(255, 248, 244, 0.55); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-slot { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-drawer { position: fixed; z-index: 39; inset: var(--nav-h) 0 auto 0; display: grid; gap: 4px; padding: 12px var(--gutter) 20px; background: rgba(255, 244, 236, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(42, 31, 61, 0.5); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.nav-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.nav-drawer a { padding: 14px 6px; font: 800 15px var(--body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-drawer a.btn { margin-top: 10px; border: 0; }
@media (max-width: 1080px) { .nav-links { display: none; } .nav-burger { display: inline-grid; } }
@media (max-width: 520px) {
  :root { --nav-h: 60px; }
  .nav-row { gap: 10px; } .nav-logo span { display: none; } .nav-buy .long { display: none; } .nav-right { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ── CA box ──────────────────────────────────────────────────────────── */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 640px; }
.ca-k { font: 800 12px var(--body); letter-spacing: 0.18em; color: var(--ink); background: var(--gold); padding: 6px 8px; border-radius: 8px; }
.ca-v { flex: 1 1 200px; min-width: 0; font: 600 13.5px/1.3 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-v.pending { opacity: 0.55; }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 11px; cursor: pointer; background: rgba(42, 31, 61, 0.07); font: 700 13px var(--body); color: var(--ink); }
.ca-copy:hover { background: rgba(42, 31, 61, 0.12); }
.ca-copy svg { width: 16px; height: 16px; }
.ca-copy.done { color: #12895a; }
.ca-note { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); padding: 0 2px 2px; }

/* ── countdown ───────────────────────────────────────────────────────── */
.countdown { display: flex; gap: 8px; }
.cd-cell { position: relative; min-width: 66px; padding: 8px 10px 9px; border-radius: 13px; text-align: center; color: var(--cream);
  background: linear-gradient(180deg, rgba(74, 58, 102, 0.92), rgba(42, 31, 61, 0.94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 0 #170f24, 0 10px 24px -12px rgba(23, 15, 36, 0.7); }
.cd-cell small { position: absolute; left: 9px; top: 6px; font: 800 10px var(--body); letter-spacing: 0.1em; color: var(--gold); }
.cd-cell b { display: block; font: 400 30px/1.15 var(--display); font-variant-numeric: tabular-nums; padding-left: 8px; }
.cd-live { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; background: var(--ink); color: var(--cream); font: 800 14px var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.cd-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(47, 217, 135, 0.25); animation: cc-pulse 1.4s infinite; }
.cd-note { padding: 12px 16px; border-radius: 13px; background: var(--glass); font: 800 14px var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes cc-pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 217, 135, 0); } }
@media (max-width: 420px) { .cd-cell { min-width: 0; flex: 1; } .cd-cell b { font-size: 26px; } }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { position: relative; z-index: 2; background: var(--ink); color: rgba(255, 244, 230, 0.86); padding: 72px 0 0; overflow: hidden; }
.foot .nav-logo { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot-brand p { margin: 16px 0 18px; max-width: 38ch; color: rgba(255, 244, 230, 0.7); }
.foot-social { display: flex; gap: 8px; }
.foot .icon-btn { background: rgba(255, 255, 255, 0.08); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.foot h4 { font: 800 12px var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: rgba(255, 244, 230, 0.82); cursor: pointer; }
.foot ul a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 1.6; color: rgba(255, 244, 230, 0.55); max-width: 92ch; }
.foot-word { font: 400 clamp(52px, 13.2vw, 186px)/0.8 var(--display); letter-spacing: -0.01em; text-align: center; margin-top: 36px; transform: translateY(16%);
  background: linear-gradient(180deg, rgba(255, 196, 163, 0.32), rgba(185, 162, 232, 0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── toast ───────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 13px; background: var(--ink); color: var(--cream); font-weight: 600; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
