/* 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;
  --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);
}

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