:root {
  --bg: #f7f1e3;
  --ink: #17211d;
  --muted: #5c675f;
  --panel: rgba(255, 251, 244, 0.82);
  --line: rgba(23, 33, 29, 0.12);
  --accent: #a64b2a;
  --accent-soft: #e7b582;
  --ok: #2e6a4f;
  --warn: #8a4d18;
  --shadow: 0 24px 60px rgba(36, 31, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(231, 181, 130, 0.5), transparent 28rem),
    linear-gradient(180deg, #f4ecdb 0%, #efe6d6 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

code {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.95em;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.65;
  pointer-events: none;
}

.backdrop-one {
  top: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(166, 75, 42, 0.14);
}

.backdrop-two {
  left: -4rem;
  bottom: 8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(46, 106, 79, 0.12);
}

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  animation: rise 500ms ease-out;
}

.hero,
.metrics,
.issues,
.two-up {
  margin-top: 1.5rem;
}

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

.hero-copy,
.hero-panel,
.metric,
.panel,
.issue {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-copy h1,
.section-heading h2,
.hero-panel strong,
.metric strong,
.list-row strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.hero-copy h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
  max-width: 11ch;
}

.lede,
.list-row p,
.issue p,
.hero-panel span,
.hero-panel em,
.metric small {
  color: var(--muted);
}

.hero-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  background:
    linear-gradient(135deg, rgba(166, 75, 42, 0.08), rgba(255, 251, 244, 0.82)),
    var(--panel);
}

.panel-label,
.metric-label,
.eyebrow,
.issue-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-panel strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-panel em {
  font-style: normal;
}

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

.metric {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.metric strong {
  font-size: 2.25rem;
  line-height: 1;
}

.fresh {
  color: var(--ok);
}

.stale {
  color: var(--warn);
}

.issues {
  display: grid;
  gap: 0.9rem;
}

.issue {
  padding: 1rem 1.15rem;
}

.issue-ok .issue-label {
  color: var(--ok);
}

.issue-fatal .issue-label {
  color: #8b1e17;
}

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

.panel {
  padding: 1.4rem;
}

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

.section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: 1.8rem;
}

.list {
  display: grid;
  gap: 0.8rem;
}

.list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-row p {
  margin: 0.25rem 0 0;
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero,
  .metrics,
  .two-up {
    grid-template-columns: 1fr;
  }

  .row-meta {
    align-items: flex-start;
    text-align: left;
  }

  .list-row {
    flex-direction: column;
  }
}
