/* Where's My Daddy? — site styles. No external fonts or trackers, on purpose. */

:root {
  --bg: #fdf8f3;
  --surface: #ffffff;
  --surface-soft: #f6ede4;
  --ink: #2f2a33;
  --ink-soft: #5d5563;
  --accent: #c4566b;
  --accent-ink: #ffffff;
  --accent-soft: #f7dde2;
  --sky: #dcebf3;
  --line: #e8ddd2;
  --exit: #2f2a33;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(60, 40, 50, 0.08);
  --font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
}

* { 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.0625rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

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

/* Quick exit — always visible */
.quick-exit {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  background: var(--exit); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 18px;
  font: 600 0.95rem var(--font-body);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer;
}
.quick-exit small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.8; }
.quick-exit:hover, .quick-exit:focus-visible { background: #000; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 4px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block; position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 10px; font-size: 0.97rem; }
  .site-nav a:hover { background: var(--surface-soft); }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
section { padding: 56px 0; }
section.tint { background: var(--surface-soft); }
section.sky { background: var(--sky); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent); margin-bottom: 0.6em;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.narrow { max-width: 720px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

/* Book cover placeholder until the real cover is added */
.cover {
  aspect-ratio: 1 / 1; max-width: 380px; margin: 0 auto; width: 100%;
  border-radius: 14px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #f7dde2 0%, #dcebf3 100%);
  display: grid; place-items: center; text-align: center; padding: 24px;
  font-family: var(--font-head); color: var(--ink);
}
.cover strong { display: block; font-size: 2rem; line-height: 1.15; }
.cover em { display: block; margin-top: 10px; font-style: normal; color: var(--ink-soft); }
.cover img { border-radius: 14px; }

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

.stars { color: #d69a2d; letter-spacing: 2px; }

/* Price tiers */
.tiers { display: grid; gap: 14px; }
@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.4rem; font-weight: 700; }
.tier .price { color: var(--ink-soft); }

/* Callout */
.callout {
  border-left: 5px solid var(--accent); background: var(--accent-soft);
  padding: 18px 20px; border-radius: 0 12px 12px 0; margin: 24px 0;
}
.callout p:last-child { margin: 0; }

/* Support lines */
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lines li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.lines strong { display: block; }
.lines a { font-weight: 700; font-size: 1.15rem; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 18px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

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

/* Footer */
.site-footer {
  background: var(--ink); color: #e9e3ea; padding: 40px 0 90px; font-size: 0.95rem;
}
.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 ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .small { opacity: 0.75; font-size: 0.85rem; margin-top: 20px; }

.todo {
  background: #fff6c8; border: 1px dashed #c9a400; color: #5c4b00;
  padding: 2px 6px; border-radius: 4px; font-size: 0.85em;
}
