:root {
  --bg: #f6f3ee;
  --paper: #fffcf7;
  --ink: #14181c;
  --muted: #5c6670;
  --line: #e4ddd2;
  --accent: #0f6e6a;
  --accent-soft: #d8efec;
  --cta: #e85d04;
  --cta-ink: #fffaf5;
  --score: #0b7a4b;
  --font-d: "Fraunces", Georgia, serif;
  --font-b: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(20, 24, 28, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, #e7f3f1 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #f7e9d8 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; }

.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 243, 238, 0.88);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; gap: 1rem;
}
.brand {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.hero {
  padding: 2.5rem 0 1.5rem;
  animation: rise 500ms ease both;
}
.hero .kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero .lede {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  margin-top: 1rem; color: var(--muted); font-size: 0.9rem;
}

.toc {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.5rem 0 1.25rem;
}
.toc a {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
}

.section { padding: 1.25rem 0 2rem; }
.section h2 {
  font-family: var(--font-d);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}
.section p.intro { color: var(--muted); margin: 0 0 1.25rem; max-width: 60ch; }

.list { display: flex; flex-direction: column; gap: 1rem; }

.card {
  display: grid;
  grid-template-columns: 112px 1fr minmax(140px, 170px);
  gap: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  animation: rise 600ms ease both;
}
.card:nth-child(1) { animation-delay: 40ms; }
.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 120ms; }

.thumb {
  width: 112px; height: 112px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.4rem;
}
.rankline {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.rank {
  font-weight: 800; font-size: 0.85rem;
  background: var(--ink); color: #fff;
  width: 1.7rem; height: 1.7rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 0.2rem 0.45rem;
}
.name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.best-for { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.92rem; }
.pros, .cons { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.pros { color: var(--ink); }
.cons { color: var(--muted); margin-top: 0.35rem; }
.pros li, .cons li { margin-bottom: 0.2rem; }

.side {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem;
  text-align: center;
}
.score {
  font-family: var(--font-d);
  font-size: 2.2rem;
  color: var(--score);
  line-height: 1;
}
.reviews, .price { font-size: 0.82rem; color: var(--muted); }
.price strong { color: var(--ink); font-size: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0.25rem;
  padding: 0.7rem 0.85rem;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  transition: transform 150ms ease, filter 150ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.matrix {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border: 1px solid var(--line); font-size: 0.92rem;
}
.matrix th, .matrix td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.75rem; text-align: left; vertical-align: top;
}
.matrix th { background: #f0ebe3; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.matrix tr:hover td { background: #faf7f2; }

.compete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.compete-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
}
.compete-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.compete-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.resource-list { display: grid; gap: 0.75rem; }
.resource-list a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.resource-list a span { display: block; font-weight: 500; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 1rem 0 0;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-grid nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }

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

@media (max-width: 800px) {
  .card { grid-template-columns: 88px 1fr; }
  .side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 0.65rem 1rem; }
  .btn { margin-left: auto; }
  .thumb { width: 88px; height: 88px; }
  .nav a:nth-child(n+4) { display: none; }
}
