/* RegVision design tokens — canonical values from frontend/index.html */
@import url('./fonts.css');

@font-face {
  font-family: 'Ndot57';
  src: url('https://cdn.jsdelivr.net/gh/xeji01/nothingfont@main/fonts/Ndot57-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ndot55';
  src: url('https://cdn.jsdelivr.net/gh/xeji01/nothingfont@main/fonts/Ndot55-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #000;
  --surface: #0A0A0A;
  --card: #111;
  --raised: #171717;

  --border: rgba(255, 255, 255, 0.08);
  --border-s: rgba(255, 255, 255, 0.16);
  --border-x: rgba(255, 255, 255, 0.28);

  --text: #FFF;
  --muted: #A0A0A0;
  --muted-legal: #6E6E6E;
  --dim: #222;

  --orange: #ED7B1C;
  --orange-hover: #C96A12;
  --o-dim: rgba(237, 123, 28, 0.07);
  --o-glow: rgba(237, 123, 28, 0.35);

  --green: #3DCC47;
  --g-dim: rgba(61, 204, 71, 0.07);
  --red: #FF4D2E;
  --r-dim: rgba(255, 77, 46, 0.07);
  --amber: #FFB000;
  --a-dim: rgba(255, 176, 0, 0.07);

  --f-dot: 'Ndot57', 'Ndot55', 'Space Mono', monospace;
  --f-mono: var(--f-dot);
  --f-body: 'Roboto Mono', 'Space Mono', monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --base: 200ms;
  --slow: 500ms;

  --nav-h: 56px;
  --max-w: 1080px;

  --t-hero: clamp(34px, 5.5vw, 44px);
  --t-h2: 22px;
  --t-h3: 17px;
  --t-body: 15px;
  --t-body-sm: 13px;
  --t-label: 11px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
button { text-transform: none; cursor: pointer; }
input, select, textarea {
  font-family: var(--f-body);
  font-weight: 400;
  text-transform: none;
}
a { color: inherit; text-decoration: none; }
a, button, [role="button"], .chip, .drop-zone, input, select, textarea {
  touch-action: manipulation;
}
.hidden { display: none !important; }

.text-accent { color: var(--orange); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 10px 16px;
  background: var(--orange);
  color: #000;
  font-family: var(--f-dot);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
