:root {
  color-scheme: dark;
  --chx-obsidian-950: #080806;
  --chx-obsidian-900: #0e0d0a;
  --chx-obsidian-850: #14120e;
  --chx-obsidian-800: #1a1711;
  --chx-limestone-100: #f1eadc;
  --chx-limestone-200: #ded4c2;
  --chx-limestone-400: #a99f8f;
  --chx-gold-300: #d1b37a;
  --chx-gold-400: #b89458;
  --chx-gold-500: #8d6c3d;
  --chx-line: rgba(241, 234, 220, 0.14);
  --chx-line-strong: rgba(209, 179, 122, 0.34);
  --chx-surface: rgba(241, 234, 220, 0.035);
  --chx-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  --chx-serif: "Cormorant Garamond", Georgia, serif;
  --chx-sans: "Manrope", system-ui, sans-serif;
  --chx-mono: "IBM Plex Mono", Consolas, monospace;
  --chx-ease: cubic-bezier(.22, 1, .36, 1);
  --chx-shell: min(100% - 48px, 1320px);

  /* Semantic aliases shared by Hub and ChippeX News. */
  --chx-bg-canvas: var(--chx-obsidian-950);
  --chx-bg-surface-1: var(--chx-obsidian-900);
  --chx-bg-surface-2: var(--chx-obsidian-850);
  --chx-bg-elevated: var(--chx-obsidian-800);
  --chx-text-primary: var(--chx-limestone-100);
  --chx-text-secondary: var(--chx-limestone-200);
  --chx-text-muted: var(--chx-limestone-400);
  --chx-accent: var(--chx-gold-300);
  --chx-accent-hover: #e0c691;
  --chx-accent-deep: var(--chx-gold-500);
  --chx-border-subtle: var(--chx-line);
  --chx-border-accent: var(--chx-line-strong);
  --chx-success: #87a87c;
  --chx-warning: #d2a96a;
  --chx-danger: #c66952;
  --chx-font-display: var(--chx-serif);
  --chx-font-editorial: "Fraunces", Georgia, serif;
  --chx-font-ui: var(--chx-sans);
  --chx-font-mono: var(--chx-mono);
  --chx-radius-control: 10px;
  --chx-radius-media: 16px;
  --chx-space-section: clamp(64px, 9vw, 144px);
  --chx-motion-fast: 180ms;
  --chx-motion-base: 320ms;
  --chx-motion-reveal: 760ms;
}

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

html {
  scroll-behavior: smooth;
  background: var(--chx-obsidian-950);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--chx-limestone-100);
  background: var(--chx-obsidian-950);
  font-family: var(--chx-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.chx-menu-open { overflow: hidden; }

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

a { color: inherit; }

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

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--chx-gold-300);
  outline-offset: 4px;
}

::selection {
  color: var(--chx-obsidian-950);
  background: var(--chx-gold-300);
}

.chx-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--chx-obsidian-950);
  background: var(--chx-limestone-100);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.chx-skip-link:focus { transform: translateY(0); }

.chx-shell {
  width: var(--chx-shell);
  margin-inline: auto;
}

.chx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--chx-gold-300);
  font: 500 .68rem/1.2 var(--chx-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.chx-eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.chx-display {
  margin: 0;
  font-family: var(--chx-serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

.chx-title {
  margin: 0;
  font-family: var(--chx-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.chx-lead {
  color: var(--chx-limestone-400);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.8;
}

.chx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chx-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--chx-line-strong);
  border-radius: 999px;
  color: var(--chx-limestone-100);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: color 260ms var(--chx-ease), background 260ms var(--chx-ease), border-color 260ms var(--chx-ease), transform 260ms var(--chx-ease);
}

.chx-button:hover {
  border-color: var(--chx-gold-300);
  transform: translateY(-2px);
}

.chx-button--solid {
  color: var(--chx-obsidian-950);
  background: var(--chx-gold-300);
  border-color: var(--chx-gold-300);
}

.chx-button--solid:hover { background: #e0c691; }

.chx-button__arrow { font-size: 1.12em; }

.chx-rule { height: 1px; background: var(--chx-line); }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 850ms var(--chx-ease), transform 850ms var(--chx-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  :root { --chx-shell: min(100% - 32px, 1320px); }
  .chx-actions { align-items: stretch; flex-direction: column; }
  .chx-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
