/* ==========================================================================
   REPTD — base.css
   Design tokens, reset, typography and utilities. Loaded on every page.
   ========================================================================== */

/* Cross-page fade when navigating between pages (progressive enhancement) */
@view-transition { navigation: auto; }

:root {
  /* Brand */
  --olive-900: #2b2d1a;
  --olive-700: #4a4d2c;
  --olive-600: #5f633a;   /* primary brand olive */
  --olive-400: #9ca261;   /* footer / highlights */
  --olive-200: #d9dcbd;
  --olive-100: #eef0df;
  --stone-900: #23241f;
  --stone-700: #4c4f46;   /* services band */
  --stone-500: #6d7066;
  --stone-200: #dfe0d6;
  --cream:     #f8f8f3;
  --white:     #ffffff;
  --orange:    #f9802f;   /* accent — buttons and small highlights only */
  --orange-600:#e06a1a;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--cream);
  --surface: var(--white);
  --text: #2e2e2e;
  --text-muted: #5c5e55;
  --heading: var(--stone-900);
  --brand: var(--olive-600);
  --brand-strong: var(--olive-700);
  --brand-soft: var(--olive-100);
  --accent: var(--orange);
  --accent-hover: var(--orange-600);
  --on-accent: #1d1206;
  --line: #e4e5dc;
  --focus: #1f6feb;

  /* Type */
  --font-display: "League Spartan", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-label: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.25rem + 0.75vw, 1.75rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5:  clamp(2.8rem, 2rem + 4vw, 4.75rem);

  /* Space, shape, motion */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --container: 72.5rem;
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(35 36 31 / 0.06), 0 2px 8px rgb(35 36 31 / 0.05);
  --shadow:    0 2px 4px rgb(35 36 31 / 0.05), 0 12px 28px rgb(35 36 31 / 0.10);
  --shadow-lg: 0 4px 8px rgb(35 36 31 / 0.06), 0 24px 48px rgb(35 36 31 / 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --fast: 160ms;
  --med: 280ms;

  --header-h: 4.5rem;
  interpolate-size: allow-keywords; /* lets <details> animate to height:auto */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
address { font-style: normal; }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p, li { text-wrap: pretty; }
p + p { margin-top: 1em; }
strong { font-weight: 700; }

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease);
}
a:hover { color: var(--heading); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--olive-200); color: var(--stone-900); }

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 50rem; }

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--stone-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  translate: 0 -200%;
  transition: translate var(--fast) var(--ease);
}
.skip-link:focus { translate: 0 0; color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: currentColor;
}

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.stack > * + * { margin-top: var(--stack, 1.1rem); }
.center { text-align: center; }

/* Bulleted content lists */
.ticks { display: grid; gap: 0.55rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.6'/%3E%3C/svg%3E") center / 0.8rem no-repeat,
    var(--brand);
}

/* ---------- Scroll reveal (pure CSS, only where supported) ---------- */
@keyframes reveal {
  from { opacity: 0; translate: 0 1.75rem; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

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

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  body { color: #000; }
}
