/* ==========================================================================
   Frostline Turf Co. — Base / reset / layout primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

/* --- Typography ------------------------------------------------------- */
/* Large display headings use an editorial serif; UI-level headings (h3/h4)
   stay in the sans for clarity. This pairing is the core of the premium feel. */
h1, h2, h3, h4 {
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--step-5); line-height: 1.04; }
h2 { font-size: var(--step-3); line-height: 1.08; }
h3, h4 { font-family: var(--font-sans); font-weight: 640; letter-spacing: -0.02em; }
h3 { font-size: var(--step-2); letter-spacing: -0.024em; }
h4 { font-size: var(--step-1); }

p, li { text-wrap: pretty; }
p { max-width: var(--maxw-prose); }

a { color: var(--primary-ink); text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
    text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

strong { font-weight: 660; color: var(--ink); }
small { font-size: var(--step--1); }

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }

/* Eyebrow / kicker — technical label style */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
}

/* Drop-cap-free editorial emphasis: an oversized display pull-quote */
.display-quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* --- Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-lg); }
.wrap-narrow { max-width: 820px; }

.section { padding-block: var(--space-3xl); }
.section-sm { padding-block: var(--space-2xl); }

.stack > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }
.stack-sm > * + * { margin-top: var(--space-xs); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-2xl); }
}

.cluster { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.center { text-align: center; }
.center-x { margin-inline: auto; }

.hidden { display: none !important; }

/* --- Accessibility ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
  border-radius: 3px;
}
.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; left: 0.75rem; top: -3rem; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 0.75rem; }

::selection { background: color-mix(in srgb, var(--frost) 30%, transparent); }
