:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c1d21;
  --muted: #5d6068;
  --line: #e4e0d8;
  --accent: #0f6b5c;
  --accent-ink: #ffffff;
  --ph: #d9d6d0;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 14px; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.header-tag { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cat-nav { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 12px; }
.cat-nav a {
  flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 0.9rem; background: var(--bg);
}
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }

main { padding-top: 22px; padding-bottom: 40px; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 30px 0 12px; }
.lede { color: var(--muted); margin-top: 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; overflow-wrap: anywhere; }

/* hero */
.hero { padding: 18px 0 6px; }
.hero h1 { font-size: 2.1rem; }
.hero-tag { font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.hero-intro { color: var(--muted); max-width: 36em; margin: 0; }

/* category cards */
.cat-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.cat-cards a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.cat-cards a:hover { border-color: var(--accent); }
.cat-cards strong { font-size: 1.05rem; }
.cat-cards span { color: var(--muted); font-size: 0.92rem; }
.cat-cards em { font-style: normal; font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-top: auto; }

/* product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.card a {
  display: block; height: 100%; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.card a:hover { border-color: var(--accent); }
.card h3 { font-size: 0.95rem; line-height: 1.3; margin: 4px 0; }
.card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.card-cat { display: block; margin-top: 10px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }

/* placeholders */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ph); color: #4a4c52; border-radius: 8px; padding: 10px; font-weight: 600;
}
.ph-sm { aspect-ratio: 1 / 1; font-size: 0.78rem; }
.ph-lg { aspect-ratio: 4 / 3; font-size: 1rem; }

/* product page */
.product { display: grid; gap: 20px; }
.product h1 { font-size: 1.5rem; }
.buy {
  display: inline-block; margin: 6px 0 4px; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.buy:hover { filter: brightness(1.1); }
.disclosure-inline { font-size: 0.85rem; color: var(--muted); margin: 0 0 6px; }
.specs { padding-left: 20px; margin: 0; }
.specs li { margin: 4px 0; }
.specs li.todo, .todo-box { color: var(--muted); font-style: italic; }
.todo-box { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; margin: 0; }

.prose { max-width: 42em; }
.prose li { margin: 6px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0; font-size: 0.88rem; }
.site-footer p { margin: 4px 0; }
.disclosure { font-weight: 600; }
.fine { color: var(--muted); }

@media (min-width: 640px) {
  .cat-cards { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .cat-cards { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .product { grid-template-columns: 1fr 1fr; align-items: start; gap: 36px; }
  .hero h1 { font-size: 2.6rem; }
}
