/* ============================================================================
   Utopian Ventures — shared site chrome (one canonical source of truth).
   Source file: tools/chrome/partials/chrome.css
   Served file: public/assets/chrome.css  (auto-copied by build_chrome.py)
   Do not edit the served copy. Re-run `python3 tools/chrome/build_chrome.py`
   after changing this file.

   What this owns:
     - Base palette/typography CSS variables
     - Body grain overlay
     - Staging-bar
     - Announce banner (Oyster→Utopian pill)
     - Rebrand modal
     - Header / logo / nav / theme toggle
     - LIGHT THEME overrides for ALL chrome elements above
       (page content theme rules stay in each page's own <style>)
   What this does NOT own:
     - Page-specific hero/grid/typography (those live in each page's <style>)
   ========================================================================== */

:root {
  --ink: #0a0807;
  --ink-2: #141110;
  --ivory: #f3eee5;
  --paper: #ece7dd;
  --muted: #9a8f80;
  --muted-2: #6f6558;
  --line: rgba(243, 238, 229, 0.10);
  --line-strong: rgba(243, 238, 229, 0.22);
  --orange: #ff3b00;
  --orange-glow: rgba(255, 80, 30, 0.55);
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --announce-h: 36px;
  --staging-h: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink); color: var(--ivory);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; position: relative; }

/* Subtle paper grain (fixed overlay, both themes). */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ── Staging preview bar ─────────────────────────────────────────────────── */
.staging-bar {
  position: relative; z-index: 60;
  background: #1c0a02; color: var(--ivory);
  border-bottom: 1px solid rgba(255,80,30,0.32);
  font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.16em; text-transform: uppercase;
  height: var(--staging-h);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 10px; text-align: center;
}
.staging-bar strong { color: var(--orange); font-weight: 600; }
.staging-bar span   { color: var(--muted); }

/* ── Announcement banner (Oyster→Utopian) ────────────────────────────────── */
.announce {
  position: relative; z-index: 5;
  background: #050403; color: var(--ivory);
  font-size: 12.5px; letter-spacing: 0.02em;
  text-align: center; height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0;
}
.announce-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 100%; padding: 0 14px;
  color: inherit; font: inherit; letter-spacing: inherit;
  text-decoration: none; cursor: pointer;
  background: none; border: 0;
  transition: opacity .15s ease;
}
.announce-btn:hover { opacity: 0.85; }
.announce-btn:hover .oyster-mark { filter: drop-shadow(0 0 6px var(--orange-glow)); }
.announce-btn:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }
.announce .oyster-mark { width: 14px; height: 14px; flex: none; display: block; transition: filter .15s ease; }
.announce .from   { color: #7a7167; margin-right: 6px; }
.announce strong  { font-weight: 500; color: var(--ivory); }
.announce .arrow {
  display: inline-block; margin-left: 8px;
  color: #7a7167; font-size: 11px;
  transition: transform .2s ease, color .15s ease;
}
.announce-btn:hover .arrow { transform: translateX(2px); color: var(--ivory); }

/* ── Rebrand modal ───────────────────────────────────────────────────────── */
.rebrand-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.rebrand-modal.is-open { display: flex; }
.rebrand-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(5,4,3,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: rb-fade .2s ease;
}
.rebrand-modal__card {
  position: relative; width: min(560px, 100%);
  background: #0f0c0a; color: var(--ivory);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  padding: 44px 44px 38px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: rb-rise .25s cubic-bezier(.2,.7,.2,1);
}
.rebrand-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: inherit; opacity: 0.55; border-radius: 50%;
  font-size: 18px; line-height: 1;
}
.rebrand-modal__close:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.rebrand-modal__close:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; opacity: 1; }
.rebrand-modal__lockup {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.02em; color: #8a8077;
  margin-bottom: 26px; flex-wrap: wrap;
}
.rebrand-modal__lockup .o-mark   { width: 16px; height: 16px; flex: none; }
.rebrand-modal__lockup .uv-mark  { height: 16px; width: auto; flex: none; color: var(--ivory); }
.rebrand-modal__lockup .arrow-sep { opacity: 0.5; }
.rebrand-modal__lockup .new { color: var(--ivory); font-weight: 500; letter-spacing: 0.04em; }
.rebrand-modal h2 {
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.rebrand-modal p {
  font-size: 14.5px; line-height: 1.65; color: #c9bfb2;
  margin: 0 0 14px;
}
.rebrand-modal p:last-of-type { margin-bottom: 26px; }
.rebrand-modal__sig {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #8a8077;
}
@keyframes rb-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rb-rise {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header / nav ────────────────────────────────────────────────────────── */
.header {
  position: relative; z-index: 10; height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 8, 7, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; height: 100%;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; color: var(--ivory); text-decoration: none; }
.logo-mark { display: block; flex-shrink: 0; height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a,
.nav button.theme-toggle {
  font-size: 14px; color: var(--ivory); letter-spacing: 0.005em;
  transition: color .2s ease; position: relative;
}
.nav a:hover, .nav button.theme-toggle:hover { color: var(--orange); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -28px;
  height: 1px; background: var(--orange);
}
.nav .sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
.nav .email::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
  margin-right: 10px; transform: translateY(-1px);
  box-shadow: 0 0 8px var(--orange-glow);
}
.nav button.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.nav button.theme-toggle .icn { width: 14px; height: 14px; display: block; }

/* Responsive header */
@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .nav .sep, .nav .email { display: none; }
  .nav { gap: 16px; }
  .nav a, .nav button.theme-toggle { font-size: 13px; }
}
@media (max-width: 520px) {
  .logo-mark { height: 44px; }
  .nav { gap: 12px; }
  /* Drop the verbose Dark/Light label on phones; the icon is the tap target. */
  .nav button.theme-toggle .theme-label { display: none; }
}

/* ── LIGHT THEME — chrome only ──────────────────────────────────────────────
   Activated by `.theme-light` on <html> (mirrored to <body> by chrome.js).
   Each page that wants light-theme support owns its own .theme-light rules
   for its page-specific content. Chrome stays consistent everywhere.
   ────────────────────────────────────────────────────────────────────────── */
html.theme-light, .theme-light body { background: #f1ead8; color: #0a0807; }
.theme-light .header { background: rgba(241, 234, 222, 0.7); border-bottom-color: rgba(10, 8, 7, 0.10); }
.theme-light .logo { color: #0a0807; }
.theme-light .nav a, .theme-light .nav button.theme-toggle { color: #0a0807; }
.theme-light .nav .sep { background: rgba(10,8,7,0.18); }
.theme-light .announce { background: #0a0807; }
.theme-light .staging-bar { background: #2a1408; }
.theme-light .rebrand-modal__card { background: #f6efe2; color: #1a1410; border-color: rgba(0,0,0,0.08); }
.theme-light .rebrand-modal__scrim { background: rgba(241, 234, 222, 0.78); }
.theme-light .rebrand-modal__close:hover { background: rgba(0,0,0,0.06); }
.theme-light .rebrand-modal__lockup { color: #6b6055; }
.theme-light .rebrand-modal__lockup .uv-mark { color: #1a1410; }
.theme-light .rebrand-modal__lockup .new { color: #1a1410; }
.theme-light .rebrand-modal p { color: #4a3f35; }
.theme-light .rebrand-modal__sig { color: #6b6055; }
