/* Sherpa — shared design system */
:root {
  --canvas: #0e1014;
  --canvas-2: #14171d;
  --canvas-3: #1a1d24;
  --ink: #e7e5e0;
  --ink-2: #a8a59f;
  --ink-3: #6e6b66;
  --rule: #23262d;
  --rule-2: #2c3038;
  --amber: #e6a23b;
  --amber-soft: #b07a26;
  --green: #6fb37b;
  --red: #d46a6a;
  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* atmospheric background — lantern carrier illustration */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-color: var(--canvas);
  background-image: url('/hero.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat; }
.bg::after { content: ""; position: absolute; inset: 0; background: var(--canvas); opacity: 0.3; }
.bg svg, .bg .bg-img { display: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>"); }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,16,20,0.0) 0%, rgba(14,16,20,0.55) 32%, rgba(14,16,20,0.92) 60%, rgba(14,16,20,1) 100%); }
.lightning { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: rgba(180,200,230,0); transition: background 90ms ease-out; }
.lightning.flash { background: rgba(180,200,230,0.07); }

.wrap { position: relative; z-index: 3; max-width: 980px; margin: 0 auto; padding: 28px 32px 96px; }

/* top strip */
.top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand svg { display: block; }
.word { font-family: var(--serif); font-size: 28px; letter-spacing: 0.01em; }
.word .tld { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: 2px; letter-spacing: 0.04em; }
.flame { fill: var(--amber); filter: drop-shadow(0 0 4px rgba(230,162,59,0.7)); }
.nav { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; user-select: none; transition: all .2s; }
.nav .pill:hover { border-color: var(--amber-soft); color: var(--ink); }
.nav .pill.on { color: var(--amber); border-color: var(--amber-soft); box-shadow: 0 0 22px rgba(230,162,59,0.18) inset; }
.nav .live { display: inline-flex; align-items: center; gap: 6px; }
.nav .live::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* common typography helpers */
.kicker { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; }
.label { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; }
.lede { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.note { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); line-height: 1.5; border-left: 2px solid var(--amber); padding-left: 14px; }

/* sign-off */
.signoff { margin-top: 96px; text-align: center; padding-top: 36px; border-top: 1px solid var(--rule); position: relative; }
.signoff::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.signoff .line { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
.signoff .by { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; margin-top: 14px; }

footer { margin-top: 64px; padding-top: 24px; border-top: 1px dashed var(--rule); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
footer a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--amber); }

@media (max-width: 720px) {
  .wrap { padding: 20px 18px 80px; }
  .nav { gap: 12px; }
  .nav a:not(.pill):not(.live) { display: none; }
}
