:root {
  --bg: #f8f5ef;
  --surface: #fffdf8;
  --ink: #1d1b17;
  --muted: #6c6255;
  --line: #d8cfc0;
  --accent: #0f766e;
  --accent-soft: #dff3ef;
  --highlight: #b45309;
  --shadow: 0 18px 50px rgba(29, 27, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #efe7d9 0%, var(--bg) 16%, var(--bg) 100%);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at left 15%, rgba(180, 83, 9, 0.08), transparent 22%),
    var(--bg);
  font: 400 16px/1.6 Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 207, 192, 0.8);
}

.site-header .shell,
.site-footer .shell {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-footer .shell {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero h1 {
  margin: 0.25rem 0 0.75rem;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 58rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--highlight);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.25rem;
  border: 1px solid rgba(216, 207, 192, 0.9);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-value {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
}

.metric-note,
.section-heading p {
  color: var(--muted);
}

.section {
  margin: 2.5rem 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.05;
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-list li + li {
  margin-top: 0.5rem;
}

.link-card {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.45);
}

.link-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(216, 207, 192, 0.95);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(216, 207, 192, 0.75);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1ece2;
  font-size: 0.94rem;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: #efe7d9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@media (max-width: 720px) {
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: none;
  }
}