/*
  VYGIL. Shared tokens for the site, the watch app, the docs and the admin panel.
  Identity: a night coast. Sea-black + foam white, one lamp amber (the light that keeps watch) and a cold
  sea blue for "below" lines. Big Shoulders Display for headlines (harbour signage), Hanken Grotesk for text,
  Fragment Mono for prices and round ids.
*/
:root {
  --bg: #06090f;
  --bg-2: #0a0f17;
  --panel: #0e141e;
  --panel-2: #131b27;
  --line: rgba(220, 230, 245, 0.09);
  --line-2: rgba(220, 230, 245, 0.17);
  --fg: #e9edf3;
  --soft: #c3cad6;
  --mute: #8a94a6;
  --dim: #5a6476;
  --acc: #ffc46b;
  --acc-2: #ff9f43;
  --acc-ink: #1a1104;
  --sea: #7cc4ff;
  --ok: #7ee2b8;
  --bad: #ff7a6e;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --gutter: clamp(16px, 3vw, 36px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; }
.label { font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

/* pill buttons with a nested arrow */
.pill-btn { display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); transition: transform .6s var(--spring), background .6s var(--spring), box-shadow .6s var(--spring); }
.pill-btn .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--spring); }
.pill-btn .ico svg { width: 15px; height: 15px; }
.pill-btn.acc { background: var(--acc); color: var(--acc-ink); border-color: transparent; box-shadow: 0 10px 40px -10px rgba(255, 196, 107, 0.6); }
.pill-btn.acc .ico { background: rgba(26, 17, 4, 0.12); }
.pill-btn.ghost { background: rgba(233, 237, 243, 0.04); color: var(--fg); }
.pill-btn.ghost .ico { background: rgba(233, 237, 243, 0.08); }
.pill-btn:hover .ico { transform: translate(2px, -1px) scale(1.06); }
.pill-btn:active { transform: scale(0.98); }
.pill-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.link:hover { border-color: var(--acc); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--fg); transition: transform .15s var(--ease), background .2s, border-color .2s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.banner { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--acc); color: var(--acc-ink); text-align: center; font: 600 13.5px var(--body); padding: 9px 16px; }
.banner[hidden] { display: none; }
.grain { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
