@font-face{font-family:"Fraunces";font-style:normal;font-weight:400 700;font-display:swap;src:url("/fonts/fraunces-latin.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url("/fonts/inter-latin.woff2") format("woff2");}
/* =========================================================================
   The Real Life Homeschool  |  styles.css
   Warm, honest, kitchen-table, southern Utah. No highlight reel.
   Mobile-first. System font stacks only. Accessibility is first-class.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Real Life Homeschool brand palette (from /brand guide) */
  --bg:          #F4EEE4;   /* Warm Paper */
  --surface:     #FBF7EF;   /* Cream Card */
  --ink:         #22333B;   /* Ink Slate: headlines, body, nav */
  --ink-soft:    #6B6357;   /* Stone: muted text (~5.1:1 on paper, AA) */
  --accent:      #B44D2E;   /* Brick Clay: decorative + button fill */
  --accent-strong:#9A3F24;  /* Brick strong: text + strong (AA on paper) */
  --accent-hover:#82331D;   /* Brick hover / pressed */
  --accent-tint: #F3E7D6;   /* warm brick tint (hero wash) */
  --sage:        #4A5942;   /* Moss: secondary, focus, links */
  --sage-dark:   #3B4735;   /* Moss dark */
  --marigold:    #D9A21B;   /* Marigold: highlight accent */
  --border:      #E1D8C8;   /* Sand Line */

  --serif: "Fraunces", "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --measure: 68ch;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --radius: 12px;
  --radius-btn: 8px;
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;      /* 18px min */
  line-height: 1.6;
}

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

a { color: var(--sage-dark); }
a:hover { color: var(--ink); }

.sans { font-family: var(--sans); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--s2);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--s2); max-width: var(--measure); }

/* Accessibility: focus + skip link */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-family: var(--sans);
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* Anchor targets clear the sticky nav */
:target { scroll-margin-top: 88px; }
#guide, #utah { scroll-margin-top: 88px; }

/* ---- Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--s3);
  padding-right: var(--s3);
}
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .section-intro,
.center p { margin-left: auto; margin-right: auto; }

/* =========================================================================
   NAV (sticky)
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.94);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  margin-right: auto;
}
.brand span { color: var(--accent-strong); }
.brand:hover { color: var(--ink); }

.nav nav {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.nav nav a {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
}
.nav nav a:hover { color: var(--accent-strong); }

.nav-cta { font-family: var(--sans); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  order: 3;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-btn);
  padding: 14px 26px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover,
.btn:active { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent-strong);
}
.btn.ghost:hover { background: var(--accent-strong); color: #fff; }

.btn-sm { font-size: 1rem; padding: 12px 20px; }

.btn-yt { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-yt:hover { background: var(--sage); border-color: var(--sage); }

/* =========================================================================
   HERO (PRIMARY)
   ========================================================================= */
.hero {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 100%);
  padding-top: var(--s4);
  padding-bottom: var(--s5);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: var(--s2);
}

.hero h1 { margin-bottom: var(--s3); }

.hero-lede {
  margin-bottom: var(--s3);
  color: var(--ink);
  font-size: 1.0625rem;
}
.hero-lede strong { color: var(--ink); }

.hero-trust {
  margin-top: var(--s2);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.hero-intro {
  margin-top: var(--s3);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* Lead-magnet visual anchor (decorative booklet mock) */
.guide-cover {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 210px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(43, 38, 34, 0.16);
  padding: 16px;
  margin: 0 0 var(--s3);
  font-family: var(--sans);
}
.guide-cover-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.guide-cover-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.guide-cover-sub { font-size: 0.75rem; color: var(--ink-soft); }

.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(43, 38, 34, 0.12);
  width: 100%;
  object-fit: cover;
}

/* ---- Opt-in forms (hero + band share this) -------------------------- */
.optin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
  max-width: 480px;
}
.optin .field { margin-bottom: var(--s2); }
.optin label {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.optin input[type="email"] {
  width: 100%;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
}
.optin input[type="email"]:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}
.optin input[aria-invalid="true"] {
  border-color: var(--accent-hover);
  background: #FCEEE8;
}
.optin .btn { width: 100%; }

.reassure {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: var(--s2) 0 0;
}
.reassure.small { font-size: 0.875rem; }

.form-status {
  font-family: var(--sans);
  font-size: 0.95rem;
  margin: var(--s1) 0 0;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--sage-dark); font-weight: 600; }
.form-status.is-error {
  color: var(--accent-strong);
  font-weight: 600;
}
.form-status.is-error::before { content: "\26A0  "; }  /* warning sign + text, not color-only */

/* =========================================================================
   GENERIC SECTION (used by tools.html: section.block)
   ========================================================================= */
section.block {
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin-bottom: var(--s3);
}

/* Tools page: intro + affiliate disclosure */
.disclosure {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: var(--s2) var(--s3);
  max-width: var(--measure);
  margin-bottom: var(--s4);
}

/* Tools page: room/category heading */
.roomcat {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin: var(--s4) 0 var(--s2);
  padding-bottom: var(--s1);
  border-bottom: 2px solid var(--border);
}

/* Tools page: individual tool row */
.tool {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  margin-bottom: var(--s2);
}
.tool .num {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent-strong);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.tool > span:nth-child(2) { flex: 1 1 auto; }
.tool .name { font-weight: 700; color: var(--ink); }
.tool .why { color: var(--ink-soft); }
.tool a.get {
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-strong);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius-btn);
}
.tool a.get:hover { color: #fff; background: var(--accent-strong); }

/* =========================================================================
   HOMEPAGE: WHAT YOU'LL FIND HERE (tiles)
   ========================================================================= */
.preview { background: var(--bg); }
.preview h2 { text-align: center; margin-bottom: var(--s4); }

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
}
.tile-icon {
  display: inline-block;
  font-size: 1.75rem;
  color: var(--sage-dark);
  margin-bottom: var(--s1);
  line-height: 1;
}
.tile h3 { margin-bottom: var(--s1); }
.tile p { color: var(--ink-soft); margin-bottom: 0; }

/* =========================================================================
   MID-PAGE EMAIL BAND (PRIMARY, full-bleed accent tint)
   ========================================================================= */
.band {
  background: var(--accent-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: center;
}
.band-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(43, 38, 34, 0.12);
  width: 100%;
  object-fit: cover;
}
.band-sub { color: var(--ink-soft); font-size: 1.125rem; }
.band-sub strong { color: var(--ink); }

/* =========================================================================
   TOOLS PROMO (SECONDARY, no accent band)
   ========================================================================= */
.tools-promo { background: var(--bg); }
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin: var(--s3) 0 var(--s4);
}
.cat-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(43, 38, 34, 0.06);
}
.cat-tile:hover { color: var(--accent-strong); }

/* =========================================================================
   UTAH CALLOUT (segmented bonus, muted, smaller)
   ========================================================================= */
.utah-wrap { background: var(--bg); padding-top: var(--s4); padding-bottom: var(--s4); }
.utah-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
  max-width: 620px;
  margin: 0 auto;
}
.utah-card h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.utah-eyebrow { color: var(--sage-dark); margin-bottom: var(--s1); }
.utah-copy { font-size: 1.0625rem; color: var(--ink); margin-bottom: var(--s3); }

.optin-inline {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100%;
}
.optin-inline .btn { width: auto; }

/* =========================================================================
   YOUTUBE BLOCK (SECONDARY, calm)
   ========================================================================= */
.yt { background: var(--bg); }
.yt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: center;
}
.yt-copy .section-intro { margin-bottom: var(--s3); }

.yt-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(43, 38, 34, 0.12);
}
.yt-thumb img { width: 100%; object-fit: cover; }
.yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(193, 95, 60, 0.92);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  padding-left: 6px;
}
.yt-thumb:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* =========================================================================
   CLOSING
   ========================================================================= */
.closing { background: var(--accent-tint); border-top: 1px solid var(--border); }
.closing h2 { margin-bottom: var(--s2); }
.closing-cta {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
}
.closing-cta a { color: var(--accent-strong); text-decoration: none; }
.closing-cta a:hover { text-decoration: underline; }

/* =========================================================================
   FOOTER (3 columns + trust bar)
   ========================================================================= */
footer {
  background: var(--ink);
  color: #EFE7DC;
  padding-top: var(--s5);
  padding-bottom: var(--s4);
  font-family: var(--sans);
}
footer a { color: #EFE7DC; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

.footer-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  max-width: 720px;
  margin: 0 auto var(--s4);
  text-align: center;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-col h3 {
  color: #fff;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  margin-bottom: var(--s2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s1); }
.footer-col p { margin-bottom: var(--s1); max-width: none; }
.footer-note { color: #C9BEAE; font-size: 0.9375rem; }

.footer-bar { padding-top: var(--s3); }
.footer-bar .tagline {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.0625rem;
  margin-bottom: var(--s1);
}
.footer-bar .legal {
  color: #C9BEAE;
  font-size: 0.875rem;
  max-width: none;
  margin: 0;
}
.footer-bar .legal a { color: #C9BEAE; }

/* Tools.html legacy footer shape (footer > div links) */
footer > .wrap > div a,
footer > div a { margin-right: var(--s3); }

/* Left-aligned on desktop (sits beside the YouTube thumb); centers on mobile below */
.center-mobile { text-align: left; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 720px) {
  .nav .wrap { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { order: 2; margin-left: auto; padding: 10px 16px; min-height: 44px; }

  .nav nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .nav nav.is-open { max-height: 320px; padding-bottom: var(--s2); }
  .nav nav a {
    padding: 14px 4px;
    border-top: 1px solid var(--border);
  }

  .cat-tiles { grid-template-columns: 1fr; }

  .center-mobile { text-align: center; }

  .tool { flex-wrap: wrap; }
  .tool a.get { align-self: flex-start; }
  :target, #guide, #utah { scroll-margin-top: 76px; }
}

@media (min-width: 721px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .band-inner { grid-template-columns: 0.85fr 1.15fr; }
  .band-media { order: 1; }
  .band-copy { order: 2; }
  .yt-inner { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
/* Planner promo (added in integration) */
.planner-promo { background: var(--band, #f3ead9); }
.planner-promo h2 { margin-top: 4px; }
.btn-ghost { background: transparent; border: 2px solid var(--accent, #b5522f); color: var(--accent-dark, #7d3315); }
.btn-ghost:hover { background: #fff; }
.form-status.is-success .btn-sm { margin-top: 8px; }
