/* Mungo Ledger design tokens (fonts -> colors -> theme -> typography -> spacing) */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: light;

  /* brand anchors */
  --paper: #F4F1EA;
  --ink: #191714;
  --oxblood: #7A2E2E;
  --seal: #2E4B3F;
  --stone: #8A857A;
  --brass: #C9A24B;

  /* semantic roles */
  --bg-canvas: #F4F1EA;
  --bg-surface: #FAF8F3;
  --bg-surface-alt: #EAE6DB;

  --text-primary: #191714;
  --text-secondary: #55524A;
  --text-muted: #8A857A;

  --brand: #7A2E2E;
  --brand-hover: #632424;
  --brand-text: #632424;

  --verify: #2E4B3F;
  --attention: #8C6D1F;

  --border: #D8D2C4;
  --border-strong: #B5AFA2;
  --focus-ring: #7A2E2E;

  --interactive: #2E62B8;
  --interactive-hover: #244E95;

  --shadow-glow: none;

  --stamp-pass-fill: #2E4B3F;
  --stamp-pass-text: #F4F1EA;

  /* typography */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-display: 3.5rem;    --lh-display: 1.08;
  --text-body-lg: 1.125rem;  --lh-body-lg: 1.65;
  --text-small: 0.875rem;    --lh-small: 1.5;
  --text-eyebrow: 0.6875rem; --lh-eyebrow: 1.4;
  --tracking-display: -0.01em;
  --tracking-eyebrow: 0.1em;

  /* spacing / radius */
  --radius-control: 6px;
  --radius-card: 10px;
  --radius-stamp: 4px;
  --radius-pill: 999px;

  --container-max: 1152px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-base: 200ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-canvas);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

a { color: var(--interactive); text-decoration: none; }
a:hover { color: var(--interactive-hover); text-decoration: underline; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 100px;
}
.site-header img {
  width: 176px;
  height: auto;
}

/* hero */
.hero {
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 56px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero h1 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
}
.hero h1 .accent { color: var(--brand-text); }

.hero p.lead {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-secondary);
}

.hero p.audience {
  margin: 14px 0 0;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-muted);
}

.tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  border: 1px solid var(--border);
  border-radius: var(--radius-stamp);
  padding: 6px 12px;
  font-size: var(--text-small);
  color: var(--text-secondary);
  background: var(--bg-surface);
  white-space: nowrap;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Button component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: var(--text-body-lg);
}
.btn-enforcement {
  background: var(--brand);
  color: var(--paper);
}
.btn-enforcement:hover {
  background: var(--brand-hover);
  text-decoration: none;
  color: var(--paper);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-canvas), 0 0 0 4px var(--focus-ring);
}

.contact-line {
  margin-top: 30px;
  font-size: var(--text-small);
  color: var(--text-secondary);
}
.contact-line a { font-weight: 600; }
.contact-line .sep { color: var(--text-muted); }

.frameworks {
  margin-top: 44px;
}
.frameworks .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.frameworks .list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* StatusDot component */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
}
.status-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--stone);
}
.status-dot.tone-idle i { background: var(--stone); }
.status-dot.tone-live i {
  background: var(--seal);
  animation: pulse 1.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* audit console panel */
.console-panel {
  position: relative;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-glow);
}
.console-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.panel-head .dots {
  display: inline-flex;
  gap: 5px;
}
.panel-head .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.panel-head .dots i:nth-child(1) { background: #7A2E2E; }
.panel-head .dots i:nth-child(2) { background: #8C6D1F; }
.panel-head .dots i:nth-child(3) { background: #2E4B3F; }
.panel-head .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.panel-head .status-dot { margin-left: auto; }

.panel-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}
.panel-tabs span {
  padding-bottom: 8px;
  color: var(--text-muted);
}
.panel-tabs span.active {
  border-bottom: 2px solid var(--text-primary);
  color: var(--text-primary);
}

.panel-caption {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-surface);
}
.phase-row .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.phase-row .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.phase-row .stamp {
  margin-left: auto;
}

/* StampBadge component (kind=seal) */
.stamp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-stamp);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stamp-badge-seal {
  background: var(--stamp-pass-fill);
  color: var(--stamp-pass-text);
}

.panel-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer .container {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: var(--text-small);
  color: var(--text-muted);
}
.site-footer img {
  height: 20px;
  width: 20px;
}
.site-footer .copyright {
  font-family: var(--font-mono);
}

@media (max-width: 720px) {
  :root { --text-display: 2.5rem; }
  .hero { padding: 56px 20px 48px; grid-template-columns: 1fr; }
}
