/* ============================================================
   The Event Trip — design tokens
   Art direction: "floodlight" — night arena ink + warm paper,
   single amber accent. Editorial serif display, neutral sans body.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.5rem, 1.3rem + 3.4vw, 4.25rem);

  /* Spacing */
  --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;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --measure: 68ch;
  --container: 1180px;
  --container-narrow: 760px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light (default) — warm paper */
:root,
[data-theme='light'] {
  --color-bg: #f8f6f1;
  --color-surface: #fdfcfa;
  --color-surface-2: #f2efe8;
  --color-surface-offset: #ebe7de;
  --color-divider: #ddd8cd;
  --color-border: #cec8bb;

  --color-text: #191713;
  --color-text-muted: #6b665c;
  --color-text-faint: #a8a297;
  --color-text-inverse: #faf8f4;

  --color-accent: #a8560f;
  --color-accent-hover: #8c460b;
  --color-accent-soft: #f6e7d5;
  --color-accent-line: #e0c8a8;

  --color-ink: #0d1014;
  --color-ink-2: #151a20;

  --shadow-sm: 0 1px 2px rgba(25, 23, 19, 0.06);
  --shadow: 0 2px 8px rgba(25, 23, 19, 0.07), 0 1px 2px rgba(25, 23, 19, 0.05);
  --shadow-lg: 0 12px 36px rgba(25, 23, 19, 0.1), 0 2px 8px rgba(25, 23, 19, 0.06);
}

[data-theme='dark'] {
  --color-bg: #0d1014;
  --color-surface: #14181e;
  --color-surface-2: #1a1f26;
  --color-surface-offset: #212730;
  --color-divider: #2a313b;
  --color-border: #363f4a;

  --color-text: #eae6dd;
  --color-text-muted: #9aa0a8;
  --color-text-faint: #666d76;
  --color-text-inverse: #0d1014;

  --color-accent: #e39a4a;
  --color-accent-hover: #f0ad60;
  --color-accent-soft: #2a2016;
  --color-accent-line: #47382a;

  --color-ink: #080a0d;
  --color-ink-2: #10141a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #0d1014;
    --color-surface: #14181e;
    --color-surface-2: #1a1f26;
    --color-surface-offset: #212730;
    --color-divider: #2a313b;
    --color-border: #363f4a;
    --color-text: #eae6dd;
    --color-text-muted: #9aa0a8;
    --color-text-faint: #666d76;
    --color-text-inverse: #0d1014;
    --color-accent: #e39a4a;
    --color-accent-hover: #f0ad60;
    --color-accent-soft: #2a2016;
    --color-accent-line: #47382a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h4,
h5 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}
p {
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.rule {
  border: 0;
  border-top: 1px solid var(--color-divider);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
[data-theme='dark'] .btn-primary {
  color: #14100a;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header.on-dark {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: #eae6dd;
}
.site-header.on-dark.is-stuck {
  background: color-mix(in srgb, #0d1014 90%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg {
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.15s;
}
.nav a:hover {
  opacity: 1;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  flex: none;
}
.site-header.on-dark .theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
}
@media (max-width: 720px) {
  .nav a.hide-sm {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #b6b2a8;
  padding-block: var(--space-16) var(--space-10);
  font-size: var(--text-sm);
}
.site-footer a {
  color: #e6e1d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 225, 214, 0.25);
}
.site-footer a:hover {
  border-bottom-color: #e6e1d6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer-grid h5 {
  color: #faf8f4;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.footer-legal {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: #85817a;
  line-height: 1.7;
}

/* ---------- Disclosure ---------- */
.disclosure {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}
