/* Bottle Caps ($CAPS) — one-page site */

:root {
  --cap: #C8501A;
  --sand: #E8D9A8;
  --green: #7FE04A;
  --ink: #1A1A1A;

  --bg: var(--sand);
  --fg: var(--ink);
  --muted: rgba(26, 26, 26, 0.68);
  --surface: rgba(255, 255, 255, 0.35);
  --surface-strong: rgba(255, 255, 255, 0.55);
  --line: rgba(26, 26, 26, 0.18);
  --btn-fg: #fff;

  --font-head: "Saira Stencil One", "Impact", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1080px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2A2418;
    --fg: #F1E8CC;
    --muted: rgba(241, 232, 204, 0.68);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.10);
    --line: rgba(241, 232, 204, 0.18);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Layout helpers */
.topbar, .hero, .section, .footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.35rem;
}
.brand__logo { width: 36px; height: 36px; border-radius: 50%; }
.topnav { display: flex; gap: 14px; font-weight: 500; font-size: 0.95rem; }
.topnav a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
.topnav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
  align-items: center;
}
.hero__mascot-wrap { display: flex; justify-content: center; }
.hero__mascot {
  width: min(58vw, 320px);
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 12px 24px rgba(26, 26, 26, 0.25));
}
.hero__copy { text-align: center; }

.ticker {
  font-size: clamp(3.6rem, 16vw, 7rem);
  color: var(--cap);
  text-shadow:
    0 0 6px rgba(127, 224, 74, 0.55),
    0 0 18px rgba(127, 224, 74, 0.35);
}
.tagline {
  margin: 4px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.04em;
}
.lede {
  margin: 0 auto 22px;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--muted);
}

/* CA block */
.ca {
  margin: 0 auto 20px;
  max-width: 36rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}
.ca__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ca__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ca__addr {
  flex: 1 1 200px;
  min-width: 0;
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  line-height: 1.4;
}
.ca__tba { margin: 0; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--cap);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 0.95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(200, 80, 26, 0.12); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cap); color: var(--btn-fg); }
.btn--primary:hover { background: #b1461a; }
.btn--ghost { border-color: var(--line); }
.btn--small { padding: 8px 14px; font-size: 0.85rem; }
.btn.is-copied { background: var(--green); border-color: var(--green); color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Sections */
.section { padding-top: 40px; padding-bottom: 40px; }
.section__title {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 8px;
}
.section__sub { margin: 0 0 24px; color: var(--muted); }
.subhead {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--cap);
}

/* Why caps */
.cards {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }

/* Loot */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
}
.tile a:hover { background: var(--surface-strong); }
.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
}
.tile--wide img { aspect-ratio: 16 / 10; }
.tile span { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tile small { color: var(--muted); font-weight: 400; }
.loot__pack { margin: 16px 0 0; }

/* Dev wallet */
.section--wallet p { max-width: 40rem; }
.wallet__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Footer */
.footer {
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 500;
}
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__disclaimer {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tablet and up */
@media (min-width: 720px) {
  .topnav { gap: 18px; }
  .hero {
    grid-template-columns: 340px 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 72px;
  }
  .hero__copy { text-align: left; }
  .lede, .ca { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--memes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Cap Converter */
.conv{display:grid;gap:12px;grid-template-columns:1fr;max-width:520px}
.conv input,.conv select{font:inherit;font-size:1.1rem;padding:12px 14px;border:3px solid var(--ink);border-radius:12px;background:var(--sand);color:var(--ink)}
.conv-result{font-family:"Saira Stencil One",sans-serif;font-size:1.6rem;color:var(--cap);min-height:2.4rem}
.btn-sm{padding:8px 14px;font-size:.95rem;justify-self:start}
.small{font-size:.9rem}

.clips{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:6px}
.clips a{color:var(--cap);font-weight:600}
