/* Self-hosted fonts (Geist, Geist Mono) */
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-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;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-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;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/geist-mono-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;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/geist-mono-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;
}

:root {
  /* Colors — accent */
  --accent-signal: #E84398;
  --accent-signal-hover: #F04FA3;
  --accent-primary: #E84398;
  --accent-primary-hover: #F04FA3;

  /* Colors — surface (dark theme, near-black stage) */
  --background: #000000;
  --surface-1: #0A0A0A;
  --surface-2: #141414;
  --surface-elevated: #1A1A1A;
  --surface-frosted: rgba(10, 10, 10, 0.8);

  /* Colors — text (warm off-white on black) */
  --foreground: #F5F2EE;
  --text-primary: #F5F2EE;
  --text-secondary: #8C8C8C;
  --text-muted: #868686;
  --text-on-accent: #FFFFFF;

  /* Colors — border (hairlines) */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Colors — semantic (reserved, not deployed decoratively) */
  --semantic-success: #4ADE80;
  --semantic-warning: #FBBF24;
  --semantic-error: #F87171;

  /* Nav active vocabulary */
  --nav-active-text: #F5F2EE;

  /* Typography — three-entry fallback chains */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Spacing scale — 4px base */
  --spacing-xxs: 2px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  --spacing-5xl: 128px;
  --spacing-section: 128px;
  --spacing-section-compact: 64px;
  --spacing-section-hero: 160px;

  /* Radius scale */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-default: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows — layered, restrained (flat by default) */
  --shadow-none: none;
  --shadow-xs: 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.4), 0 12px 24px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-focus-ring: 0 0 0 4px #000000, 0 0 0 6px #E84398;
  --shadow-frosted: 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Transitions & easing */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-overlay: 20;
  --z-header: 50;
  --z-modal: 40;
  --z-toast: 60;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--background);
}

::placeholder { color: var(--text-muted); }

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

@keyframes ring-draw {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes line-draw {
  from { stroke-dashoffset: 100%; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 0.2; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.text-display-xl {
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.text-display-hero {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0em;
}

.text-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0em;
}

.text-caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0em;
}

.text-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0em;
}

.text-mono-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.text-button-md {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0em;
}

.text-button-sm {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0em;
}

.text-nav-item {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0em;
}

.text-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-helper {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0em;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; cursor: pointer; transition: background-color var(--transition-fast, 150ms) ease, color var(--transition-fast, 150ms) ease, border-color var(--transition-fast, 150ms) ease; }
.btn:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background-color: var(--accent-primary); color: var(--text-on-accent, #ffffff); }
.btn-primary:hover { background-color: var(--accent-primary-hover, var(--accent-primary)); }
.btn-secondary { background-color: var(--background-surface, var(--background)); color: var(--text-primary); border-color: var(--border-default, var(--border)); }
.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-outline { background-color: transparent; color: var(--accent-primary); border-color: var(--accent-primary); }
.btn-outline:hover { background-color: var(--accent-primary); color: var(--text-on-accent, #ffffff); }

/* comet:canonical-token-aliases — canonical names resolved onto the shipped tokens (do not hand-edit) */
:root {
  --text: var(--text-primary);
  --text-tertiary: var(--text-muted);
  --text-on-primary: var(--text-on-accent);
  --accent: var(--accent-primary);
  --color-accent: var(--accent-primary);
  --accent-hover: var(--accent-primary-hover);
  --bg-page: var(--background);
  --page-bg: var(--background);
  --surface-page: var(--background);
  --bg-surface-1: var(--surface-1);
  --surface-secondary: var(--surface-2);
  --bg-surface-2: var(--surface-2);
  --border: var(--border-default);
}

/* comet:interface-polish-base — deterministic legibility floor (do not hand-edit) */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:where(table, .tabular-nums, [data-numeric]) { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 640px) { .cookie-banner { flex-direction: row; align-items: center; gap: 16px; } .cookie-banner-actions { flex-shrink: 0; } }
