/* One v2 — design tokens. Single source for palette + type.
   Dark by default; light opt-in via [data-theme="light"]. Link FIRST on every surface. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..500&display=swap');

:root {
  --bg: #221f1c;
  --surface: #2a2724;
  --text: #e8e4dd;
  --muted: #a89f93;
  --border: #3a342f;
  --accent: #c4b8a8;
  --wordmark: #8eb791;
  --eyebrow: #8C8478;
  --bubble-user: #2a2522;
  --error-bg: #2a1816;
  --error-border: #4a2a20;
  --error-text: #e8a08a;
  --btn-bg: #c4b8a8;
  --btn-text: #1a1a1a;
  --input-bg: #2a2724;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e2dc;
  --accent: #2a2a2a;
  --wordmark: #4a7a50;
  --bubble-user: #efeae3;
  --error-bg: #fef2f0;
  --error-border: #f4d4cc;
  --error-text: #8a2810;
  --btn-bg: #2a2a2a;
  --btn-text: #f5f3ef;
  --input-bg: #ffffff;

  color-scheme: light;
}

/* Brand lockup — orbit + wordmark. Set size per surface via .brand-lockup font-size. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.17em;
  text-decoration: none;
  color: var(--wordmark);
  font-size: 2.4rem;
}
.brand-lockup:hover { opacity: 0.85; }
.brand-lockup .wordmark {
  font-size: 1em;
  margin: 0;
}
.brand-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transform: translateY(0.04em);
}

/* Orbit mark — satellite revolves around the ring center (50,50 in the viewBox),
   360°/18s linear. Shared single home for every surface that renders .brand-icon. */
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.brand-icon .orbit-satellite {
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: orbit-spin 18s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand-icon .orbit-satellite { animation: none; }
}

/* Surface eyebrow — the lowercase, wide-tracked label above a surface's primary
   title. Shared across every web surface. */
.surface-eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

/* Warm empty states — italic muted copy, centered, with a still (non-spinning)
   orbit mark above. Shared home for .empty / .empty-state / .zone-empty; per-surface
   rules keep only their own spacing/size overrides. (.state is intentionally NOT
   included — it doubles as loading/error on dials/account.) */
.empty,
.empty-state,
.zone-empty {
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
.empty::before,
.empty-state::before,
.zone-empty::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="34" fill="none" stroke="%238eb791" stroke-width="3.5" opacity="0.4"/><circle cx="50" cy="50" r="13" fill="%238eb791" opacity="0.4"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Page sub-headers — shared across gallery, exhibition, etc. */
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}
.page-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
