/* design: v2 */
/* antenatalclassesnearme.com, design v2: a bedroom at dusk. Raspberry for the hero, page heads and footer, a blush
   reading surface, plum ink, and sage, butter and peach in the hand-drawn pictures (src/art.ts). Fredoka for headings,
   Mulish for text (both OFL, self-hosted). Light surfaces in dark mode too (color-scheme: light), so every pair is
   checked once, by tests/design.test.ts. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --brand: #9c2f5e;        /* raspberry: the hero, page heads and footer */
  --brand-deep: #7a2149;
  --bg: #fde8ef;           /* blush, the reading surface */
  --card: #fffafc;
  --band: #f9d5e2;
  --text: #2b1020;         /* plum ink */
  --muted: #5c3a4b;
  --line: #e7b4c7;
  --rule: #2b1020;
  --link: #8a2350;
  --on-brand: #ffffff;
  --on-brand-muted: #fde2ec;
  --sage: #346a4f;
  --sage-text: #ffffff;
  --butter: #f6c75a;
  --butter-text: #2b1020;
  --peach: #f7a58c;
  --btn: #f6c75a;
  --btn-hover: #f8d27a;
  --btn-text: #2b1020;
  --free: #245c43; --free-bg: #d8efe2;
  --off: #8a1f1f; --off-bg: #fde0d6;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

/* ---------- type ---------- */
body { font-family: var(--sans); font-size: 18px; line-height: 1.6; background: var(--bg); color: var(--text); }
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 0.1em 0 0.3em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); line-height: 1.15; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.3em; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--peach); }
.wrap { max-width: 1180px; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }
::selection { background: var(--butter); color: var(--butter-text); }
.small, .src { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.src { margin: 10px 0 0; }
.section-sub { color: var(--muted); margin-top: -0.2em; }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); }
.more { margin: 12px 0 0; font-weight: 700; }
.more a::after { content: " \2192"; }
.plain-list { padding-left: 1.1em; }
.plain-list li { margin: 0 0 10px; }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 0; }
.header-row { padding-top: 10px; padding-bottom: 10px; max-width: none; padding-left: clamp(16px, 3.6vw, 56px); padding-right: clamp(16px, 3.6vw, 56px); }
.brand { gap: 10px; text-decoration: none; }
.brand svg.logo-mark { width: 44px; height: 44px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--text); }
.wordmark span { color: var(--brand); }
.main-nav { gap: 4px 22px; }
.main-nav a { font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--text); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--link); text-decoration-color: var(--peach); text-decoration-thickness: 4px; }
.menu-btn { font-family: var(--display); font-weight: 600; color: var(--text); border: 2.5px solid var(--text); border-radius: 12px; background: var(--card); }
@media (max-width: 760px) { .wordmark { font-size: 1.12rem; } .brand svg.logo-mark { width: 36px; height: 36px; } }

/* ---------- buttons and forms ---------- */
.btn { background: var(--btn); color: var(--btn-text); border: 3px solid var(--rule); border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; padding: 11px 24px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-small { font-size: 0.98rem; padding: 7px 16px; }
.btn:focus-visible, input:focus, select:focus, a:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
.place-form, .due-form { margin: 0 0 8px; }
.place-form label, .due-form label { display: block; font-family: var(--display); font-weight: 600; margin: 0 0 6px; }
.place-row { display: flex; gap: 10px; flex-wrap: wrap; }
.place-row input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1.1rem; padding: 11px 16px; border: 3px solid var(--rule); border-radius: 999px; background: #ffffff; color: var(--text); }
.place-form.big .place-row input { font-size: 1.2rem; padding: 13px 20px; }

/* ---------- home: the hero ---------- */
.hero { background: var(--brand); color: var(--on-brand); }
.hero-in { max-width: none; padding: 0 clamp(16px, 3.6vw, 56px); display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); gap: 10px 40px; align-items: end; }
.hero-text { padding: 36px 0 44px; align-self: center; }
.kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; color: var(--on-brand-muted); margin: 0 0 6px; }
.hero h1 { color: var(--on-brand); font-size: clamp(2.2rem, 4.6vw, 3.7rem); margin: 0 0 14px; }
.hero-sub { font-size: 1.14rem; line-height: 1.5; margin: 0 0 22px; max-width: 34em; color: var(--on-brand); }
.hero .place-form label { color: var(--on-brand); }
.hero .place-form .small { color: var(--on-brand-muted); }
.hero-art svg { width: 100%; height: auto; display: block; max-height: 360px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-text { padding-bottom: 8px; } .hero-art svg { max-height: 220px; } }

/* ---------- sections ---------- */
.band { margin-top: 34px; }
.section-head h2 { margin-top: 0.4em; }
.row-title { font-size: 1.35rem; margin: 26px 0 12px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 24px; margin-top: 34px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 3px solid var(--rule); border-radius: var(--radius); padding: 16px 18px 14px; box-shadow: 5px 5px 0 var(--line); }
.card h3 a { color: var(--text); text-decoration-color: var(--peach); }
.card p { margin: 0 0 6px; }
.card .who { color: var(--muted); font-weight: 700; }
.card .when, .card .price { font-size: 1.04rem; }
.card .was { color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.tags { margin: 0 0 8px !important; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.86rem; line-height: 1.3; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--text); }
.tag-free { background: var(--free-bg); color: var(--free); }
.tag-off { background: var(--off-bg); color: var(--off); }
.tag-quiet { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.go { font-weight: 800; }

/* ---------- boxes ---------- */
.nhs-box { background: var(--sage); color: var(--sage-text); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; border: 3px solid var(--rule); }
.nhs-box h2 { color: var(--sage-text); margin-top: 0.2em; }
.nhs-box a { color: var(--sage-text); }
.nhs-box .small { color: #e4f3ea; }
.due-box, .any-time { background: var(--card); border: 3px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; }
.due-box h2, .any-time h2 { margin-top: 0.2em; }
.due-out { margin-top: 12px; }
.due-out .big-week { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; margin: 0 0 4px; color: var(--brand); }
.signup-box { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; background: var(--band); border: 3px solid var(--rule); border-radius: var(--radius); padding: 20px 24px; margin: 40px 0; }
.signup-box h2 { margin-top: 0.1em; }
.signup-art svg { width: 120px; height: auto; }
@media (max-width: 600px) { .signup-box { grid-template-columns: 1fr; } .signup-art { display: none; } }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.signup-row label { flex-basis: 100%; font-weight: 700; }
.signup-row input { flex: 1 1 14rem; font: inherit; padding: 10px 16px; border: 3px solid var(--rule); border-radius: 999px; background: #ffffff; color: var(--text); }
.signup-note { font-size: 0.9rem; color: var(--muted); }
.apps { margin-top: 40px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px !important; }

/* ---------- chips, lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; background: var(--card); border: 2px solid var(--rule); border-radius: 999px; padding: 4px 14px; font-family: var(--display); font-weight: 600; color: var(--text); text-decoration: none; }
.chip:hover { background: var(--butter); color: var(--butter-text); }
.finders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 6px 28px; }
.finder-group ul { padding-left: 1.1em; margin: 0 0 10px; }
.finder-group li { margin: 0 0 6px; }
.trust-list { list-style: none; padding: 0; }
.trust-list li { padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.weeks { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin-top: 26px; }
.week-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.towns { margin-top: 34px; }

/* ---------- article pages: the page head on the band ---------- */
.page-head { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 22px 26px; margin: 18px 0 22px; }
.page-head h1, .page-head .lede { color: var(--on-brand); }
.page-head .byline { color: var(--on-brand-muted); }
.page-head .byline a { color: var(--on-brand); }
.page-head.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; align-items: center; }
.page-head-art svg { width: 100%; height: auto; }
@media (max-width: 700px) { .page-head.has-art { grid-template-columns: 1fr; } .page-head-art { display: none; } }
.crumbs a { color: var(--link); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: var(--on-brand); margin-top: 50px; }
.site-footer a, .site-footer h2, .site-footer h3, .site-footer p { color: var(--on-brand); }
.site-footer .small, .site-footer .footer-note { color: var(--on-brand-muted); }

/* ---------- the all-in-one app: countries, your week, checklist, week pages ---------- */
.hero-small .hero-in { grid-template-columns: minmax(0, 1fr); }
.hero-small .hero-text { padding: 26px 0 28px; }
.hero-tool { margin-top: -10px; }
.due-box.big { border-width: 4px; box-shadow: 6px 6px 0 var(--line); }
.due-pick { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; }
.due-pick label { font-family: var(--sans); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.country-row { margin-top: 10px; align-items: center; }
.country-row label { margin: 0; }
.country-row select, .signup-row select { font: inherit; padding: 9px 14px; border: 3px solid var(--rule); border-radius: 999px; background: #ffffff; color: var(--text); }
.due-country { font-family: var(--display); font-weight: 600; margin-top: 12px !important; }
.countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .countries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .countries { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.country { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 3px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--text); box-shadow: 4px 4px 0 var(--line); }
.country:hover { background: var(--butter); color: var(--butter-text); }
.country-code { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--brand); }
.country:hover .country-code { color: var(--butter-text); }
.country-name { font-weight: 700; }
.country.is-current, .country.is-saved { outline: 3px solid var(--brand); outline-offset: 2px; }
.feature { text-decoration: none; color: var(--text); display: block; }
.feature:hover { background: var(--band); }
.feature h3 { color: var(--brand); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero .hub-links .chip { background: var(--card); color: var(--text); }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.milestones li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; background: var(--card); border: 3px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; }
.milestones li:target { outline: 4px solid var(--butter); }
.ms-when { font-family: var(--display); font-weight: 700; color: var(--brand); margin: 0; }
.milestones h3 { margin-bottom: 4px; }
.milestones p { margin: 0 0 4px; }
@media (max-width: 560px) { .milestones li { grid-template-columns: 1fr; gap: 4px; } }
.week-hero { margin: 0 0 8px; }
.big-fact { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.35; }
.by-country { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 12px 24px; }
.country-block h3 { margin-bottom: 4px; }
.country-block ul { padding-left: 1.1em; margin: 0; }
.week-nav { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0; font-family: var(--display); font-weight: 600; }
