/* ─────────────────────────────────────────────────────────────
   Crafts & Cradles — theme tokens
   Scoped to .site[data-theme][data-mode][data-font]
   ───────────────────────────────────────────────────────────── */

/* ── A · Sunset Shore ─────────────────────────────────────── */
.site[data-theme="beach"][data-mode="light"] {
  --bg:        #fff6ec;
  --bg-elev:   #ffffff;
  --ink:       #2a1a12;
  --ink-soft:  #6a4a38;
  --line:      #f0d8be;
  --accent:    #ff5b3a;   /* sunset red-orange */
  --accent-2:  #ffb347;   /* sand gold */
  --accent-3:  #2f8d8a;   /* sea teal */
  --accent-4:  #ffd5b8;   /* peach */
  --accent-5:  #f8e8c7;   /* sand */
  --shadow:    0 18px 40px -22px rgba(255,91,58,.35), 0 2px 6px rgba(42,26,18,.06);
  /* Section "paper" backgrounds — soft, sun-faded */
  --paper-yellow: #fff0d4;
  --paper-pink:   #ffe1cd;
  --paper-mint:   #d6ebe5;
  --paper-peach:  #ffe8d4;
  --paper-lilac:  #ece4d4;
  --paper-sky:    #d8e7e8;
}
.site[data-theme="beach"][data-mode="dark"] {
  --bg:        #11242b;
  --bg-elev:   #16313a;
  --ink:       #ffeede;
  --ink-soft:  #c8b8a8;
  --line:      #234852;
  --accent:    #ff7a52;
  --accent-2:  #ffc16a;
  --accent-3:  #6ad8cf;
  --accent-4:  #ff9a78;
  --accent-5:  #1d3b46;
  --shadow:    0 18px 40px -22px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  --paper-yellow: #2a2418;
  --paper-pink:   #2b1d24;
  --paper-mint:   #15303a;
  --paper-peach:  #2b1f1a;
  --paper-lilac:  #1f1f2e;
  --paper-sky:    #14313a;
}

/* ── B · Sticker Pop ──────────────────────────────────────── */
.site[data-theme="pop"][data-mode="light"] {
  --bg:        #fffaf2;
  --bg-elev:   #ffffff;
  --ink:       #1a1208;
  --ink-soft:  #5a4838;
  --line:      #1a1208;
  --accent:    #ff2d2d;   /* hot red */
  --accent-2:  #ff8a1f;   /* tangerine */
  --accent-3:  #ffd23f;   /* sticker yellow */
  --accent-4:  #e84a8f;   /* hot pink */
  --accent-5:  #25c2a0;   /* mint */
  --shadow:    4px 4px 0 #1a1208;
  /* Section "paper" backgrounds — vibrant, sticker-pack saturation */
  --paper-yellow: #ffdb3a;
  --paper-pink:   #ff9ec5;
  --paper-mint:   #6ee0bc;
  --paper-peach:  #ffa566;
  --paper-lilac:  #b9a3ff;
  --paper-sky:    #7ec8ff;
}
.site[data-theme="pop"][data-mode="dark"] {
  --bg:        #14110b;
  --bg-elev:   #1f1b13;
  --ink:       #fff7e6;
  --ink-soft:  #c8b89c;
  --line:      #fff7e6;
  --accent:    #ff4a4a;
  --accent-2:  #ffa14a;
  --accent-3:  #ffd95c;
  --accent-4:  #ff6fa7;
  --accent-5:  #4cd4b2;
  --shadow:    4px 4px 0 #fff7e6;
  --paper-yellow: #3a2e10;
  --paper-pink:   #3a1a26;
  --paper-mint:   #0f3024;
  --paper-peach:  #3a2010;
  --paper-lilac:  #1f1a3a;
  --paper-sky:    #11253a;
}

/* ── Font pairings ─────────────────────────────────────────── */
.site[data-font="editorial"] {
  --font-display: 'Yeseva One', 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -.01em;
}
.site[data-font="playful"] {
  --font-display: 'Caprasimo', 'Georgia', serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -.02em;
}
.site[data-font="scrappy"] {
  --font-display: 'Caveat', cursive;
  --font-body:    'Outfit', system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: 0;
}

/* ─────────────────────────────────────────────────────────────
   Base layout
   ───────────────────────────────────────────────────────────── */
.site {
  --maxw: 1080px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.site * { box-sizing: border-box; }
.site a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3, .site h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
}
.site h1 { font-size: 64px; }
.site h2 { font-size: 40px; }
.site h3 { font-size: 22px; line-height: 1.2; }
.site p { margin: 0; }

/* ── Header / nav ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site[data-theme="pop"] .site-header { border-bottom-width: 2px; }
.nav-row {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px;
  font-weight: var(--display-weight);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 18px;
  flex-shrink: 0;
}
.site[data-theme="pop"] .brand-mark {
  border: 2px solid var(--line);
  border-radius: 12px;
  transform: rotate(-6deg);
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--ink); background: color-mix(in oklab, var(--accent) 12%, transparent); }
.nav-link.active {
  background: var(--accent); color: #fff;
}
.site[data-theme="pop"] .nav-link {
  border-radius: 8px;
  border: 2px solid transparent;
}
.site[data-theme="pop"] .nav-link.active {
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.nav-cta {
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  cursor: pointer;
}
.site[data-theme="pop"] .nav-cta {
  border-radius: 8px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  cursor: pointer; border: none;
  transition: transform .12s ease;
  text-align: center; justify-content: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.site[data-theme="pop"] .btn {
  border-radius: 10px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}
.site[data-theme="pop"] .btn:hover { box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.site[data-theme="pop"] .btn-secondary { background: var(--accent-3); color: var(--line); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px 40px;
  background: var(--bg-elev);
}
.site[data-theme="pop"] .site-footer { border-top-width: 2px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 24px; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
}
.footer-note {
  font-size: 12px; color: var(--ink-soft); max-width: 380px;
}
.footer-note strong { color: var(--ink); }

/* ── Reusable section ──────────────────────────────────────── */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 28px;
}
.section-tight { padding: 40px 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--accent);
}

/* ── Form ──────────────────────────────────────────────────── */
.form-row {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.form-row label {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); text-transform: uppercase;
}
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.site[data-theme="pop"] .form-row input,
.site[data-theme="pop"] .form-row textarea,
.site[data-theme="pop"] .form-row select {
  border-width: 2px;
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--line);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--accent);
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.site[data-theme="pop"] .card {
  border-width: 2px;
  border-radius: 14px;
}

/* ── Paper backgrounds (section bands) ─────────────────────── */
.bg-yellow { background: var(--paper-yellow); }
.bg-pink   { background: var(--paper-pink); }
.bg-mint   { background: var(--paper-mint); }
.bg-peach  { background: var(--paper-peach); }
.bg-lilac  { background: var(--paper-lilac); }
.bg-sky    { background: var(--paper-sky); }
.bg-cream  { background: var(--bg); }
.bg-elev   { background: var(--bg-elev); }

/* In Pop mode each colored band gets a chunky ink rule between it
   and its neighbor, like a sticker book page edge. */
.site[data-theme="pop"] .section-band {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  position: relative;
  overflow: hidden;
}
.site[data-theme="pop"] .section-band + .section-band {
  border-top: none;
}
.site[data-theme="beach"] .section-band {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.site[data-theme="beach"] .section-band + .section-band {
  border-top: none;
}

/* Scatter — decorative chaos behind each band's content. */
.scatter {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.section-band > .section,
.section-band > .scatter + * {
  position: relative;
  z-index: 1;
}
.scatter > * {
  position: absolute;
  display: block;
}

/* Beach hides scatter (its decoration is the wave + circle) */
.site[data-theme="beach"] .scatter { opacity: .35; }

/* Cards inside colored bands need to read against the band, not the
   page bg — promote them to elev white/black. */
.section-band .card { background: var(--bg-elev); }

/* Header & footer borders pick up theme weight automatically (set
   above), but in Pop the sticky header should sit cleanly over any
   colored band below — add a hard ink rule. */
.site[data-theme="pop"] .site-header { border-bottom-width: 2px; background: var(--bg); }
.site[data-theme="pop"] .site-footer { border-top-width: 2px; }


/* ===========================================================
   2026-05-20 — Nav fixes:
   - WP navigation block items inside .nav-links need the
     same visual treatment as the (now-unused) .nav-link class.
   - .nav-cta needs higher specificity so parent block-theme
     <a> color rules don't override the Pop cream-on-ink.
   ========================================================= */

.site-header .nav-links .wp-block-navigation-item__content {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft) !important;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-header .nav-links .wp-block-navigation-item__content:hover {
  color: var(--ink) !important;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.site-header .nav-links .wp-block-navigation-item__content[aria-current=page],
.site-header .nav-links .current-menu-item .wp-block-navigation-item__content {
  background: var(--accent);
  color: #fff !important;
}
.site[data-theme=pop] .site-header .nav-links .wp-block-navigation-item__content {
  border-radius: 8px;
  border: 2px solid transparent;
}
.site[data-theme=pop] .site-header .nav-links .wp-block-navigation-item__content[aria-current="page"],
.site[data-theme="pop"] .site-header .nav-links .current-menu-item .wp-block-navigation-item__content {
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
}

/* Force cream text on the dark Book Tori button (override block theme <a> color) */
.site-header a.nav-cta,
.wp-block-group.site-header a.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}
.site[data-theme="pop"] .site-header a.nav-cta {
  border-radius: 8px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}
.site-header a.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
