/* Ensiglo — brand CI (CLAUDE.md §5): Siglo Magenta, Ink, Paper; humanist sans,
   sentence case everywhere. The fixed magenta is for IDENTITY; the in-the-wild
   Siglo on media is adaptive (handled in JS), not this colour. */
:root {
  --magenta: #E6007A;
  --ink: #1A1A1A;
  --paper: #F4F1EA;
  --ok: #1a7f4b;
  --warn: #b5701a;
  --err: #b51a1a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid rgba(26,26,26,.08);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.topbar nav a { margin-left: 16px; color: var(--ink); text-decoration: none; opacity: .6; font-weight: 600; }
.topbar nav a.active { opacity: 1; color: var(--magenta); }

main { max-width: 560px; margin: 0 auto; padding: 18px; }
.screen { display: flex; flex-direction: column; gap: 16px; }
.screen-title { font-size: 1.4rem; margin: 4px 0 0; }
.hint { color: rgba(26,26,26,.66); line-height: 1.45; margin: 0; }

.cam-wrap {
  position: relative; width: 100%; aspect-ratio: 3/4; background: #000;
  border-radius: var(--radius); overflow: hidden;
}
video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reticle {
  position: absolute; inset: 12% 8%; border: 3px solid rgba(255,255,255,.85);
  border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.25);
}
.fineprint { font-size: .82rem; color: rgba(26,26,26,.55); line-height: 1.4; margin: 8px 0 0; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 1px solid rgba(26,26,26,.18); background: #fff; color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: rgba(26,26,26,.6); }
.btn.big { font-size: 1.15rem; padding: 16px 26px; }
.btn:disabled { opacity: .5; cursor: default; }

.stage, .result-stage { display: flex; flex-direction: column; gap: 14px; }
.result-stage img { width: 100%; border-radius: var(--radius); display: block; }

.status { min-height: 1.2em; margin: 0; color: rgba(26,26,26,.7); font-size: .95rem; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }

/* graded verification artifact (§8) */
.result { border-radius: var(--radius); padding: 18px; background: #fff; border: 1px solid rgba(26,26,26,.1); }
.result.good { border-left: 6px solid var(--ok); }
.result.warn { border-left: 6px solid var(--warn); }
.result.bad  { border-left: 6px solid var(--err); }
.result .verdict { font-weight: 800; font-size: 1.1rem; }
.result .grade { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.result .explain { color: rgba(26,26,26,.7); margin: 6px 0 12px; }
.result ul.claims { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result ul.claims li { display: flex; flex-direction: column; }
.result ul.claims b { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .55; }
.result ul.claims span { font-size: .98rem; }
.result ul.claims code { background: rgba(26,26,26,.06); padding: 1px 6px; border-radius: 6px; }
.result ul.claims em { opacity: .6; font-style: normal; }
.result .fineprint { margin-top: 14px; font-size: .82rem; color: rgba(26,26,26,.55); line-height: 1.4; }
