/* Lead 17 sample: home page for a nutrition counseling and consulting practice. Mobile first (390), then 768, 1024, 1280.
   Tokens: copied from ../brand.css (read from the client's reference site, sources there and in ../source/READ-LOG.md).
   Shell kept from the sitemaker exemplar (see ../NOTES.md): skip link, sticky header with
   a phone menu, the navigation kit wiring, form drafts, the inline storage notice, back to top, one band per section,
   the pause-motion button. No glow, no card borders, no hover lift (LOOK-02..04). Light page only (color-scheme). */

:root {
  --paper: #FBFAF8; --white: #FFFFFF;
  --ink: #2B2B2B; --ink-strong: #1F1F1F; --muted: #5C5C5C;
  --charcoal: #2B2B2B; --on-dark: #FBFAF8; --on-dark-muted: #CFCBC4;
  --action: #2B2B2B; --action-ink: #FFFFFF; --action-line: #2B2B2B; --action-hover: #1F1F1F;
  --sage: #829481; --blue: #82A4C7; --rose: #BA817F; --apricot: #EDA365;
  --apricot-deep: #8A4E1C; --blue-deep: #3D6A96; --rose-deep: #94443F; --sage-deep: #4F6650;
  --field-line: #6B6B6B;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-label: Arial, Helvetica, sans-serif;
  --font-body: Verdana, Tahoma, "Segoe UI", system-ui, sans-serif;
  --title-track: -0.02em; --label-track: 0.2em; --body-lh: 1.75;
  --r: 10px; --wrap: 1200px;
  --shadow: 0 10px 28px -16px rgba(43, 43, 43, .28);
  --hdr-h: 64px;
  color-scheme: light;
  /* navigation kit colours */
  --nk-bg: #2B2B2B; --nk-ink: #FBFAF8; --nk-accent: #2B2B2B; --nk-accent-ink: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--body-lh);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: var(--title-track); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* no jumps: the sticky header is cleared by scroll-margin on the targets, never scroll-padding on html (UID-005) */
main section[id], main [id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--action-ink); padding: 12px 18px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* the one sample label, near the top */
.sample-note { padding: 8px 20px; text-align: center; background: var(--apricot); color: var(--ink); font-size: 1rem; line-height: 1.5; font-weight: 700; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-label); font-size: .875rem; font-weight: 700; letter-spacing: var(--label-track); text-transform: uppercase; line-height: 1.6; margin-bottom: 14px; }
.eyebrow--apricot { color: var(--apricot-deep); }
.eyebrow--blue { color: var(--blue-deep); }
.eyebrow--rose { color: var(--rose-deep); }
h1 { font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.375rem); line-height: 1.08; margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 1.45rem + 2.2vw, 2.875rem); line-height: 1.12; }
h3 { font-size: 1.375rem; line-height: 1.25; }
.lede { font-size: 1.1875rem; line-height: 1.65; max-width: 40ch; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- buttons: ONE action colour (their ink primary), one outline (their secondary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--font-title); font-size: 1.125rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-outline { background: transparent; border-color: var(--action-line); color: var(--ink); }
.btn-outline:hover { background: rgba(43, 43, 43, .06); }

/* ---------- header (exemplar shell, their colours) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid rgba(43, 43, 43, .1); }
.hdr { display: flex; align-items: center; gap: 12px; min-height: var(--hdr-h); position: relative; }
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; margin-right: auto; font-family: var(--font-title); font-size: 1.25rem; line-height: 1.2; letter-spacing: var(--title-track); color: var(--ink); text-decoration: none; }
.hdr-cta { display: none; }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: transparent; border: 1.5px solid rgba(43, 43, 43, .35); color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
html:not(.js) .menu-btn { display: none; }

/* phone menu: a white panel under the header */
.nav { display: none; }
html.js .nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  padding: 10px; border-radius: var(--r); background: var(--white);
  box-shadow: 0 24px 60px -24px rgba(43, 43, 43, .45);
  max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto;
}
html:not(.js) .nav { display: block; width: 100%; order: 5; padding-bottom: 10px; }
html:not(.js) .hdr { flex-wrap: wrap; }
.nav-list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.nav-list a:hover { background: rgba(43, 43, 43, .06); }
.nav-extra { padding: 10px 4px 4px; }

/* "On this page" (navigation kit) inside the header menu */
.nav-list .nk-jump-li { position: relative; }
.nk-jump.nav-sub summary { min-height: 48px; padding: 0 14px; border-radius: var(--r); color: var(--ink); font-weight: 400; display: flex; }
.nk-jump.nav-sub summary:hover { background: rgba(43, 43, 43, .06); }
.nk-jump.nav-sub .nk-jump-list { margin: 4px 0 6px 12px; padding: 6px; background: var(--paper); border-radius: var(--r); }
.nk-jump.nav-sub .nk-jump-list a { min-height: 44px; font-size: 1rem; }
/* closed = no boxes at all (Chromium still lays out a closed <details>' content for getBoundingClientRect) */
.nk-jump.nav-sub:not([open]) .nk-jump-list { display: none; }

/* the full header bar from 1120 px: below that the menu button (fallback faces on some systems run wide) */
@media (min-width: 1120px) {
  :root { --hdr-h: 76px; }
  .hdr { gap: 20px; }
  .brand { font-size: 1.375rem; }
  .menu-btn { display: none; }
  .nav, html:not(.js) .nav { display: block; width: auto; order: 0; padding: 0; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list a, .nk-jump.nav-sub summary { min-height: 44px; padding: 0 12px; font-size: 1rem; }
  .nav-extra { display: none; }
  .hdr-cta { display: inline-flex; min-height: 46px; padding: .55rem 1.2rem; }
  .nk-jump.nav-sub .nk-jump-list { position: absolute; top: calc(100% + 10px); right: 0; width: 240px; margin: 0; padding: 8px; background: var(--white); box-shadow: 0 24px 60px -24px rgba(43, 43, 43, .45); z-index: 5; }
}

/* ---------- sections: one band each, never two neighbours alike (LOOK-06, LOOK-21) ---------- */
.sec { position: relative; isolation: isolate; padding: 72px 0; }
.sec > .wrap { position: relative; z-index: 1; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
@media (min-width: 1024px) { .sec { padding: 120px 0; } }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head .lede { margin-top: 14px; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 48px; } }

/* 1. hero: cream + a moving dot field in the margins */
.hero { background: var(--paper); padding: 56px 0; --bg-dot: rgba(43, 43, 43, .10); --bg-accent-1: rgba(130, 148, 129, .75); --bg-accent-2: rgba(237, 163, 101, .85); }
@media (min-width: 768px) { .hero { padding: 80px 0; } }
@media (min-width: 1024px) { .hero { padding: 104px 0; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-sub { color: var(--muted); max-width: 46ch; margin-top: 12px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btns .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero-btns .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; } }

/* the hero picture: flat shapes in their four pastels and one crisp ink line (no photo, no person) */
.hero-art { position: relative; width: min(100%, 400px); height: 260px; margin: 0 auto; }
@media (min-width: 1024px) { .hero-art { width: 100%; height: 440px; } }
.ha { position: absolute; display: block; }
.ha-arch { left: 6%; top: 4%; width: 46%; height: 86%; background: var(--sage); border-radius: 999px 999px var(--r) var(--r); }
.ha-sun { right: 8%; top: 4%; width: 32%; aspect-ratio: 1; background: var(--apricot); border-radius: 50%; }
.ha-arch2 { left: 44%; bottom: 10%; width: 26%; height: 50%; background: var(--blue); border-radius: 999px 999px var(--r) var(--r); }
.ha-half { right: 2%; bottom: 10%; width: 34%; aspect-ratio: 2 / 1; background: var(--rose); border-radius: 999px 999px 0 0; }
.ha-ring { left: 0; bottom: 18%; width: 20%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; }
.ha-line { left: 0; right: 0; bottom: 10%; height: 2px; background: var(--ink); }

/* 2. services: white band, four cream cards with a soft shadow */
.services { background: var(--white); }
.card-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.card-ico, .tile-ico { width: 44px; height: 44px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-apricot { color: var(--apricot-deep); }
.ico-blue { color: var(--blue-deep); }
.ico-rose { color: var(--rose-deep); }
.ico-sage { color: var(--sage-deep); }

/* 3. about: their sage as a full band; text one step darker for AA (ink on sage is 4.38:1) */
.about { background: var(--sage); color: var(--ink-strong); }
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.about-photo { width: min(100%, 340px); aspect-ratio: 4 / 5; margin: 0 auto; display: grid; place-items: center; background: var(--paper); border-radius: 999px 999px var(--r) var(--r); }
.about-photo-text { padding: 0 24px; text-align: center; font-family: var(--font-label); font-size: .875rem; font-weight: 700; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ink); }
.about-copy p + p { margin-top: 16px; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { max-width: 60ch; }
.about-cred { border-left: 2px solid var(--ink-strong); padding-left: 14px; font-weight: 700; }
.about :focus-visible { outline-color: var(--ink-strong); }

/* 4. expertise: cream + slow stream lines in the margins; six white tiles */
.expertise { background: var(--paper); --bg-dot: rgba(43, 43, 43, .09); --bg-accent-1: rgba(130, 164, 199, .8); --bg-accent-2: rgba(186, 129, 127, .7); }
.tile-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.tile-ico { grid-row: span 2; }
.tile h3 { font-size: 1.25rem; grid-column: 2; }
.tile p { grid-column: 2; }

/* 5. contact: their dusty blue as a full band, quiet rails in the margins; the form on a white card */
.contact { background: var(--blue); color: var(--ink); --bg-dot: rgba(251, 250, 248, .35); --bg-accent-1: rgba(251, 250, 248, .85); --bg-accent-2: rgba(43, 43, 43, .3); }
.contact-grid { display: grid; gap: 32px; grid-template-areas: "head" "form" "next"; }
.contact-head { grid-area: head; }
.form-card { grid-area: form; }
.contact-next { grid-area: next; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head form" "next form"; column-gap: 64px; row-gap: 40px; align-items: start; }
}
.contact-head h2 { margin-bottom: 16px; }
.form-card { padding: 24px 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-line); border-radius: var(--r);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--rose-deep); border-width: 2px; }
.field-err { margin-top: 8px; color: var(--rose-deep); font-size: 1rem; font-weight: 700; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cform .btn-block { margin-top: 8px; }
.form-note { margin-top: 14px; font-size: 1rem; color: var(--muted); }
.form-done:focus { outline: none; }
.done-ico { width: 48px; height: 48px; fill: none; stroke: var(--sage-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 1.625rem; margin: 14px 0 10px; }
.form-done p { margin-bottom: 20px; }
/* the navigation kit's notes inside the white form card keep dark text */
.form-card .nk-consent, .form-card .nk-draft { color: var(--ink); }
.form-card .nk-no { background: rgba(43, 43, 43, .08); color: var(--ink); }
.next-title { font-family: var(--font-title); font-size: 1.375rem; letter-spacing: var(--title-track); margin-bottom: 16px; }
.next-steps { display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); font-family: var(--font-title); font-size: 1.25rem; }

/* ---------- footer: their charcoal band ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark); padding: 64px 0; }
@media (min-width: 1024px) { .site-footer { padding: 80px 0; } }
.site-footer :focus-visible { outline-color: var(--apricot); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.foot-name { font-family: var(--font-title); font-size: 1.5rem; letter-spacing: var(--title-track); margin-bottom: 8px; }
.site-footer p { color: var(--on-dark-muted); }
.site-footer .foot-name { color: var(--on-dark); }
.foot-title { font-family: var(--font-label); font-size: .875rem; font-weight: 700; letter-spacing: var(--label-track); text-transform: uppercase; margin-bottom: 8px; }
.site-footer .foot-title { color: var(--apricot); }
.foot-links { display: grid; gap: 2px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(251, 250, 248, .2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 1rem; }
/* the storage notice (navigation kit) sits in the footer: its yes button turns cream on the dark band */
.site-footer .nk-consent { margin-top: 32px; color: var(--on-dark); }
.site-footer .nk-consent p { color: var(--on-dark); }
.site-footer .nk-yes { background: var(--paper); color: var(--ink); }

/* pause / play motion (WCAG 2.2.2): in the footer on phones and tablets, fixed bottom left on wide screens */
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(251, 250, 248, .4); background: transparent; color: var(--on-dark); font-family: var(--font-body); font-size: .9375rem; font-weight: 700; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.mt-ico { width: 14px; height: 14px; position: relative; flex: none; }
.mt-ico::before, .mt-ico::after { content: ""; position: absolute; top: 1px; width: 4px; height: 12px; border-radius: 1px; background: var(--apricot); }
.mt-ico::before { left: 2px; } .mt-ico::after { right: 2px; }
.motion-toggle.is-paused .mt-ico::before { left: 3px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--apricot); top: 0; }
.motion-toggle.is-paused .mt-ico::after { display: none; }
@media (min-width: 1280px) {
  .motion-toggle { position: fixed; left: 14px; bottom: 16px; z-index: 95; width: 44px; padding: 0; justify-content: center; background: var(--charcoal); border-color: rgba(251, 250, 248, .3); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
  .motion-toggle .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle:hover, .motion-toggle:focus-visible { width: auto; padding: 0 16px 0 14px; }
  .motion-toggle:hover .mt-label, .motion-toggle:focus-visible .mt-label { position: static; width: auto; height: auto; clip: auto; }
}

/* ---------- navigation kit: their colours (the kit file itself is unchanged) ---------- */
.nk-progress i { background: var(--apricot); }
.nk-toast .nk-go { background: var(--paper); color: var(--ink); }
@media (min-width: 1280px) { .nk-rail a[aria-current]::after { background: var(--apricot-deep); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .bars, .bars::before, .bars::after { transition: none; }
}
