/*
 * FactureCheck brand tokens + the "compliance stamp" component.
 * Loaded on every site/ page, on top of Pico (CDN) which still owns
 * layout/grid/forms — this file only sets tokens, type, the stamp, and
 * a11y baseline. No build step: plain CSS, no preprocessor.
 *
 * Typography: this repo has no webfont pipeline (no /fonts, no @font-face
 * anywhere), so both faces are system stacks, not custom webfonts.
 *   --font-display: "Arial Black" first -- a real, widely-installed system
 *   face (Windows, macOS, most Linux via metric-compatible substitutes)
 *   that is genuinely heavier/blockier than default UI sans, giving the
 *   hero/section titles character without a serif (avoids the "cream +
 *   serif + terracotta" AI-look) or a webfont dependency.
 *   --font-body: the standard system UI sans stack -- calm, gets out of
 *   the way of --font-display.
 *   --font-mono: system monospace stack, used ONLY where mono carries
 *   meaning (rule_id, XML/SHA), never as a stylistic flourish.
 */

:root {
  --ink: #10141a;
  --paper: #fbfbf7;
  --bleu: #2937b8;
  --pass: #1a7f4e;
  --fail: #c22f2a;
  --muted: #5c6470;

  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

h1, h2, h3, .hero-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

code, pre, kbd, .mono, .rule-id {
  font-family: var(--font-mono);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
}

/* --- Hero --- */

.hero {
  padding-block: 1.5rem;
}

.hero-sub {
  color: var(--muted);
}

.hero-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-block: 1.5rem;
}

.hero-demo-caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Compliance stamp: the one bold, signature element. Everything else
   on the page stays calm and disciplined. --- */

.stamp {
  --stamp-color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  padding: 0.85rem 1.5rem;
  border: 3px solid var(--stamp-color);
  border-radius: 8px;
  color: var(--stamp-color);
  transform: rotate(-3deg);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--stamp-color);
  border-radius: 4px;
  pointer-events: none;
}

.stamp[data-verdict="pass"],
.stamp[data-verdict="pass-warnings"] {
  --stamp-color: var(--pass);
}

.stamp[data-verdict="fail"] {
  --stamp-color: var(--fail);
}

.stamp__verdict {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stamp__ruleset,
.stamp__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: inherit;
}

@media (max-width: 480px) {
  .stamp__verdict {
    font-size: 1.1rem;
  }
}

/* --- Rule encyclopedia (fc-t02, /rules/*): fix_hint highlighted block --- */

.fix-hint {
  border-left: 4px solid var(--bleu);
  background: #eceeff;
  padding: 0.85rem 1rem;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
