/* GK8 website design tokens — aligned with gk8-core/packages/gk8-spa/src/theme.ts */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local('Arial');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --color-primary: #712534;
  --color-primary-strong: #5d1e2b;
  --color-primary-editorial: #a55868;
  --color-primary-soft: #f3e8eb;
  --color-primary-canvas: #fbf4f5;
  --color-on-primary: #ffffff;
  --color-on-primary-muted: #f5e9ec;
  --color-secondary: #2f5d8a;
  --color-secondary-soft: #e9f0f7;
  --color-bg: #f7f5f6;
  --color-surface: #ffffff;
  --color-text: #1a0f12;
  --color-text-secondary: #5c4a50;
  --color-border: #ded5d8;
  --color-success: #2f6b4f;
  --color-warning: #8a5b20;
  --color-error: #a12b36;
  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --shadow-card: 0 18px 50px rgb(57 24 31 / 0.08);
  --shadow-product: 0 28px 80px rgb(57 24 31 / 0.16);
  --container: 1180px;

  /* Compatibility aliases for existing marketing pages. */
  --color-primary-light: #8f4050;
  --color-primary-dark: var(--color-primary-strong);
  --color-primary-subtle: var(--color-primary-soft);
  --color-secondary-light: #4f79a1;
  --color-secondary-dark: #244a70;
  --color-text-muted: #7f6c72;
  --color-bg-paper: var(--color-surface);
  --color-bg-dark: #1f1518;
  --color-on-dark-muted: #a9969d;
  --color-on-dark-subtle: #9a858c;
  --color-border-subtle: #ebe4e6;
  --color-border-hover: #c4b4b9;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  --text-3xl: clamp(2.2rem, 1.6rem + 2.5vw, 3.2rem);
  --text-hero: clamp(2.8rem, 2rem + 3.5vw, 4.5rem);
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgb(57 24 31 / 0.05);
  --shadow-card-hover: 0 22px 60px rgb(57 24 31 / 0.12);
  --shadow-lg: 0 18px 44px rgb(57 24 31 / 0.12);
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-entrance: 600ms;
  --duration-stagger: 80ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container-max: var(--container);
  --container-wide: 1400px;
  --container-narrow: 720px;
  --container-padding: var(--space-6);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--duration-instant) var(--ease-out);
}

a:hover {
  color: var(--color-secondary-dark);
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-on-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--color-secondary-dark);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
  background: rgb(26 15 18 / 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
