/* ==========================================================================
   Our Kids Hub — shared design tokens
   Extracted directly from the approved Claude Design brand identity file
   (Our Kids Hub Brand Identity.dc.html, v2.0). Do not invent new colours,
   fonts or radii here — add to this file only when the brand guide changes.
   ========================================================================== */

:root {
  /* colour */
  --coral: #E8776B;        /* primary — buttons, highlights, headings */
  --coral-text: #C25348;   /* links, "for parents" tag text */
  --green: #7FAE7A;        /* additional-needs tagging, positive states */
  --green-text: #4E7A4C;   /* link hover, "do" boxes */
  --green-text-strong: #3E6A3C;
  --oak: #C08A54;          /* pull-quotes, dividers — warm accent only */
  --teal: #2E7F7B;         /* childminder hub only — never parent-facing */
  --teal-text: #23625F;
  --cream: #FFF6EA;        /* page background — never pure white */
  --card: #FFFDF8;         /* card background, slightly warmer than cream */
  --ink: #2A211C;          /* all body text and every outline */
  --ink-soft: #6B5C52;     /* secondary/muted text */
  --border-muted: #A9A29A; /* dashed dividers */
  --peach: #FFEFE0;        /* tag/quote background */
  --green-bg: #EDF5EC;     /* "do" box background */
  --red-bg: #FDECE9;       /* "don't" box background */
  --teal-bg: #E7F2F1;      /* childminder tag background */

  --font-display: 'Caveat Brush', cursive;     /* wordmark, pull-quotes only, never below 22px */
  --font-heading: 'Baloo 2', system-ui, sans-serif;  /* headings, buttons, labels */
  --font-body: 'Nunito Sans', system-ui, sans-serif; /* body copy, 16px minimum */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header / nav ---------- */

.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand-mark img { width: 48px; height: auto; transform: rotate(-2deg); }
.brand-mark .word-our { font-family: var(--font-display); font-size: 15px; color: var(--coral-text); line-height: 1; display: block; }
.brand-mark .word-kidshub { font-family: var(--font-display); font-size: 30px; color: var(--ink); line-height: 0.9; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: 12px; flex: 1; }
.main-nav a { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--coral-text); }

.header-cta { flex: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  border-radius: 40px;
  border: 3px solid var(--ink);
  padding: 11px 24px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--coral); color: #FFF8F0; box-shadow: 4px 4px 0 var(--ink); }
.btn-secondary { background: var(--cream); color: var(--ink); }
.btn-small { padding: 8px 18px; font-size: 15px; min-height: 40px; }

/* ---------- tags ---------- */

.tag { display: inline-flex; align-self: flex-start; border-radius: 30px; padding: 6px 16px; font-weight: 700; font-size: 14px; border: 2px solid; }
.tag-parents { background: var(--peach); border-color: var(--coral-text); color: var(--coral-text); }
.tag-additional-needs { background: var(--green-bg); border-color: var(--green-text); color: var(--green-text-strong); }
.tag-childminder { background: var(--teal-bg); border-color: var(--teal); color: var(--teal-text); }

/* ---------- wobbly cards ----------
   The asymmetric border-radius pairs are the signature brand texture —
   each value pair should differ enough to read as "hand-drawn", never
   a perfect rounded rect. Reuse these exact pairs; don't average them out. */

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  padding: 30px 32px;
}
.card-wobble-a { border-radius: 30px 200px 24px 190px / 190px 24px 200px 26px; }
.card-wobble-b { border-radius: 190px 26px 200px 24px / 24px 190px 26px 200px; }
.card-wobble-c { border-radius: 26px 180px 26px 180px / 180px 26px 180px 26px; }
.card-wobble-d { border-radius: 180px 26px 180px 26px / 26px 180px 26px 180px; }
.card-hero { border-radius: 240px 20px 210px 20px / 20px 220px 20px 250px; box-shadow: 8px 10px 0 rgba(42,33,28,0.12); }

.card-dashed { background: var(--card); border: 3px dashed var(--border-muted); border-radius: 26px; padding: 34px; }

/* ---------- headings ---------- */

h1, h2, h3, .heading { font-family: var(--font-heading); font-weight: 700; color: var(--ink); margin: 0; }
.eyebrow { font-family: var(--font-display); font-size: 28px; color: var(--coral-text); }
.pull-quote { font-family: var(--font-display); font-size: 30px; line-height: 1.25; }

/* ---------- sections ---------- */

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px dashed var(--border-muted);
  padding: 26px 0 40px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.site-footer .tagline { font-family: var(--font-display); font-size: 22px; color: var(--coral-text); }

@media (max-width: 720px) {
  .main-nav { display: none; } /* mobile nav pattern to be added once page count grows */
}

/* ==========================================================================
   Tools & forms — first used by /write-your-letter/
   Tokens only; no new colours or radii beyond the wobble set above.
   ========================================================================== */

.tool-steps { display: grid; gap: 28px; }

.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--coral-text);
  line-height: 1;
  flex: none;
}
.step-head h2 { font-size: 26px; }

/* template chooser */
.choice-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 26px 180px 26px 180px / 180px 26px 180px 26px;
  padding: 22px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.choice:nth-child(even) { border-radius: 180px 26px 180px 26px / 26px 180px 26px 180px; }
.choice:hover { background: var(--peach); }
.choice[aria-pressed="true"] { background: var(--peach); box-shadow: 5px 5px 0 var(--ink); }
.choice strong { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.3; }
.choice span { color: var(--ink-soft); font-size: 15px; }

/* fields */
.field-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* generated letter */
.letter-output {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px 30px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.letter-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* callouts */
.note {
  border: 3px dashed var(--border-muted);
  border-radius: 20px;
  padding: 20px 24px;
  font-size: 15.5px;
}
.note-warn { background: var(--red-bg); border-style: solid; border-color: var(--coral-text); }
.note strong { font-family: var(--font-heading); }

.byline {
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 3px dashed var(--border-muted);
  padding-top: 16px;
  margin-top: 8px;
}

@media print {
  .site-header, .site-footer, .letter-actions, .no-print { display: none !important; }
  .letter-output { border: none; padding: 0; }
  body { background: white; } /* paper, not a brand colour */
}

/* ==========================================================================
   Guides — stage grid, pillar blocks, guide lists
   ========================================================================== */

.stage-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.stage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 3px solid var(--ink);
  padding: 26px 30px;
  text-decoration: none;
  color: var(--ink);
}
.stage-card:hover { background: var(--peach); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.stage-card .stage-age { font-family: var(--font-display); font-size: 22px; color: var(--coral-text); line-height: 1; }
.stage-card strong { font-family: var(--font-heading); font-weight: 700; font-size: 24px; line-height: 1.15; }
.stage-card .stage-defines { font-size: 15.5px; color: var(--ink-soft); }
.stage-card .stage-count { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--coral-text); margin-top: 4px; }

.pillar-block { margin-bottom: 30px; }
.pillar-block h3 {
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 3px dashed var(--border-muted);
  margin-bottom: 12px;
}

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-list li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 16.5px; }
.guide-list li::before { content: "—"; color: var(--oak); flex: none; }
.guide-title { color: var(--ink-soft); }
.guide-format {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  border: 2px solid var(--border-muted);
  border-radius: 20px;
  padding: 1px 10px;
  white-space: nowrap;
}

.stage-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stage-nav .btn { flex: 0 1 auto; }

.main-nav a[aria-current="page"] { color: var(--coral-text); text-decoration: underline; text-underline-offset: 5px; }

/* ==========================================================================
   Guide articles — long-form reading
   Measure is deliberately narrow: these are read on a phone, one-handed,
   often at 2am. Tokens only.
   ========================================================================== */

.guide-article { max-width: 720px; }
.guide-article > * + * { margin-top: 22px; }
.guide-article h2 {
  font-size: 27px;
  line-height: 1.2;
  margin-top: 46px;
  padding-bottom: 8px;
  border-bottom: 3px dashed var(--border-muted);
}
.guide-article h3 { font-size: 20px; margin-top: 32px; }
.guide-article p { margin: 0; }
.guide-article ul, .guide-article ol { margin: 0; padding-left: 24px; display: grid; gap: 10px; }
.guide-article li { padding-left: 4px; }
.guide-article li::marker { color: var(--oak); font-weight: 700; }
.guide-article a { font-weight: 600; }

.guide-tags { display: flex; gap: 10px; flex-wrap: wrap; }

.guide-meta {
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 3px dashed var(--border-muted);
  border-bottom: 3px dashed var(--border-muted);
  padding: 16px 0;
  display: grid;
  gap: 6px;
}
.guide-meta strong { font-family: var(--font-heading); color: var(--ink); }

/* "In short" — the answer, before the explanation */
.key-facts {
  background: var(--peach);
  border: 3px solid var(--ink);
  border-radius: 26px 180px 26px 180px / 180px 26px 180px 26px;
  padding: 26px 32px;
}
.key-facts h2 {
  font-family: var(--font-display);
  font-size: 30px;
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  color: var(--coral-text);
}
.key-facts ul { padding-left: 22px; }

/* contents */
.toc { background: var(--card); border: 3px dashed var(--border-muted); border-radius: 22px; padding: 22px 28px; }
.toc h2 { font-size: 18px; border: 0; margin: 0 0 10px; padding: 0; }
.toc ol { padding-left: 22px; gap: 7px; }
.toc a { font-weight: 400; }

/* callouts */
.callout { border: 3px solid var(--ink); border-radius: 22px; padding: 22px 26px; }
.callout h3 { margin: 0 0 8px; font-size: 18px; }
.callout p { margin: 0; }
.callout > * + * { margin-top: 10px; }
.callout-do { background: var(--green-bg); border-color: var(--green-text); }
.callout-dont { background: var(--red-bg); border-color: var(--coral-text); }
.callout-tip { background: var(--peach); border-color: var(--coral-text); }
.callout-urgent { background: var(--red-bg); border-color: var(--ink); }

/* numbered walkthrough */
.steps { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps > li {
  counter-increment: step;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 20px 24px 20px 66px;
  position: relative;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--coral-text);
}
.steps h3 { margin: 0 0 6px; font-size: 19px; }

/* what happens by when */
.timeline { display: grid; gap: 0; }
.timeline > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 3px dashed var(--border-muted);
}
.timeline > div:last-child { border-bottom: 0; }
.timeline dt, .timeline .when {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--coral-text);
}
@media (max-width: 560px) {
  .timeline > div { grid-template-columns: 1fr; gap: 4px; }
}

.related { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.related a {
  display: block;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
}
.related a:hover { background: var(--peach); box-shadow: 4px 4px 0 var(--ink); }
.related a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--ink-soft); margin-top: 4px; }

.guide-format.guide-live {
  background: var(--green-bg);
  border-color: var(--green-text);
  color: var(--green-text-strong);
}

.related-soon {
  display: block;
  background: var(--cream);
  border: 3px dashed var(--border-muted);
  border-radius: 20px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-soft);
}
.related-soon span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 15px; margin-top: 4px; }
