/* ═══════════════════════════════════════════
   MONET PUNKS — Shared Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg:      #080a0f;
  --bg2:     #0d1018;
  --bg3:     #131720;
  --border:  #1e2435;
  --text:    #d4cfc8;
  --muted:   #5a6070;
  --accent:  #8ba4c0;
  --gold:    #c4a96a;
  --rare:    #b088cc;
  --warm:    #c4896a;
  --font:    'Space Mono', 'Courier New', monospace;
}

html { font-size: 14px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; }

/* ── Nav ──────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 52px;
}
.nav-logo {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text); text-decoration: none; opacity: .85;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ── Page wrapper ─────────────────────────── */
.page { padding-top: 52px; }

/* ── Hero ─────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 52px);
  align-items: center;
  padding: 60px 64px;
  gap: 64px;
  border-bottom: 1px solid var(--border);
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--muted);
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -.01em;
  color: var(--text);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 420px;
}
.hero-stats { display: flex; gap: 32px; margin-top: 8px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-size: 20px; color: var(--text); }
.stat-lbl { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#heroCanvas { border: 1px solid var(--border); image-rendering: auto; max-width: 100%; }
.hero-caption {
  position: absolute; bottom: -28px; left: 0; right: 0;
  text-align: center; font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px;
  font-family: var(--font); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--text); cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.btn-primary {
  border-color: var(--accent); background: rgba(139,164,192,.08);
  color: var(--accent);
}
.btn-primary:hover { background: rgba(139,164,192,.18); }
.btn-gold {
  border-color: var(--gold); background: rgba(196,169,106,.08);
  color: var(--gold);
}
.btn-gold:hover { background: rgba(196,169,106,.18); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Gallery strip ────────────────────────── */
.gallery-strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.strip-track {
  display: flex; gap: 8px;
  animation: scroll-left 40s linear infinite;
}
.strip-track:hover { animation-play-state: paused; }
.strip-cell { flex-shrink: 0; width: 88px; height: 88px; border: 1px solid var(--border); overflow: hidden; }
.strip-cell img, .strip-cell canvas { width: 100%; height: 100%; display: block; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section ──────────────────────────────── */
section { padding: 80px 64px; border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 9px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px;
}
.section-title { font-size: 24px; color: var(--text); margin-bottom: 16px; }

/* ── Gallery grid ─────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 4px;
}
.punk-card {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .15s;
}
.punk-card:hover { border-color: var(--accent); }
.punk-card canvas, .punk-card img { width: 100%; height: 100%; display: block; }
.punk-card .punk-id {
  position: absolute; bottom: 4px; left: 4px;
  font-size: 8px; letter-spacing: .08em;
  color: rgba(255,255,255,.5); pointer-events: none;
}
.punk-card .rarity-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
}
.rarity-dot.Legendary { background: #ff88cc; }
.rarity-dot.Rare      { background: #b088cc; }
.rarity-dot.Uncommon  { background: #88aacc; }
.rarity-dot.Common    { background: #445566; }

/* ── Mint widget ──────────────────────────── */
.mint-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.mint-preview { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mint-preview canvas { border: 1px solid var(--border); }
.mint-preview-caption { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

.mint-panel { display: flex; flex-direction: column; gap: 20px; }
.mint-stat-row { display: flex; gap: 32px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.qty-btn:hover { background: var(--bg); }
.qty-val {
  width: 56px; height: 40px; background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text);
}
.mint-total { font-size: 11px; color: var(--muted); }
.mint-total span { color: var(--text); }
.mint-status { font-size: 10px; letter-spacing: .12em; padding: 10px 0; color: var(--muted); min-height: 32px; }
.mint-status.error { color: var(--warm); }
.mint-status.success { color: #88cc99; }

/* ── Manifesto ────────────────────────────── */
.manifesto {
  max-width: 720px; margin: 0 auto;
  padding: 80px 64px;
}
.manifesto h1 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.manifesto .byline { font-size: 10px; color: var(--muted); letter-spacing: .15em; margin-bottom: 60px; }
.manifesto h2 {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 48px 0 16px;
}
.manifesto p {
  font-size: 13px; line-height: 2; color: var(--text);
  margin-bottom: 18px; opacity: .85;
}
.manifesto strong { color: var(--accent); font-weight: bold; }
.manifesto em { color: var(--gold); font-style: italic; }
.manifesto hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.manifesto pre {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 20px; font-size: 11px; line-height: 1.8; color: var(--muted);
  overflow-x: auto; margin: 24px 0;
}
.manifesto blockquote {
  border-left: 2px solid var(--accent); padding-left: 20px; margin: 28px 0;
  font-size: 14px; color: var(--muted); line-height: 1.9; font-style: italic;
}

/* ── Type rarity tags ─────────────────────── */
.tag {
  display: inline-block; padding: 2px 8px;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid;
}
.tag-alien    { color: #88ddcc; border-color: #88ddcc33; background: #88ddcc08; }
.tag-ape      { color: #cc9966; border-color: #cc996633; background: #cc996608; }
.tag-zombie   { color: #88cc66; border-color: #88cc6633; background: #88cc6608; }
.tag-legendary{ color: #ff88cc; border-color: #ff88cc33; }
.tag-rare     { color: #b088cc; border-color: #b088cc33; }
.tag-uncommon { color: #88aacc; border-color: #88aacc33; }

/* ── Distribution table ───────────────────── */
.dist-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dist-table td, .dist-table th {
  padding: 10px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.dist-table th { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ── Footer ───────────────────────────────── */
footer {
  padding: 40px 64px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  font-size: 10px; color: var(--muted); letter-spacing: .12em;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero-right { order: -1; }
  section { padding: 48px 24px; }
  .mint-layout { grid-template-columns: 1fr; }
  nav { padding: 0 20px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .manifesto { padding: 48px 24px; }
}
