/* ============================================================
   Very Super Kids — family activity magazine
   Premium joyful design system · static · no JS required
   Palette: ink indigo on cream, coral / sun / teal / grape accents
   ============================================================ */

:root {
  --paper: #fffbf3;
  --paper-2: #fff4e2;
  --ink: #33306b;
  --ink-soft: #5d5987;
  --coral: #ff6b6b;
  --coral-deep: #e8504f;
  --sun: #ffb800;
  --sun-soft: #ffd166;
  --teal: #12b5b0;
  --teal-deep: #0d948f;
  --grape: #7c6cf0;
  --grape-deep: #5f4dd6;
  --sky: #4ea8de;
  --white: #ffffff;
  --radius-l: 30px;
  --radius-m: 22px;
  --radius-s: 14px;
  --shadow-soft: 0 14px 34px rgba(51, 48, 107, 0.12);
  --shadow-pop: 0 18px 44px rgba(51, 48, 107, 0.18);
  --font-display: "Baloo 2", "Baloo", "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--grape-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.32rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.05;
}
.brand:hover { color: var(--ink); }
.brand .logo-dot { width: 42px; height: 42px; flex: 0 0 auto; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--sun-soft); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.95rem;
    user-select: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 18px;
    gap: 2px;
  }
  #nav-check:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- Hero (CSS gradient, no photos) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(700px 380px at 96% 8%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(118deg, #ff6b6b 0%, #ff9642 26%, #ffb800 52%, #12b5b0 80%, #4ea8de 100%);
  border-bottom: 3px solid var(--ink);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.hero::before { width: 340px; height: 340px; top: -130px; right: -90px; }
.hero::after { width: 220px; height: 220px; bottom: -100px; left: -60px; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 22px 84px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero .kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--sun-soft);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { max-width: 15ch; text-shadow: 0 3px 0 rgba(51, 48, 107, 0.22); }

.hero .lead {
  max-width: 56ch;
  font-size: 1.16rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(51, 48, 107, 0.25);
}

.hero .hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.hero .btn:hover { color: var(--ink); }

/* ---------- Sections & cards ---------- */

.section { padding: 58px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--coral-deep);
  margin: 0 0 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }

.card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 3px solid var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2px);
  background-size: 22px 22px;
}
.t-coral { background-color: var(--coral); }
.t-sun { background-color: var(--sun); }
.t-teal { background-color: var(--teal); }
.t-grape { background-color: var(--grape); }
.t-sky { background-color: var(--sky); }
.t-mint { background-color: #7bdc8f; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--coral-deep); text-decoration: underline; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; flex: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}
.badge-age { background: var(--sun-soft); }
.badge-time { background: #cdeffd; }
.badge-mess { background: #ffd6d6; }

/* ---------- Age band (home) ---------- */

.age-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.age-card {
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.age-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  bottom: -55px; right: -35px;
}
.age-card h3 { color: var(--white); font-size: 1.5rem; }
.age-card p { color: rgba(255, 255, 255, 0.94); margin-bottom: 14px; }
.age-card a { color: var(--white); font-weight: 800; text-decoration: none; border-bottom: 3px solid rgba(255,255,255,0.55); }
.age-card a:hover { border-color: var(--white); }
.a-coral { background: linear-gradient(140deg, #ff8787, var(--coral-deep)); }
.a-teal { background: linear-gradient(140deg, #3fd0cb, var(--teal-deep)); }
.a-grape { background: linear-gradient(140deg, #9c8ef5, var(--grape-deep)); }

/* ---------- Article pages ---------- */

.page-hero {
  border-bottom: 3px solid var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 840px; margin: 0 auto; padding: 54px 22px 46px; position: relative; z-index: 2; }

.breadcrumb {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--white); text-decoration: none; border-bottom: 2px solid rgba(255,255,255,0.5); }
.breadcrumb a:hover { border-color: var(--white); }

.page-hero h1 { text-shadow: 0 3px 0 rgba(51, 48, 107, 0.22); }
.page-hero .standfirst {
  font-size: 1.14rem;
  font-weight: 600;
  max-width: 58ch;
  text-shadow: 0 2px 10px rgba(51, 48, 107, 0.28);
}

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 46px 22px 30px;
}

.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }

.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.5em; }

.article blockquote {
  margin: 1.6em 0;
  padding: 20px 26px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.grown-tip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 1.7em 0;
  padding: 20px 22px;
  background: #eef0ff;
  border: 3px dashed var(--grape-deep);
  border-radius: var(--radius-s);
}
.grown-tip .tip-icon { font-size: 1.7rem; line-height: 1.2; }
.grown-tip strong { font-family: var(--font-display); }

.activity {
  border: 3px solid var(--ink);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  margin: 1.3em 0;
  background: var(--white);
  box-shadow: 0 4px 0 var(--ink);
}
.activity h3 { margin-top: 0; }
.activity .needs {
  font-size: 0.92rem;
  background: var(--paper-2);
  border-radius: 999px;
  display: inline-block;
  padding: 3px 14px;
  margin: 0 0 0.6em;
}

/* ---------- Related / internal linking ---------- */

.related { padding: 8px 0 64px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.linkbox {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  border: 3px solid var(--ink);
}
.linkbox h3 { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d9d7f0;
  border-top: 3px solid var(--ink);
  padding: 52px 0 34px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}
.footer-grid h4 {
  color: var(--sun-soft);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: #d9d7f0; text-decoration: none; }
.footer-grid a:hover { color: var(--sun-soft); text-decoration: underline; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #a7a4cf;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sun);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 800;
  z-index: 100;
}
.skip-link:focus { left: 0; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero-inner { padding: 52px 22px 62px; }
  .section { padding: 42px 0; }
}

/* ---- Photo pipeline ---- */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(51,48,107,.86) 0%, rgba(51,48,107,.6) 44%, rgba(18,181,176,.28) 100%); }
.article figure { margin: 30px 0; }
.article figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); border: 3px solid var(--ink); }
.article figcaption { font-size: .9rem; color: var(--ink-soft, #5b5876); margin-top: 8px; }
