:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.9);
  --ink: #1f1b18;
  --muted: #655d57;
  --accent: #9f4f22;
  --accent-strong: #7c3612;
  --line: rgba(31, 27, 24, 0.12);
  --shadow: 0 20px 60px rgba(75, 44, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 132, 74, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f4ee 0%, var(--bg) 100%);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero,
.panel {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 48px;
}

.eyebrow,
.card-tag,
.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

h1,
h2,
h3,
strong {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.98;
  margin: 12px 0 20px;
  max-width: 12ch;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
}

.lede,
p,
li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}

.button.primary {
  background: var(--accent);
  color: #fff7f2;
  border-color: transparent;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.panel {
  margin-top: 22px;
  padding: 32px;
}

.stat-grid,
.cards,
.thresholds {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.stat-grid article,
.card,
.thresholds article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thresholds {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(159, 79, 34, 0.08);
  border-radius: 8px;
  padding: 2px 6px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.message {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero,
  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  .stat-grid,
  .cards,
  .split,
  .thresholds {
    grid-template-columns: 1fr;
  }
}
