
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FEFDFB;
  --surface-sky: #EAF6FA;
  --surface-sand: #FBF3D9;
  --ink: #26211C;
  --ink-soft: #6E6258;
  --primary: #D5121E;          --accent: #1B7FA6;           --accent-text: #187394;      --border: #D8CFC4;
  --on-primary: #FFFFFF;
    --digby-orange: #F07040;
  --hotsocks-pink: #EA58A0;
  --plett-mint: #7CCFA0;
  --sun-yellow: #F4D34F;
  --butterfly-blue: #95D7EC;
  --vest-olive: #8D8969;

  --font-display: "Baloo 2", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
  --s-32: 128px; --s-48: 192px;

  --r-card: 16px; --r-panel: 24px; --r-pill: 999px;
  --sticker-shadow: 4px 4px 0 rgba(38, 33, 28, .12);
  --soft-shadow: 0 10px 30px rgba(110, 98, 88, .16);
  --maxw: 1140px;
  --maxw-text: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--s-4); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 var(--s-4); max-width: var(--maxw-text); }
a { color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun-yellow); color: var(--ink); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-6); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: 0; translate: 0 -120%; z-index: 100; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: 0 0 12px 12px; transition: translate .2s; }
.skip-link:focus { translate: 0 0; }

.word-red    { color: var(--primary); }
.word-orange { color: #D9531F; } .word-pink   { color: var(--hotsocks-pink); }
.word-mint   { color: #3E9A6C; } .word-blue   { color: var(--accent); }
.bounce-head .bw { display: inline-block; }
.bounce-head .bw:nth-child(odd)  { rotate: -2.2deg; }
.bounce-head .bw:nth-child(even) { rotate: 1.8deg; translate: 0 2px; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  padding: 14px 28px; min-height: 48px; border-radius: var(--r-pill);
  border: 2px solid var(--ink); cursor: pointer; text-decoration: none;
  box-shadow: var(--sticker-shadow);
  transition: translate .15s ease-out, background-color .15s ease-out;
}
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 rgba(38,33,28,.12); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #BA0F1A; color: var(--on-primary); }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-sand); color: var(--ink); }
@media (hover: hover) {
  .btn:hover { translate: -1px -2px; box-shadow: 6px 6px 0 rgba(38,33,28,.14); }
}
.link-arrow { font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.link-arrow::after { content: " →"; }

.nav-pill {
  position: fixed; top: var(--s-4); left: 50%; translate: -50% 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s-4);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 10px 8px 20px; box-shadow: var(--sticker-shadow);
  max-width: min(94vw, 820px); white-space: nowrap;
}
.nav-pill .brand { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.nav-pill .brand .b-red { color: var(--primary); }
.nav-links { display: flex; gap: var(--s-4); align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 8px 4px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-cta { font-size: .95rem !important; padding: 10px 20px !important; min-height: 42px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; background: var(--bg); border: 2px solid var(--ink);
    border-radius: var(--r-panel); padding: var(--s-6); box-shadow: var(--sticker-shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

.section { padding-block: var(--s-24); position: relative; }
.section-pivotal { padding-block: var(--s-32); }
.section-sky  { background: var(--surface-sky); }
.section-sand { background: var(--surface-sand); }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; color: var(--accent-text);
  font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  display: block; margin-bottom: var(--s-2);
}

.divider { display: block; width: 100%; height: 64px; margin-bottom: -2px; }
.divider svg { width: 100%; height: 100%; display: block; }

.card {
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-card);
  padding: var(--s-6); box-shadow: var(--sticker-shadow);
}
.card h3 { margin-bottom: var(--s-2); }

.book-card { text-align: center; text-decoration: none; color: var(--ink); display: block; }
.book-card img {
  border-radius: 10px; border: 2px solid var(--ink); box-shadow: var(--soft-shadow);
  margin-inline: auto; transition: translate .18s ease-out;
}
@media (hover: hover) {
  .book-card:hover img { translate: 0 -8px; box-shadow: 0 18px 36px rgba(110,98,88,.24); }
}
.book-card .book-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: var(--s-4); }
.book-card .book-sub { color: var(--ink-soft); font-size: .95rem; }

.form-inline { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: stretch; }
.form-inline input[type="email"], .form-field input, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  padding: 12px 20px; min-height: 48px; min-width: min(300px, 100%);
}
.form-field input, .form-field textarea { border-radius: 14px; width: 100%; }
.form-field { margin-bottom: var(--s-4); }
.form-field label { display: block; font-weight: 700; margin-bottom: var(--s-1); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: var(--s-2); }
.form-status { font-weight: 700; margin-top: var(--s-3); min-height: 1.5em; }
.form-status.ok { color: #2E7D4F; }
.form-status.err { color: var(--primary); }

.footer { background: var(--surface-sand); margin-top: 0; }
.footer-walk { display: flex; justify-content: center; padding-top: var(--s-12); }
.footer-walk img { width: min(420px, 70vw); }
.footer-inner { padding: var(--s-8) 0 var(--s-12); text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.footer-nav { display: flex; gap: var(--s-6); justify-content: center; flex-wrap: wrap; margin: var(--s-4) 0; }
.footer-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-text); }
.footer-fine { color: var(--ink-soft); font-size: .9rem; max-width: none; }

[data-reveal] { opacity: 0; }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; }
.ambient { will-change: transform; }

.grid-3 { display: grid; gap: var(--s-8); grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: var(--s-8); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); } .mt-12 { margin-top: var(--s-12); }
