/* ============================================================
   Inbound Legal — Foundations
   Colors, type, spacing, radii, shadows, motion.
   Drop into <link rel="stylesheet" href="colors_and_type.css">.
   ============================================================ */

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

:root {
  /* -------------------- COLOR --------------------- */
  /* Brand */
  --brand-blue:        #1A4FFF;
  --brand-blue-hover:  #0033E6;

  /* Ink + paper */
  --ink-black:         #0A0A0A;
  --paper-white:       #FFFFFF;

  /* Accents (decorative only — wave dividers, shape overlays) */
  --accent-yellow:     #FFD60A;
  --accent-red:        #FF3B30;

  /* Neutrals */
  --gray-900:          #1F1F1F; /* body on white */
  --gray-600:          #5F5F5F; /* secondary text */
  --gray-300:          #D9D9D9; /* borders, dividers */
  --gray-100:          #F4F4F6; /* soft section bg */

  /* Semantic surface + text */
  --bg:                var(--paper-white);
  --bg-soft:           var(--gray-100);
  --bg-dark:           var(--ink-black);
  --bg-brand:          var(--brand-blue);

  --fg:                var(--gray-900);
  --fg-muted:          var(--gray-600);
  --fg-on-dark:        var(--paper-white);
  --fg-on-brand:       var(--paper-white);
  --link:              var(--brand-blue);
  --link-hover:        var(--brand-blue-hover);
  --border:            var(--gray-300);

  /* -------------------- TYPE ---------------------- */
  --font-sans: "Syne", "Inter", "Plus Jakarta Sans", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Sizes (also exposed as classes below) */
  --fs-display: 3.5rem;   /* 56 */
  --fs-h1:      2.75rem;  /* 44 */
  --fs-h2:      2rem;     /* 32 */
  --fs-h3:      1.375rem; /* 22 */
  --fs-h4:      1.125rem; /* 18 */
  --fs-body-lg: 1.125rem; /* 18 */
  --fs-body:    1rem;     /* 16 */
  --fs-body-sm: 0.875rem; /* 14 */
  --fs-eyebrow: 0.8125rem;/* 13 */
  --fs-tag:     0.75rem;  /* 12 */

  /* Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* Line heights */
  --lh-tight:   1.05;
  --lh-snug:    1.15;
  --lh-normal:  1.3;
  --lh-relaxed: 1.55;
  --lh-loose:   1.6;

  /* -------------------- SPACING -------------------- */
  --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;

  --container-max: 1200px;
  --container-px-mobile: 24px;
  --container-px-tablet: 48px;

  /* -------------------- RADII ---------------------- */
  --radius-sm: 6px;
  --radius:    8px;   /* buttons, inputs */
  --radius-lg: 12px;  /* cards */
  --radius-pill: 999px;

  /* -------------------- SHADOWS -------------------- */
  --shadow-card:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-card-lg: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-nav:     0 2px 8px rgba(0,0,0,0.06);

  /* -------------------- MOTION --------------------- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    120ms;
  --dur:         180ms;
  --dur-slow:    320ms;

  /* -------------------- FOCUS ---------------------- */
  --focus-ring: 2px solid var(--brand-blue);
  --focus-offset: 2px;
}

/* =====================  BASE  ===================== */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-loose);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
a:hover { color: var(--link-hover); }

/* =====================  TYPE STYLES  ===================== */
.display, h1.display {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0;
}
h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
}
h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin: 0;
}
h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semi);
  line-height: 1.25;
  margin: 0;
}
h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semi);
  line-height: var(--lh-normal);
  margin: 0;
}
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
p, .body { font-size: var(--fs-body); line-height: var(--lh-loose); margin: 0; }
.body-sm { font-size: var(--fs-body-sm); line-height: 1.5; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  line-height: var(--lh-normal);
  color: var(--brand-blue);
  text-transform: none;
}
.eyebrow--on-dark { color: var(--accent-yellow); }

.tag {
  font-size: var(--fs-tag);
  font-weight: var(--fw-semi);
  line-height: 1;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

/* Utility text colors */
.text-muted    { color: var(--fg-muted); }
.text-brand    { color: var(--brand-blue); }
.text-on-dark  { color: var(--paper-white); }

/* =====================  CONTAINER  ===================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px-mobile);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--container-px-tablet); }
}

/* =====================  SECTIONS  ===================== */
.section          { padding-block: var(--space-7); }
.section--lg      { padding-block: var(--space-9); }
.section--dark    { background: var(--ink-black); color: var(--paper-white); }
.section--brand   { background: var(--brand-blue); color: var(--paper-white); }
.section--soft    { background: var(--gray-100); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
}
