/* "One Line" (Option C, chosen 2026-11-16). Nutmeg is drawn in one unbroken line, and so is the site:
   on the home page a black line (the logo's own ink, owners' choice 2026-11-17) leaves her tail and walks past the three promises; on every other page
   she stands at the start of a line that runs above the heading. Compact vertical rhythm throughout.
   Same fonts (Baskervville + Jost) and colours as before; true black ink like the logo. */
:root {
  --bg: #ffffff;
  --surface: #f5f2f0;
  --ink: #000000;
  --muted: #6b625c;
  --line: #e2dcd7;
  --accent: #6b4328;
  --accent-ink: #ffffff;
  --footer-bg: #000000;
  --footer-fg: #ebe5e0;
  --footer-soft: #b9b0aa;
  --logo-filter: none;
  --font-display: "Baskervville", "Libre Baskerville", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141110; --surface: #1e1a18; --ink: #f3eeea; --muted: #a59c96; --line: #352f2c;
    --accent: #c99a76; --accent-ink: #141110; --footer-bg: #0c0a09; --footer-fg: #d9d1cb; --footer-soft: #a59c96;
    --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141110; --surface: #1e1a18; --ink: #f3eeea; --muted: #a59c96; --line: #352f2c;
  --accent: #c99a76; --accent-ink: #141110; --footer-bg: #0c0a09; --footer-fg: #d9d1cb; --footer-soft: #a59c96;
  --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.logo { filter: var(--logo-filter); display: block; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 12px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 10px; }
.brand { display: block; line-height: 0; }
.brand .logo-full { height: 88px; width: auto; }
.brand .logo-icon { height: 52px; width: auto; display: none; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
nav a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; box-shadow: inset 0 -2px 0 transparent; }
nav a:hover { box-shadow: inset 0 -2px 0 var(--line); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
nav a.pill { background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 4px; box-shadow: none; }
nav a.pill:hover { filter: brightness(1.1); }
@media (max-width: 640px) {
  .brand .logo-full { display: none; }
  .brand .logo-icon { display: block; }
}

/* pages */
.page { padding-block: 36px 56px; }
.page[hidden] { display: none; }
.lead { margin: 16px 0 0; max-width: 34em; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--muted); }
.eyebrow { font-size: 1rem; font-weight: 500; color: var(--accent); margin: 0 0 10px; }
.section-gap { margin-top: 48px; }
.btn { display: inline-block; font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer; padding: 12px 24px; border-radius: 4px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* The ground line on inner pages: Nutmeg stands at its start, as she stands on the box in the logo.
   Her height is a whole number of pixels so her baseline is crisp; the 2px line starts exactly at her
   tail tip (x=48 of the drawing's 520) and tucks 0.75px under her soft bottom edge, so there is no seam. */
.ground { --dog-h: 52px; position: relative; height: var(--dog-h); margin-bottom: 18px; }
.ground img { position: relative; z-index: 1; display: block; height: var(--dog-h); width: auto; filter: var(--logo-filter); }
.ground::after { content: ""; position: absolute; z-index: 0; left: calc(var(--dog-h) * 48 / 222); right: 0; top: calc(var(--dog-h) - 0.75px); height: 2px; background: var(--ink); }

/* home: very large serif, set like a title page, then the walk */
.home { padding-top: 44px; padding-bottom: 0; }
.home h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1; max-width: 18ch; }
.walk { --dog-h: 80px; position: relative; margin-top: 28px; padding-block: calc(var(--dog-h) + 28px) 40px; }
.walk .dog { position: absolute; z-index: 1; top: 0; left: 6%; height: var(--dog-h); width: auto; filter: var(--logo-filter); }
.walk svg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.walk path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: round; }
.stop { position: relative; width: min(40%, 420px); padding: 6px 0; }
.stop:nth-child(odd of .stop) { margin-left: 4%; }
.stop:nth-child(even of .stop) { margin-left: auto; margin-right: 4%; }
.stop + .stop { margin-top: 20px; }
.stop h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.12; }
.stop p { margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (prefers-reduced-motion: no-preference) {
  .walk path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: walk 2.4s 0.3s cubic-bezier(.45,.05,.25,1) forwards; }
  @keyframes walk { to { stroke-dashoffset: 0; } }
}

/* about */
.mission { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.25; max-width: 24em; margin: 20px 0 0; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 36px; }
.facts > div { min-width: 0; }
.facts p { color: var(--muted); margin: 0; }
.band { background: var(--surface); margin-top: 44px; padding-block: 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.story-grid[style] { margin-top: 20px !important; }
.story-grid h3 { margin-bottom: 12px; }
.name-story { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 44px; }
.name-story img { width: 140px; height: auto; }
.name-story h2 { margin-bottom: 14px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 20px; }
.team article { min-width: 0; }
.team h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.12; }
.role { color: var(--accent); font-weight: 500; margin: 4px 0 14px; }
.person-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.person-head .role { margin-bottom: 0; }
.headshot { flex: none; width: 128px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface); }
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .name-story { grid-template-columns: 1fr; gap: 14px; }
  .name-story img { width: 96px; }
}

/* values */
.values { list-style: none; margin: 32px 0 0; padding: 0; max-width: 820px; }
.values li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .n { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }
.values h3 { margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); }

/* resources */
.guides { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.6rem; color: var(--accent); }
details[open] > summary::after { content: "\2212"; }
.guide-body { padding: 0 0 24px; }
.guide-body h4 { margin-top: 20px; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; margin: 0 0 1em; max-width: 66ch; }
.guide-body li { margin-bottom: 0.4em; }
.at-nutmeg { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px; margin: 8px 0 16px; max-width: 66ch; font-size: 0.97rem; }
.at-nutmeg strong { color: var(--accent); }
.note { color: var(--muted); font-size: 0.95rem; }

/* pay + contact */
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; align-items: start; }
.panel { background: var(--surface); padding: 24px; border-radius: 6px; }
.panel h3 { margin-bottom: 10px; }
.panel ul { padding-left: 1.2em; margin: 0 0 1em; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
label { font-weight: 500; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin: 0; color: var(--ink); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok, .form-status.is-error { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
button:disabled { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding-block: 32px 24px; font-size: 0.93rem; }
.site-footer a { color: var(--footer-fg); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; }
.footer-grid p { margin: 0 0 6px; max-width: 52ch; }
.eho { display: flex; align-items: center; gap: 14px; margin-top: 12px !important; }
.eho-logo { flex: none; width: 56px; height: auto; filter: invert(1); opacity: 0.92; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
/* licensing notice: the owners' exact words, small but fully legible (about 9:1 on black) */
.legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.legal p { margin: 0; max-width: none; font-size: 0.82rem; line-height: 1.55; color: var(--footer-soft); }

/* phones */
@media (max-width: 720px) {
  .page { padding-block: 24px 44px; }
  .home { padding-top: 24px; }
  .ground { --dog-h: 44px; margin-bottom: 14px; }
  .walk svg { display: none; }
  /* the line straightens into a guide down the left edge, starting at the tail tip (47/520 of 150px = 13.55px) */
  .walk { --dog-h: 64px; padding: 0 0 32px; margin-top: 24px; }
  .walk .dog { position: relative; left: 0; top: 0; display: block; margin: 0; }
  .walk .stops { margin: -1px 0 0 13.85px; border-left: 2px solid var(--ink); padding: 7px 0 4px 22px; }
  .stop, .stop:nth-child(odd of .stop), .stop:nth-child(even of .stop) { width: auto; margin: 0; }
  .stop + .stop { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
