/* ==========================================================================
   ChannelGrowth — Design Tokens
   Mirrors the AI Xccelerate design system (www.aixccelerate.com)
   Warm off-white page, ink text, orange primary, deep teal secondary.
   ========================================================================== */

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
}

:root {
  /* --- Brand palette (extracted from AI Xccelerate) --- */
  --brand-orange: #ec7200;
  --brand-orange-hover: #d36500;
  --brand-orange-soft: rgba(236, 114, 0, 0.1);
  --brand-orange-line: rgba(236, 114, 0, 0.28);
  --brand-teal: #009489;
  --brand-teal-soft: rgba(0, 148, 137, 0.1);
  --brand-amber: #ffb84d;
  --brand-ink: #17181b;

  /* --- Site surfaces --- */
  --site-page: #fffdf8;
  --site-surface: #faf7f0;
  --site-panel: #f4efe6;
  --site-header: rgba(255, 253, 248, 0.96);
  --site-elevated: #ffffff;

  /* --- Ink --- */
  --site-ink: #17181b;
  --site-muted: rgba(23, 24, 27, 0.7);
  --site-faint: rgba(23, 24, 27, 0.5);
  --site-on-dark: #fffdf8;
  --site-on-dark-muted: rgba(255, 253, 248, 0.72);

  /* --- Lines --- */
  --site-border: rgba(23, 24, 27, 0.16);
  --site-border-soft: rgba(23, 24, 27, 0.09);
  --site-grid: rgba(23, 24, 27, 0.075);

  /* --- Type --- */
  --font-sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: clamp(2.4rem, 1.6rem + 3.2vw, 4rem);
  --text-5xl: clamp(2.9rem, 1.6rem + 4.6vw, 5rem);

  /* --- Rhythm --- */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 1200px;
  --container-wide: 1360px;

  /* --- Elevation --- */
  --shadow-sm: 0 1px 2px rgba(23, 24, 27, 0.06);
  --shadow: 0 4px 16px -4px rgba(23, 24, 27, 0.1);
  --shadow-lg: 0 18px 48px -18px rgba(23, 24, 27, 0.22);
  --shadow-orange: 0 14px 34px -14px rgba(236, 114, 0, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background: var(--site-page);
  color: var(--site-muted);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.18s ease, color 0.18s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--site-ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand-orange);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 3px;
}
