/* You're Worth It! — palette and type come from the book cover:
   morning sky blue, sunrise glow, and the orange author band.
   Layout: one sunrise hero, then calm alternating bands that read well on a phone. */

:root {
  --sky-50: #f4f8fc;
  --sky-100: #e4eef8;
  --paper: #ffffff;
  --ink: #0f2440;
  --ink-soft: #4a5d78;
  --line: #d5e1ee;
  --blue: #1f5fa8;
  --blue-deep: #143f73;
  --band: #e2601c;
  --band-ink: #ffffff;
  --sun: #ffd27a;
  --sun-soft: rgba(255, 210, 122, 0.55);
  --focus: #e2601c;
  --foot-bg: #0f2440;
  --foot-fg: #f4f8fc;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-read: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.5vw, 4.6rem);

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-50: #0b1626;
    --sky-100: #11213a;
    --paper: #142744;
    --ink: #eaf1fa;
    --ink-soft: #a9bad2;
    --line: #26406a;
    --blue: #7db4f0;
    --blue-deep: #a9cdf6;
    --band: #ff8a4c;
    --band-ink: #1a0c03;
    --sun: #ffc35c;
    --sun-soft: rgba(255, 179, 71, 0.28);
    --focus: #ffb27f;
    --foot-bg: #060d18;
    --foot-fg: #eaf1fa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky-50: #0b1626;
  --sky-100: #11213a;
  --paper: #142744;
  --ink: #eaf1fa;
  --ink-soft: #a9bad2;
  --line: #26406a;
  --blue: #7db4f0;
  --blue-deep: #a9cdf6;
  --band: #ff8a4c;
  --band-ink: #1a0c03;
  --sun: #ffc35c;
  --sun-soft: rgba(255, 179, 71, 0.28);
  --focus: #ffb27f;
    --foot-bg: #060d18;
    --foot-fg: #eaf1fa;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--band); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band);
}
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--sky-50) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--band); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--sky-100); color: var(--ink); }
.nav a.btn { margin-left: 0.5rem; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--sky-50);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--band); color: var(--band-ink); }
.btn-primary:hover { background: var(--band); color: var(--band-ink); filter: brightness(1.06); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--sky-50); }
.nav a.btn-primary, .nav a.btn-primary:hover { background: var(--band); color: var(--band-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero: the sunrise ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px); }
.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -320px;
  background: radial-gradient(circle, var(--sun) 0%, var(--sun-soft) 28%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--band); }
.hero .lede strong { color: var(--ink); }
.hero-quote {
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  border-left: 3px solid var(--sun);
  padding-left: 1rem;
}
.hero-book { justify-self: center; max-width: 400px; filter: drop-shadow(0 30px 40px rgba(15, 36, 64, 0.28)); animation: rise 0.9s ease-out both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-book { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-book { max-width: 260px; order: -1; }
  .hero::before { right: -420px; top: -460px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }

/* Why section */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.why h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.why p { color: var(--ink-soft); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* How each day works: the real five-part structure of every reflection */
.day-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.day-steps li { position: relative; padding: 1.25rem 1.25rem 0 0; counter-increment: step; min-width: 0; }
.day-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--sky-50);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.day-steps li::after {
  content: "";
  position: absolute;
  top: calc(1.25rem + 20px);
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.day-steps li:last-child::after { display: none; }
.day-steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.day-steps p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) {
  .day-steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .day-steps li { padding: 0 0 0 56px; min-height: 48px; }
  .day-steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .day-steps li::after { top: 44px; bottom: -8px; left: 19px; right: auto; width: 2px; height: auto; }
}

/* What's inside: the book's ten parts (I–X) with reflection counts */
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
.parts li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.parts li > div { min-width: 0; }
.parts .num { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--band); }
.parts h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.parts p { color: var(--ink-soft); font-size: 0.95rem; }
.parts .count {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  background: var(--sky-100);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.9rem;
}
.parts-note { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .parts { grid-template-columns: 1fr; } }

/* Reflection cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.section-alt .card { background: var(--sky-50); }
.card .ref { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " \2192"; }

/* Free gifts */
.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 860px) { .gifts { grid-template-columns: 1fr; } }
.gift { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; }
.gift img { width: 120px; filter: drop-shadow(0 12px 18px rgba(15, 36, 64, 0.22)); }
.gift .stack { min-width: 0; }
.gift h3 { font-size: var(--step-1); }
.gift-for { font-size: var(--step--1); font-weight: 700; color: var(--band); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 480px) { .gift { grid-template-columns: 1fr; } .gift img { width: 110px; } }
.signup { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.25rem; }
.signup label { font-size: var(--step--1); font-weight: 600; }
.signup input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.signup .btn { align-self: flex-start; }
.signup-note { font-size: var(--step--1); color: var(--ink-soft); }
.signup-msg { font-size: var(--step--1); font-weight: 600; color: var(--blue); }

/* Author */
.author { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.author-photo { border-radius: var(--radius); overflow: hidden; }
.author-photo figcaption { font-size: var(--step--1); color: var(--ink-soft); padding-top: 0.5rem; }
.author .stack { min-width: 0; }
.author blockquote {
  margin: 0;
  font-family: var(--font-read);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
  padding: 1.25rem 1.5rem;
  background: var(--sky-100);
  border-radius: var(--radius);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0.5rem 0; list-style: none; }
.facts li { border-top: 2px solid var(--band); padding-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.facts strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); line-height: 1.1; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.video-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}
.video-link:hover { color: var(--ink); border-color: var(--band); }
.play { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--band); display: grid; place-items: center; }
.play::after { content: ""; border-left: 14px solid var(--band-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.video-link small { display: block; color: var(--ink-soft); }

/* Praise */
.praise { columns: 2 340px; column-gap: clamp(16px, 2.5vw, 28px); }
.quote {
  break-inside: avoid;
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote p { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.55; }
.quote footer { display: flex; align-items: center; gap: 0.85rem; }
.quote img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote cite a { color: var(--ink); text-decoration: none; }
.quote cite a:hover { color: var(--band); }
.quote small { color: var(--ink-soft); font-size: var(--step--1); display: block; line-height: 1.35; }

/* Speaking */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }

/* Journal list */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 700px) { .posts { grid-template-columns: 1fr; } }
.post { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 0.75rem; }
.post img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post h3 { font-size: var(--step-1); }
.post p { color: var(--ink-soft); }
.post:hover h3 { color: var(--band); }

/* Buy */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 760px) { .buy { grid-template-columns: 1fr; } }
.format { padding: 2rem; }
.format h3 { font-size: var(--step-2); }
.format ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.35rem; }
.format .btn { margin-top: auto; align-self: flex-start; }
.format.featured { border: 2px solid var(--band); }
.bulk-note { margin-top: 1.5rem; color: var(--ink-soft); }
.book-facts { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.book-facts div { min-width: 0; }
.book-facts dt { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band); }
.book-facts dd { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 860px) { .book-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .book-facts { grid-template-columns: 1fr; } }

/* ---------- Reading pages ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -240px;
  top: -340px;
  background: radial-gradient(circle, var(--sun-soft) 0%, transparent 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.page-head h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
.crumb { font-size: var(--step--1); font-weight: 600; }
.crumb a { text-decoration: none; }

.prose { font-family: var(--font-read); font-size: 1.2rem; line-height: 1.7; display: flex; flex-direction: column; gap: 1.1rem; padding-bottom: clamp(48px, 7vw, 88px); }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--band);
  margin-top: 1.25rem;
}
.prose h3 { font-size: var(--step-2); margin-top: 1rem; }
.prose ul { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose blockquote { margin: 0; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-style: italic; }
.prose .verse {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  background: var(--sky-100);
  border-radius: 999px;
  align-self: flex-start;
}
.prose .poem { white-space: pre-line; }
.prose .sign { font-style: italic; }
.journal-box { background: var(--sky-100); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.journal-box h2 { margin-top: 0; }
.cta-box {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cta-box p { font-weight: 600; }
.other-reflections { font-family: var(--font-body); font-size: var(--step-0); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-fg); padding-block: 48px 32px; }
.site-footer a { color: var(--foot-fg); }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-grid p { opacity: 0.85; }
.fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--foot-fg) 20%, transparent); font-size: var(--step--1); opacity: 0.8; display: flex; flex-direction: column; gap: 0.35rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
