/* Hallmark · base layer · Belcher Lawnscapes · v2 */

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

[hidden] { display: none !important; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-block-start: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}

/* The atmosphere: two fixed blooms drawn from the film's own light, and now
   temperature-aware. As --temp falls through the freeze section the warm
   ember bloom cools toward deep ice and the amber bloom toward glacier —
   the whole page visibly loses its heat, then gets it back at the booking. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 46vw at 78% 8%,
      color-mix(in oklab, var(--color-thermal) 14%, transparent) 0%,
      transparent 62%),
    radial-gradient(50vw 44vw at 12% 82%,
      color-mix(in oklab, var(--color-thermal-bloom) 16%, transparent) 0%,
      transparent 60%);
  transition: background 600ms linear;
}

/* Film grain over everything — the footage has it, the page should too,
   or the seam between film and page is a seam between two materials. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;           /* headers are roman. always. */
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-variant-numeric: lining-nums;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
h3, h4 { font-variation-settings: "opsz" 40; font-weight: 500; letter-spacing: -0.005em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, video, canvas, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4.5vw, 3rem);
}
.shell--wide { max-width: var(--shell-wide); }
.shell--tight { max-width: 58rem; }

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: var(--z-modal);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-md); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Shared type utilities ─────────────────────────────────────────────── */

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Condensed voice — Instrument Sans' width axis, used for eyebrows and
   section kickers so the page has three registers without a fourth family. */
.kicker {
  font-family: var(--font-body);
  font-variation-settings: "wdth" 78;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-thermal);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 1.6em; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.body-copy {
  color: var(--color-ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.tnum { font-variant-numeric: lining-nums tabular-nums; }

/* ── Buttons — all eight states ────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-ink);
  --btn-edge: var(--color-rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--rule-hair) solid var(--btn-edge);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform 90ms var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}
.btn:hover, .btn.is-hover { --btn-bg: var(--color-paper-3); --btn-edge: var(--color-neutral); }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.btn[data-state="loading"] { color: transparent; pointer-events: none; }
.btn[data-state="loading"]::after {
  content: "";
  position: absolute;
  inset-block-start: 50%; inset-inline-start: 50%;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 2px solid color-mix(in oklab, var(--btn-fg) 30%, transparent);
  border-top-color: var(--btn-fg);
  border-radius: 50%;
  animation: btn-spin 620ms linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn--gold {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-accent-ink);
  --btn-edge: var(--color-accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent) 0%, transparent);
}
/* A light sweep on hover — the sun catching the brass. One pass, then still. */
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
    transparent 30%,
    color-mix(in oklab, white 55%, transparent) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform 0s;
}
.btn--gold:hover::before, .btn--gold.is-hover::before {
  transform: translateX(120%);
  transition: transform 640ms var(--ease-out);
}
.btn--gold:hover, .btn--gold.is-hover {
  --btn-bg: var(--color-focus);
  --btn-edge: var(--color-focus);
  box-shadow: 0 10px 40px -10px color-mix(in oklab, var(--color-accent) 60%, transparent);
}
.btn--lg { min-height: 56px; padding-inline: var(--space-xl); font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn__arrow { transition: transform var(--dur-short) var(--ease-out); }
.btn:hover .btn__arrow, .btn.is-hover .btn__arrow { transform: translateX(3px); }

/* Typographic link CTA */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent);
  white-space: nowrap;
  min-height: 44px;
  padding-block: var(--space-2xs);
  border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-accent) 45%, transparent);
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.tlink:hover, .tlink:focus-visible { border-bottom-color: var(--color-accent); }

/* ── Word-mask reveal — headlines rise out of a clipped line, word by word.
     js/ui.js wraps each word in .w > .w__in; nothing here runs without it,
     so the no-JS page reads normally. ─────────────────────────────────── */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block-end: 0.08em; margin-block-end: -0.08em; }
.w__in { display: inline-block; transform: translateY(110%) rotate(2deg); transform-origin: 0 100%; }
.is-in .w__in, .w.is-in .w__in {
  transform: none;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .w__in { transform: none; }
  body::before { transition: none; }
}
