/* Primestone Capital design tokens. Mirrors /DESIGN.md. Owner: lead. */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand palette (approved) */
  --forest: #102C28;
  --forest-deep: #0B211E;
  --forest-raised: #153831;
  --ivory: #F3F0E8;
  --ivory-deep: #EAE5D9;
  --bronze: #B9A47C;          /* rules, ticks, focus, text on forest only */
  --bronze-ink: #73613C;      /* bronze-toned text on ivory: 5.26:1 */
  --ink: #102C28;             /* text on ivory: 13.05:1 */
  --ink-muted: #4A5A55;       /* secondary text on ivory: 6.39:1 */
  --ivory-muted: #B8B2A3;     /* secondary text on forest: 7.03:1 */
  --hairline-on-ivory: rgba(16, 44, 40, 0.16);
  --hairline-on-forest: rgba(185, 164, 124, 0.32);
  --error: #8E2F25;           /* on ivory 7.3:1 */
  --error-on-forest: #F0B4A8;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 4.5rem);
  --step-5: clamp(3rem, 2rem + 5vw, 6.75rem);
  --tracking-label: 0.2em;
  --tracking-wordmark: 0.08em;
  --measure: 68ch;

  /* Space (8pt) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px; --space-11: 160px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1240px;
  --section: clamp(64px, 8vw + 24px, 160px);

  /* Shape, motion, layers */
  --radius: 0;
  --tap: 48px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-reveal: 600ms;
  --z-header: 100;
  --z-toast: 1000;
  --focus-ring: 2px solid var(--bronze);
  --focus-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-reveal: 0ms; }
}
