/* Reference-manual look rather than equipment catalogue: paper ground, deep
   ink, one cobalt accent, and uppercase reserved for small labels. The
   catalogue register — black masthead, athletic red, everything shouted in
   condensed caps — is Rogue's, and looking like the merchant you link to is
   the wrong signal for a site whose pitch is independent judgement. */

:root {
  --bg: #fbfaf8;
  --surface: #f2f0ec;
  --ink: #16181d;
  --muted: #62666f;
  --rule: #dedbd5;
  --accent: #2f5fe0;
  --accent-ink: #24337a;
  --on-accent: #ffffff;

  --display:
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 3px;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #191c22;
    --ink: #eceef2;
    --muted: #9aa0ac;
    --rule: #2a2e37;
    --accent: #6d9bff;
    --accent-ink: #a8c3ff;
    --on-accent: #101216;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent-ink);
}

/* --- type ---------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.006em;
  margin: 3rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* The one place caps survive: small structural labels, where they read as
   metadata rather than as shouting. */
.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- masthead ------------------------------------------------------------ */

.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* The tear from the favicon, at text size. */
.wordmark::before {
  content: "";
  width: 0.62rem;
  height: 0.8rem;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 66%, 84% 94%, 16% 94%, 0 66%);
}

.search {
  flex: 1 1 15rem;
  margin: 0;
  max-width: 24rem;
}

.search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* --- FTC disclosure: above the fold on every page ------------------------ */

.disclosure {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.disclosure .wrap {
  padding-block: 0.8rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.disclosure strong {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  margin-right: 0.5rem;
}

/* --- layout -------------------------------------------------------------- */

/* main.wrap, not main -- .wrap's `padding` shorthand zeroes the block padding
   and would win on specificity against a bare element selector. */
main.wrap {
  padding-block: 3rem 4.5rem;
}

.prose {
  width: 100%;
}

.prose p,
.prose ul {
  margin: 0 0 1.15rem;
}

/* The home headline is sized to set as two full lines at the 72rem measure:
   'one product at a time' is the longer half at 21 characters, so the cap is
   roughly measure / 21 / 0.5em. Below that it scales with the viewport. */
.hero.home h1 {
  font-size: clamp(2.1rem, 9vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero {
  padding-bottom: 2.25rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.hero .tagline {
  width: 100%;
  margin: 1.1rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero .tagline p {
  margin: 0 0 1.1rem;
}

.hero .tagline p:last-child {
  margin-bottom: 0;
}

/* --- product grid -------------------------------------------------------- */

/* Rules live on the cards, not on the grid. Drawing them as a --rule
   background showing through 1px gaps paints every empty slot in a partial
   last row as a grey block. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  position: relative; /* anchors the whole-card click target below */
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition:
    background 0.12s,
    border-color 0.12s;
}

.card:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card:hover h3 a {
  color: var(--accent-ink);
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- chips --------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chips .count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

/* --- product page -------------------------------------------------------- */

.product-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.product-head .label a {
  color: var(--muted);
  text-decoration: none;
}

.product-head .label a:hover {
  color: var(--accent-ink);
}

.product-head .sep {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.product-head h1 {
  margin: 0.55rem 0 0;
}

.summary {
  width: 100%;
  margin: 1.1rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--muted);
}

.cta {
  margin: 1.85rem 0 0;
}

.cta a {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.cta a:hover {
  filter: brightness(1.08);
}

.shot {
  margin: 2rem 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- spec sheet ---------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.6rem 0.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

th {
  width: 38%;
  font-weight: 500;
  color: var(--muted);
}

/* --- choose this one if -------------------------------------------------- */

.choose-if {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.choose-if li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.choose-if li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --- search results ------------------------------------------------------ */

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.results li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.results a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.results a:hover {
  color: var(--accent-ink);
}

.results .empty,
.results .brand {
  color: var(--muted);
}

.results .brand {
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.results p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.caveat {
  margin: 1.1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.caveat strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- recommendations ----------------------------------------------------- */

#recommend {
  display: block;
  margin-top: 3.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

#recommend h2 {
  margin-top: 2rem;
}

/* --- footer -------------------------------------------------------------- */

footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}

footer .wrap {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-ink);
}
