:root {
  color-scheme: dark;
  --ink: #edf1e9;
  --muted: #aeb8ad;
  --faint: #728076;
  --paper: #101917;
  --paper-2: #17231f;
  --paper-3: #21322b;
  --line: rgba(228, 237, 225, 0.14);
  --sage: #b9d46d;
  --sage-deep: #778f35;
  --amber: #edba70;
  --rose: #e48b81;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #1b2922;
    --muted: #59675d;
    --faint: #788279;
    --paper: #f4f4ed;
    --paper-2: #e9ece3;
    --paper-3: #dfe5d7;
    --line: rgba(26, 41, 32, 0.14);
    --sage: #536d21;
    --sage-deep: #435a17;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #1b2922;
  --muted: #59675d;
  --faint: #788279;
  --paper: #f4f4ed;
  --paper-2: #e9ece3;
  --paper-3: #dfe5d7;
  --line: rgba(26, 41, 32, 0.14);
  --sage: #536d21;
  --sage-deep: #435a17;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf1e9;
  --muted: #aeb8ad;
  --faint: #728076;
  --paper: #101917;
  --paper-2: #17231f;
  --paper-3: #21322b;
  --line: rgba(228, 237, 225, 0.14);
  --sage: #b9d46d;
  --sage-deep: #778f35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h3 {
  letter-spacing: -0.025em;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  min-height: 76px;
  max-width: 1440px;
  margin: auto;
  padding: 14px clamp(20px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #142016;
  font-family: var(--serif);
  font-weight: bold;
  font-size: 24px;
  border-radius: 50% 50% 50% 8px;
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.15em;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.top-nav {
  display: none;
  gap: clamp(18px, 3vw, 42px);
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--sage);
}

.saved-button {
  min-height: 44px;
  padding: 0 12px 0 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-button b {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  background: var(--sage);
  color: #142016;
}

.saved-button b[hidden] {
  display: none;
}

main {
  max-width: 1440px;
  margin: auto;
}

.hero {
  min-height: 580px;
  padding: clamp(62px, 10vw, 136px) clamp(20px, 8vw, 120px) clamp(54px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: end;
  background:
    radial-gradient(circle at 84% 22%, rgba(185, 212, 109, 0.2), transparent 25rem),
    radial-gradient(circle at 24% 96%, rgba(237, 186, 112, 0.12), transparent 27rem);
}

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

.eyebrow,
.card-number {
  margin-bottom: 13px;
  color: var(--sage);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 750;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.91;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--sage);
  color: #172018;
  border-color: var(--sage);
}

.button.primary:hover {
  background: #d0e98a;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
}

.button.quiet:hover {
  background: var(--paper-2);
}

.hero-note {
  max-width: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(23, 35, 31, 0.55);
  backdrop-filter: blur(6px);
}

.note-kicker {
  color: var(--amber);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-note h2 {
  margin: 11px 0 13px;
  font-size: 30px;
}

.hero-note ol {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
}

.hero-note li {
  margin: 5px 0;
  padding-left: 4px;
}

.hero-note a {
  color: var(--sage);
  font-size: 14px;
  font-weight: bold;
}

.guide-section,
.method-section {
  padding: clamp(55px, 7vw, 100px) clamp(20px, 4vw, 58px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.checklist-intro h2,
.method-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
}

.section-intro {
  max-width: 430px;
  color: var(--muted);
  margin-bottom: 0;
}

.tool-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.filter:hover,
.filter.active {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--sage-deep);
}

.search-wrap {
  position: relative;
  display: block;
  max-width: 330px;
}

.search-wrap input {
  width: 100%;
  min-height: 45px;
  padding: 0 40px 0 15px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--sage);
}

.search-wrap span {
  position: absolute;
  right: 14px;
  top: 10px;
  color: var(--muted);
  font-size: 23px;
}

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

.gear-card {
  min-width: 0;
  background: var(--paper-2);
}

.gear-card[hidden] {
  display: none;
}

.card-category-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.card-category-card::before,
.card-category-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.card-category-card::before {
  width: 230px;
  height: 230px;
  right: -105px;
  bottom: -136px;
}

.card-category-card::after {
  width: 125px;
  height: 125px;
  left: -58px;
  top: -70px;
}

.card-category-card.aqua,
.dialog-visual.water {
  background: linear-gradient(135deg, #557f80, #1e4140);
}

.card-category-card.amber,
.dialog-visual.radio {
  background: linear-gradient(135deg, #a36f3d, #3f2d22);
}

.card-category-card.moss,
.dialog-visual.power {
  background: linear-gradient(135deg, #72885c, #303f2e);
}

.card-category-card.rose,
.dialog-visual.firstaid {
  background: linear-gradient(135deg, #b25f5b, #4e3435);
}

.category-icon {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  opacity: 0.95;
}

.category-icon svg,
.dialog-visual svg {
  width: 100%;
  height: 100%;
}

.category-label {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  padding: 5px 8px;
  background: rgba(15, 25, 22, 0.42);
  font-size: 10px;
  color: white;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-number {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--serif);
  font-size: 108px;
  line-height: 1;
}

.save-card {
  z-index: 3;
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(14, 24, 19, 0.5);
  font-size: 12px;
  font-weight: bold;
}

.save-card.is-saved {
  color: #172018;
  background: var(--sage);
  border-color: var(--sage);
}

.card-body {
  padding: 21px 20px 18px;
}

.card-number {
  color: var(--faint);
  font-size: 10px;
  margin-bottom: 10px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.card-body > p:not(.card-number):not(.example-line) {
  color: var(--muted);
  font-size: 14px;
  min-height: 64px;
  margin-bottom: 15px;
}

.example-line {
  min-height: 38px;
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.45;
}

.example-line strong {
  color: var(--muted);
  font-weight: 700;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.text-button {
  min-height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--sage);
  font-weight: bold;
  font-size: 13px;
  text-align: left;
}

.text-button span {
  font-size: 17px;
}

.buy-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.buy-link:hover {
  color: var(--ink);
}

.no-results {
  color: var(--muted);
  padding: 32px 0;
}

.checklist-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: clamp(55px, 8vw, 110px) clamp(20px, 8vw, 120px);
  background: var(--paper-3);
}

.checklist-intro {
  max-width: 480px;
}

.checklist-intro > p:not(.eyebrow):not(.tiny-note) {
  color: var(--muted);
  font-size: 17px;
}

.tiny-note {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.checklist-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.progress-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.progress-line strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: normal;
}

.progress-line > span {
  color: var(--sage);
  font-weight: bold;
}

.progress-track {
  height: 5px;
  margin: 17px 0 15px;
  background: var(--paper-3);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
  transition: width 0.25s ease;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  border-top: 1px solid var(--line);
}

.checklist label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--sage-deep);
  flex: 0 0 auto;
}

.checklist li.done span {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: var(--sage);
}

.method-section {
  background: var(--paper);
}

.method-section > h2 {
  max-width: 650px;
  margin-bottom: 38px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.method-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.method-grid span {
  color: var(--sage);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.method-grid h3 {
  margin: 11px 0 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}

.disclosure {
  max-width: 720px;
  margin: 58px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

footer {
  max-width: 1440px;
  margin: auto;
  padding: 25px clamp(20px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
}

footer span:first-child {
  color: var(--muted);
  font-weight: bold;
  letter-spacing: 0.15em;
}

.review-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: min(800px, calc(100dvh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

.review-dialog::backdrop {
  background: rgba(5, 12, 9, 0.75);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  background: rgba(15, 25, 22, 0.72);
  color: white;
  font-size: 29px;
  line-height: 1;
}

.dialog-visual {
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.dialog-visual::before,
.dialog-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.dialog-visual::before {
  width: 350px;
  height: 350px;
  right: -170px;
  top: -140px;
}

.dialog-visual::after {
  width: 190px;
  height: 190px;
  left: -95px;
  bottom: -95px;
}

.dialog-visual svg {
  position: relative;
  z-index: 1;
  width: 116px;
  height: 116px;
}

.dialog-copy {
  padding: 25px;
}

.dialog-copy h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.94;
  margin-bottom: 17px;
}

.dialog-deck {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.review-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 28px 0;
}

.review-columns section,
.product-example {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.review-columns h3,
.product-example h3 {
  margin: 0 0 9px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.review-columns p,
.review-columns li,
.product-example p {
  color: var(--muted);
  font-size: 14px;
}

.review-columns ul {
  padding-left: 18px;
  margin: 0;
}

.review-columns li {
  margin-bottom: 7px;
}

.product-example {
  margin-bottom: 24px;
  background: linear-gradient(90deg, rgba(185, 212, 109, 0.08), transparent);
  padding: 16px;
}

.product-example .note-kicker {
  display: block;
  margin-bottom: 8px;
}

.product-example h3 {
  font-family: var(--serif);
  font-size: 23px;
  text-transform: none;
  letter-spacing: -0.02em;
}

.product-example p {
  margin-bottom: 0;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.saved-drawer {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  padding: 23px;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.2);
}

.saved-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.drawer-head .eyebrow {
  margin-bottom: 5px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 34px;
}

.drawer-head button,
.saved-row-actions button {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 28px;
}

.saved-list {
  margin-top: 7px;
}

.saved-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.saved-row p {
  margin: 0 0 5px;
  color: var(--sage);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.saved-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: normal;
}

.saved-row-actions {
  display: flex;
  align-items: center;
}

.saved-row-actions button:first-child {
  color: var(--sage);
  font-size: 12px;
  font-weight: bold;
}

.empty-saved {
  margin-top: 35px;
  color: var(--muted);
}

.scrim {
  position: fixed;
  z-index: 19;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .tool-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .method-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .review-columns {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (min-width: 900px) {
  .top-nav {
    display: flex;
  }

  .gear-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr 430px;
  }

  .checklist-section {
    grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
    align-items: start;
  }

  .checklist-card {
    padding: 30px;
  }

  .review-dialog {
    display: grid;
    grid-template-columns: 39% 61%;
  }

  .dialog-visual {
    min-height: 100%;
  }
}

@media (max-width: 380px) {
  .saved-button > span {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .buy-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
}
