:root {
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #18231c;
  --ink-soft: #4b5a50;
  --ink-faint: #778177;
  --paper: #f6f1e8;
  --paper-deep: #ece3d1;
  --card: #fffdf8;
  --line: rgba(38, 55, 44, 0.13);
  --line-strong: rgba(38, 55, 44, 0.28);
  --pine: #234332;
  --pine-deep: #14251c;
  --pine-soft: #a9bead;
  --blaze: #c8643b;
  --blaze-soft: #f0b98e;
  --water: #4f7f8f;
  --lichen: #8a9d5e;
  --stone: #bbb19f;
  --gold: #d7a84f;
  --r: 8px;
  --r-lg: 8px;
  --sh-1: 0 12px 28px rgba(28, 38, 31, 0.08);
  --sh-2: 0 18px 44px rgba(28, 38, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.7), rgba(255,255,255,0.22)),
    radial-gradient(circle at 18% 12%, rgba(215,168,79,0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(79,127,143,0.14), transparent 30%),
    var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}

body.topo-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(35deg, rgba(35,67,50,0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(200,100,59,0.05) 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
}

main,
.wrap,
.panel,
.site-card,
.article-body,
.site-card-body {
  min-width: 0;
}

p,
li,
h1,
h2,
h3,
td,
th,
.mini-meta span {
  overflow-wrap: break-word;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(38, 55, 44, 0.12);
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(16px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(145deg, var(--pine), var(--blaze));
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

.brand-sub {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,0.58);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--blaze);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 37, 28, 0.18);
}

.trust {
  color: var(--ink-soft);
  font-size: 13px;
}

.dot-sep::before {
  content: "\00b7";
  margin: 0 8px;
  color: var(--ink-faint);
}

.ad-zone {
  display: grid;
  place-items: center;
  min-height: 122px;
  border: 1px dashed rgba(38, 55, 44, 0.28);
  border-radius: var(--r);
  color: var(--ink-faint);
  background: rgba(255,253,248,0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-shell {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image, url("hero-gentle-trail.png")) center / cover no-repeat;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246,241,232,0.97) 0%, rgba(246,241,232,0.82) 38%, rgba(246,241,232,0.18) 76%),
    linear-gradient(0deg, rgba(246,241,232,1) 0%, rgba(246,241,232,0) 38%);
}

.hero-copy {
  padding: 94px 0 64px;
}

.hero-copy h1,
.page-head h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy .lead,
.page-head .lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.quick-grid,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.btn.alt {
  color: var(--ink);
  background: rgba(255,253,248,0.82);
}

.section {
  padding: 56px 0;
}

.section.tight {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2,
.panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

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

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.site-card {
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
}

.site-card-body,
.panel {
  padding: 20px;
}

.site-card > a {
  display: block;
  min-height: 100%;
}

.site-card h3,
.metric-list h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.site-card p,
.panel p,
.metric-list p {
  color: var(--ink-soft);
}

.site-card p {
  margin: 10px 0 0;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
}

.mini-meta span {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(246,241,232,0.72);
  padding: 5px 8px;
}

.page-head {
  padding: 58px 0 24px;
}

.control-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: rgba(255,253,248,0.88);
  color: var(--ink);
  padding: 0 12px;
}

.listing {
  display: grid;
  gap: 12px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(90px, 0.55fr));
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--sh-1);
}

.list-row h3 {
  margin: 0;
  font-size: 17px;
}

.list-row p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.score {
  display: grid;
  gap: 5px;
}

.score b {
  font-size: 13px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(38,55,44,0.12);
}

.bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--lichen), var(--pine));
}

.result-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.big-number {
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  font-weight: 900;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.compare-table th {
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.visual-block {
  border-color: color-mix(in srgb, var(--visual-accent, var(--water)) 38%, var(--line));
  background:
    linear-gradient(180deg, var(--visual-soft, rgba(239,246,255,0.74)), rgba(255,253,248,0.96));
}

.visual-label {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  background: var(--visual-accent, var(--water));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-right: 8px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.visual-cell {
  border: 1px solid color-mix(in srgb, var(--visual-accent, var(--water)) 30%, var(--line));
  border-radius: var(--r);
  background: rgba(255, 253, 248, 0.78);
  display: grid;
  gap: 7px;
  padding: 14px;
}

.visual-cell b {
  color: var(--ink);
}

.visual-cell span {
  color: var(--ink-soft);
  font-size: 14px;
}

.visual-cell em {
  color: var(--visual-accent, var(--water));
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.thumb-slot {
  height: 210px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-deep);
}

.thumb-slot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.article-body {
  display: grid;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.toc-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,253,248,0.9);
  box-shadow: var(--sh-1);
  padding: 18px 20px;
}

.toc-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blaze);
}

.toc-panel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.toc-panel a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(75, 90, 80, 0.28);
  text-underline-offset: 3px;
}

.toc-panel a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.article-body h2,
.blog-category {
  scroll-margin-top: 96px;
}

.article-body .panel {
  padding: clamp(22px, 4vw, 34px);
}

.article-body h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.article-body p {
  color: var(--ink-soft);
  font-size: 17px;
}

.takeaway-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.site-foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
}

.site-foot .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.foot-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.blog-index-intro {
  display: grid;
  gap: 16px;
}

.blog-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-category-row a {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,253,248,0.84);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.post-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-index-card h3 {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.22;
}

.post-index-card p {
  display: -webkit-box;
  min-height: 4.65em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .site-head .wrap {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    padding: 8px 9px;
  }

  .page-head {
    padding-top: 52px;
  }

  .page-head h1,
  .hero-copy h1 {
    max-width: 100%;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .hero-shell {
    min-height: 650px;
  }

  .card-grid,
  .card-grid.two,
  .visual-grid,
  .post-index-grid,
  .result-panel,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .site-foot .wrap,
  .policy-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .card-grid,
  .post-index-grid,
  .control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-row {
    grid-template-columns: 1fr 1fr;
  }
}
