/* 3AM Files FSE — Base (variables, reset, utilities) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:        #090b0e;
  --surface:   #0f1216;
  --surface-2: #15191e;
  --line:      #2a3037;
  --text:      #f4f5f6;
  --muted:     #9da5ad;
  --green:     #52d69a;
  --amber:     #f0b833;
  --red:       #f05d5d;
  --grey:      #a8b0b8;
  --crimson:   #a31f2d;
  --radius:    10px;
  --shell:     1440px;
  --font:      Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* Layout shells */
.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}
.shell-narrow {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

/* Screen reader only */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  left: 20px; top: 20px;
  width: auto; height: auto;
  padding: 12px 16px;
  background: #fff; color: #000;
  clip: auto; z-index: 9999;
}

/* Focus styles */
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255,255,255,.4);
  outline-offset: 3px;
}

/* SVG defaults */
svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status badges */
.status {
  display: inline-flex;
  margin: 14px 0 10px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
}
.status--documented { color: var(--green); background: rgba(82,214,154,.08); }
.status--reported   { color: var(--amber); background: rgba(240,184,51,.08); }
.status--disputed   { color: var(--red);   background: rgba(240,93,93,.08); }
.status--unverified { color: var(--grey);  background: rgba(168,176,184,.08); }

/* Evidence colours */
.documented { color: var(--green); }
.reported   { color: var(--amber); }
.disputed   { color: var(--red); }
.unverified { color: var(--grey); }

/* Buttons */
.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: .2s ease;
  cursor: pointer;
}
.button svg { width: 17px; }
.button--light { background: #fff; color: #0c0e11; border-color: #fff; }
.button--light:hover { background: #dfe3e6; }
.button--ghost { background: rgba(7,9,12,.48); color: #fff; }
.button--ghost:hover { background: #161a1f; }
.button--primary { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.button--primary:hover { background: #c0242f; border-color: #c0242f; }

/* Icon button */
.icon-button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.icon-button:hover { border-color: var(--line); background: var(--surface-2); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
