/* site-kit/design-system.css — concatenation of
   src/{tokens,reset,typography}.css. Do not edit. */

/* tokens.css — design tokens for site-kit.
   All custom properties live on :root. Consuming sites override the
   semantic colors (most commonly --sa-accent) by re-declaring on
   :root in their own stylesheet, loaded after this file. */

:root {
  /* ── Colors — neutrals (Tailwind v3 gray, locked) ──────────── */
  --sa-gray-50:  #f9fafb;
  --sa-gray-100: #f3f4f6;
  --sa-gray-200: #e5e7eb;
  --sa-gray-300: #d1d5db;
  --sa-gray-400: #9ca3af;
  --sa-gray-500: #6b7280;
  --sa-gray-600: #4b5563;
  --sa-gray-700: #374151;
  --sa-gray-800: #1f2937;
  --sa-gray-900: #111827;
  --sa-gray-950: #030712;

  /* ── Colors — semantic (per-site override surface) ─────────── */
  --sa-accent:        #1e3a5f;
  /* oklch is perceptually uniform — for yellow/orange accents (wafer's
   * #FCC450, gizza's #f54e00) srgb mixing produces a muddy/olive shift,
   * oklch produces clean darkening. Browser support floor matches the
   * kit's other modern-only requirements. */
  --sa-accent-hover:  color-mix(in oklch, var(--sa-accent) 85%, black);
  /* Foreground for content rendered on top of `--sa-accent` (the sa-hero
   * CTA, future filled-button components). Default white works for the
   * kit's dark-blue default accent (10.5:1) but FAILS WCAG on light
   * accents — wafer's gold (#FCC450) on white = 1.7:1, gizza's orange
   * (#f54e00) on white = 3.0:1. Consumers with light accents must set
   * this token alongside `--sa-accent` to keep the CTA legible. */
  --sa-on-accent:     #ffffff;
  --sa-text:          var(--sa-gray-800);
  --sa-text-muted:    var(--sa-gray-500);
  --sa-bg:            var(--sa-gray-50);
  --sa-bg-card:       #ffffff;
  --sa-border:        var(--sa-gray-200);
  --sa-code-bg:       var(--sa-gray-100);
  --sa-code-block-bg: #1e1e1e;
  --sa-code-block-fg: #d4d4d4;

  /* ── Typography ────────────────────────────────────────────── */
  --sa-font-sans: 'Itim', system-ui, -apple-system, sans-serif;
  --sa-font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  --sa-text-xs:   0.75rem;
  --sa-text-sm:   0.875rem;
  --sa-text-base: 1rem;
  --sa-text-lg:   1.125rem;
  --sa-text-xl:   1.25rem;
  --sa-text-2xl:  1.5rem;
  --sa-text-3xl:  1.875rem;
  --sa-text-4xl:  2.25rem;
  --sa-text-5xl:  3rem;

  --sa-leading-tight:   1.25;
  --sa-leading-normal:  1.5;
  --sa-leading-relaxed: 1.625;

  /* ── Spacing (4px base) ────────────────────────────────────── */
  --sa-space-1:  0.25rem;
  --sa-space-2:  0.5rem;
  --sa-space-3:  0.75rem;
  --sa-space-4:  1rem;
  --sa-space-6:  1.5rem;
  --sa-space-8:  2rem;
  --sa-space-12: 3rem;
  --sa-space-16: 4rem;
  --sa-space-24: 6rem;

  /* ── Radii + shadows ───────────────────────────────────────── */
  --sa-radius-sm: 4px;
  --sa-radius-md: 8px;
  --sa-radius-lg: 12px;

  /* ── Shadows ───────────────────────────────────────────────── */
  /* The kit components themselves use hairline-only depth (border +
   * outline), so these tokens are unused internally. Exposed for
   * consumers who want a subtle elevation step in their own non-kit
   * components — referenced from the Tailwind preset as `shadow-sa-sm`
   * / `shadow-sa-md`. */
  --sa-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --sa-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* ── Z-index scale ─────────────────────────────────────────── */
  /* A documented scale so consumers can layer their own UI relative
   * to kit chrome without reading source. The header sits at 40 so
   * a typical app modal (50+) renders above it. */
  --sa-z-base:    0;
  --sa-z-sticky:  10;
  --sa-z-header:  40;
  --sa-z-modal:   50;
  --sa-z-toast:   60;

  /* ── Layout ────────────────────────────────────────────────── */
  --sa-max-width: 72rem;
  /* Default min column width for `<sa-feature-grid>` and other auto-fit
   * grids. Override per-consumer when 280px doesn't match the content. */
  --sa-grid-min: 280px;
}

/* reset.css — minimal reset, not a full Normalize.
   Depends on tokens.css being concatenated before this file. */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
  margin: 0;
  padding: 0;
}

body {
  background: var(--sa-bg);
  color: var(--sa-text);
  font-family: var(--sa-font-sans);
  font-size: var(--sa-text-base);
  line-height: var(--sa-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--sa-accent);
  outline-offset: 2px;
}

/* typography.css — @font-face, element styles, .sa-prose, .sa-container.
   Depends on tokens.css being concatenated before this file. */

/* ── Font faces ────────────────────────────────────────────── */

@font-face {
  font-family: 'Itim';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/itim-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Itim';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/itim-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-500.woff2') format('woff2');
}

/* ── Headings ───────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--sa-gray-900);
  font-weight: 400;
  line-height: var(--sa-leading-tight);
}

h1 { font-size: var(--sa-text-5xl); }
h2 { font-size: var(--sa-text-4xl); }
h3 { font-size: var(--sa-text-3xl); }
h4 { font-size: var(--sa-text-2xl); }
h5 { font-size: var(--sa-text-xl);  }
h6 { font-size: var(--sa-text-lg);  }

/* ── Inline ─────────────────────────────────────────────────── */

a {
  color: var(--sa-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

a:hover {
  color: var(--sa-accent-hover);
}

strong, b { font-weight: 700; }
em, i    { font-style: italic; }

code {
  background: var(--sa-code-bg);
  border-radius: var(--sa-radius-sm);
  padding: 0 var(--sa-space-1);
  font-family: var(--sa-font-mono);
  font-size: 0.9em;
}

/* ── Blocks ─────────────────────────────────────────────────── */

pre {
  background: var(--sa-code-block-bg);
  color: var(--sa-code-block-fg);
  padding: var(--sa-space-4);
  border-radius: var(--sa-radius-md);
  overflow-x: auto;
  font-family: var(--sa-font-mono);
  font-size: var(--sa-text-sm);
  line-height: var(--sa-leading-normal);
}

pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  padding-left: var(--sa-space-6);
}

/* ── Utilities ──────────────────────────────────────────────── */

.sa-container {
  width: 100%;
  max-width: var(--sa-max-width);
  margin-inline: auto;
  padding-inline: var(--sa-space-6);
}

/* .sa-prose: long-form article rhythm. Margins applied to direct
   children only — nested blocks (e.g. lists inside blockquotes)
   keep their own spacing. */
.sa-prose > * + * {
  margin-top: var(--sa-space-4);
}

.sa-prose > h1,
.sa-prose > h2,
.sa-prose > h3 {
  margin-top: var(--sa-space-12);
}

.sa-prose > h4,
.sa-prose > h5,
.sa-prose > h6 {
  margin-top: var(--sa-space-8);
}

.sa-prose > h1 + *,
.sa-prose > h2 + *,
.sa-prose > h3 + *,
.sa-prose > h4 + *,
.sa-prose > h5 + *,
.sa-prose > h6 + * {
  margin-top: var(--sa-space-4);
}

.sa-prose ul,
.sa-prose ol {
  padding-left: var(--sa-space-8);
}

.sa-prose li + li {
  margin-top: var(--sa-space-2);
}
