:root {
  /* Color roles */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-subtle: #F4EFEA;
  --text: #1A1817;
  --text-secondary: #5C554E;
  --text-soft: #8E857C;
  --accent: #E63946;
  --accent-hover: #CC2A37;
  --accent-secondary: #457B9D;
  --border: #E8E1D7;
  --border-light: #F0EAE1;
  --event-coffee: #C9A27A;
  --event-dinner: #E63946;
  --event-friends: #457B9D;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: 96px;

  /* Type */
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --text-display: 4.5rem;
  --text-display-phone: 2.5rem;
  --text-title: 3rem;
  --text-lead: 1.25rem;
  --text-body: 1rem;
  --text-nav: 0.875rem;
  --text-label: 0.75rem;

  /* Shape */
  --radius: 0;
  --radius-max: 2px;
  --focus-ring: 2px solid var(--text);
  --focus-offset: 2px;

  font-family: var(--font-body);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Navigation */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.nav-item {
  background: var(--surface);
  padding: 1.25rem var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-nav);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item[aria-current="page"]:not(.primary) {
  background: var(--surface-subtle);
}

.nav-item:hover,
.nav-item[aria-current="page"]:not(.primary):hover {
  background: var(--text);
  color: var(--surface);
}

.nav-item.primary {
  background: var(--accent);
  color: white;
}

.nav-item.primary:hover {
  background: var(--accent-hover);
}

.nav-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  opacity: 0.4;
}

.nav-item:hover::before {
  opacity: 1;
}

@media (max-width: 600px) {
  .nav-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@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;
  }
}
