/* Shared structure. Themes supply the look. */

:root {
  --bg: #111111;
  --ink: #f5f5f5;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

button,
a { -webkit-tap-highlight-color: transparent; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled { cursor: not-allowed; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #141414; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--accent);
  color: #141414;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand copy"
    "nav nav";
  gap: 8px 12px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}

.brand { grid-area: brand; }
.copy-bar { grid-area: copy; justify-self: end; }
.nav { grid-area: nav; }

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-ticker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.92rem;
}

.nav::-webkit-scrollbar { display: none; }

.copy-bar,
.copy-ca,
.cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 12px) 20px 36px;
  overflow: hidden;
}

.screen { display: contents; }

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.logo-stage { width: min(62vw, 240px); margin: 0 auto; }

.logo { width: 100%; height: auto; }

.hero-copy { text-align: center; }

.eyebrow,
.kicker {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow { margin-bottom: 8px; }

.hero h1 {
  font-size: clamp(2.7rem, 12vw, 4.4rem);
}

.ticker {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 7vw, 2.4rem);
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tagline {
  margin: 14px auto 0;
  max-width: 22em;
  font-size: 1.12rem;
  line-height: 1.35;
}

.hero-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.cta { width: 100%; }

.cta-note,
.fine {
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 0.92rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 8px;
}

.section h2 {
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  margin: 6px 0 16px;
}

.prose { display: grid; gap: 14px; }

.prose p { font-size: 1.08rem; max-width: 40rem; }

.ca-value {
  margin: 12px 0;
  padding: 14px;
  overflow-wrap: anywhere;
  user-select: all;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.buy-list,
.roadmap-list,
.social-list,
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buy-list,
.roadmap-list { display: grid; gap: 12px; }

.idx {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.82rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shot {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
}

.shot img,
.banner-frame img {
  width: 100%;
  height: auto;
}

.shot img {
  aspect-ratio: 1;
  object-fit: cover;
}

.cap { display: block; margin-top: 8px; font-size: 0.92rem; }

.banner-frame img { width: 100%; height: auto; }

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.market-grid dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.market-grid dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: -0.04em;
}

.lp-band {
  margin: 42px 0 10px;
  padding: 32px 20px;
  text-align: center;
}

.lp-band p {
  margin: 0 auto;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.social-list { display: grid; gap: 10px; }

.social,
.text-link { display: inline-flex; min-height: 48px; align-items: center; }

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 0;
  padding: 28px 0 36px;
  display: grid;
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 0.92rem;
}

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 0;
  z-index: 35;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transition: transform 0.25s ease;
}

.dock.is-hidden {
  visibility: hidden;
  transform: translateY(calc(100% + 32px));
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  z-index: 70;
  bottom: calc(108px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--accent);
  color: #141414;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(920px, calc(100vw - 28px));
}

dialog::backdrop { background: rgba(0, 0, 0, 0.72); }

.lightbox-card {
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
  border-radius: 18px;
}

.lightbox-card img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }

.dialog-close { min-height: 44px; margin-bottom: 8px; }

.particles,
.orb,
.scanlines,
.halftone,
.gold-glow {
  pointer-events: none;
}

@media (min-width: 900px) {
  .bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav copy";
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav { justify-content: center; }

  .hero {
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    grid-template-areas: "copy logo";
    align-items: center;
    gap: 32px;
  }

  .logo-parallax { grid-area: logo; }
  .hero-copy { grid-area: copy; text-align: left; }
  .hero h1 { font-size: clamp(4rem, 5.4vw, 6.4rem); }
  .tagline { margin-left: 0; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; align-items: center; }
  .cta { width: auto; min-width: 260px; }
  .section { padding-top: 72px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .buy-list { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none; }
  .toast { bottom: 28px; }
  .footer { padding-bottom: 64px; }
}

@media (max-width: 899px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Meme comic: paper, ink borders, halftone, stickers with a hard shadow. */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.theme-comic {
  --bg: #fff4e4;
  --ink: #161616;
  --accent: #ff3b6b;
  --accent-2: #2f6bff;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(22, 22, 22, 0.16) 0.9px, transparent 1px);
  background-size: 9px 9px;
}

.theme-comic h1,
.theme-comic h2,
.theme-comic .ticker,
.theme-comic .brand-name {
  font-weight: 400;
  letter-spacing: -0.02em;
}

.theme-comic .bar {
  background: #fffaf1;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}

.theme-comic .brand-ticker { color: var(--accent); }

.theme-comic .nav a {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.theme-comic .copy-bar,
.theme-comic .copy-ca,
.theme-comic .cta,
.theme-comic .social {
  background: var(--accent);
  color: #fffaf1;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0;
  padding: 0 16px;
}

.theme-comic .cta:active,
.theme-comic .copy-ca:active,
.theme-comic .social:active,
.theme-comic .copy-bar:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.theme-comic .cta[data-wait] { opacity: 1; }

.theme-comic .halftone { display: none; }

.theme-comic .hero { align-items: center; }

.theme-comic .logo-stage {
  width: min(58vw, 250px);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 8px 8px 0 var(--accent-2);
  animation: comic-wobble 5.5s ease-in-out infinite;
}

@keyframes comic-wobble {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.2deg); }
}

.theme-comic .tagline {
  display: inline-block;
  text-align: left;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 5px 5px 0 var(--accent);
  padding: 12px 14px;
}

.theme-comic .ca-value,
.theme-comic .buy-list li,
.theme-comic .road,
.theme-comic .banner-frame,
.theme-comic .market {
  background: #fffaf1;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}

.theme-comic .ca-value,
.theme-comic .buy-list li,
.theme-comic .road,
.theme-comic .market { padding: 14px; }

.theme-comic .market { margin-top: 18px; }

.theme-comic .road[data-state="now"] { box-shadow: 6px 6px 0 var(--accent); }

.theme-comic .road[data-state="done"] { box-shadow: 6px 6px 0 #1f9d55; }

.theme-comic .banner-frame { overflow: hidden; padding: 0; margin: 0 0 16px; }

.theme-comic .gallery-grid { padding-top: 10px; }

.theme-comic .shot {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--accent);
  overflow: hidden;
}

.theme-comic .gallery-grid li:nth-child(4n + 1) { transform: rotate(-2deg); }
.theme-comic .gallery-grid li:nth-child(4n + 2) { transform: rotate(1.7deg); }
.theme-comic .gallery-grid li:nth-child(4n + 2) .shot { box-shadow: 6px 6px 0 var(--accent-2); }
.theme-comic .gallery-grid li:nth-child(4n + 3) { transform: rotate(-1.2deg); }
.theme-comic .gallery-grid li:nth-child(4n + 3) .shot { box-shadow: 6px 6px 0 #ffe14a; }
.theme-comic .gallery-grid li:nth-child(4n + 4) { transform: rotate(2deg); }

.theme-comic .shot .cap { padding: 8px 10px 12px; font-family: var(--font-display); font-size: 1.15rem; }

.theme-comic .lp-band {
  background: var(--accent);
  color: #fffaf1;
  border-block: 4px solid var(--ink);
}

.theme-comic .lp-band p { font-family: var(--font-display); letter-spacing: 0; }

.theme-comic .text-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-comic .lightbox-card {
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

@media (min-width: 900px) {
  .theme-comic .logo-stage { width: min(34vw, 380px); }
  .theme-comic .hero-copy { padding-right: 12px; }
}

@media (max-width: 899px) {
  .theme-comic .gallery-grid li { transform: none; }
  .theme-comic .gallery-grid li:nth-child(odd) { transform: rotate(-1.1deg); }
  .theme-comic .gallery-grid li:nth-child(even) { transform: rotate(1.1deg); }
}
