/*
 * ASI Design System — tokens + color-intent from Harlan's "ASI Design System" (Lovable)
 * Color decision table (intent -> token):
 *   Primary action / main CTA ........ navy #325472 (primary)
 *   Spotlight accent / single CTA .... orange #DE7F2C (accent)
 *   Small accent text < 16px ......... orange-700 #A05716
 *   Success / calm confirmation ...... sage #63776B
 *   Warm surface / muted card ........ paper #F3E3D2 (secondary/muted)
 *   Page background (light) .......... warm-white #F9F7F4 (background)
 *   Page background (dark) ........... amber-black #1F2A35
 *   Destructive / error .............. #B3261E
 * Fonts: Libre Baskerville (headings) / Montserrat (body) / Yellowtail (script)
 */
:root {
  --radius: 0.625rem;
  --background: #f9f7f4;
  --foreground: #2c2c2c;
  --card: #ffffff;
  --card-foreground: #2c2c2c;
  --primary: #325472;
  --primary-foreground: #f3e3d2;
  --secondary: #f3e3d2;
  --secondary-foreground: #1f3650;
  --muted: #f8ede0;
  --muted-foreground: #303f4e;
  --accent: #de7f2c;
  --accent-foreground: #ffffff;
  --accent-small: #a05716;        /* small accent text < 16px */
  --destructive: #b3261e;
  --destructive-foreground: #ffffff;
  --border: #e6d3bd;
  --border-strong: #d9c3a6;
  --input: #e6d3bd;
  --ring: #de7f2c;

  --navy: #325472;
  --orange: #de7f2c;
  --orange-700: #a05716;
  --paper: #f3e3d2;
  --sage: #63776b;

  /* verdicts mapped to intent: success=sage, warning=orange, error=destructive */
  --pass: #63776b;
  --warn: #de7f2c;
  --fail: #b3261e;

  --shadow: 0 1px 3px rgba(44, 44, 44, .05), 0 4px 14px rgba(44, 44, 44, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.6 "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--primary);
  font-weight: 700;
}

.topbar {
  background: var(--card);
  color: var(--primary);
  padding: 14px 24px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.topbar::before {
  content: none;
}

.wrap { max-width: 640px; margin: 6vh auto; padding: 0 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--card-foreground);
}

.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }

input, select {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: #fff;
  color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(222, 127, 44, .18);
}

button, .btn {
  align-self: flex-start;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--secondary-foreground); }

.token, code.token {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--muted);
  color: var(--secondary-foreground);
  padding: 8px 12px;
  border-radius: var(--radius);
  word-break: break-all;
  display: inline-block;
  border: 1px solid var(--border);
}

.muted { color: var(--muted-foreground); font-size: 13px; }
.error {
  background: #fdeceb;
  border: 1px solid #f2c5c2;
  color: var(--destructive);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
}

.verdict {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
}
.verdict.PASS { color: var(--pass); }
.verdict.PASS-WITH-WARNING { color: var(--warn); }
.verdict.RETEST, .verdict.FAIL { color: var(--fail); }

.foot {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 12px;
  padding: 24px;
}