/* ================================================================
   BASE — Design Tokens, Reset, Layout Utilities
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --color-bg: #f6efe6;
  --color-bg-top: #fbf7f2;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-strong: #fffaf4;
  --color-text: #131722;
  --color-text-muted: #616978;
  --color-line: rgba(19, 23, 34, 0.08);
  --color-line-strong: rgba(19, 23, 34, 0.12);
  --color-primary: #111827;
  --color-teal: #0f766e;
  --color-teal-deep: #0b5e58;
  --color-orange: #f97316;
  --color-emerald-tint: rgba(16, 185, 129, 0.18);
  --color-amber-tint: rgba(249, 115, 22, 0.18);
  --color-teal-tint: rgba(15, 118, 110, 0.18);
  --shadow-soft: 0 14px 40px rgba(19, 23, 34, 0.06);
  --shadow-card: 0 30px 80px rgba(19, 23, 34, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --content-width: 1280px;
  --content-width-wide: 1440px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg-top) 0%, var(--color-bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(19, 23, 34, 0.05) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  opacity: 0.22;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

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

/* ── Page backdrop glow ─────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 26%);
}

/* ── Shell (max-width containers) ───────────────────────────── */
.shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.shell--wide {
  width: min(calc(100% - 40px), var(--content-width-wide));
}

/* ── Section spacing ────────────────────────────────────────── */
.section {
  padding: 34px 0 0;
}

/* ── Card base ──────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card);
}

.card--glass {
  background: var(--color-surface);
  backdrop-filter: blur(18px);
}

/* ── Global focus style ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}
