/* Where's My Daddy? — site styles ("Storybook sky").
   Fonts are hosted on this site, and there are no trackers, on purpose. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #23313b;
  --ink-soft: #46535c;
  --accent: #a8432e;       /* coral from the cover lettering, deepened for contrast */
  --accent-dark: #7e2f1f;
  --accent-ink: #ffffff;
  --green: #3f6e4a;
  --sky: #e7f1f8;
  --peach: #fcede6;
  --sage: #eaf3e6;
  --line: #d9e4ec;
  --star: #a86a12;
  --radius: 28px;
  --shadow: 0 12px 36px rgba(35, 49, 59, 0.10);
  --font-head: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Quick exit: a line at the top, plus a button that is always on screen */
.topbar { background: var(--ink); color: #fff; font-size: 0.9rem; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; }

.quick-exit {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  background: var(--ink); color: #fff;
  border: 2px solid #fff; border-radius: 999px;
  padding: 10px 18px;
  font: 700 1rem var(--font-body);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.quick-exit svg { flex: none; }
.quick-exit small { font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.quick-exit:hover, .quick-exit:focus-visible { background: #000; }

/* Header */
.site-header { background: var(--sky); position: relative; z-index: 50; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 72px;
}
.brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1.55rem;
  color: var(--accent); text-decoration: none;
}
.brand:hover { color: var(--accent-dark); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font: 700 1rem var(--font-body); color: var(--ink); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 72px;
  background: #fff; box-shadow: var(--shadow);
  padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 12px 4px; color: var(--ink); text-decoration: none;
  font-weight: 700; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[href="/support/"] { color: var(--accent); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block; position: static; padding: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
  .site-nav a:hover { background: #fff; }
  .site-nav a[aria-current="page"] { background: #fff; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 26px; border-radius: 999px; font-weight: 700;
  border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
section.tint { background: var(--peach); }
section.sky { background: var(--sky); }
section.sage { background: var(--sage); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
  font-weight: 700; color: var(--green); margin-bottom: 0.6em;
}
.lead { font-size: 1.25rem; color: var(--ink); max-width: 36em; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero: the sky from the cover, with soft clouds */
.hero { background: var(--sky); position: relative; overflow: hidden; padding: 48px 0 64px; }
@media (min-width: 720px) { .hero { padding: 64px 0 80px; } }
.hero::before, .hero::after {
  content: ""; position: absolute; background: #fff; border-radius: 999px; opacity: 0.85; pointer-events: none;
}
.hero::before { top: 36px; left: -70px; width: 260px; height: 90px; box-shadow: 130px 30px 0 -10px #fff; }
.hero::after { bottom: 40px; right: -50px; width: 320px; height: 100px; box-shadow: -150px -26px 0 -14px #fff; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }
.hero .rating { margin: 22px 0 0; font-size: 1rem; }

/* Book cover */
.cover {
  background: #fff; padding: 14px; border-radius: 20px;
  box-shadow: 0 18px 40px rgba(35, 49, 59, 0.16);
  transform: rotate(-2deg);
  max-width: 380px; width: 100%; margin: 0 auto;
}
.cover img { width: 100%; border-radius: 10px; }

/* "Where would you like to start?" */
.chooser { position: relative; z-index: 1; margin-top: 48px; background: #fff; border-radius: 32px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .chooser { padding: 36px; } }
.chooser h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.2em; }
.choices { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 820px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice {
  display: flex; flex-direction: column; gap: 8px;
  border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink);
  background: var(--peach);
}
.choice:nth-child(2) { background: var(--sage); }
.choice.help { background: var(--ink); color: #fff; }
.choice:hover { color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.choice.help:hover { color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.choice .icon {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.choice .title { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.choice .go { font-weight: 700; color: var(--accent); margin-top: auto; }
.choice:nth-child(2) .go { color: var(--green); }
.choice.help .go { color: #fff; }

/* Cards */
.grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
section.tint .card, section.sky .card, section.sage .card { box-shadow: none; }
.card p:last-child { margin-bottom: 0; }

/* The three messages */
.messages .card { text-align: center; box-shadow: none; padding: 32px; }
.messages .card:nth-child(1) { background: var(--peach); }
.messages .card:nth-child(2) { background: var(--sage); }
.messages .card:nth-child(3) { background: var(--sky); }
.messages img {
  width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  border: 6px solid #fff; margin: 0 auto 20px;
}

/* Pages from the book */
.peek { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 760px) { .peek { grid-template-columns: repeat(3, 1fr); } }
.peek img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; background: #fff; }

/* Picture beside text */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.split .art { max-width: 360px; margin: 0 auto; width: 100%; }

.stars { color: var(--star); letter-spacing: 2px; }

/* Price tiers */
.tiers { display: grid; gap: 16px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { text-align: center; }
.tier .qty { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.tier .price { color: var(--ink-soft); }

/* Callout */
.callout { background: var(--sky); padding: 24px 28px; border-radius: var(--radius); margin: 24px 0; }
.callout p:last-child { margin: 0; }

/* Support lines */
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lines li { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); }
.lines strong { display: block; }
.lines a { font-weight: 700; font-size: 1.2rem; }

/* FAQ */
details {
  background: #fff; border-radius: 20px; padding: 4px 22px; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(35, 49, 59, 0.08);
}
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; min-height: 48px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; }
.form-note { font-size: 0.95rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 100px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand-foot { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 0.4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .small { opacity: 0.85; font-size: 0.9rem; margin-top: 24px; }

/* Notes for Zoe stay in the source (find them with: grep -rn 'class="todo"' pages/)
   but never show on the live site. */
.todo { display: none; }
