/* ============================================================
   matt clarke / ai — Foundations
   Colors, typography, spacing, radii, shadows
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Recoleta";
  src: url("fonts/Recoleta-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("fonts/Recoleta-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:        #334561;
  --ink:         #2A2A2A;
  --cream:       #F3ECE2;
  --off-white:   #FEFEFE;
  --sky-blue:    #90BED5;
  --soft-blue:   #DBE9F6;
  --sage:        #AEC282;
  --terracotta:  #DE8C74;
  --gold:        #E6C473;

  --cream-line:  #E5DCCB;
  --input-line:  #C9C0B0;
  --sage-tint-15: rgba(174, 194, 130, 0.15);

  --bg-page:        var(--cream);
  --bg-surface:     var(--off-white);
  --bg-cta-block:   var(--soft-blue);

  --fg-primary:     var(--navy);
  --fg-body:        var(--ink);
  --fg-muted:       rgba(42, 42, 42, 0.72);
  --fg-subtle:      rgba(42, 42, 42, 0.56);

  --accent-trust:   var(--sage);
  --accent-action:  var(--terracotta);
  --accent-proof:   var(--gold);
  --accent-eyebrow: var(--fg-muted);

  --border-card:    var(--cream-line);
  --border-input:   var(--input-line);
  --border-focus:   var(--navy);
  --divider:        var(--sage);

  --font-display: "Recoleta", "DM Serif Display", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 24px;
  --fs-pull: 32px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;

  --lh-h1: 1.10;
  --lh-h2: 1.15;
  --lh-h3: 1.20;
  --lh-h4: 1.25;
  --lh-pull: 1.30;
  --lh-body: 1.60;
  --lh-small: 1.50;
  --lh-caption: 1.40;
  --lh-tight: 1.00;

  --tracking-display: -0.01em;
  --tracking-body: 0;
  --tracking-button: 0.005em;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-card: 0 1px 2px rgba(51, 69, 97, 0.04),
                 0 4px 16px rgba(51, 69, 97, 0.05);
  --shadow-pop:  0 2px 4px rgba(51, 69, 97, 0.06),
                 0 8px 24px rgba(51, 69, 97, 0.07);
  --shadow-focus: 0 0 0 3px rgba(51, 69, 97, 0.15);

  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg-primary);
  margin: 0 0 var(--space-md);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 500; line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); font-weight: 400; line-height: var(--lh-h4); }

p {
  margin: 0 0 var(--space-md);
  color: var(--fg-body);
  text-wrap: pretty;
}

small { font-size: var(--fs-small); line-height: var(--lh-small); }

a {
  color: var(--fg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-base) var(--ease-standard);
}
a:hover { color: var(--accent-trust); text-decoration: none; }

::selection { background: var(--sage); color: var(--navy); }

.t-h1        { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1);   line-height: var(--lh-h1); }
.t-h2        { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2);   line-height: var(--lh-h2); }
.t-h3        { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3);   line-height: var(--lh-h3); }
.t-h4        { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h4);   line-height: var(--lh-h4); }
.t-pull      { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-pull); line-height: var(--lh-pull); }

.t-body-lg   { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.t-body      { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body);    line-height: var(--lh-body); }
.t-body-md   { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body);    line-height: var(--lh-body); }
.t-small     { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small);   line-height: var(--lh-small); }
.t-caption   { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-caption); line-height: var(--lh-caption); }

.t-button    { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body);    line-height: var(--lh-tight); letter-spacing: var(--tracking-button); }
.t-nav       { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body);    line-height: var(--lh-tight); }

.t-muted     { color: var(--fg-muted); }
.t-subtle    { color: var(--fg-subtle); }
.t-trust     { color: var(--accent-trust); }
.t-action    { color: var(--accent-action); }
.t-proof     { color: var(--accent-proof); }
