/* Project Nihon · Shrine Carbon / Liquid Glass
   Brand red is taken verbatim from the original --nh-red. */
:root {
  --brand-red:#d00000; --brand-hover:#b50000; --brand-soft:rgba(208,0,0,.12);
  --surface-0:#0c0d0e; --surface-1:#131517; --surface-2:#1d2023;
  --ink:#f6f7f8; --ink-soft:#c2c6ca; --ink-muted:#959ba2;
  --border:rgba(255,255,255,.10); --border-strong:rgba(255,255,255,.22);
  --positive:#70d5a5; --warning:#edbe6c; --negative:#ff8d91;
  --glass-bg:rgba(21,24,27,.72); --glass-solid:#191c1f;
  --glass-blur:blur(22px) saturate(135%); --glass-highlight:inset 0 1px 0 rgba(255,255,255,.07);
  --shadow-panel:0 16px 48px rgba(0,0,0,.18); --shadow-modal:0 24px 96px rgba(0,0,0,.45);
  --overlay:rgba(5,7,9,.78); --on-photo:#fff; --on-photo-muted:#d6d9dc;
  --radius-xs:3px; --radius-sm:4px; --radius:8px; --radius-pill:999px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;
  --font-body:'Inter',sans-serif; --font-mono:'JetBrains Mono',monospace;
  --font-display:var(--font-body); --font-pixel:var(--font-body); --font-cond:var(--font-body); --font-read:var(--font-body);
  --text-xs:12px; --text-sm:14px; --text-md:16px; --text-lg:18px; --text-xl:24px;
  --ease-out:cubic-bezier(.2,.7,.2,1); --motion-fast:120ms; --motion-page:160ms;
  --content-width:1280px; --gutter:40px; --header-height:88px;
  /* Compatibility aliases: existing templates and scripts keep their bindings. */
  --nh-bg:var(--surface-0); --nh-s1:var(--surface-1); --nh-s2:var(--surface-2);
  --nh-line:var(--border); --nh-line2:var(--border-strong); --nh-tx:var(--ink); --nh-mu:var(--ink-muted); --nh-red:var(--brand-red); --nh-ok:var(--positive);
  --bg:var(--surface-0); --page:var(--surface-0); --black:var(--surface-0); --box:var(--surface-1); --panel:var(--surface-1); --box-2:var(--surface-2); --box2:var(--surface-2); --panel-2:var(--surface-2);
  --text:var(--ink); --white:var(--ink); --silver:var(--ink-soft); --soft:var(--ink-soft); --grey:var(--ink-muted); --dim:var(--ink-muted);
  --link:var(--ink); --link-hover:var(--ink); --red:var(--brand-red); --red-bright:var(--ink); --new-red:var(--brand-red); --led:var(--positive);
  --line:var(--border); --rule:var(--border); --steel:var(--ink-soft); --steel-dim:var(--border-strong);
  --win-grey:var(--surface-2); --win-light:var(--border-strong); --win-shadow:var(--border); --win-dark:var(--surface-0); --title-a:var(--surface-2); --title-b:var(--surface-2);
}
@media(max-width:900px){:root{--gutter:24px;--header-height:76px}}
@media(max-width:600px){:root{--gutter:20px;--header-height:72px}}