:root {
  --ink: #1c1814;
  --ink-soft: #3d342c;
  --muted: #6e6258;
  --paper: #f3eee6;
  --paper-2: #e8e0d4;
  --card: #fffaf4;
  --line: rgba(28, 24, 20, 0.12);
  --accent: #0f6e6a;
  --accent-deep: #0a4f4c;
  --hot: #9b3d2e;
  --mid: #8a5a12;
  --cool: #3d5470;
  --glow: rgba(15, 110, 106, 0.14);
  --display: "Fraunces", Georgia, serif;
  --sans: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  background: var(--paper);
  position: relative;
  min-height: 100vh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(155, 61, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f2ea 0%, var(--paper) 35%, #ebe3d7 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 230, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  padding: 4.5rem 0 2.5rem;
  max-width: 42rem;
  margin-inline: auto;
  margin-left: max(calc((100% - 1080px) / 2 + 1.25rem), 1.25rem);
}

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

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #f7fffe;
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.55);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 0.5rem 0 2.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 7.5rem;
}

.stat-value {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.stat-label small {
  color: #8a7d72;
}

section.wrap {
  padding-bottom: 3rem;
}

h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
}

.section-lede {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 2.5rem;
}

.verdict p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.verdict p:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(15, 110, 106, 0.07);
  border-radius: 0 10px 10px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}

.card.muted {
  background: rgba(255, 250, 244, 0.55);
}

.card ul,
.action ol,
.plain {
  margin: 0;
  padding-left: 1.15rem;
}

.card li,
.action li,
.plain li {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(232, 224, 212, 0.55);
}

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

tr.p0 td:first-child {
  color: var(--hot);
  font-weight: 600;
}

tr.dim td {
  color: #8a7d72;
}

tr.highlight {
  background: rgba(15, 110, 106, 0.08);
}

.chart {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0.5rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr 3.2rem;
  gap: 0.65rem;
  align-items: center;
}

.chart-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.chart-bar {
  display: block;
  height: 0.55rem;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.chart-n {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.caption {
  margin: 0.4rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.action {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1rem;
}

.p0-border {
  border-color: rgba(155, 61, 46, 0.28);
  box-shadow: inset 3px 0 0 var(--hot);
}

.action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.action-head h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.hot {
  background: rgba(155, 61, 46, 0.12);
  color: var(--hot);
}

.badge.mid {
  background: rgba(138, 90, 18, 0.12);
  color: var(--mid);
}

.badge.cool {
  background: rgba(61, 84, 112, 0.12);
  color: var(--cool);
}

.five {
  background:
    linear-gradient(135deg, rgba(15, 110, 106, 0.1), transparent 45%),
    var(--card);
}

.five-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
}

.five-list li {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  margin-top: 0.35rem !important;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-left: auto;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr 2.8rem;
    grid-template-areas:
      "label n"
      "bar bar";
  }

  .chart-label { grid-area: label; }
  .chart-n { grid-area: n; }
  .chart-bar { grid-area: bar; width: var(--w); }

  .hero {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
