@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fredoka-500.woff2") format("woff2");
}
@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-600.woff2") format("woff2");
}
@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fredoka-700.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2");
}

/* Brand zone (default): neutrals ~60%, Triango purple ~30% structural,
   gold/yellow CTA ~10% (Design System v1). Christmas tokens are scoped to
   .season-zone[data-season="christmas"] so they cannot leak into the brand zone. */
:root {
  --bg: #fff8e8;
  --bg-soft: #f4ece0;
  --paper: #ffffff;
  --ink: #1e1433;
  --ink-soft: #5a4d6b;
  --line: #e8e0d4;
  --brand: #6b2d93;
  --brand-deep: #3d1763;
  --brand-soft: #ede3f7;
  --accent: #6b2d93;
  --accent-soft: #ede3f7;
  --cta: #ffd23f;
  --cta-ink: #1e1433;
  --cta-deep: #d99a00;
  --gold-soft: #fff4d4;
  --band: #3d1763;
  --h-a: #6b2d93;
  --h-b: #6b2d93;
  --pine: #125e34;
  --pine-soft: #e7f3ec;
  --logo: #6b2d93;
  --shadow: 0 8px 24px rgba(30, 20, 51, 0.1);
  --shadow-lg: 0 16px 40px rgba(30, 20, 51, 0.16);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --max: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --pad-x: clamp(16px, 4vw, 64px);
  --pad-y: clamp(48px, 7vw, 80px);
  --step-0: 16px;
  --step-1: 18px;
  --step-2: 20px;
  --step-3: 24px;
  --step-4: clamp(2rem, 3.2vw, 2.5rem);
  --step-5: clamp(2rem, 4.4vw, 3rem);
}

/* Self-contained, swappable seasonal zone. Does not change the global CTA yellow. */
.season-zone[data-season="christmas"] {
  --accent: #8f1616;
  --accent-soft: #f8e8e7;
  --pine: #125e34;
  --pine-soft: #e7f3ec;
  --gold-soft: #fff4d4;
  --h-a: #8f1616;
  --h-b: #125e34;
  --season-gold: #ebb94e;
  background: #fffcf8;
  color: var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-1);
  line-height: 1.55;
  font-weight: 400;
}

@media (max-width: 520px) {
  body { font-size: var(--step-0); line-height: 1.5; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.season-zone a { color: var(--pine); }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(var(--max), 100% - var(--pad-x) * 2);
  margin-inline: auto;
}

/* Slim seasonal bar: cover colours only, 8px */
.color-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  height: 8px;
}
.color-bar span, .block-band span { display: block; }
.c1 { background: var(--accent); }
.c2 { background: var(--cta); }
.c3 { background: var(--pine); }
.c4 { background: var(--accent); }
.c5 { background: var(--cta); }
.c6 { background: var(--pine); }

/* Neutral buffer between the seasonal zone and the brand zone.
   No purple against Christmas red: white/cream gap, then a gold hairline (shared CTA). */
.zone-break {
  height: 40px;
  background: var(--paper);
  border-bottom: 2px solid var(--cta);
}

.season-zone { position: relative; }


/* Header */
.top {
  background: var(--paper);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}
.top-inner {
  width: min(var(--max), 100% - var(--pad-x) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 72px;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--logo);
  flex: none;
}
.brand-name {
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--ink-soft);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--brand);
  text-decoration: none;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.nav a:hover { text-decoration: underline; }
.nav-cta { margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-yellow {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: 0 4px 0 var(--cta-deep);
}
.btn-yellow:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--cta-deep); }
.btn-yellow:active { transform: translateY(4px); box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-soft); }
.season-zone .btn-ghost {
  color: var(--pine);
  border-color: var(--pine);
}
.season-zone .btn-ghost:hover { background: var(--pine-soft); }
.btn-sm { min-height: 48px; padding: 12px 20px; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-yellow:hover, .btn-yellow:active { transform: none; }
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 999px;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 16px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px var(--pad-x) 40px;
    gap: 16px;
    min-height: calc(100vh - 80px);
    box-shadow: 0 16px 32px rgba(28, 25, 23, 0.12);
    z-index: 60;
    border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-cta { margin-left: 0; }
  .brand-name small { display: none; }
}

/* Brand headings are solid purple. Word-colour only inside the seasonal zone. */
.rainbow > span { color: inherit; }
.season-zone .rainbow > span:nth-child(odd) { color: var(--h-a); }
.season-zone .rainbow > span:nth-child(even) { color: var(--h-b); }

/* Hero */
.hero {
  background: var(--bg);
  color: var(--ink);
  padding: var(--space-8) 0 var(--space-5);
}
.hero-grid {
  width: min(var(--max), 100% - var(--pad-x) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-6);
  align-items: center;
}
.kicker {
  margin: 0 0 16px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--pine);
}
.hero h1,
.page-404 h1 {
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1.12;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 16ch;
}
.hero .lead {
  font-size: var(--step-2);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 34ch;
  color: var(--ink);
}
.hero .meta {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 38ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.badges li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.badges li:nth-child(1) { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badges li:nth-child(2) { background: var(--pine-soft); color: var(--pine); border-color: transparent; }
.badges li:nth-child(3) { background: var(--gold-soft); color: #7a4e00; border-color: transparent; }

.hero-copy { position: relative; }
.hero-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: center;
  justify-items: start;
}
.hero-actions .btn-yellow { grid-column: 1; grid-row: 1; }
.hero-actions .scribble-arrow {
  grid-column: 2;
  grid-row: 1;
  position: static;
  width: 88px;
  height: 64px;
  color: var(--accent);
  transform: rotate(12deg);
  pointer-events: none;
  margin: 0;
}
.hero-actions .btn-ghost { grid-column: 1; grid-row: 2; }

/* Fanned real pack pages behind the cover (layout is cover-agnostic) */
.hero-art { position: relative; }
.fan {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.sheet {
  position: absolute;
  top: 16%;
  width: 42%;
  background: var(--paper);
  padding: 4px;
  border: 1px solid #d6d3d1;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
  z-index: 1;
}
.sheet-a {
  left: 0;
  transform: rotate(-10deg);
  top: 18%;
}
.sheet-b {
  right: 0;
  left: auto;
  transform: rotate(9deg);
  top: 18%;
}
.sheet-c {
  left: 50%;
  width: 40%;
  top: 4%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 0;
}
.hero-cover {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 68%;
  z-index: 4;
  background: var(--paper);
  padding: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  display: block;
}
.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .hero { padding: 32px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1, .page-404 h1 { max-width: none; font-size: clamp(1.75rem, 8vw, 2.5rem); margin-bottom: 16px; }
  .hero .lead { font-size: var(--step-1); margin-bottom: 8px; }
  .hero .meta { display: none; }
  .badges { margin-bottom: 24px; }
  .fan { max-width: 360px; }
  .hero-actions {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-actions .btn-yellow,
  .hero-actions .btn-ghost { grid-column: 1; width: 100%; }
  .hero-actions .btn-ghost { grid-row: 2; }
  .hero-actions .scribble-arrow { display: none; }
}

/* Selling-point strip: cover colours only */
.sell-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  text-align: center;
}
.sell-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 8px;
  color: #f8f4ee;
}
.sell-strip .s1 { background: var(--accent); }
.sell-strip .s2 { background: var(--pine); }
.sell-strip .s3 { background: var(--cta); color: var(--cta-ink); }
.sell-strip .s4 { background: var(--pine); }
@media (max-width: 700px) {
  .sell-strip { grid-template-columns: 1fr 1fr; }
  .sell-strip span { min-height: 48px; }
}

.block-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 8px;
}
.block-band .c1 { background: var(--brand); }
.block-band .c2 { background: var(--cta); }
.block-band .c3 { background: var(--brand-deep); }
.block-band .c4 { background: var(--brand-soft); }
.block-band .c5 { background: var(--cta); }
.block-band .c6 { background: var(--brand); }

/* Sections */
section { padding: var(--pad-y) 0; scroll-margin-top: 96px; }
section h2,
.credits h2 {
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--brand);
  max-width: 22ch;
}
.section-lead {
  margin: 0 0 32px;
  max-width: 42ch;
  color: var(--ink);
}
.packs { background: var(--bg-soft); }
.trust { background: var(--paper); }
.about { background: var(--bg-soft); }
.faq { background: var(--paper); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--paper);
}
.filter-status {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.5;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  padding: 0 0 16px;
}
.card-link:hover .card-title { color: var(--accent); }
.card-cover {
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--step-0);
  background: var(--bg-soft);
}
.cover-fallback img { width: 72px; height: 72px; border-radius: 50%; }
.card-body {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-title {
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.card-price {
  margin: 0;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--accent);
}
.card-cta {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.principles { display: grid; gap: 16px; }
.principle {
  background: var(--bg-soft);
  border-radius: var(--radius-s);
  padding: 16px 24px;
  border-left: 8px solid var(--cta);
}
.principle:nth-child(2) { border-left-color: var(--brand); }
.principle:nth-child(3) { border-left-color: var(--brand-deep); }
.principle h3 {
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.principle p { margin: 0; }
.trust-art, .about-art {
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-art { order: -1; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.pronounce {
  background: var(--brand-soft);
  border-radius: var(--radius-m);
  padding: 16px 24px;
  margin: 24px 0 0;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: 8px; max-width: 780px; }
.faq-item {
  background: var(--bg-soft);
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 24px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin: 0; padding: 0 24px 16px; }

/* Pencil band */
.pencil-band {
  background: var(--band);
  color: var(--paper);
  padding: var(--pad-y) 0;
}
.pencil-inner {
  width: min(var(--max), 100% - var(--pad-x) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
}
.pencil-band h2 { color: var(--paper); max-width: none; }
.pencil-band p { margin: 0 0 24px; max-width: 36ch; color: #f5f5f4; }
.pencil {
  width: 120px;
  height: 400px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pencil span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--ink);
}
.pencil .eraser { background: var(--accent); color: var(--paper); flex: 0 0 64px; }
.pencil .body { background: var(--cta); flex: 1; }
.pencil .ferrule { background: #9ecfaf; flex: 0 0 40px; }
.pencil .tip {
  background: var(--cta-deep);
  flex: 0 0 64px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  color: var(--ink);
}
@media (max-width: 860px) {
  .pencil-inner { grid-template-columns: 1fr; }
  .pencil { width: 280px; height: 80px; flex-direction: row; }
  .pencil .eraser { flex-basis: 56px; }
  .pencil .ferrule { flex-basis: 40px; }
  .pencil .tip { flex-basis: 64px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
}

/* Footer */
.foot {
  background: var(--brand-deep);
  color: var(--paper);
  padding: 64px 0 32px;
  text-align: center;
}
.foot a { color: var(--cta); }
.foot .social {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-weight: 600;
}
.foot .social a { color: var(--paper); text-decoration: none; }
.foot .social a:hover { color: var(--cta); text-decoration: underline; }
.credits {
  background: #2a1050;
  border-radius: var(--radius-m);
  padding: 24px;
  margin: 0 auto 32px;
  max-width: 720px;
  text-align: left;
  color: #f3e9ff;
  font-size: var(--step-0);
  line-height: 1.5;
}
.credits h2 {
  font-size: 1.5rem;
  color: var(--paper);
  margin: 0 0 16px;
  max-width: none;
}
.credit-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.credit-row img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-soft);
  flex: none;
}
.legal { color: #d9cce8; font-size: var(--step-0); margin: 0 0 8px; }
.legal a { color: var(--cta); }

.error {
  padding: 24px;
  background: var(--accent-soft);
  border-radius: var(--radius-s);
}

.page-404 { padding: 80px 0; }

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