/* =============================================================
   Lowcountry Mobility & Movement — Shared design system
   Warm & coastal, Charleston lowcountry
   Accessibility-first: built for 65+ readers
   ============================================================= */

:root {
  /* Palette — warm coastal (oklch) */
  --bg:            oklch(97.5% 0.012 85);
  --bg-2:          oklch(94% 0.018 85);
  --bg-3:          oklch(89% 0.022 85);
  --ink:           oklch(20% 0.018 60);
  --ink-2:         oklch(32% 0.020 60);
  --ink-3:         oklch(46% 0.018 60);
  --rule:          oklch(80% 0.015 75);

  --sage:          oklch(45% 0.050 160);
  --sage-deep:     oklch(32% 0.045 160);
  --sage-pale:     oklch(88% 0.025 160);
  --sage-tint:     oklch(94% 0.018 160);

  --marsh:         oklch(48% 0.095 75);
  --marsh-pale:    oklch(90% 0.040 75);

  --tide:          oklch(45% 0.060 220);
  --tide-pale:     oklch(90% 0.025 220);

  --focus:         oklch(55% 0.18 240);

  /* Type — Fraunces for display (headlines, pull-quotes, italic emphasis),
     DM Sans for body, JetBrains Mono for labels. Architect's stack. */
  --type-display: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --type-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --type-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display-weight-regular: 400;
  --display-weight-bold:    500;
  --display-tracking:       -0.018em;
  --display-line:           1.05;
  --body-tracking:          0;

  /* Legacy aliases (older pages referenced var(--serif) / var(--sans)) */
  --serif: var(--type-display);
  --sans:  var(--type-body);
  --mono:  var(--type-mono);

  /* Scale — bumped up for 65+ readers */
  --step--1: clamp(0.92rem, 0.88rem + 0.2vw, 1rem);
  --step-0:  clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 0.9vw, 1.9rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.6vw, 2.55rem);
  --step-4:  clamp(2.5rem, 1.95rem + 2.5vw, 3.6rem);
  --step-5:  clamp(3.1rem, 2.35rem + 3.6vw, 5rem);
  --step-6:  clamp(3.9rem, 2.65rem + 5.6vw, 6.6rem);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-soft: 0 1px 2px rgba(60, 45, 30, 0.04), 0 8px 24px rgba(60, 45, 30, 0.06);
  --shadow-lift: 0 2px 4px rgba(60, 45, 30, 0.06), 0 18px 40px rgba(60, 45, 30, 0.09);
}

/* ---------- Type systems ---------- */
/* Warm — Fraunces (display) + DM Sans (body) — editorial serif on headlines,
   clean sans on body. Hero-only Fraunces, not a workhorse. */
html[data-type="warm"] {
  --type-display: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --type-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display-weight-regular: 400;
  --display-weight-bold:    500;
  --display-tracking:       -0.018em;
  --display-line:           1.05;
}

/* Modern & clean — Space Grotesk display + Inter body, geometric and confident */
html[data-type="modern"] {
  --type-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --type-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display-weight-regular: 500;
  --display-weight-bold:    600;
  --display-tracking:       -0.03em;
  --display-line:           1.04;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--body-tracking);
}
/* Lock horizontal scrolling — battle-tested for iOS Safari */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
body {
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* User text-size preference — applied via toolbar */
html[data-textsize="large"]  { font-size: 112.5%; }
html[data-textsize="larger"] { font-size: 125%; }

/* Screen-reader only content (visible for focus e.g. skip link) */
.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;
}
.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
  transition: top .2s;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--focus); outline-offset: 2px; }

/* Focus visibility — clear ring on every interactive element */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--type-display);
  font-weight: var(--display-weight-regular);
  color: var(--ink);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-line);
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: var(--step-6); font-variation-settings: "opsz" 144; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

/* Emphasis: real italic with Fraunces' SOFT axis for swash personality.
   Italic is now the editorial accent; sage-deep ink keeps brand color. */
em, i {
  font-style: italic;
  font-weight: var(--display-weight-regular);
  color: var(--sage-deep);
  font-family: var(--type-display);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-weight: var(--display-weight-regular);
  color: var(--sage-deep);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
strong, b { font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.eyebrow {
  font-family: var(--type-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.small { font-size: var(--step--1); color: var(--ink-3); }

/* Containers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); }

section { padding-block: clamp(64px, 9vw, 128px); }
section.tight { padding-block: clamp(44px, 6vw, 80px); }

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}
@media (max-width: 1100px) {
  .brand-name small { display: none; }
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--type-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sage-pale), var(--sage) 75%);
  position: relative;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sage-deep) 25%, transparent);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.85;
  mask: radial-gradient(circle at 50% 60%, #000 40%, transparent 70%);
}
.brand-name { line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--type-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: flex; gap: clamp(16px, 2vw, 28px); margin-left: auto;
  font-size: 1rem;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a {
  transition: color .2s; position: relative;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--sage-deep); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--sage);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform .15s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--sage-deep); transform: translateY(-1px); }

/* Hamburger — shown <960px in place of full nav */
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 999px;
  align-items: center; justify-content: center;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  cursor: pointer;
}
.nav-burger svg { width: 22px; height: 22px; }
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 12px var(--gutter) 20px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile a {
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 50%, transparent);
}
.nav-mobile a.active { color: var(--ink); font-weight: 600; }
.nav-mobile a:last-child { border-bottom: none; }
.nav.open .nav-mobile { display: flex; }
.nav { position: sticky; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* =============================================================
   Buttons — minimum 44x44 hit area for motor accessibility
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--type-body);
  transition: transform .15s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sage { background: var(--sage-deep); color: var(--bg); }
.btn-sage:hover { background: var(--ink); }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Lucide icons (replaces unicode glyphs) ---- */
.arrow,
.lucide-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  line-height: 1;
}
.arrow svg,
.lucide-arrow svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
}
.btn .lucide-arrow { margin-left: 2px; }
.svc-cta .lucide-arrow { margin-left: 4px; }

.check,
.lucide-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  color: var(--sage-deep);
  background: var(--sage-pale);
  border-radius: 999px;
  padding: 2px;
}
.check svg,
.lucide-check svg {
  width: 0.85em;
  height: 0.85em;
  stroke-width: 3;
}

.stars,
.lucide-stars {
  display: inline-flex;
  gap: 2px;
  color: oklch(70% 0.13 75); /* warm amber, not saturated yellow */
  line-height: 1;
}
.stars svg,
.lucide-stars svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  padding-block: 80px 40px;
  margin-top: 80px;
}
.footer h4 {
  color: var(--bg);
  font-family: var(--type-display);
  font-size: 1.15rem;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.6fr 0.9fr 1.1fr 1fr; gap: 48px;
}
.footer a { transition: color .2s; }
.footer a:hover { color: var(--sage-pale); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
/* Service-area cities — plain text, not styled like nav links */
.footer ul.footer-area li {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.footer .footer-area-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-pale);
  font-weight: 600;
}
.footer .footer-area-link:hover { color: var(--bg); }
.footer .brand-name { color: var(--bg); }
.footer .brand-name small { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.footer-bottom {
  max-width: var(--maxw); margin: 64px auto 0; padding: 24px var(--gutter) 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.85rem;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   Photo coming soon — brand-styled placeholder when we don't yet
   have a real photo to drop in. Drop-in replacement for <img>.
   ============================================================= */
.photo-coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  width: 100%; height: 100%;
  min-height: 280px;
  background: var(--sage-tint);
  border: 1px dashed color-mix(in oklab, var(--sage) 38%, transparent);
  border-radius: var(--radius-m);
  color: color-mix(in oklab, var(--sage-deep) 75%, transparent);
  text-align: center;
  padding: 24px;
}
.photo-coming-soon svg { opacity: 0.55; }
.photo-coming-soon-label {
  font-family: var(--type-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
/* When the placeholder is inside the existing .ph wrapper on about.html,
   strip the .ph defaults so we don't double-up the background pattern. */
.ph.photo-coming-soon {
  background: var(--sage-tint);
  border: 1px dashed color-mix(in oklab, var(--sage) 38%, transparent);
  display: flex;
}

/* =============================================================
   Feature photo — full-width editorial photo block
   Used on pages that otherwise have no photography.
   ============================================================= */
.feature-photo {
  margin-block: clamp(40px, 5vw, 72px);
}
.feature-photo .feature-photo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--sage-tint);
}
.feature-photo .feature-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-photo .feature-photo-cap {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.feature-photo .feature-photo-cap em {
  font-style: normal;
  color: var(--sage-deep);
}
@media (max-width: 700px) {
  .feature-photo .feature-photo-frame { aspect-ratio: 4 / 3; }
}

/* =============================================================
   Image placeholders
   ============================================================= */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--sage-pale) 55%, var(--bg)) 0 14px,
      color-mix(in oklab, var(--sage-pale) 30%, var(--bg)) 14px 28px);
  color: color-mix(in oklab, var(--ink) 60%, transparent);
  display: grid; place-items: center;
  font-family: var(--type-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  min-height: 200px;
}
.ph--marsh {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--marsh-pale) 70%, var(--bg)) 0 14px,
      color-mix(in oklab, var(--marsh-pale) 40%, var(--bg)) 14px 28px);
}
.ph--tide {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--tide-pale) 70%, var(--bg)) 0 14px,
      color-mix(in oklab, var(--tide-pale) 40%, var(--bg)) 14px 28px);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg,
      oklch(30% 0.025 80) 0 14px,
      oklch(26% 0.025 80) 14px 28px);
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.ph span {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  padding: 5px 10px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.ph:has(> img) { background: transparent; }
.ph:has(> img) > span { display: none; }
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   Cards + grids
   ============================================================= */
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 28px;
}
.card-sage {
  background: var(--sage-tint);
  border-color: color-mix(in oklab, var(--sage) 20%, transparent);
}
.card-marsh {
  background: color-mix(in oklab, var(--marsh-pale) 55%, var(--bg));
  border-color: color-mix(in oklab, var(--marsh) 25%, transparent);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =============================================================
   Utility
   ============================================================= */
.stack-xs { display: grid; gap: 8px; }
.stack-s  { display: grid; gap: 14px; }
.stack-m  { display: grid; gap: 22px; }
.stack-l  { display: grid; gap: 36px; }
.stack-xl { display: grid; gap: 56px; }

.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.sage { color: var(--sage-deep); }
.center { text-align: center; }
.mono { font-family: var(--type-mono); }
.serif { font-family: var(--type-display); }

/* Disclaimer/sample tag */
.sample-tag {
  display: inline-block;
  font-family: var(--type-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--marsh);
  border: 1px solid color-mix(in oklab, var(--marsh) 40%, transparent);
  padding: 3px 8px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--marsh-pale) 50%, transparent);
}

/* Decorative hairline divider with leaf */
.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--sage-deep);
  margin-block: 32px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: color-mix(in oklab, var(--sage) 40%, transparent);
}
.divider svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================================
   Type switcher (home only)
   ============================================================= */
.type-switch {
  position: fixed;
  bottom: 20px; right: 20px;
  /* Sits opposite the a11y toolbar (which is bottom-left) */
  z-index: 100;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  font-family: var(--type-body);
}
.type-switch .label {
  font-family: var(--type-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 0 12px;
  border-right: 1px solid var(--rule);
  margin-right: 4px;
  line-height: 1.1;
}
.type-switch button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s;
  letter-spacing: 0;
}
.type-switch button:hover { color: var(--ink); }
.type-switch button.active {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 560px) {
  .type-switch .label { display: none; }
  .type-switch { bottom: 12px; right: 12px; }
}

/* =============================================================
   Accessibility toolbar (floating bottom-left)
   ============================================================= */
/* (Floating accessibility toolbar removed — no clearance reservation needed.) */

.a11y-toolbar {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 100;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  font-family: var(--type-body);
}
.a11y-toolbar .a11y-label {
  font-family: var(--type-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 10px 0 12px;
  border-right: 1px solid var(--rule);
  margin-right: 4px;
  line-height: 1.1;
  font-weight: 600;
}
.a11y-toolbar button {
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, color .2s;
  letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.a11y-toolbar button:hover { background: var(--bg-2); }
.a11y-toolbar button.active {
  background: var(--ink);
  color: var(--bg);
}
.a11y-toolbar .a-size-sm { font-size: 0.85rem; }
.a11y-toolbar .a-size-md { font-size: 0.95rem; }
.a11y-toolbar .a-size-lg { font-size: 1.05rem; }
@media (max-width: 560px) {
  .a11y-toolbar .a11y-label { display: none; }
  .a11y-toolbar { bottom: 12px; left: 12px; padding: 4px; }
  .a11y-toolbar button { padding: 8px 10px; font-size: 0.8rem; }
}

/* High contrast mode — deepens ink, strengthens rules */
html[data-contrast="high"] {
  --ink:     oklch(10% 0.010 60);
  --ink-2:   oklch(18% 0.012 60);
  --ink-3:   oklch(32% 0.014 60);
  --rule:    oklch(60% 0.015 75);
  --sage:        oklch(35% 0.060 160);
  --sage-deep:   oklch(22% 0.050 160);
  --marsh:       oklch(38% 0.110 75);
}
html[data-contrast="high"] .btn-ghost { box-shadow: inset 0 0 0 2.5px var(--ink); }
html[data-contrast="high"] .ph { border: 1px solid var(--ink-3); }

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Form inputs — big, clear, accessible */
input[type="text"], input[type="email"], input[type="tel"],
textarea, select {
  font-size: 1.05rem;
  padding: 14px 16px;
  min-height: 48px;
  line-height: 1.4;
}
label { font-weight: 500; }
