/* FPV: Last Signal - shared tokens, type and controls */
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("/assets/fonts/share-tech-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #12140f;
  --bg-2: #1b1e17;
  --panel: rgba(16, 18, 13, 0.86);
  --ink: #ece9dc;
  --muted: #a3a18c;
  --line: rgba(236, 233, 220, 0.16);
  --line-strong: rgba(236, 233, 220, 0.34);
  --amber: #f2a93b;
  --amber-ink: #1a1405;
  --red: #e5482f;
  --green: #9dff7a;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --osd: "Share Tech Mono", ui-monospace, monospace;
  --cut: 12px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffc56e; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }

.btn {
  --btn-bg: rgba(236, 233, 220, 0.06);
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 46px; padding: 10px 22px 10px 18px;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; color: var(--btn-ink);
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  transition: background-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.btn:hover { --btn-bg: rgba(236, 233, 220, 0.13); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { --btn-bg: var(--amber); --btn-ink: var(--amber-ink); --btn-line: transparent; }
.btn-primary:hover { --btn-bg: #ffbd57; color: var(--amber-ink); }
.btn-quiet { --btn-bg: transparent; --btn-line: transparent; color: var(--muted); padding-left: 0; }
.btn-quiet:hover { --btn-bg: transparent; color: var(--ink); }
.btn-danger { --btn-line: rgba(229, 72, 47, 0.6); color: #ff8f7c; }
.btn-label { font-size: 20px; }
.btn-sub { font-family: var(--body); font-weight: 400; font-size: 13px; letter-spacing: 0; opacity: 0.8; }

.site-footer {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center;
  font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.noscript { position: fixed; inset: auto 16px 16px 16px; z-index: 100; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
