/* secret.express lander: the page's stylesheets in its order, bundled by express-sync.py (OPS-28.12). */
/* ---- express.css */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif.woff2?v=60c06664b5) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/plex-sans-var.woff2?v=056e4e2459) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2?v=f17f51948d) format("woff2"); }

/* night (dark) is the default; day (light) only when chosen with the toggle */
:root {
  --bg: #06080c;
  --ink: #ece7dc;
  --muted: #b9b2a5;
  --faint: #979084;
  --gold: #c8a36a;
  --gold-2: #e4c48a;
  --red: #ff3912;
  --on-gold: #1b150c;
  --line: rgba(236, 231, 220, 0.14);
  --panel: rgba(6, 8, 12, 0.74);
  --tile: #090908;
  --scrim: rgba(6, 8, 12, 0.55);
  --nav-fade: rgba(6, 8, 12, 0.86);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4.6vw, 96px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* day: secret.zone's light theme, ink and gold on paper */
  --bg: #f4f1e9;
  --ink: #1c1a16;
  --muted: #5f584c;
  --faint: #6b6458;
  --gold: #a8823f;
  --gold-2: #7a581c;
  --on-gold: #fffdf8;
  --line: rgba(28, 26, 22, 0.14);
  --panel: rgba(255, 253, 248, 0.9);
  --scrim: rgba(244, 241, 233, 0.8);
  --nav-fade: rgba(244, 241, 233, 0.92);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); letter-spacing: -0.005em; overflow-x: clip; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 57, 18, 0.35); color: var(--ink); }

.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
.nav, main, .foot { position: relative; z-index: 1; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 6px; background: var(--gold); color: var(--on-gold); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- nav: the mark and name, night/day, and the way to Secret Zone */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 14px var(--gut);
  padding-left: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
  background: linear-gradient(to bottom, var(--nav-fade) 0%, var(--nav-fade) 35%, transparent 100%);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 500; font-size: 17px; letter-spacing: -0.02em; min-width: 0; }
.mk, .tile { position: relative; display: block; flex: 0 0 auto; }
.mk { width: 34px; height: 34px; }
.mk img, .mk canvas, .tile img, .tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the still mark shows until its script has drawn; then the live canvas covers it */
.mk canvas, .tile canvas { visibility: hidden; }
.mk canvas[data-sh-on], .tile canvas[data-sh-on], .tile canvas[data-si-on], .tile canvas[data-cb-on] { visibility: visible; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; flex: 0 0 auto;
}
.theme-toggle:hover { border-color: var(--gold-2); box-shadow: 0 0 18px -6px rgba(228, 196, 138, 0.55); }
.tt-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); }

/* ---- buttons: gold for the one thing to do, ghost for the other; hover, press and focus all shown */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 6px 28px -8px rgba(228, 196, 138, 0.6); }
:root[data-theme="light"] .h-hero em { color: #a5803f; }
/* buttons as on secret.zone's light theme (the .soon pills) */
:root[data-theme="light"] .btn { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; border: 1px solid var(--gold-2); }
:root[data-theme="light"] .btn-gold { background: var(--gold-2); color: var(--on-gold); box-shadow: none; }
:root[data-theme="light"] .btn-gold:hover { background: #64470f; border-color: #64470f; color: var(--on-gold); box-shadow: none; }
:root[data-theme="light"] .btn-ghost { background: transparent; color: var(--gold-2); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(122, 88, 28, 0.09); color: var(--gold-2); box-shadow: none; }
:root[data-theme="light"] .lives-h, :root[data-theme="light"] .item { background: rgba(255, 253, 248, 0.92); border-color: #e5dfd2; }
:root[data-theme="light"] .item .name { color: var(--ink); }
:root[data-theme="light"] .item .addr { color: var(--gold-2); }
:root[data-theme="light"] .item .what { color: var(--muted); }
.btn-ghost { border-color: color-mix(in srgb, var(--gold-2) 50%, transparent); color: var(--gold-2); background: var(--scrim); }
.btn-ghost:hover { border-color: var(--gold-2); box-shadow: 0 6px 26px -10px rgba(228, 196, 138, 0.5); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-nav { min-height: 40px; padding: 8px 16px; flex: 0 0 auto; }
.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible, .brand:focus-visible, .theme-toggle:focus-visible, .foot a:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(228, 196, 138, 0.18);
}

/* ---- hero: the words in the sky, the horizon kept below them */
.hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); padding: clamp(32px, 9vh, 128px) var(--gut) 0; }
.hero-copy { max-width: 60rem; }
.eyebrow { margin: 0 0 20px; font: 500 15px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); display: inline-block; }
.h-hero { margin: 0; font: 400 clamp(50px, 6.3vw, 138px)/0.94 var(--serif); letter-spacing: -0.035em; }
.h-hero em { font-style: normal; color: var(--gold-2); }
.lede { margin: clamp(20px, 2.6vh, 32px) 0 0; max-width: 36rem; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 40px); }

/* ---- what lives at secret.express: one compact strip */
.lives { padding: 0 var(--gut) clamp(64px, 12vh, 140px); }
.lives-in { max-width: 1440px; margin: 0 auto; }
.lives-h { margin: 0 0 14px; padding: 8px 18px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 400 clamp(30px, 2.8vw, 48px)/1.05 var(--serif); letter-spacing: -0.02em; display: inline-block; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1560px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; align-items: start;
  padding: 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.item:hover { border-color: color-mix(in srgb, var(--gold-2) 55%, transparent); box-shadow: 0 10px 40px -20px rgba(228, 196, 138, 0.45); transform: translateY(-2px); }
.tile { grid-row: 1 / span 3; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--tile); }
.name { font: 400 26px/1.05 var(--serif); letter-spacing: -0.01em; }
.addr { font: 500 15px/1.35 var(--mono); letter-spacing: -0.02em; color: var(--gold-2); overflow-wrap: break-word; }
.what { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---- footer: quiet */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gut) max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--faint); font-size: 15px;
  background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); transition: color 0.2s; }
.foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  :root { --gut: 16px; }
  .nav { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 16px; gap: 9px; }
  .mk { width: 30px; height: 30px; }
  .btn-nav { padding: 8px 14px; }
  .btn-nav .arr { display: none; }
  .hero { min-height: 0; padding-top: 28px; padding-bottom: 46vh; }
  .h-hero { font-size: clamp(40px, 11.6vw, 58px); }
  .lede { font-size: 17px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn-lg { width: 100%; }
  .strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .item { padding: 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .item, .btn, .btn .arr { transition: none; }
  .item:hover { transform: none; }
}


/* the nav: never overlapped; a soft backdrop once the page has scrolled; its controls never shrink away */
.nav { transition: background-color 0.25s, box-shadow 0.25s; }
.nav > * { flex-shrink: 0; position: relative; z-index: 1; }
.nav .brand { flex-shrink: 1; min-width: 0; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 16px 32px -20px rgba(0, 0, 0, 0.5); }

/* desktop: the hero box stays pinned in the top left while the scene scrolls and the strip comes up
   (the hero box becomes a child of main for sticky; page.js keeps the strip exactly where it was) */
.pin .hero { display: contents; }
.pin .hero-copy { position: sticky; top: 92px; margin: clamp(32px, 9vh, 128px) var(--gut) 0; transform-origin: 0 0; will-change: transform; }

/* the strip starts fully below the fold, so no border peeks up at the bottom edge */
.lives { padding-top: 72px; }

/* pinned: a little less room under the strip, so the hero box keeps more of its size at the bottom of the page */
.pin .lives { padding-bottom: clamp(24px, 4vh, 56px); }

/* frosted glass (off unless switched on in the knobs): a blur behind the hero box and the strip, with no layout change */
.frost .hero-copy { position: relative; isolation: isolate; }
.frost .hero-copy::before { content: ""; position: absolute; inset: -20px -24px; z-index: -1; border-radius: 16px; background: color-mix(in srgb, var(--bg) 30%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
.frost .item, .frost .lives-h { background: color-mix(in srgb, var(--panel) 55%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }

/* light mode: the hero stays legible at every scroll position: deep ink subline, deep gold line 2 and buttons
   (all 7:1 or better on the paper), a feathered paper scrim behind the whole hero block, a quiet selection colour */
:root[data-theme="light"] .lede { color: var(--ink); font-weight: 480; }
:root[data-theme="light"] .h-hero em { color: #664812; }
:root[data-theme="light"] .btn-gold { background: #664812; border-color: #664812; color: #fffdf8; }
:root[data-theme="light"] .btn-gold:hover { background: #553b0d; border-color: #553b0d; color: #fffdf8; }
:root[data-theme="light"] .btn-ghost { color: #664812; border-color: #664812; background: color-mix(in srgb, var(--bg) 70%, transparent); }
:root[data-theme="light"] .btn-ghost:hover { color: #553b0d; border-color: #553b0d; background: rgba(102, 72, 18, 0.08); }
:root[data-theme="light"] .eyebrow { color: #664812; }
:root[data-theme="light"] ::selection { background: rgba(165, 128, 63, 0.28); color: var(--ink); }
:root[data-theme="light"] .hero-copy { isolation: isolate; }
:root[data-theme="light"] .hero-copy:not(.pin .hero-copy) { position: relative; }
:root[data-theme="light"] .hero-copy::before {
  content: ""; position: absolute; inset: -40px -64px -44px -48px; z-index: -1; pointer-events: none; border-radius: 48px;
  background: radial-gradient(ellipse 70% 66% at 40% 50%, color-mix(in srgb, var(--bg) 96%, transparent) 60%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
@media (max-width: 640px) { :root[data-theme="light"] .hero-copy::before { inset: -16px -16px -20px -16px; } }
