:root {
  --bg: #f2efe7;
  --paper: #fbf8f0;
  --ink: #10222b;
  --muted: #5f6d72;
  --line: #d6d0c3;
  --accent: #b44f2f;
  --accent-deep: #7f3118;
  --signal: #1f6a5f;
  --shadow: 0 22px 48px rgba(16, 34, 43, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(180, 79, 47, 0.14), transparent 24rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--bg) 100%);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.hero,
.grid,
.section {
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel,
.metric,
.table-shell,
.cta {
  background: rgba(251, 248, 240, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.panel,
.table-shell,
.cta {
  padding: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.subtitle {
  margin: 0.8rem 0 0;
  font-size: 1.2rem;
  color: var(--signal);
  font-weight: 600;
}

.lede,
.card-note,
.panel p,
.table-note,
figcaption {
  color: var(--muted);
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-card pre,
.cta pre {
  margin: 0.8rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: #17252e;
  color: #eff5f7;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.card-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-value {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.metric-label {
  color: var(--muted);
}

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

.grid.three,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.table-shell {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr.highlight td {
  background: rgba(31, 106, 95, 0.08);
  font-weight: 600;
}

img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero,
  .grid.metrics,
  .grid.three,
  .gallery,
  .cta {
    grid-template-columns: 1fr;
  }

  .page {
    padding-top: 1.5rem;
  }
}
