/* IndieShelf — standalone brand tokens (design.md §3). Not clioos-tools. */
:root {
  --bg: #f5f0e8;
  --surface: #fffdf9;
  --surface-2: #f0e8dc;
  --ink: #1a1614;
  --muted: #5c534c;
  --line: #e6dfd4;

  --accent: #2a6b5a;
  --accent-hover: #1f5244;
  --accent-soft: #e4f0eb;
  --accent-ring: #5b9a88;

  --clay: #c46b3a;
  --clay-soft: #f3e0d4;

  --verified: #0d7377;
  --verified-soft: #d5f0f1;

  --ok: #166534;
  --ok-soft: #dcfce7;
  --no: #b91c1c;
  --no-soft: #fee2e2;
  --warn: #b45309;
  --warn-soft: #ffedd5;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype",
                  Palatino, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(26, 22, 20, .04), 0 8px 24px rgba(26, 22, 20, .06);
  --container: 1080px;
  --container-wide: 1200px;
  --pad-x: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--pad-x); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: 56px; display: flex; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; gap: 16px; width: 100%;
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--pad-x);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.site-header nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; font-weight: 600; }
.site-header nav .nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
}
/* Text links only — do not style .btn (Submit) as muted ink */
.site-header nav .nav-links a { color: var(--muted); text-decoration: none; }
.site-header nav .nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 14px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
}
/* White label on all link states — beats a / a:visited / nav rules */
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
button.btn-primary,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active {
  background: var(--accent); color: #fff;
}
a.btn-primary:hover,
a.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
  background: var(--accent-hover); color: #fff;
}
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
a.btn-ghost:link,
a.btn-ghost:visited { color: var(--accent); }
.btn-ghost:hover,
a.btn-ghost:hover,
a.btn-ghost:focus { background: var(--accent-soft); color: var(--accent-hover); }
.btn-header { padding: 8px 14px; }

.hero { padding: 48px 0 28px; }
.hero .lede { color: var(--muted); font-size: 18px; max-width: 46rem; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.trust-bar { color: var(--muted); font-size: 13px; }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
}
.chip:hover { color: var(--ink); border-color: var(--accent-ring); }
.chip.active,
a.chip.active:link,
a.chip.active:visited,
a.chip.active:hover,
a.chip.active:focus,
a.chip.active:active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.segmented a {
  padding: 6px 12px; font-size: 13px; font-weight: 650; text-decoration: none;
  color: var(--muted); background: var(--surface);
}
.segmented a.active { background: var(--accent-soft); color: var(--accent); }
.filter-select { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.product-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.product-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px 16px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
}
.product-card:hover { border-color: var(--accent-ring); }
.product-card .name { font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.product-card .tagline { color: var(--muted); font-size: 14px; margin: 0; }
.product-card .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.badge-cat {
  display: inline-flex; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650;
}
.pricing-short { font-size: 13px; color: var(--ink); font-weight: 600; }
.pricing-short.unknown { color: var(--muted); font-weight: 500; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--verified-soft); color: var(--verified);
  font-size: 12px; font-weight: 700; cursor: help; position: relative;
}
.verified-badge .tip {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 5;
  width: 260px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-card);
}
.verified-badge:hover .tip, .verified-badge:focus .tip { display: block; }
.curated-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--clay-soft); color: #8f4a28; /* 5.17:1 on clay-soft */
  font-size: 12px; font-weight: 700;
}
.verified-slot { min-height: 22px; display: flex; flex-wrap: wrap; gap: 6px; }

.empty {
  text-align: center; padding: 48px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.empty-shelf { font-size: 40px; margin-bottom: 8px; opacity: .5; }

.panel-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 40px; }
.panel-card {
  display: block; padding: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
}
.panel-card:hover { border-color: var(--accent-ring); }
.panel-card strong { display: block; margin-bottom: 4px; color: var(--accent); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 48px; color: var(--muted); font-size: 13px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-built {
  margin: 8px 0 0; font-size: 12px; color: var(--muted);
}
.footer-built a {
  color: var(--muted); text-decoration: none;
}
.footer-built a:hover { text-decoration: underline; color: var(--muted); }
.disclaimer { margin: 10px 0 0; font-size: 12px; color: var(--muted); max-width: 52rem; }

.form-card {
  max-width: 560px; margin: 24px 0 40px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.form-card label { display: block; font-weight: 650; font-size: 14px; margin: 0 0 6px; }
.form-card .field { margin-bottom: 16px; }
.form-card .help { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.form-card input[type=text],
.form-card input[type=url],
.form-card input[type=email],
.form-card input[type=month],
.form-card select,
.form-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--ink);
}
.honeypot {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.req { color: var(--clay); }
.flash-ok { background: var(--ok-soft); color: var(--ok); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.flash-err { background: var(--no-soft); color: var(--no); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin: 20px 0 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--ink); }
.pricing-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 16px 0 20px; max-width: 420px;
}
.pricing-card .checked { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.visit-btn { margin: 8px 0 28px; }

.admin-wrap { font-family: var(--mono); font-size: 13px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.pattern-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.pattern-card h3 { font-size: 15px; }

@media (max-width: 1019px) {
  h1, .h1 { font-size: 36px; }
}
@media (max-width: 759px) {
  h1, .h1 { font-size: 30px; }
  .site-header { height: auto; min-height: 56px; }
  .site-header-inner { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .site-header nav {
    width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; gap: 12px 16px;
  }
  .site-header nav .nav-links {
    display: flex; flex-wrap: wrap; gap: 12px 20px; /* ≥20px horizontal, wrap ok */
  }
  .product-card { grid-template-columns: 1fr; }
  .product-card .meta { align-items: flex-start; }
  .panel-links { grid-template-columns: 1fr; }
  .btn-block-sm { width: 100%; }
}

.btn-visit { /* primary outbound on detail page */ }
