/*
 * its.fashion design system — token & theme layer.
 *
 * NOTE ON PROVENANCE (2026-07-14): pulled from the Claude Design project
 * (projectId c877ee71-19df-41d7-8bef-f55e14c4d30e). The ORIGINAL _ds_bundle.css is a
 * compiled Tailwind v4 build (~40 KB) = this token/theme layer PLUS a large generated
 * utility-class layer (@layer base/utilities/properties). Only the DESIGN-SYSTEM-SPECIFIC
 * token + theme layer is reproduced here verbatim (the part that carries the brand:
 * colours, surfaces, radius). The generated Tailwind utility layer is omitted — it is
 * regenerable and we are re-implementing the look in a static/PHP idiom, not shipping
 * Tailwind. The complete compiled bundle lives in the live Claude Design project.
 *
 * Model: role variables + surfaces. No light/dark *mode* — light/dark *surfaces*.
 * Two teals: --primary (#2fb0ce, fills/icons) and --primary-strong (#0e7490, small text/links, AA on white).
 */

/* Foundation tokens (from the compiled @layer theme) */
:root, :host {
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --spacing: 0.25rem;
  --text-sm: 0.875rem;   --text-sm--line-height: calc(1.25 / 0.875);
  --text-base: 1rem;     --text-base--line-height: calc(1.5 / 1);
  --text-lg: 1.125rem;   --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl: 1.25rem;    --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl: 1.5rem;    --text-2xl--line-height: calc(2 / 1.5);
  --text-4xl: 2.25rem;   --text-4xl--line-height: calc(2.5 / 2.25);
  --text-5xl: 3rem;      --text-5xl--line-height: 1;
  --text-6xl: 3.75rem;   --text-6xl--line-height: 1;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --tracking-tight: -0.025em;
  --tracking-widest: 0.1em;
  --leading-tight: 1.25;
  --leading-relaxed: 1.625;
  --default-font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Colour roles — light surface (default) */
:root {
  --radius: 0.5rem;
  --background: #ffffff;
  --foreground: #334155;
  --card: #ffffff;
  --card-foreground: #334155;
  --popover: #ffffff;
  --popover-foreground: #334155;
  --muted: #f1f5f9;
  --muted-foreground: #475569;
  --primary: #2fb0ce;
  --primary-foreground: #ffffff;
  --primary-hover: #258ea6;
  --primary-strong: #0e7490;
  --secondary: #e2e8f0;
  --secondary-foreground: #334155;
  --accent: #f8fafc;
  --accent-foreground: #0e7490;
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #2fb0ce;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --warning: #d97706;
  --warning-foreground: #ffffff;
  --success: #0f766e;
  --success-foreground: #ffffff;
}

/* Dark surface — flips the whole subtree */
.surface-dark,
.dark {
  --background: #1e293b;
  --foreground: #ffffff;
  --card: #334155;
  --card-foreground: #ffffff;
  --popover: #334155;
  --popover-foreground: #ffffff;
  --muted: #334155;
  --muted-foreground: #cbd5e1;
  --secondary: #334155;
  --secondary-foreground: #ffffff;
  --accent: #334155;
  --accent-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.10);
  --input: rgba(255, 255, 255, 0.20);
  --ring: #2fb0ce;
}

/* Footer surface — the darkest */
.surface-footer {
  --background: #0f172a;
  --foreground: #ffffff;
  --card: #0f172a;
  --card-foreground: #ffffff;
  --muted-foreground: #94a3b8;
  --border: #1e293b;
  --ring: #2fb0ce;
}

@layer base {
  * { border-color: var(--border); }
  body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
  }
}

/* Brand marquee + surface-aware logo swap */
@keyframes its-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: its-marquee 40s linear infinite; }
.marquee-group:hover .animate-marquee { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .animate-marquee { animation: none; } }
.its-logo-dark { display: none; }
.surface-dark .its-logo-light,
.surface-footer .its-logo-light,
.dark .its-logo-light { display: none; }
.surface-dark .its-logo-dark,
.surface-footer .its-logo-dark,
.dark .its-logo-dark { display: inline-block; }
