/* ============================================================
   HGM DESIGN SYSTEM — v3 "interface editorial"
   Converted 2026-10-02 from the jasongibson.dev design language.
   Off-white paper, dark ink, restrained blue/green accents.
   DM Sans for prose, Space Mono for technical labels. No serif.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #161616;
  --muted: #777a78;
  --faint: #9aa0a8;
  --soft: #f5f5f3;
  --warm: #f4f4f2;
  --line: #dedfdd;
  --line-soft: #e8eae8;
  --blue: #2f73cf;
  --blue-deep: #245ea9;
  --blue-wash: #f2f7ff;
  --green: #5aab7d;
  --green-deep: #4d9972;
  --gold: #a97c1f;
  --paper: #fbfbfa;
  --card: #ffffff;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1024px;
  --radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Flat aesthetic: kill luxury leftovers */
.hero-grain, .hero-video, .theme-pill, .lux-grain { display: none !important; }

.site-shell {
  border-top: 3px solid var(--ink);
  overflow: clip;
  background: var(--paper);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.05em; line-height: 1.02; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.4vw, 68px); }
h2 { font-size: clamp(34px, 4vw, 50px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.04em; }
h4 { font-size: 18px; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.lede {
  color: #666a68;
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
}
/* No serif, no italics-as-design: em is plain */
em { font-style: normal; }

/* Mono technical labels — 11px minimum for readability */
.eyebrow, .section-kicker, .card-label, .kicker, .case-kicker,
.cookie-label, .footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #858a87;
  line-height: 1.5;
}
.section-kicker { display: block; margin-bottom: 18px; }

.section-intro {
  max-width: var(--maxw);
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.section-intro h2 { margin: 0; }
.section-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.light-cta, .dark-cta, .booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  transition: transform 0.16s ease, background 0.16s ease;
  cursor: pointer;
}
.light-cta:hover, .dark-cta:hover, .booking-button:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
  color: #fff;
}
.light-cta:active, .dark-cta:active, .booking-button:active { transform: scale(0.98); }
.dark-cta { background: var(--ink); border-color: var(--ink); }
.dark-cta:hover { background: #000; border-color: #000; }

.text-link {
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { text-decoration: underline; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .lead-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.input-field, .lead-form input, .lead-form textarea, .lead-form select,
.footer-signup input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 0;
}
.input-field:focus, .lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.form-status { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.band { background: var(--warm); }
.tel-link { color: var(--blue); text-decoration: none; }
.tel-link:hover { text-decoration: underline; }

/* Reveal on scroll (progressive enhancement).
   Hidden-until-reveal applies ONLY when JS runs (html.js): without JS, or
   with reduced motion, content is never hidden. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  z-index: 100000; background: var(--ink); color: #fff;
  padding: 12px 18px; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; overflow: visible; }

/* Responsive */
@media (max-width: 1100px) {
  .wrap { margin-left: 28px; margin-right: 28px; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .lede { font-size: 15px; }
  .wrap { margin-left: 18px; margin-right: 18px; }
  h1 { font-size: clamp(40px, 11vw, 56px); }
}

/* Disabled controls */
.light-cta:disabled, .dark-cta:disabled, .booking-button:disabled,
.product-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}