/**
 * @file
 * HeaderHound design tokens.
 *
 * Brand palette from the HeaderHound logo kit: navy, cream, russet, tan and
 * terminal green. Navy and cream are the main text pair. Green and tan are
 * accents, or backgrounds for navy text, and never body text on a light
 * surface.
 */
:root {
  /* Brand */
  --hh-navy: #12243a;
  --hh-navy-deep: #0b1828;
  --hh-navy-soft: #1c3552;
  --hh-cream: #fff4dd;
  --hh-russet: #b85d31;
  --hh-russet-dark: #85401f;
  --hh-tan: #e4ad68;
  --hh-tan-soft: #f6dcb3;
  --hh-green: #8fe14b;
  --hh-green-dark: #3f7a17;
  --hh-red: #c8371f;
  --hh-red-soft: #ff8a73;

  /* Surfaces & text (light) */
  --c-page: var(--hh-cream);
  --c-paper: #fffaf0;
  --c-raised: #ffffff;
  --c-text: var(--hh-navy);
  --c-text-muted: #4c5964;
  --c-heading: var(--hh-navy);
  --c-link: var(--hh-russet-dark);
  --c-link-hover: var(--hh-navy);
  --c-border: #e3d3b6;
  --c-border-strong: #c9b99d;
  --c-code-bg: #f6e6c6;
  --c-focus: var(--hh-russet);
  --c-pass: var(--hh-green-dark);
  --c-warn: #9a5a12;
  --c-fail: var(--hh-red);
  --c-band-tan: var(--hh-tan-soft);
  --shadow-retro: 4px 4px 0 var(--hh-russet);
  --shadow-card: 0 1px 0 rgb(18 36 58 / 6%), 0 10px 30px -18px rgb(18 36 58 / 45%);

  /* Type */
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --content-width: 76rem;
  --measure: 70ch;
  --band-pad: clamp(3rem, 7vw, 6rem);
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.375rem;
  --radius-pill: 999px;
  --header-h: 6.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-page: #0e1c2e;
    --c-paper: #0f1f33;
    --c-raised: #162b45;
    --c-text: #f3e9d4;
    --c-text-muted: #b6b2a6;
    --c-heading: var(--hh-cream);
    --c-link: var(--hh-tan);
    --c-link-hover: var(--hh-green);
    --c-border: #27405f;
    --c-border-strong: #3a5679;
    --c-code-bg: #1f3654;
    --c-focus: var(--hh-green);
    --c-pass: var(--hh-green);
    --c-warn: var(--hh-tan);
    --c-fail: var(--hh-red-soft);
    --c-band-tan: #1a2f4a;
    --shadow-retro: 4px 4px 0 #04090f;
    --shadow-card: 0 1px 0 rgb(0 0 0 / 30%), 0 14px 32px -18px rgb(0 0 0 / 70%);
  }
}
