/* ============================================================
   Fire & Smoke BBQ — Base (reset · typography · layout · primitives)
   ============================================================ */

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* — Invisible details — */
::selection { background: color-mix(in oklab, var(--accent) 32%, transparent); color: var(--text); }
html { scrollbar-width: thin; scrollbar-color: var(--ink-800) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--ink-800);
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in oklab, var(--accent) 55%, var(--ink-800)); }

/* — Typography — */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.05; }
h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 700; }
p  { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-muted); }
strong { font-weight: 600; }

/* — Layout primitives — */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.section { padding-block: var(--section-y); }
/* vertical rhythm: avoid doubled gap between consecutive sections */
.section + .section { padding-top: 0; }

/* — Kicker label — */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--accent);
  flex: none;
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-md);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn .btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow-ember); }
.btn--primary:active { background: var(--accent-active); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn--secondary:hover {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border-color: var(--accent);
}

.btn--ghost { padding-inline: 0; color: var(--text); }

/* — Reveal on scroll — */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out),
              filter var(--dur-reveal) var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* — Utilities — */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
