/* ReadyChapter design system — per /product/_build-spec.md brand system.
   Calm by design: no red, no alarm colors, no urgency patterns.
   Palette: Slate #33506B · Ink #1F2933 · Sand #F5F1EA · Sage #7C9885 · Mist #D9E2EC */

:root {
  --slate: #33506B;
  --slate-dark: #26405a;
  --ink: #1F2933;
  --sand: #F5F1EA;
  --sage: #7C9885;
  --sage-text: #4E6B58;   /* darkened sage for text — meets WCAG AA on sand/white */
  --mist: #D9E2EC;
  --white: #FFFFFF;
  --serif: Georgia, "Source Serif Pro", "Times New Roman", serif;
  --sans: "Segoe UI", "Source Sans Pro", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--slate);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.625rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 1.75em; }
h3 { font-size: 1.1875rem; margin-top: 1.5em; }

p, ul, ol { margin: 0 0 1em; }

a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--slate-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Layout */
.container { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 60rem; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; color: var(--slate); }
.brand strong { font-weight: 700; }
.brand .brand-sub { font-size: 0.8125rem; font-family: var(--sans); color: var(--sage-text); display: block; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--slate);
  padding: 0.25rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--mist); padding: 3.5rem 0 3rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero .tagline { font-family: var(--serif); font-size: 1.3125rem; color: var(--sage-text); margin-bottom: 1.25em; }
.hero p { max-width: 38rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.75em 1.5em;
  border: 2px solid var(--slate);
  cursor: pointer;
}
.btn--primary { background: var(--slate); color: var(--white); }
.btn--primary:hover { background: var(--slate-dark); border-color: var(--slate-dark); color: var(--white); }
.btn--secondary { background: transparent; color: var(--slate); }
.btn--secondary:hover { background: var(--mist); color: var(--slate-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

/* Sections & cards */
main { padding: 2.5rem 0 3.5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.rule { border: 0; border-top: 3px solid var(--sage); width: 4rem; margin: 2rem 0; }

/* Disclaimer / notice boxes */
.notice {
  background: var(--white);
  border: 1px solid var(--mist);
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}
.notice p:last-child { margin-bottom: 0; }

/* Checklists */
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5em; }
ul.checklist li::before { content: "✓"; color: var(--sage-text); position: absolute; left: 0; font-weight: 700; }

/* Forms (Kit placeholder) */
.signup-form {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 1.75rem 0;
  max-width: 30rem;
}
.signup-form label { display: block; font-weight: 600; font-size: 0.9375rem; margin: 1rem 0 0.3rem; }
.signup-form label:first-of-type { margin-top: 0; }
.signup-form .optional { font-weight: 400; color: var(--sage-text); }
.signup-form input, .signup-form select {
  width: 100%;
  font: inherit;
  padding: 0.6em 0.75em;
  border: 1px solid var(--slate);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.signup-form button { margin-top: 1.25rem; }
.signup-form .form-note { font-size: 0.875rem; color: var(--sage-text); margin: 0.75rem 0 0; }

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--white);
  padding: 2.25rem 0;
  margin-top: 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--white); }
.site-footer .footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.5rem;
  padding: 0;
}

/* Utility */
.muted { color: var(--sage-text); }
.small { font-size: 0.9375rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
