/* ConstantX — Standards Body Aesthetic */

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #fff;
  --border: #e0e0e0;
  --accent: #111;
  --accent-hover: #333;
  --surface: #fafafa;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 720px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
}

nav .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 24px;
  transition: color 0.15s;
}

nav .nav-links a:hover {
  color: var(--text);
}

/* Main Content */
article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Typography */
h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.tagline {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.5;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

/* Definition List Style */
.definition {
  margin-bottom: 24px;
}

.definition dt {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.definition dd {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-left: 0;
}

/* Audit Cards */
.audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-card {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.audit-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.audit-card .model-name {
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.audit-card .audit-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.audit-card .coverage-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.btn.primary {
  color: var(--bg);
  background: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.secondary {
  color: var(--accent);
  background: transparent;
}

.btn.secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  text-align: center;
}

/* Links */
a.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  font-weight: 500;
  transition: text-decoration-color 0.15s;
}

a.text-link:hover {
  text-decoration-color: var(--text);
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Tables (for report pages) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

th {
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 26px;
  }

  .tagline {
    font-size: 16px;
  }

  nav {
    padding: 16px;
  }

  article {
    padding: 0 16px 60px;
  }
}

/* Print */
@media print {

  nav,
  footer {
    display: none;
  }

  article {
    max-width: 100%;
    padding: 0;
  }
}