/* Sunday Supply Digital — design tokens
   Carbon Signal direction at /workspace/agency/marketing/brand-kit/directions-v2/carbon-signal/.
   Logo: approved Sunrise Window, recolored. Dark surfaces use the dark (light-on-dark) lockup;
   light surfaces use the light lockup. Stacked lockup at ≤479 px in the header.
   Signal Teal (#3EE8C8) is only for dark surfaces and button fills — never as text, meaningful
   icons, or outlines on Ice, Mist, or White. Button labels on teal are Carbon, not white.
   Steel is secondary text on Carbon/Slate only; it fails on Ice/White/Mist. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2-variations"),
       url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "SSD Sans";
  src: url("../fonts/ssd-sans-latin.woff2") format("woff2-variations"),
       url("../fonts/ssd-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  /* Official Carbon Signal palette */
  --color-carbon: #0B0C10;
  --color-teal: #3EE8C8;     /* Signal Teal — dark surfaces & button fills only */
  --color-pine: #0A5F55;     /* links and small labels on Ice / White / Mist */
  --color-ice: #F3F6F8;      /* light page background; primary text on dark */
  --color-mist: #E4EAEE;     /* light cards, dividers, quiet panels */
  --color-slate: #161A22;    /* raised dark surfaces */
  --color-steel: #A8B0BC;    /* captions on Carbon / Slate only */
  --color-white: #FFFFFF;

  /* Aliases so existing component CSS keeps compiling while names migrate */
  --color-navy: var(--color-carbon);
  --color-navy-deep: var(--color-carbon);
  --color-navy-mid: var(--color-slate);
  --color-cream: var(--color-ice);
  --color-sand: var(--color-mist);
  --color-brick: var(--color-pine);
  --color-marigold: var(--color-teal); /* use only where the surface is dark or the fill is a button */

  /* Semantic (defaults assume a light Ice page) */
  --color-bg: var(--color-ice);
  --color-bg-raised: var(--color-white);
  --color-bg-warm: var(--color-mist);
  --color-bg-ink: var(--color-carbon);
  --color-text: var(--color-carbon);
  --color-text-soft: var(--color-carbon); /* Steel fails on Ice (2.02:1); Carbon on Ice is 18.01:1 */
  --color-heading: var(--color-carbon);
  --color-border: color-mix(in srgb, var(--color-carbon) 14%, var(--color-mist));
  --color-link: var(--color-pine);
  --color-link-hover: var(--color-carbon);
  --color-focus: var(--color-carbon);
  --color-focus-ring: var(--color-carbon); /* teal rings are reserved for dark surfaces */
  --color-error: var(--color-pine);
  --color-button: var(--color-teal);
  --color-button-text: var(--color-carbon);

  /* Type — typography.md scale exactly (small-screen first; desktop at ≥1024px).
     Display and H1 are separate tokens so the hero can be 64px while page titles stay 48px. */
  --font-display: "Outfit", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "SSD Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-size-display: 2.5rem;    /* 40px hero */
  --line-display: 2.75rem;        /* 44px */
  --font-size-h1: 2rem;           /* 32px page title */
  --line-h1: 2.375rem;            /* 38px */
  --font-size-2xl: 1.625rem;      /* 26px h2 */
  --line-h2: 2rem;                /* 32px */
  --font-size-xl: 1.3125rem;      /* 21px h3 */
  --line-h3: 1.75rem;             /* 28px */
  --font-size-lead: 1.1875rem;    /* 19px lede */
  --line-lead: 1.875rem;          /* 30px */
  --font-size-md: 1.0625rem;      /* 17px body */
  --line-body: 1.6875rem;         /* 27px */
  --font-size-lg: 1.1875rem;      /* 19px — alias for lead on small */
  --font-size-sm: 0.875rem;       /* 14px captions */
  --line-small: 1.3125rem;        /* 21px */
  --font-size-xs: 0.8125rem;      /* 13px eyebrows */
  --line-label: 1rem;             /* 16px */
  --font-size-button: 1.0625rem;  /* 17px */
  --line-button: 1.25rem;         /* 20px */
  --font-size-3xl: var(--font-size-display); /* back-compat alias */
  --line-heading: 1.15; /* used only where a unitless fallback is needed */
  --letter-display: -0.02em;
  --letter-label: 0.14em;
  --letter-button: 0.01em;

  /* Derived tints (SS-061). Not in the 8-swatch kit; documented here so we
     do not invent anonymous hexes in component CSS. Each mix uses only official
     swatches. None of these are used as text on a surface that would fall
     below WCAG AA, except --color-on-ink-soft, which is body copy on Carbon
     at about 13.5–15.2:1 (softer than Ice 18.01, still well above 4.5:1).
     --color-button-hover: Signal Teal darkened with Pine so hover is visible
     on Ice and Carbon while Carbon labels stay well above 4.5:1.
     --color-glow-*: atmospheric hero glows mixed only from official swatches,
     used as large blurred decorations on Carbon, never as text.
     --color-on-ink-soft: Ice 92% + Carbon, body text on section-ink / Carbon.
     --color-glow-slate: Slate + Ice, a third hero blob, decoration only.
     --color-mock-dot / --color-mock-url: chrome in the device mock (not UI text).
     --color-border-hairline: Carbon 8% on Mist, card edges in the mock.
     --color-border-dashed: Carbon on Mist at 18/22/28% for placeholder frames.
     --color-ornament-sill: Mist + Carbon, the founder-window sill decoration. */
  --color-button-hover: color-mix(in srgb, var(--color-teal) 82%, var(--color-pine));
  --color-glow-teal: color-mix(in srgb, var(--color-teal) 28%, var(--color-carbon));
  --color-glow-pine: color-mix(in srgb, var(--color-pine) 40%, var(--color-carbon));
  --color-glow-slate: color-mix(in srgb, var(--color-slate) 70%, var(--color-ice));
  --color-on-ink-soft: color-mix(in srgb, var(--color-ice) 92%, var(--color-carbon));
  --color-mock-dot: color-mix(in srgb, var(--color-ice) 55%, var(--color-carbon));
  --color-mock-url: color-mix(in srgb, var(--color-slate) 80%, var(--color-white));
  --color-border-hairline: color-mix(in srgb, var(--color-carbon) 8%, var(--color-mist));
  --color-border-dashed: color-mix(in srgb, var(--color-carbon) 22%, var(--color-mist));
  --color-border-dashed-soft: color-mix(in srgb, var(--color-carbon) 18%, var(--color-mist));
  --color-border-dashed-strong: color-mix(in srgb, var(--color-carbon) 28%, var(--color-mist));
  --color-ornament-sill: color-mix(in srgb, var(--color-mist) 65%, var(--color-carbon));

  /* Price figures are not a heading level. Outfit, between H1 and H2. */
  --font-size-price: 1.75rem;    /* 28px */
  --line-price: 2.125rem;        /* 34px */

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5.5rem;
  --wrap: 72rem;
  --wrap-wide: 80rem;
  --header-h: 4.5rem;

  /* Shape — keep the friendly radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--color-carbon) 10%, transparent);
  --shadow-md: 0 10px 30px -12px color-mix(in srgb, var(--color-carbon) 40%, transparent),
               0 2px 8px color-mix(in srgb, var(--color-carbon) 10%, transparent);
  --shadow-lg: 0 24px 50px -18px color-mix(in srgb, var(--color-carbon) 50%, transparent),
               0 8px 16px color-mix(in srgb, var(--color-carbon) 12%, transparent);
  --shadow-hover: 0 16px 36px -14px color-mix(in srgb, var(--color-carbon) 45%, transparent);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 200ms;
  --duration-slow: 500ms;
}

@media (min-width: 1024px) {
  :root {
    --font-size-display: 4rem;       /* 64px */
    --line-display: 4.25rem;         /* 68px */
    --font-size-h1: 3rem;            /* 48px */
    --line-h1: 3.375rem;             /* 54px */
    --font-size-2xl: 2.25rem;        /* 36px */
    --line-h2: 2.625rem;             /* 42px */
    --font-size-xl: 1.625rem;        /* 26px */
    --line-h3: 2rem;                 /* 32px */
    --font-size-lead: 1.3125rem;     /* 21px */
    --line-lead: 2rem;               /* 32px */
    --font-size-md: 1.125rem;        /* 18px */
    --line-body: 1.8125rem;          /* 29px */
    --font-size-lg: 1.3125rem;
    --font-size-sm: 0.9375rem;       /* 15px */
    --line-small: 1.375rem;          /* 22px */
    --font-size-xs: 0.875rem;        /* 14px */
    --line-label: 1.125rem;          /* 18px */
    --font-size-button: 1.0625rem;   /* 17px — same at both steps */
    --line-button: 1.25rem;
    --font-size-price: 2rem;         /* 32px */
    --line-price: 2.25rem;           /* 36px */
  }
}
