/* ============================================================
   SPIT BUBBLES: visual identity. Site-specific.

   WHO THIS IS FOR
   New and expecting parents, grandparents and gift-givers,
   often reading on a phone at 3 a.m., tired and a little anxious,
   deciding what to buy, borrow or pass on.

   WHAT THE DESIGN HAS TO SAY
   Calm and kind, never alarmist, but unmistakably clear about
   safety. A quiet nursery at dawn, not a pastel cliche.

   SIGNATURES
   Three soft bubbles as the brand mark, rooms of gear on quiet
   tinted tiles, recall cards with a written "Recalled" stamp,
   and the hand-me-down checker that compares a label date with
   the date each federal rule started.

   COLOR
   Warm oat, slate ink, calm blue links, sage labels, a muted
   coral for buttons and recall stamps, and mist, sage and peach
   tints. Every text pair is checked by the build script.

   TYPE
   Comfortaa for headings: soft, round and gentle. Andika for
   reading: designed for legibility, with letters that are hard
   to confuse when you're tired.
   ============================================================ */

:root {
  --oat:    #faf6f0;
  --mist:   #e6f0f5;
  --sage-t: #e5efe8;
  --peach:  #fbe8df;
  --ink:    #1f2d3a;
  --soft:   #4b5866;
  --blue:   #245e7e;
  --sage:   #3b6b50;
  --coral:  #a13f33;
  --red:    #9b2c2c;
  --line:   #e2dbd0;
  --f-text: #dfe7ee;
  --f-head: #f7c9b6;

  --accent:     var(--coral);
  --accent-ink: #ffffff;
  --focus:      var(--blue);
  --measure:    66ch;

  --display: 'Comfortaa', 'Trebuchet MS', system-ui, sans-serif;
  --body:    'Andika', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[hidden] { display: none !important; }
body { font-family: var(--body); font-size: 1.125rem; line-height: 1.7; color: var(--ink); background: var(--oat); }
.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
p + p { margin-top: 0.8rem; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 700; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.kicker, .lab { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.45rem; }
.lab { font-size: 0.78rem; margin: 0.8rem 0 0.1rem; }
.lab:first-child { margin-top: 0; }
.lab--coral { color: var(--coral); }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 56ch; }
.fine { font-size: 0.95rem; color: var(--soft); margin-top: 0.9rem; }
.source { font-size: 0.85rem; color: var(--soft); margin-top: auto; padding-top: 0.6rem; overflow-wrap: anywhere; }
.meta { font-size: 0.9rem; color: var(--soft); margin: 0 0 0.2rem; }
.more { margin-top: 1rem; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { background: var(--oat); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.bubbles { position: relative; width: 34px; height: 30px; }
.bubbles i { position: absolute; border-radius: 50%; border: 2px solid var(--blue); background: var(--mist); }
.bubbles i:nth-child(1) { width: 18px; height: 18px; left: 0; bottom: 0; }
.bubbles i:nth-child(2) { width: 12px; height: 12px; left: 17px; bottom: 12px; border-color: var(--sage); background: var(--sage-t); }
.bubbles i:nth-child(3) { width: 8px; height: 8px; left: 25px; bottom: 0; border-color: var(--coral); background: var(--peach); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 0.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.55rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { background: var(--mist); border-radius: 999px; }

main { padding-block: 2.5rem 4rem; }
.hero { padding-bottom: 0.9rem; }
.hero h1 { max-width: 18ch; margin-bottom: 0.9rem; }
.section { margin-top: 3rem; }

.rooms { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
.room { max-width: none; border-radius: 22px; padding: 1.1rem 1.2rem; position: relative; }
.room--mist { background: var(--mist); }
.room--sage { background: var(--sage-t); }
.room--peach { background: var(--peach); }
.room h3 a { color: var(--ink); text-decoration: none; }
.room h3 a::after { content: ""; position: absolute; inset: 0; }
.room h3 a:hover { text-decoration: underline; }
.room:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.room h3 a:focus-visible { outline: none; }

.cards { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.card { max-width: none; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 1.05rem 1.2rem 0.95rem; display: flex; flex-direction: column; }
.card.lookup { border-left: 5px solid var(--blue); }
.go { margin-top: auto; padding-top: 0.5rem; }
.card p, .recall p { overflow-wrap: anywhere; }
.go a { display: inline-flex; align-items: center; min-height: 44px; }

.recalls { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); }
.recall { max-width: none; background: #ffffff; border: 1px solid #efc9bd; border-top: 5px solid var(--coral); border-radius: 16px; padding: 1rem 1.2rem 0.95rem; display: flex; flex-direction: column; }
.recall-top { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; margin-bottom: 0.4rem; }
.stamp { display: inline-block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); background: var(--peach); border: 2px solid var(--red); border-radius: 6px; padding: 0.05rem 0.5rem; }
.who { font-size: 0.9rem; color: var(--soft); }

.panel { background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.2rem, 3vw, 1.9rem); max-width: 52rem; }
.panel--mist { background: var(--mist); border-color: #cddfe8; }
.panel--peach { background: var(--peach); border-color: #efc9bd; }

.hmd-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); align-items: end; margin-top: 1.1rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 700; }
.field select { min-height: 48px; padding: 0 0.7rem; border: 2px solid var(--soft); border-radius: 12px; background: #ffffff; font: inherit; color: var(--ink); width: 100%; }
.hmd-form .btn { justify-self: start; }
.hmd-out:not(:empty) { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.hmd-out h3 + ul, .hmd-out h3 + p { margin-top: 0.5rem; }
.hmd-out h3 { margin-top: 1.1rem; }
.hmd-out h3:first-child { margin-top: 0; }
.hmd-status { font-weight: 700; border-radius: 12px; padding: 0.6rem 0.9rem; margin-top: 0.5rem; }
.hmd-status--before { background: var(--peach); color: var(--red); }
.hmd-status--unsure { background: var(--mist); color: var(--ink); }
.hmd-status--after { background: var(--sage-t); color: var(--sage); }
.hmd-facts { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.9rem; }
.hmd-facts li { border-left: 4px solid var(--blue); padding-left: 0.9rem; }
.fact-title { font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.4rem; background: var(--coral); color: #ffffff; border: 2px solid var(--coral); border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn--quiet { background: #ffffff; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--mist); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.prose li { margin-bottom: 0.45rem; }

.site-footer { background: var(--ink); color: #ffffff; margin-top: 3rem; padding-block: 2.5rem 3rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font-family: var(--body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--f-head); margin-bottom: 0.5rem; }
.site-footer p { color: var(--f-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ffffff; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--f-head); }
.site-footer .fine { color: var(--f-text); margin-top: 2rem; }
.site-footer :focus-visible { outline-color: var(--f-head); }

@media (forced-colors: active) {
  .stamp, .hmd-status { border: 2px solid CanvasText; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
}
