:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --muted: #5b6470;
  --line: #e6e8eb;
  --accent: #14655c;
  --accent-dark: #0e4a44;
  --accent-soft: #eef5f3;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1080px;
  --reading: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0; }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav__link { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link--active { color: var(--ink); }

/* Main */
.main { padding: 48px 24px 80px; }

/* Hero */
.hero { text-align: center; padding: 32px 0 56px; }
.hero__title { font-size: 3rem; margin: 0 0 16px; letter-spacing: -.02em; }
.hero__lede { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); text-decoration: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.feature h2 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 8px 0 0; }

/* Prose (static pages) */
.prose { max-width: var(--reading); margin: 0 auto; }
.prose h1 { margin: 0 0 8px; }
.prose h2 { margin: 32px 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fafbfc; }
.site-footer__inner { padding: 32px 24px; max-width: var(--container); margin: 0 auto; }
.site-footer__disclosure { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.site-footer__copy { font-size: .85rem; color: var(--muted); margin: 0; }
.site-footer__copy a { color: var(--muted); }

/* Page head */
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-head__lede { color: var(--muted); font-size: 1.1rem; }

/* Guide list (index) */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.guide-list__item { border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.guide-list__item a { display: block; padding: 20px 24px; color: var(--ink); }
.guide-list__item a:hover { text-decoration: none; }
.guide-list__item:hover { box-shadow: var(--shadow); border-color: transparent; }
.guide-list__item h2 { font-size: 1.3rem; margin: 0 0 6px; }
.guide-list__item p { color: var(--muted); margin: 0; }

/* Guide page */
.guide { max-width: var(--reading); margin: 0 auto; }
.guide__disclosure { font-size: .85rem; color: var(--muted); background: var(--accent-soft); padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; }
.guide__title { font-size: 2.4rem; margin-bottom: 16px; }
.guide__hero { width: 100%; border-radius: 12px; margin-bottom: 24px; }
.guide__intro { margin-bottom: 32px; }
.guide__intro p { margin: 0 0 16px; }

/* Product cards */
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.product-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.product-card__img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.product-card__img--placeholder { background: linear-gradient(135deg, #eef0f2, #e3e6ea); }
.product-card__title { font-size: 1.25rem; margin: 0 0 8px; }
.product-card__blurb { color: var(--muted); margin: 0 0 12px; }
.product-card__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.product-card__price { font-weight: 600; font-size: 1.1rem; }
.product-card__rating { color: var(--muted); font-size: .95rem; }
.product-card__cta { align-self: start; }
.empty { color: var(--muted); }

/* Finder */
.finder-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; margin-bottom: 32px; }
.finder-field { display: flex; flex-direction: column; gap: 6px; }
.finder-field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.finder-field select {
  padding: 10px 36px 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .95rem; background-color: var(--paper); color: var(--ink); font-family: inherit;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6470' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 12px 8px;
}
.finder-actions { display: flex; gap: 12px; grid-column: span 4; }
.finder-results__count { color: var(--muted); margin: 0 0 16px; }
.result-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.result-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); background: var(--paper); display: flex; flex-direction: column; }
.result-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f3f4f6; margin-bottom: 12px; }
.result-card__img--placeholder { background: linear-gradient(135deg, #eef0f2, #e3e6ea); }
.result-card__title { font-size: 1.05rem; margin: 0 0 6px; }
.result-card__summary { font-size: .9rem; color: var(--muted); margin: 0 0 12px; flex: 1; }
.result-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.result-card__price { font-weight: 600; }
.result-card__rating { color: var(--muted); font-size: .9rem; }
.btn--sm { padding: 8px 16px; font-size: .9rem; }

/* Forms */
.form { max-width: var(--reading); display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.form-field input, .form-field textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .98rem; font-family: inherit; color: var(--ink); background: var(--paper); }
.form-field textarea { resize: vertical; }
.form-error { color: #b91c1c; background: #fef2f2; padding: 10px 14px; border-radius: 8px; font-size: .9rem; margin: 0 0 16px; }
.form-optional { font-weight: 400; color: var(--muted); }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.2rem; }
  .nav { gap: 16px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card__img { width: 100%; height: 220px; }
  .finder-form { grid-template-columns: 1fr; }
  .finder-actions { grid-column: span 1; }
}
