/* Weebneck — Appalachian Waifu trading cards. Dark coal-town theme. */
:root {
  --coal: #14110e;
  --coal-2: #1d1915;
  --coal-3: #262019;
  --cream: #f2e8d5;
  --cream-dim: #cbbfa5;
  --gold: #d8a24a;
  --gold-dim: #a97f38;
  --red: #a83232;
  --line: #3a3128;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); }
a:hover { color: var(--cream); }

h1, h2, h3, .display {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--cream-dim); }
.small { font-size: 0.85rem; color: var(--cream-dim); }
.tagline { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- header / nav ---- */
header.site {
  background: var(--coal-2);
  border-bottom: 3px solid var(--gold-dim);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 12px 20px; max-width: 1060px; margin: 0 auto; }
.brand { font-family: "Oswald", sans-serif; font-size: 1.7rem; letter-spacing: 0.12em; color: var(--cream); text-decoration: none; text-transform: uppercase; }
.brand b { color: var(--gold); font-weight: 600; }
.nav nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav nav a { color: var(--cream-dim); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 0.95rem; }
.nav nav a:hover, .nav nav a.active { color: var(--cream); background: var(--coal-3); }

/* ---- hero ---- */
.hero {
  background: linear-gradient(rgba(20,17,14,0.55), rgba(20,17,14,0.92)), url("assets/weebneck-banner.jpg") center 30% / cover no-repeat;
  padding: 84px 0 64px;
  text-align: center;
}
.hero h1 { margin-bottom: 0.2em; text-shadow: 0 2px 18px rgba(0,0,0,0.8); }
.hero .sub { font-size: 1.25rem; color: var(--cream); max-width: 640px; margin: 0 auto 1.2em; }
.hero .tagline { display: block; margin-bottom: 0.6em; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #191410;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 12px 26px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--cream); color: #191410; }
.btn.ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn.ghost:hover { color: var(--cream); border-color: var(--cream); background: transparent; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.2em 0; }

/* ---- cards grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.panel { background: var(--coal-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.panel img.rounded { border-radius: 8px; margin-bottom: 14px; }
.eyebrow { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--gold); margin-bottom: 6px; }

/* ---- flip card ---- */
.flip-wrap { perspective: 1200px; max-width: 420px; margin: 0 auto; }
.flip {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
  cursor: pointer;
}
@media (max-width: 480px) { .flip { aspect-ratio: 5 / 7.6; } }
.flip.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-back { transform: rotateY(180deg); background: #0d0b09; display: flex; flex-direction: column; padding: 16px; }
.flip-hint { text-align: center; margin-top: 12px; color: var(--cream-dim); font-size: 0.9rem; }
.card-namebar {
  background: var(--gold);
  color: #191410;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.25rem;
  text-align: center;
  padding: 5px 0;
  margin: -16px -16px 12px;
}
.card-facts { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--cream-dim); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-facts b { color: var(--cream); }
.stat { margin-bottom: 6px; }
.stat .stat-top { display: flex; justify-content: space-between; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; }
.stat .bar { height: 8px; background: var(--coal-3); border-radius: 5px; overflow: hidden; margin-top: 3px; }
.stat .bar i { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.stat .bar i.red { background: var(--red); }
.poke-type { display: inline-block; background: #5b6068; color: #fff; font-family: "Oswald", sans-serif; font-size: 0.85rem; letter-spacing: 0.1em; padding: 3px 12px; border-radius: 4px; margin-right: 6px; text-transform: uppercase; }
.poke-type.ground { background: #8a6d3b; }
.poke-total { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-family: "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; }
.stat-toggle { display: flex; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.stat-toggle button {
  background: transparent; color: var(--cream-dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px;
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
}
.stat-toggle button.on { background: var(--gold); color: #191410; border-color: var(--gold); }

/* ---- split layout ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split img.rounded { border-radius: 10px; }

/* ---- shop ---- */
.product img { border-radius: 8px; margin-bottom: 12px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product .price { font-family: "Oswald", sans-serif; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.coming { display: inline-block; background: var(--coal-3); border: 1px dashed var(--gold-dim); color: var(--cream-dim); border-radius: 6px; padding: 10px 14px; font-size: 0.95rem; margin-top: 10px; }

/* ---- history ---- */
.timeline { border-left: 3px solid var(--gold-dim); padding-left: 22px; margin: 8px 0 8px 6px; }
.timeline h3 { margin-bottom: 0.2em; }
.timeline h3 span { color: var(--gold); }
.fact-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.fact { background: var(--coal-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; text-align: center; min-width: 120px; flex: 1; }
.fact b { display: block; font-family: "Oswald", sans-serif; font-size: 1.6rem; color: var(--gold); }
.fact span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-dim); }

/* ---- dialog ---- */
dialog {
  background: var(--coal-2); color: var(--cream);
  border: 1px solid var(--gold-dim); border-radius: 12px; padding: 28px; max-width: 440px;
}
dialog::backdrop { background: rgba(0,0,0,0.7); }
dialog h3 { color: var(--gold); }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 20px; color: var(--cream-dim); font-size: 0.9rem; }
footer.site .tagline { display: block; margin-bottom: 8px; }
