/* ==========================================================================
   Kindorall — site styles
   Hand-written, no framework, no build step. System fonts only (no font
   requests, no third parties). Mobile-first.

   Brand colors (exact, from project instructions):
     Warm Ivory #F7F2E9  Ocean Mist #B8D5D1  Ocean Mist Deep #AED0CA (heart emblem only)
     Deep Teal #245D60  Walnut #805D46

   Measured contrast (WCAG 2.2): Teal on Ivory 6.7:1 · Walnut on Ivory 5.27:1 ·
   Teal on Mist 4.8:1 · Teal on white 7.47:1. Walnut on Mist is only 3.77:1,
   so Walnut is NEVER used for text on Ocean Mist. Mist-on-Ivory is 1.4:1, so
   Mist is used only for decoration, never as the sole boundary of a control.
   ========================================================================== */

:root {
  --ivory: #F7F2E9;
  --mist: #B8D5D1;           /* section backgrounds, soft accents */
  --mist-deep: #AED0CA;      /* signature heart emblem only (matches existing social branding) */
  --teal: #245D60;
  --walnut: #805D46;
  --white: #FFFFFF;
  --teal-hover: #1B4A4D;      /* darker Teal for hover/pressed only */

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --max-width: 68rem;
  --max-prose: 40rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--teal);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 2px; }

/* Visible keyboard focus everywhere (WCAG 2.4.7 / 2.4.11) */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.section--teal :focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--teal); color: var(--ivory); padding: .75rem 1.25rem;
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.prose { max-width: var(--max-prose); }
.center { text-align: center; }
.center .prose, .prose.center { margin-inline: auto; }

/* ---------- Header / navigation ---------- */
.site-header { background: var(--ivory); border-bottom: 1px solid rgba(36, 93, 96, .15); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-block: .4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal); min-height: 44px; }
.brand img { width: 2.6rem; height: auto; }
.brand-name { font-family: var(--font-heading); font-size: 1.55rem; letter-spacing: .01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; text-decoration: none; border-radius: var(--radius-pill); }
.site-nav a:hover { background: rgba(184, 213, 209, .55); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.site-nav .nav-cta { background: var(--teal); color: var(--ivory); }
.site-nav .nav-cta:hover { background: var(--teal-hover); color: var(--ivory); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.7rem; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--teal); background: var(--teal); color: var(--ivory);
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--ivory); }
.button--secondary { background: transparent; color: var(--teal); }
.button--secondary:hover { background: var(--mist); border-color: var(--teal); color: var(--teal); }
.button[disabled], .button[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.button-row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section--mist { background: var(--mist); }
.section--teal { background: var(--teal); color: var(--ivory); }
.section--teal h2, .section--teal h3, .section--teal a { color: var(--ivory); }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.accent-walnut { color: var(--walnut); }   /* Ivory/white backgrounds only */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 7rem); text-align: center; position: relative; overflow: hidden; }
.hero-heart { width: clamp(4.5rem, 14vw, 7rem); margin: 0 auto 1.5rem; display: block; }
.hero .eyebrow { color: var(--walnut); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.2rem; max-width: 36rem; margin: 0 auto 2rem; }

/* ---------- Cards ---------- */
.card-grid { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-md); padding: 1.5rem; height: 100%; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--walnut); }
.card-icon { width: 1.75rem; height: 1.75rem; margin-bottom: .8rem; color: var(--teal); }
.card-note { display: inline-block; margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--teal); }

.panel { background: var(--ivory); border-radius: var(--radius-md); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Philosophy ---------- */
.philosophy h2 { color: var(--walnut); }
.philosophy .prose { margin-inline: auto; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter-form { max-width: 30rem; margin: 1.8rem auto 0; text-align: left; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .optional { font-weight: 400; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 48px; padding: .6rem 1rem; font: inherit; color: var(--teal);
  background: var(--white); border: 2px solid var(--teal); border-radius: var(--radius-sm);
}
.field input:disabled { background: #EDE8DF; border-color: rgba(36, 93, 96, .55); cursor: not-allowed; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; margin-bottom: 1.2rem; }
.consent input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--teal); flex-shrink: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.1rem; font-size: .98rem; }
.form-status[hidden] { display: none; }
.form-status--inactive { background: var(--ivory); border: 2px dashed var(--teal); }
.form-status--error { background: var(--white); border: 2px solid var(--walnut); color: var(--teal); }
.form-status--success { background: var(--white); border: 2px solid var(--teal); }
.form-fineprint { font-size: .9rem; margin-top: 1rem; }
.newsletter-form .button { width: 100%; }

/* ---------- Social ---------- */
.social-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.social-list a { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1.2rem; border: 2px solid var(--teal); border-radius: var(--radius-pill); text-decoration: none; background: transparent; font-weight: 600; }
.social-list a:hover { background: var(--mist); }
.social-list svg { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(2.5rem, 7vw, 5rem) 1rem; }
.page-body { padding-block: 1rem var(--space-section); }
.page-body h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.page-body ul { padding-left: 1.3rem; }
.page-body li { margin-bottom: .4rem; }
.draft-banner { background: var(--white); border: 2px solid var(--walnut); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.value-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.value-list li { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 0; }
.value-list strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; }
.status-note { display: inline-block; background: var(--mist); border-radius: var(--radius-pill); padding: .15rem .8rem; font-size: .88rem; font-weight: 600; }
.unresolved { background: var(--white); border-left: 6px solid var(--walnut); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid rgba(36, 93, 96, .2); padding-block: 3rem 2.5rem; text-align: center; }
.site-footer .brand { margin-bottom: .6rem; }
.footer-tagline { font-family: var(--font-heading); max-width: 30rem; margin: 0 auto 1.5rem; }
.footer-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { font-size: .88rem; margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 36rem) {
  .site-header .container { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .button, .social-list a, .card { border: 2px solid CanvasText; }
}
@media print { .site-header, .site-nav, .newsletter-form { display: none; } body { background: #fff; } }

.card-grid + .button-row { margin-top: 2.5rem; }

/* After a confirmed signup, show only the confirmation message */
.newsletter-form.is-complete .field,
.newsletter-form.is-complete .consent,
.newsletter-form.is-complete .honeypot,
.newsletter-form.is-complete .button,
.newsletter-form.is-complete .form-fineprint { display: none; }
.newsletter-form.is-complete .form-status { margin-bottom: 0; text-align: center; }
.form-status:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
