:root {
  --ink: #17201d;
  --muted: #5d6964;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #d9ded4;
  --leaf: #2f6b4f;
  --copper: #b36a3c;
  --blue: #2d5f73;
  --gold: #d6ad55;
  --shadow: 0 20px 50px rgba(31, 44, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 107, 79, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 107, 79, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Optima, Candara, "Avenir Next", sans-serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.site-header nav,
.hero-actions,
.inline-form,
.result-top,
.section-head,
.tool-head,
.seo-band {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, var(--gold) 0 20%, transparent 21%), linear-gradient(135deg, var(--leaf), var(--blue));
  box-shadow: 5px 5px 0 rgba(179, 106, 60, 0.22);
}

.site-header nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a,
.text-link,
.source-link,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.15fr);
  gap: 36px;
  align-items: center;
  padding: 34px 0 42px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  max-width: 840px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 25px;
}

.lede {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 720px;
}

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

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--gold);
}

.secondary,
.icon-button {
  color: var(--ink);
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17201d;
  box-shadow: var(--shadow);
}

.hero-visual.infographic {
  min-height: 0;
  aspect-ratio: 55 / 36;
  background: var(--paper);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.hero-visual.infographic img {
  object-fit: cover;
  opacity: 1;
}

.hero-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card-a {
  left: 24px;
  bottom: 28px;
  width: 210px;
}

.hero-card-b {
  right: 24px;
  top: 28px;
  width: 250px;
}

.notice,
.tool-shell,
.results-shell,
.seo-band {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(31, 44, 38, 0.08);
}

.notice {
  padding: 18px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.tool-shell,
.results-shell {
  padding: 24px;
}

.tool-head,
.section-head,
.result-top,
.seo-band {
  justify-content: space-between;
  gap: 18px;
}

.selector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.choice {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.choice:hover,
.choice.is-selected {
  border-color: var(--leaf);
  box-shadow: inset 0 0 0 2px rgba(47, 107, 79, 0.14);
}

.choice span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.choice em,
.product-card span,
.grade {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--leaf);
  background: rgba(47, 107, 79, 0.1);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.choice small,
.microcopy,
.product-card small,
.empty {
  color: var(--muted);
  line-height: 1.45;
}

.free-text {
  margin-top: 22px;
}

.inline-form {
  gap: 10px;
}

.inline-form .button {
  white-space: nowrap;
}

.selected-panel {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.pill {
  border: 1px solid var(--leaf);
  border-radius: 999px;
  padding: 9px 10px 9px 13px;
  color: var(--leaf);
  background: rgba(47, 107, 79, 0.08);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pill span {
  display: inline-block;
  margin-left: 8px;
}

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

.result-card,
.empty-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.result-card p,
.result-card li,
.empty-result p {
  color: var(--muted);
  line-height: 1.55;
}

.result-card ul {
  padding-left: 20px;
}

details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.product-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.product-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  padding: 12px;
  color: var(--muted);
  background: #fbfaf5;
}

.related-links {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.source-link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-decoration: none;
}

.source-link span,
.source-link small {
  color: var(--muted);
}

.source-link span {
  font-size: 13px;
  font-weight: 800;
}

.product-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #fff, #fbfaf5);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 42px;
}

.article-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
}

.article-card span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h2 {
  font-size: 30px;
}

.article-card p,
.article-card small {
  color: var(--muted);
  line-height: 1.55;
}

.seo-band {
  padding: 24px;
  align-items: flex-start;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: min(560px, 100%);
}

.link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.page {
  max-width: 920px;
  margin: 0 auto;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.content-card {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .seo-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  main {
    padding-inline: 18px;
  }

  .hero,
  .selector-grid,
  .results-grid,
  .selection-list,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .lede {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .selected-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .section-head,
  .tool-head,
  .result-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    padding: 18px;
  }

  .brand {
    font-size: 15px;
  }

  .site-header nav {
    gap: 12px;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  .button,
  .icon-button {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 240px;
  }

  .tool-shell,
  .results-shell,
  .seo-band,
  .content-card,
  .result-card,
  .empty-result {
    padding: 18px;
  }

  .choice {
    min-height: auto;
  }

  .choice span {
    align-items: flex-start;
    flex-direction: column;
  }

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