/* ============================================================
   WEED SAMURAI -- Base / reset / layout primitives
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--steel-100);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle film-grain / vignette over the whole page for cinema feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mist);
  line-height: var(--lh-tight);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--jade-500); color: var(--ink-900); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: var(--space-7);
  position: relative;
}
.section--tight { padding-block: var(--space-6); }
.section--flush-top { padding-top: 0; }

.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-5); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: var(--space-2); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* ---- Text helpers ---- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--jade-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--grad-jade);
  display: inline-block;
}
.eyebrow--verm { color: var(--verm-500); }
.eyebrow--verm::before { background: var(--grad-dawn); }

.lead { font-size: var(--fs-lead); color: var(--steel-200); max-width: 60ch; }
.muted { color: var(--steel-300); }
.faint { color: var(--steel-400); }
.text-jade { color: var(--jade-500); }
.text-verm { color: var(--verm-500); }
.text-gradient {
  background: var(--grad-text-jade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif { font-family: var(--font-serif); font-style: italic; }
.center { text-align: center; }
.measure { max-width: 64ch; }
.measure-narrow { max-width: 48ch; }
.mx-auto { margin-inline: auto; }

.display-hero { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.02em; }

/* visually-hidden but accessible */
.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;
}
