/* Base: reset, design tokens, accessibility defaults */

/* Fonts: Clash Grotesk (headings) and Satoshi (body) by Indian Type Foundry,
   from Fontshare under the ITF Free Font License (assets/fonts/LICENSE.md).
   The fallback stacks below keep the page usable if a file fails to load. */
@font-face {
  font-family: "Clash Grotesk";
  src: url("assets/fonts/ClashGrotesk-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("assets/fonts/ClashGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --asphalt: #171A18;
  --asphalt-2: #222622;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #20231F;
  --muted: #59605A;
  --amber: #F2B544;
  --amber-hover: #E9A82C;
  --amber-soft: #F8E2B4;
  --rule: #E2DED4;
  --rule-strong: #171A18;
  /* Dark-surface text */
  --on-dark: #F7F5F0;
  --on-dark-muted: #AEB3AC;
  --rule-dark: #333833;

  /* Type */
  --font-display: "Clash Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-weight: 600;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);  /* 13–14px fine print */
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);         /* 16–18px body */
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);     /* 18–21px lede */
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);       /* 22–28px */
  --step-3: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);        /* 28–36px */
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);          /* 40–76px hero */
  --step-display: clamp(2.125rem, 1.4rem + 3vw, 4rem);       /* 34–64px section display */
  --leading-tight: 1.04;
  --leading-snug: 1.2;
  --leading-body: 1.6;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-max: 75rem; /* 1200px */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 5.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--amber);
  color: var(--asphalt);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
