/* =========================================================================
   FORGE & FIELD MEDIA — Colors & Type
   Sources of truth (in priority order for web work):
     1. reference/FF Brand System for Claude Design v1.1.md  (web spec; supersedes v2.2 for the marketing site)
     2. reference/FF+AIM Brand Standards Guide v2.2.md       (document/print spec)
   v1.1 swaps the display family Oswald → Manrope and revises the type scale.
   v2.2 still governs document production until a future revision aligns the two.
   ========================================================================= */

/* ----- Local web fonts -----
   Manrope (display): supplied as TTFs in /fonts.
   Inter (body): supplied as TTFs in /fonts (18pt optical size for body/UI).
   Arial is the only sanctioned fallback. */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf")    format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Medium.ttf")     format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf")   format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf")       format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf")  format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Regular.ttf")     format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Italic.ttf")      format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Medium.ttf")      format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-SemiBold.ttf")    format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Bold.ttf")        format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-BoldItalic.ttf")  format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  /* ---------- Colors ---------- */
  --ff-midnight-navy:   #1B2A4A;
  --ff-polished-copper: #A96B2B;
  --ff-deep-moss:       #4A5D3A;
  --ff-gunmetal:        #2C3539;
  --ff-copper-light:    #C17F3A;
  --ff-body-text:       #2D2D2D;
  --ff-medium-gray:     #555555;
  --ff-error-red:       #B33A3A;
  --ff-white:           #FFFFFF;

  /* AIM-exclusive — never on F&F surfaces. Kept for reference only. */
  --aim-steel-blue:     #2E6B9E;
  --aim-light-bg:       #F2F7FA;

  /* Semantic */
  --fg-1:        #1B2A4A;
  --fg-2:        #2D2D2D;
  --fg-3:        #555555;
  --fg-on-dark:  #FFFFFF;
  --fg-accent:   #A96B2B;
  --bg-page:     #FFFFFF;
  --bg-subtle:   #F5F1EA;
  --bg-dark:     #2C3539;
  --bg-deep:     #1B2A4A;
  --bg-moss:     #4A5D3A;
  --rule-strong: #1B2A4A;
  --rule-soft:   rgba(27, 42, 74, 0.12);
  --rule-moss:   #4A5D3A;
  --rule-copper: #A96B2B;

  /* ---------- Typography (v1.1 web spec) ---------- */
  --font-display: "Manrope", Arial, sans-serif;
  --font-body:    "Inter",   Arial, sans-serif;

  /* Display weights */
  --weight-h1:        800;
  --weight-h2:        800;
  --weight-h3:        700;
  --weight-h4:        700;
  --weight-overline:  500;
  --weight-body:      400;
  --weight-caption:   500;
  --weight-emphasis:  700;

  /* Sizes — desktop */
  --size-h1:        56px;
  --size-h2:        40px;
  --size-h3:        28px;
  --size-h4:        20px;
  --size-overline:  14px;
  --size-body-lg:   18px;
  --size-body:      16px;
  --size-body-sm:   14px;
  --size-caption:   13px;
  --size-emphasis:  16px;

  /* Tracking — v1.1: 0.04em headings, 0.1em overline, 0.025em emphasis */
  --track-display:  0.04em;
  --track-overline: 0.1em;
  --track-emphasis: 0.025em;

  --leading-h1:      1.1;
  --leading-h2:      1.15;
  --leading-h3:      1.2;
  --leading-h4:      1.25;
  --leading-overline:1.3;
  --leading-body:    1.6;
  --leading-caption: 1.5;

  /* ---------- Spacing (8-pt baseline per v1.1) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  16px;
  --space-4:  24px;
  --space-5:  32px;
  --space-6:  48px;
  --space-7:  64px;
  --space-8:  96px;
  --space-9:  128px;

  /* Radii */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;

  --rule-w-thin:   1px;
  --rule-w-base:   2px;
  --rule-w-accent: 4px;

  --lift-1: 0 1px 0 rgba(27, 42, 74, 0.08), 0 8px 24px -12px rgba(27, 42, 74, 0.18);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --dur-fast: 150ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 250ms; /* @kind other */

  /* Layout */
  --container-desktop: 1200px;
  --container-large:   1320px;

  /* Focus ring (accessibility) */
  --focus-ring: 0 0 0 2px var(--ff-polished-copper);
}

/* Mobile sizes */
@media (max-width: 767px) {
  :root {
    --size-h1: 36px;
    --size-h2: 28px;
    --size-h3: 22px;
    --size-h4: 18px;
    --size-overline: 13px;
    --size-body-lg: 17px;
  }
}

/* ===== Element defaults ===== */
html { color: var(--fg-2); background: var(--bg-page); }
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  margin: 0;
}
h1, .h1 { font-weight: var(--weight-h1); font-size: var(--size-h1); line-height: var(--leading-h1); color: var(--ff-midnight-navy); }
h2, .h2 { font-weight: var(--weight-h2); font-size: var(--size-h2); line-height: var(--leading-h2); color: var(--ff-midnight-navy); }
h3, .h3 { font-weight: var(--weight-h3); font-size: var(--size-h3); line-height: var(--leading-h3); color: var(--ff-gunmetal); }
h4, .h4 { font-weight: var(--weight-h4); font-size: var(--size-h4); line-height: var(--leading-h4); color: var(--ff-gunmetal); }

/* Sentence-case heading variant (v1.1: tracking 0, weight 800 for H1/H2). */
.h-sentence { text-transform: none; letter-spacing: 0; }

.overline {
  font-family: var(--font-display);
  font-weight: var(--weight-overline);
  font-size: var(--size-overline);
  line-height: var(--leading-overline);
  text-transform: uppercase;
  letter-spacing: var(--track-overline);
  color: var(--ff-medium-gray);
  display: inline-block;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--fg-2);
  margin: 0;
}
.body-lg { font-size: var(--size-body-lg); line-height: var(--leading-body); }
.body-sm { font-size: var(--size-body-sm); line-height: var(--leading-body); }

.caption {
  font-family: var(--font-body);
  font-weight: var(--weight-caption);
  font-size: var(--size-caption);
  line-height: var(--leading-caption);
  color: var(--ff-medium-gray);
}

.emphasis {
  font-family: var(--font-body);
  font-weight: var(--weight-emphasis);
  font-size: var(--size-emphasis);
  letter-spacing: var(--track-emphasis);
  color: var(--ff-midnight-navy);
}

.accent {
  font-family: var(--font-body);
  font-weight: var(--weight-emphasis);
  font-size: var(--size-emphasis);
  letter-spacing: var(--track-emphasis);
  color: var(--fg-accent);
}

a {
  color: var(--fg-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--ff-midnight-navy); }

:focus-visible { outline: 2px solid var(--ff-polished-copper); outline-offset: 2px; }

hr { border: 0; border-top: var(--rule-w-base) solid var(--rule-strong); margin: var(--space-6) 0; }

.rule-moss   { border-top: var(--rule-w-accent) solid var(--ff-deep-moss); }
.rule-copper { border-top: var(--rule-w-accent) solid var(--ff-polished-copper); }
.rule-navy   { border-top: var(--rule-w-base)   solid var(--ff-midnight-navy); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
