/* Chubby Chews Knowledge Wiki — Brand Design System
   Grounded in brand-guideline.md & coming-soon reference (Akina, Roundo, Manrope) */

@font-face {
  font-family: "Akina";
  src: url("/assets/fonts/Akina.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roundo";
  src: url("/assets/fonts/Roundo_Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope_Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-inverse: #140b24;
  --bg-primary: #ece7f2;
  --bg-secondary: #ffffff;
  --accent-primary: #e9ff83;
  --accent-secondary: #382071;
  --accent-secondary-bright: #472a82;
  --accent-tertiary: #1f6b36;
  --ink-black: #212121;
  --ink-muted: #6a686d;
  --border-primary: #cfc3e0;
  --border-inverse: rgba(255, 255, 255, 0.18);

  --chapter-strawberry: #9e1946;
  --chapter-orange: #7c3410;
  --chapter-watermelon: #1f6b36;
  --chapter-blueberry: #173b9c;

  --font-display: "Akina", sans-serif;
  --font-ui: "Roundo", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-card: 24px;
  --radius-panel: 18px;
  --radius-pill: 9999px;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-black);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.prose {
  max-width: 65ch;
}

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

h3, h4 {
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Sticky Top Navigation (cinema-nav style) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 11, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-inverse);
  color: #ffffff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

@media (min-width: 1120px) {
  .nav-inner {
    flex-wrap: nowrap;
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.brand-wiki-tag {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(233, 255, 131, 0.14);
  border: 1px solid rgba(233, 255, 131, 0.45);
  color: var(--accent-primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dcd3eb;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-primary);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* Signature Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-lime {
  background: var(--accent-primary);
  color: var(--ink-black);
  border-color: var(--ink-black);
}

.btn-lime:hover {
  background: #f3ffb3;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline-light:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-pill-white {
  background: #ffffff;
  color: var(--accent-secondary-bright);
  border: 2px solid var(--border-primary);
}

.btn-pill-white:hover {
  border-color: var(--accent-secondary-bright);
  background: #f8f5fc;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.82rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-lime {
  background: var(--accent-primary);
  color: var(--ink-black);
  border: 1.5px solid var(--ink-black);
}

.pill-purple {
  background: var(--accent-secondary);
  color: #ffffff;
}

.pill-lavender {
  background: var(--bg-primary);
  color: var(--accent-secondary);
  border: 1px solid var(--border-primary);
}

.pill-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.pill-warn {
  background: #fff3cd;
  color: #5c3d00;
  border: 1px solid #f0d788;
  border-radius: 10px;
}

.pill-ok {
  background: #def5e5;
  color: #114722;
  border: 1px solid #a8dfba;
  border-radius: 10px;
}

.pill-age {
  background: #1f6b36;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

/* Marquee Band (matches coming-soon cinema.css) */
@keyframes marqueeLinear {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-band {
  background: var(--ink-black);
  color: var(--bg-primary);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLinear 26s linear infinite;
}

.marquee-item {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Band Surfaces */
.band {
  padding-block: clamp(3.2rem, 6vw, 5.2rem);
}

.band-inverse {
  background: radial-gradient(circle at 78% 18%, rgba(71, 42, 130, 0.45), transparent 58%), var(--bg-inverse);
  color: #ffffff;
}

.band-lavender {
  background: var(--bg-primary);
  color: var(--ink-black);
}

.band-white {
  background: var(--bg-secondary);
  color: var(--ink-black);
}

.band-purple {
  background: linear-gradient(155deg, #382071 0%, #24124d 100%);
  color: #ffffff;
}

.band-forest {
  background: linear-gradient(160deg, #1f6b36 0%, #134723 100%);
  color: #ffffff;
}

/* Hero */
.hero {
  padding-top: clamp(2.8rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.4rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.94;
  margin-top: 1rem;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: #d8cfe8;
  max-width: 54ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.hero-stage {
  position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(233, 255, 131, 0.14), rgba(56, 32, 113, 0.25) 60%, transparent 80%);
  border: 1.5px solid var(--border-inverse);
  border-radius: 28px;
  padding: 1.5rem;
}

.hero-pack-fan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

@media (min-width: 640px) {
  .hero-pack-fan {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.hero-pack-fan a {
  display: block;
  text-decoration: none;
  text-align: center;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-pack-fan a:hover {
  transform: translateY(-6px);
}

.hero-pack-fan img {
  height: 150px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
}

.hero-pack-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dcd3eb;
}

.mascot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-inverse);
}

.mascot-pair {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.mascot-pair img {
  height: 76px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

/* Saturated Color Chapters (coming-soon 3-column signature) */
.chapter-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: clamp(3.6rem, 6vw, 5.4rem);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.chapter-panel[data-flavor="strawberry"] { background: linear-gradient(145deg, #9e1946 0%, #630c29 100%); }
.chapter-panel[data-flavor="orange"]     { background: linear-gradient(145deg, #8b3b12 0%, #4e1f08 100%); }
.chapter-panel[data-flavor="watermelon"] { background: linear-gradient(145deg, #1f6b36 0%, #103e1e 100%); }
.chapter-panel[data-flavor="blueberry"]  { background: linear-gradient(145deg, #173b9c 0%, #0d225c 100%); }

.chapter-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 13.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.chapter-inner {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 980px) {
  .chapter-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.95fr) minmax(0, 0.72fr);
    gap: 2.2rem;
  }
}

.chapter-title {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  margin-top: 0.75rem;
}

.chapter-pouch-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chapter-pouch-img {
  max-height: 360px;
  width: auto;
  border-radius: 18px;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.42));
}

.chapter-mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.chapter-mascot-img {
  max-height: 280px;
  width: auto;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.35));
}

@media (max-width: 979px) {
  .chapter-mascot-wrap {
    display: none;
  }
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.format-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Grids & Cards */
.split-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.split-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-panel);
  padding: 1.25rem 1.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent-secondary);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.ing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.ing-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
}

.ing-card h3 {
  font-size: 1.15rem;
  color: var(--accent-primary);
}

.ing-sci {
  font-size: 0.82rem;
  color: #dcd3eb;
  margin-top: 0.25rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-panel);
  border: 1.5px solid var(--border-primary);
  background: #ffffff;
}

.band-inverse .table-wrap,
.band-purple .table-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-inverse);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-primary);
  vertical-align: top;
}

.band-inverse th, .band-inverse td,
.band-purple th, .band-purple td {
  border-bottom-color: var(--border-inverse);
}

th {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56, 32, 113, 0.08);
}

.band-inverse th, .band-purple th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child.mono {
  white-space: nowrap;
}

/* How-To & Limits */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.howto-card {
  background: rgba(20, 11, 36, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-panel);
  padding: 1.35rem;
}

.limits-banner {
  margin-top: 1.5rem;
  background: var(--accent-primary);
  color: var(--ink-black);
  border: 2px solid var(--ink-black);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.7rem;
  display: grid;
  gap: 0.5rem;
}

/* Open FAQ List */
.faq-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 0.9fr 2fr;
    gap: 3.5rem;
  }
  .faq-sticky {
    position: sticky;
    top: 5.5rem;
  }
}

.faq-dl { margin: 0; }

.faq-item {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--border-primary);
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }

.faq-item dt h3 {
  font-size: 1.15rem;
  color: var(--accent-secondary);
}

.faq-item dd {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  max-width: 65ch;
}

/* Breadcrumbs & Facts Box */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #dcd3eb;
  margin-bottom: 1rem;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-primary); }

.facts-box {
  background: #ffffff;
  color: var(--ink-black);
  border: 2px solid var(--ink-black);
  border-radius: 14px;
  padding: 1.25rem;
}

.facts-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  border-bottom: 8px solid var(--ink-black);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.facts-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.92rem;
}

.facts-row.thick {
  border-bottom: 4px solid var(--ink-black);
  font-weight: 700;
}

.fda-box {
  border: 1.5px solid var(--border-primary);
  background: #ffffff;
  color: var(--ink-black);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.cite-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.cite-card {
  background: #ffffff;
  border: 1.5px solid var(--border-primary);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.cite-card a {
  color: var(--accent-secondary-bright);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg-inverse);
  color: #ffffff;
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--border-inverse);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.footer-links {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #dcd3eb;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-inverse);
  font-size: 0.85rem;
  color: #dcd3eb;
  display: grid;
  gap: 0.75rem;
}

/* Packs Hub & Blog System */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.35rem;
}

.pack-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(20, 11, 36, 0.12);
}

.pack-card-media {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.pack-card-media[data-flavor="strawberry"] { background: linear-gradient(145deg, #9e1946 0%, #630c29 100%); }
.pack-card-media[data-flavor="orange"]     { background: linear-gradient(145deg, #8b3b12 0%, #4e1f08 100%); }
.pack-card-media[data-flavor="watermelon"] { background: linear-gradient(145deg, #1f6b36 0%, #103e1e 100%); }
.pack-card-media[data-flavor="blueberry"]  { background: linear-gradient(145deg, #173b9c 0%, #0d225c 100%); }

.pack-card-media img {
  max-height: 215px;
  width: auto;
  border-radius: 14px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.pack-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
  gap: 0.75rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem;
  gap: 0.75rem;
}

.article-shell {
  max-width: 72ch;
  margin-inline: auto;
}

.article-body h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-secondary);
}

.article-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body p,
.article-body ul {
  margin: 0.85rem 0;
  color: var(--ink-black);
}

.article-body ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.article-body a {
  color: var(--accent-secondary-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #dcd3eb;
}
