:root {
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --ink: #16130f;
  --ink-soft: #3c362f;
  --muted: #6f675c;
  --line: #d6cdb8;
  --card: #fffaf1;
  --accent: #c4451a;
  --accent-ink: #fff;
  --forest: #1f6b52;
  --shadow: 0 18px 40px rgba(22, 19, 15, 0.08);
  --radius: 18px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100%;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 1.6rem)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 40; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.kicker, .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.7rem; font-weight: 400; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.top {
  position: sticky; top: 0; z-index: 8;
  background: rgba(243, 238, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.logo { width: 2.5rem; height: 2.5rem; border-radius: 10px; flex: none; }
.brand strong { font-family: var(--display); letter-spacing: -0.03em; font-size: 1.2rem; }
.nav { display: flex; gap: 1.1rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

.hero { padding: 2.6rem 0 1.4rem; }
.lede { color: var(--ink-soft); font-size: 1.18rem; max-width: 40rem; margin: 0 0 1.2rem; }
.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}
.hero-search.compact { margin: 1.2rem 0 1.4rem; }
.hero-search input {
  border: 0; background: transparent; padding: 0.7rem 0; outline: none; width: 100%;
  font-size: 1.02rem;
}
.count {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.facts { display: flex; gap: 1.1rem; flex-wrap: wrap; padding: 0; margin: 1.2rem 0 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.facts li { position: relative; padding-left: 0.9rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head p { margin: 0; }
.featured .section-head { display: block; }
.featured .section-head p { margin: 0 0 1rem; }
.featured { padding: 0.4rem 0 2rem; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.feature-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 11rem;
}
.feature-card .mark { --fg: #f3eee4; }
.feature-card strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.feature-card span:last-child { color: #cfc6b6; font-size: 0.92rem; margin-top: auto; }
.feature-card:hover { filter: brightness(1.08); }

.cats-band { padding: 0 0 2.2rem; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cat-tile:hover { border-color: var(--ink); }
.cat-tile strong { font-family: var(--display); font-size: 1.3rem; }
.cat-tile span { color: var(--muted); font-size: 0.92rem; }
.cat-tile em { font-style: normal; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 0.4rem; }

.catalog { padding: 0 0 3.5rem; }
.toolbar { margin-bottom: 1rem; }
.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer; font-weight: 600;
}
.chip.is-on, .chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.tool-card[hidden] { display: none; }
.tool-card:hover { border-color: #b9ad95; box-shadow: var(--shadow); }
.card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1rem 0.7rem;
  text-decoration: none;
  flex: 1;
}
.card-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.card-top strong { font-size: 1.08rem; }
.price {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--forest); background: rgba(31, 107, 82, 0.1); padding: 0.15rem 0.45rem; border-radius: 999px;
  flex: none;
}
.meta { display: block; color: var(--muted); font-size: 0.82rem; margin: 0.15rem 0 0.4rem; }
.blurb { display: block; color: var(--ink-soft); font-size: 0.94rem; }
.visit {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0.2rem 0.7rem 0.7rem; padding: 0.5rem 0.75rem;
  border-radius: 12px; text-decoration: none; font-weight: 650; font-size: 0.88rem;
  background: var(--paper); color: var(--ink);
}
.visit:hover { background: var(--ink); color: var(--paper); }

.mark {
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--fg, #fff);
  background: hsl(var(--h) 42% 38%);
}
.mark.lg { width: 4.2rem; height: 4.2rem; border-radius: 16px; font-size: 1.15rem; }

.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.page { padding: 2rem 0 3.5rem; }
.crumbs { display: flex; gap: 0.45rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 0.75rem 1.15rem; border-radius: 999px; font-weight: 700;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.1rem 0 0; }

.tool-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1.8rem; }
.tool-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.2rem; align-items: start; }
.prose p { font-size: 1.05rem; color: var(--ink-soft); max-width: 42rem; }
.about .lede { max-width: 38rem; }
.facts-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
}
.facts-card dl { margin: 0; display: grid; gap: 0.9rem; }
.facts-card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); }
.facts-card dd { margin: 0.2rem 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0.9rem 0 0; margin: 0.9rem 0 0; border-top: 1px solid var(--line); }
.tags li {
  background: var(--paper-2); border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.78rem; font-weight: 600;
}
.related { margin-top: 2.4rem; }
.related-grid { margin-top: 0.8rem; }

.foot {
  background: var(--ink); color: #e8e0d2; padding: 2.4rem 0 2.6rem; margin-top: 1rem;
}
.foot a { color: #f3eee4; }
.foot .muted { color: #9c9488; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.9fr; gap: 1.6rem; }
.foot-brand { display: flex; gap: 0.6rem; align-items: center; text-decoration: none; margin-bottom: 0.7rem; }
.foot-brand strong { font-family: var(--display); font-size: 1.2rem; }
.foot .kicker { color: #e6c36a; }
.foot-links { line-height: 1.8; }

@media (max-width: 960px) {
  .feature-row, .grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid, .foot-grid { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; }
  .brand small { display: none; }
  .nav { gap: 0.75rem; }
}
@media (max-width: 640px) {
  .feature-row, .grid, .cat-grid { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; border-radius: 18px; padding: 0.55rem 0.7rem; }
  .count { justify-self: start; }
  .tool-hero { grid-template-columns: 1fr; }
}
