/* OT Homeschool Mom — production styles. Warm, trustworthy, mobile-first. WCAG AA contrast targets. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-variable.woff2") format("woff2"),
       url("../assets/fonts/fraunces-variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-variable.woff2") format("woff2"),
       url("../assets/fonts/source-sans-3-variable.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-italic-variable.woff2") format("woff2"),
       url("../assets/fonts/source-sans-3-italic-variable.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F6F1E8;
  --bg-elevated: #FFFAF4;
  --bg-sage: #E6EEDC;
  --bg-sage-deep: #D8E4C8;
  --bg-forest: #24331E;
  --bg-forest-soft: #2C3B24;
  --ink: #1F1B16;
  --ink-soft: #4A453E;
  --muted: #5E584E;
  --forest: #2C3B24;
  --moss: #3F532F;
  --sage-line: #C5D3B3;
  --clay: #7A3E22;
  --clay-soft: #F3E3B8;
  --confirm-bg: #F3E3B8;
  --confirm-ink: #5A4510;
  --confirm-line: #D9BC6A;
  --rule: #E0D8CA;
  --focus: #2C3B24;
  --danger: #8A2B1E;
  --ok: #23401C;
  --ok-bg: #E4EED8;

  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --wrap: 72rem;
  --wrap-narrow: 42rem;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 10px 30px rgba(36, 51, 30, 0.08);
  --header-h: 4.25rem;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.02rem + 0.5vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.15rem, 1.5rem + 2.8vw, 3.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-underline-offset: 0.15em; }
a:hover { color: var(--forest); }
p, figure, ul, ol, blockquote { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); letter-spacing: 0; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, var(--wrap-narrow)); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--bg-forest);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { top: 0.75rem; }



/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  flex-shrink: 0;
}
.wordmark:hover { color: var(--forest); }
.wordmark .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.wordmark .sub {
  font-size: 0.75rem;
  color: var(--moss);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-sage); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--forest);
}
.site-nav a:not(.btn)[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--forest);
}
.site-nav a.btn[aria-current="page"] {
  color: #FFFAF4;
  box-shadow: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.15rem;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) {
    padding: 0.7rem 0.4rem;
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .btn { margin-top: 0.5rem; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-forest);
  color: #FFFAF4;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--bg-forest);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #314826; border-color: #314826; color: #FFFAF4; }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--bg-sage); color: var(--forest); }
.btn-light {
  background: #FFFAF4;
  color: var(--forest);
  border-color: #FFFAF4;
}
.btn-light:hover { background: var(--bg-sage); border-color: var(--bg-sage); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.btn:focus-visible { outline-color: #C5D3B3; }

/* Hero */
.hero {
  padding: var(--space-7) 0 var(--space-8);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 800px) {
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
.eyebrow {
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.75rem;
}
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; }
.hero-note {
  margin-top: 1.25rem;
  color: var(--moss);
  font-weight: 600;
}
.photo-frame {
  background: var(--bg-elevated);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-frame figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* Sections */
.section { padding: var(--space-8) 0; }
.section-sage { background: var(--bg-sage); }
.section-forest { background: #314626; color: #F6F1E8; }
.section-forest h2, .section-forest h3 { color: #FFFAF4; }
.section-forest p, .section-forest li { color: #E8E2D6; }
.section-head { max-width: 40rem; margin-bottom: var(--space-6); }
.section-head p { color: var(--ink-soft); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  height: 100%;
}
.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--forest);
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.card a.stretched { text-decoration: none; color: inherit; display: block; }
.card a.stretched:hover h3 { color: var(--clay); }

/* Who / creds */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
}
.cred-list li:last-child { border-bottom: 1px solid var(--rule); }
.cred-list dt, .cred-list .label { font-weight: 650; color: var(--moss); }
@media (max-width: 520px) {
  .cred-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Testimonial */
blockquote.testimonial {
  margin: 0;
  background: var(--bg-elevated);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.5rem 1.35rem;
}
blockquote.testimonial p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
blockquote.testimonial footer {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-forest);
  color: #FFFAF4;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

/* FAQ */
.faq-list { max-width: 46rem; }
.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1rem;
  margin-bottom: 0.65rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--moss);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 0 1rem; color: var(--ink-soft); }

/* Forms */
form.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 38rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.field > .hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-top: 0.25rem; }
label .hint { display: inline; color: var(--muted); font-weight: 400; font-size: 0.9rem; margin: 0; }
.req { color: var(--clay); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #C9C1B2;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44, 59, 36, 0.2);
  outline: none;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fallback { margin-top: 1.25rem; color: var(--ink-soft); }

/* Resources list */
.resource-list { display: grid; gap: 1rem; }
.resource-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.resource-item:hover { border-color: var(--sage-line); box-shadow: var(--shadow); }
.resource-item h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.resource-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 620px) {
  .resource-item { grid-template-columns: 1fr; }
}

/* Article */
.article { padding: var(--space-7) 0 var(--space-8); }
.article .meta { color: var(--muted); margin-bottom: 1.5rem; }
.article h2 { margin-top: 2rem; }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: #1A2416;
  color: #E8E2D6;
  padding: var(--space-7) 0 var(--space-5);
  margin-top: 0;
  border-top: 1px solid rgba(255,250,244,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #F6F1E8; }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  color: #FFFAF4;
  font-size: 1.05rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.verse {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: #FFFAF4;
  margin-bottom: 0.35rem;
}
.verse-ref { font-size: 0.9rem; color: #C9D6B8; margin-bottom: 1rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #C9D6B8;
}

/* Page title band */
.page-hero {
  padding: var(--space-7) 0 var(--space-6);
  background: linear-gradient(180deg, var(--bg-sage) 0%, var(--bg) 100%);
}
.page-hero h1 { max-width: 20ch; }

/* Tags / pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.pill {
  background: var(--bg-sage);
  color: var(--forest);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.pill:hover { background: var(--bg-sage-deep); color: var(--forest); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .btn-row { margin-top: 1.25rem; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.ink-soft { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Print */
@media print {
  .site-header, .site-footer .footer-grid, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

.btn-ghost {
  background: transparent;
  color: #FFFAF4;
  border-color: #FFFAF4;
}
.btn-ghost:hover {
  background: rgba(255,250,244,0.12);
  color: #FFFAF4;
  border-color: #FFFAF4;
}

/* Keep in-page targets and form status out from under the sticky header */
:target, [id] {
  scroll-margin-top: 5.75rem;
}
