/* Shared design tokens, fonts and page chrome for all templates.
   Loaded before each page's own <style>; pages keep only page-specific CSS. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
@font-face {
  font-family: 'iA Writer Mono';
  src: url('/assets/fonts/iA_Writer_Mono/iAWriterMonoV.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'iA Writer Mono';
  src: url('/assets/fonts/iA_Writer_Mono/iAWriterMonoV-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
@font-face {
  font-family: 'Crimson Pro';
  src: url('/assets/fonts/Crimson_Pro/CrimsonPro-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Crimson Pro';
  src: url('/assets/fonts/Crimson_Pro/CrimsonPro-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('/assets/fonts/Great_Vibes/GreatVibes-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #1a1714;
  --panel: #221f1b;
  --panel2: #2a2520;
  --border: #3a342c;
  --accent: #c8a96e;
  --accent-dim: #8a6f3e;
  --text: #e8ddd0;
  --text-dim: #8a7d6e;
  --highlight: rgba(200, 169, 110, 0.18);
  --highlight-strong: rgba(200, 169, 110, 0.35);
  --red: #e07070;
  --yellow: #c8a860;
  --green: #7ec87e;
  --green-dark: #3a9a3a;
  --blue: #6ea8c8;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'iA Writer Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Wordmark in the page header (viewer/overview). */
header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--accent);
  white-space: nowrap;
}
header h1 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
header h1 a:hover { color: #e0c894; }

/* View-as-user preview banner and role-scoped visibility. */
body.view-as-user .admin-only { display: none !important; }
body:not(.view-as-user) .view-as-only { display: none !important; }
.view-as-banner {
  background: #5a3a00;
  color: #ffd88a;
  border-bottom: 1px solid #8a5c00;
  padding: 6px 20px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.view-as-banner button {
  background: transparent;
  border: 1px solid #ffd88a;
  color: #ffd88a;
  border-radius: 3px;
  padding: 2px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}
.view-as-banner button:hover { background: rgba(255, 216, 138, 0.12); }
