/* =========================================================
   DCM Design System — Foundations
   Colors, typography, spacing, radius, shadow tokens
   ========================================================= */

/* ---------- Local font faces ---------- */
/* GT America Standard — display & UI (full weight range 100–900 + italics) */
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Regular-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Medium-Italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Bold-Italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'GT America'; src: url('assets/fonts/GT-America-Standard-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap; }
/* GT America Mono — code, hex values, tabular meta */
@font-face { font-family: 'GT America Mono'; src: url('assets/fonts/GT-America-Mono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America Mono'; src: url('assets/fonts/GT-America-Mono-Regular-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'GT America Mono'; src: url('assets/fonts/GT-America-Mono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap; }
/* GT America Condensed — accent display face for tabular data, numerics, vertical labels */
/* Source Serif 4 — body copy (variable font) */
@font-face { font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-VF.woff2') format('woff2-variations'),
       url('assets/fonts/SourceSerif4-VF.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-Italic-VF.woff2') format('woff2-variations'),
       url('assets/fonts/SourceSerif4-Italic-VF.woff2') format('woff2');
  font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  /* ---------- BRAND PALETTE ---------- */
  --deep-navy:   #0B1320;   /* Primary surface / wordmark */
  --slate:       #475569;   /* Body type, secondary surfaces */
  --warm-gray:   #E6E7EA;   /* Dividers, soft surfaces */
  --off-white:   #FAFAF8;   /* Page background, paper */
  --gold:        #C9A46A;   /* Editorial accent only */

  /* ---------- TONAL EXTENSIONS ---------- */
  --navy-900:    #060B14;
  --navy-800:    #0B1320;
  --navy-700:    #18233A;
  --navy-600:    #243149;
  --slate-700:   #2E3A4D;
  --slate-600:   #475569;
  --slate-500:   #64748B;
  --slate-400:   #94A3B8;
  --slate-300:   #CBD2DB;
  --gray-200:    #E6E7EA;
  --gray-100:    #EFEFEC;
  --gray-50:     #F4F3EE;
  --paper:       #FAFAF8;
  --white:       #FFFFFF;
  --gold-600:    #B08A4F;
  --gold-500:    #C9A46A;
  --gold-400:    #D9BC8C;
  --gold-100:    #F2E6D0;

  /* ---------- SEMANTIC: FOREGROUND ---------- */
  --fg-1:        var(--navy-800);   /* primary text */
  --fg-2:        var(--slate-600);  /* secondary text */
  --fg-3:        var(--slate-500);  /* tertiary / meta */
  --fg-mute:     var(--slate-400);
  --fg-accent:   var(--gold-500);
  --fg-on-dark:  var(--paper);
  --fg-on-dark-2:#A8B3C4;

  /* ---------- SEMANTIC: SURFACES ---------- */
  --bg-page:     var(--paper);
  --bg-card:     #FFFFFF;
  --bg-soft:     var(--gray-50);
  --bg-dark:     var(--navy-800);
  --bg-dark-2:   var(--navy-700);

  /* ---------- SEMANTIC: LINES ---------- */
  --line-soft:   #E6E7EA;
  --line:        #D6D7DB;
  --line-strong: #B7B9BF;
  --line-dark:   #1E2A3F;
  --line-accent: var(--gold-500);

  /* ---------- SEMANTIC: STATUS ---------- */
  /* Restrained — semantic colors are quiet, not vivid */
  --success:     #4F7B5E;
  --warn:        #B58A3D;
  --danger:      #9A4242;
  --info:        #3D5A80;

  /* ---------- TYPE FAMILIES ----------
     Display & UI: GT America (sans) — headings, eyebrows, labels, captions
     Body:         Source Serif 4   — paragraphs, narrative prose
     Mono:         GT America Mono  — hex values, code, meta
  */
  --display:       'GT America', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ui:            'GT America', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --body:          'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --mono:          'GT America Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --condensed:     'GT America Condensed', 'GT America', sans-serif;

  /* Legacy aliases — kept so existing slide/preview markup keeps working.
     --serif-display previously meant 'big display' (was serif) → now GT America.
     --sans previously meant 'UI/captions' (was DM Sans) → now GT America.
     Body text should reference --body directly. */
  --serif-display: var(--display);
  --sans:          var(--ui);

  /* ---------- TYPE SCALE ---------- */
  --fs-display:   72px;   /* hero serif */
  --fs-h1:        56px;
  --fs-h2:        40px;
  --fs-h3:        28px;
  --fs-h4:        22px;
  --fs-h5:        18px;
  --fs-lg:        20px;
  --fs-md:        16px;
  --fs-sm:        14px;
  --fs-xs:        12px;
  --fs-eyebrow:   12px;

  --lh-tight:     1.05;
  --lh-snug:      1.18;
  --lh-normal:    1.45;
  --lh-relaxed:   1.6;

  --tracking-eyebrow: 0.14em;
  --tracking-label:   0.06em;
  --tracking-tight:   -0.015em;
  --tracking-display: -0.02em;

  /* ---------- SPACING (8pt) ---------- */
  --sp-0:   0;
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   24px;
  --sp-6:   32px;
  --sp-7:   48px;
  --sp-8:   64px;
  --sp-9:   96px;
  --sp-10: 128px;

  /* ---------- RADII (restrained) ---------- */
  --r-xs:  2px;
  --r-sm:  4px;
  --r-md:  6px;
  --r-lg:  10px;
  --r-xl:  14px;
  --r-pill: 999px;

  /* ---------- SHADOWS (very subtle, editorial) ---------- */
  --shadow-xs: 0 1px 2px rgba(11, 19, 32, 0.04);
  --shadow-sm: 0 1px 2px rgba(11, 19, 32, 0.04), 0 1px 3px rgba(11, 19, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 19, 32, 0.06), 0 1px 2px rgba(11, 19, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 19, 32, 0.08), 0 2px 6px rgba(11, 19, 32, 0.04);
  --shadow-card: 0 1px 0 rgba(11, 19, 32, 0.04), 0 1px 3px rgba(11, 19, 32, 0.05);
  --shadow-inset-line: inset 0 0 0 1px var(--line-soft);

  /* ---------- MOTION ---------- */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:    cubic-bezier(0.55, 0.06, 0.68, 0.19);
  --ease-std:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   140ms;
  --dur-base:   200ms;
  --dur-slow:   360ms;

  /* ---------- LAYOUT ---------- */
  --container: 1200px;
  --container-narrow: 880px;
  --container-wide: 1320px;
}

/* =========================================================
   ELEMENT DEFAULTS — semantic mapping
   ========================================================= */

html, body {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--ui);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--fg-1);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p {
  margin: 0;
  color: var(--fg-2);
  font-family: var(--body);
  line-height: var(--lh-relaxed);
  text-wrap: pretty;
}

/* Editorial eyebrow — "PATTERN SYSTEM", "INSIGHT", etc. */
.eyebrow,
[data-eyebrow] {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-600);
}

/* Display sans for hero moments */
.display {
  font-family: var(--display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 500;
}

/* UI label — short, tracked, sans */
.label {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-2);
}

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--fg-1);
  background: var(--gray-50);
  padding: 1px 6px;
  border-radius: var(--r-sm);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: var(--sp-6) 0;
}

/* =========================================================
   REUSABLE BRAND COMPONENTS (CSS-only)
   ========================================================= */

/* Editorial Tab — RECOMMENDED section marker */
.dcm-tab {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.dcm-tab::before {
  content: "";
  background: var(--gold-500);
  border-radius: 2px;
  align-self: stretch;
  min-height: 32px;
}

/* Gold Dot Divider */
.dcm-dot-divider {
  display: flex;
  align-items: center;
  gap: 0;
  height: 1px;
  background: var(--line);
  position: relative;
}
.dcm-dot-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Thin Accent Rule */
.dcm-rule {
  height: 1px;
  background: var(--gold-500);
  width: 64px;
}

/* Gold Pill Marker */
.dcm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 10px;
  background: var(--gold-500);
  color: var(--navy-800);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

/* Number + Rule */
.dcm-number {
  font-family: var(--display);
  font-size: 32px;
  color: var(--fg-1);
  line-height: 1;
}

/* Corner Frame */
.dcm-corner {
  position: relative;
  padding: var(--sp-5);
}
.dcm-corner::before,
.dcm-corner::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-500);
}
.dcm-corner::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.dcm-corner::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Buttons */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur-base) var(--ease-std),
              color var(--dur-base) var(--ease-std),
              border-color var(--dur-base) var(--ease-std);
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-800);
  border-color: var(--gold-500);
}
.btn--primary:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn--primary:active { background: var(--gold-600); border-color: var(--gold-600); }

.btn--dark {
  background: var(--navy-800);
  color: var(--paper);
}
.btn--dark:hover { background: var(--navy-700); }

.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: rgba(201, 164, 106, 0.10);
}
.btn--ghost:active { background: rgba(201, 164, 106, 0.18); }

/* Card */
.dcm-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

/* DCM Circle Mark */
.dcm-circle-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
