/* === No-Parandur: Minimal, Typography-First Design === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f3f1;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b655f;
  --border: #e0dbd6;
  --accent: #1a3a4a;
  --accent-hover: #2a5a70;
  --accent-light: #eaf0f3;
  --red: #a52a2a;
  --red-bg: #fdf2f2;
  --red-border: #e8c8c8;
  --amber: #8b6914;
  --amber-bg: #fef9e7;
  --amber-border: #e6d9a8;
  --green: #2a6b3c;
  --green-bg: #f0f7f2;
  --green-border: #c8e0cf;
  --max-width: 680px;
}

html { font-size: 18px; }

body {
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", Times, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* === Hero Section === */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* === Navigation === */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: all 0.15s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
  background: var(--border);
}

nav a:first-child {
  color: var(--accent);
  font-weight: 600;
}

/* === Stat Cards === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-red .stat-num { color: var(--red); }
.stat-amber .stat-num { color: var(--amber); }
.stat-green .stat-num { color: var(--green); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* === Typography === */
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  margin: 3rem 0 0.75rem;
}

h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}

strong {
  font-weight: 650;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(26, 58, 74, 0.25);
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--accent);
}

/* === Pull Quote === */
.pull-quote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
}

/* === Page List === */
.page-list {
  list-style: none;
  margin: 1.25rem 0 0.5rem;
}

.page-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.page-list li:last-child {
  border-bottom: none;
}

.page-list a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.page-list a:hover {
  text-decoration: underline;
}

.page-list .desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: block;
  margin-top: 0.15rem;
}

/* === Data Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.25rem 0 0.5rem;
}

.data-table th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:last-child {
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr.highlight td {
  background: var(--accent-light);
  font-weight: 600;
}

.data-table tr.highlight td:last-child {
  color: var(--red);
}

/* === Footer === */
footer {
  margin-top: 3.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

footer a {
  color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 720px) {
  html { font-size: 16px; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .stats { grid-template-columns: 1fr; gap: 0.9rem; }
  nav { gap: 0.25rem; }
  nav a { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
  .container { padding: 0 1.25rem; }
  .data-table td:last-child { font-size: 0.85rem; }
}
