/* ==========================================================================
   Recycle Pay — base.css
   Design tokens, reset, typography and layout utilities.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #3f9a34;
  --brand-dark: #2f7a27;
  --tint: #e3efdc;
  --green: #23885f;
  --leaf: #74c045;

  /* Neutrals */
  --ink: #1f2d3d;
  --muted: #5b6878;
  --line: #d9e0d4;
  --paper: #f3f8ee;

  /* Soft pastel tones (illustrations, tiles) */
  --mint: #c3ecd9;
  --peach: #ffd3bd;
  --lilac: #d9cdf7;
  --butter: #ffeaa6;
  --sky: #c4e0ff;
  --rose: #ffc8d7;

  /* Shape */
  --radius: 22px;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.6;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 62ch;
}

a {
  color: inherit;
}

i {
  line-height: 1;
}

/* Lucide icons (js/icons.js swaps <i data-lucide> for an inline SVG) */
.lucide {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  stroke-width: 2.1;
}

/* Hold the icon's space until the script has swapped it in */
i[data-lucide] {
  display: inline-block;
  width: 1em;
  height: 1em;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 56ch;
}

/* ---------- Layout utilities ---------- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.align-start {
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-tight {
  gap: 0.7rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
