/* Atlas base.css - tokens, reset and premium defaults. Link it BEFORE style.css and set the tokens to the brand
   (override them in style.css :root). Everything below uses only these variables. */
:root {
  /* colour: replace with the brand palette (keep the roles) */
  --bg: #f7f4ee;            /* page background */
  --surface: #ffffff;       /* cards, panels */
  --surface-2: #efe9df;     /* alternate sections */
  --text: #1c1a17;          /* main text */
  --muted: #6b655c;         /* secondary text (keep >= 4.5:1 on --bg) */
  --line: rgba(28, 26, 23, .1);   /* hairline borders */
  --accent: #b5602f;        /* actions and highlights only */
  --accent-ink: #ffffff;    /* text on the accent */

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  --fs-h1: clamp(2.75rem, 6.5vw, 6rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.4vw, 1.5rem);
  --fs-small: .875rem;

  /* space (8px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(72px, 10vw, 144px);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* shape and depth */
  --r-sm: 8px; --r-md: 16px; --r-lg: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .14);

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 180ms; --med: 320ms; --slow: 700ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; font-weight: 600; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }   /* anchors land below a sticky header */

/* ---------- layout helpers ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 65ch; }
.section { padding-block: var(--section); }
.section--alt { background: var(--surface-2); }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-4); }
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 600;
  text-decoration: none; line-height: 1; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background-color var(--fast), color var(--fast),
              border-color var(--fast), box-shadow var(--med) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: currentColor; }

/* ---------- cards and links ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--s-5); }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--med) var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- forms ---------- */
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 600; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); transition: border-color var(--fast), box-shadow var(--fast); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---------- accessibility ---------- */
.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: var(--s-4); top: -100px; z-index: 1000; background: var(--accent); color: var(--accent-ink);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
