/* Plan: a label-maker world. Section names are printed on cobalt label tape;
   guides read like tidy checklists. Layout: narrow reading column, card grid for guides. */
:root {
  --paper: #f3f4f0;
  --surface: #ffffff;
  --ink: #1b2220;
  --muted: #5b6662;
  --line: #d9ddd6;
  --tape: #2443c9;
  --tape-ink: #ffffff;
  --mark: #f0c234;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-label: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131715; --surface: #1b201e; --ink: #e9ece7; --muted: #a2aca7;
    --line: #2f3633; --tape: #4f6cf0; --tape-ink: #ffffff; --mark: #e2b52c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131715; --surface: #1b201e; --ink: #e9ece7; --muted: #a2aca7;
  --line: #2f3633; --tape: #4f6cf0; --tape-ink: #ffffff; --mark: #e2b52c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--tape); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.reading { max-width: 680px; }

/* Label tape */
.tape {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--tape);
  color: var(--tape-ink);
  padding: 5px 10px 4px;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
  text-decoration: none;
  white-space: nowrap;
}

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--tape); }
nav.cats { display: flex; flex-wrap: wrap; gap: 6px 18px; }
nav.cats a { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.cats a:hover, nav.cats a[aria-current="page"] { color: var(--ink); border-color: var(--tape); }

/* Setup note (owner only) */
.setup { background: var(--mark); color: #1b2220; font-family: var(--font-label); font-size: 12px; line-height: 1.5; }
.setup .wrap { padding-top: 10px; padding-bottom: 10px; }
.setup b { font-weight: 700; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); font-weight: 800; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 .tape { font-size: .42em; vertical-align: .55em; letter-spacing: .1em; margin-right: .2em; transform: rotate(-2deg); }
.hero p { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 18px 0 0; }

/* Category strip */
.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 48px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--tape); }
.cat-card h3 { font-size: 22px; font-weight: 700; }
.cat-card p { margin: 0; font-size: 15px; color: var(--muted); }
.cat-card .count { font-family: var(--font-label); font-size: 11px; color: var(--muted); margin-top: auto; }

/* Section head */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.sec-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }

/* Guide grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 56px; }
.g-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; color: var(--ink); }
.g-card:hover h3 { color: var(--tape); }
.g-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.g-card p { margin: 0; font-size: 15px; color: var(--muted); }
.g-card .meta { font-family: var(--font-label); font-size: 11px; color: var(--muted); margin-top: auto; }

/* Category page */
.cat-hero { padding: 44px 0 28px; }
.cat-hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.cat-hero p { color: var(--muted); max-width: 56ch; margin: 12px 0 0; }

/* Article */
article { padding: 40px 0 64px; }
article .crumbs { font-family: var(--font-label); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
article .crumbs a { color: var(--muted); }
article h1 { font-size: clamp(32px, 5.5vw, 50px); font-weight: 800; letter-spacing: -.03em; }
article .dek { font-size: 19px; color: var(--muted); margin: 14px 0 0; }
article .disc-line { font-family: var(--font-label); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 24px 0 28px; }
article h2 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; margin: 36px 0 10px; }
article h3 { font-size: 19px; font-weight: 700; margin: 0; }
article ul { padding-left: 1.2em; }
article li { margin: 6px 0; }

/* Checklist with store buttons */
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.item input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--tape); cursor: pointer; }
.item .body { display: grid; gap: 4px; }
.item label { font-family: var(--font-display); font-weight: 700; font-size: 17px; cursor: pointer; }
.item p { margin: 0; font-size: 15px; color: var(--muted); }
.item.done label { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--mark); }
.shops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shop { font-family: var(--font-label); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--paper); }
.shop:hover { border-color: var(--tape); color: var(--tape); }
.progress { font-family: var(--font-label); font-size: 12px; color: var(--muted); }

.callout { border-left: 4px solid var(--mark); background: var(--surface); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 16px; }

/* Plain pages */
.plain { padding: 44px 0 64px; }
.plain h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.plain h2 { font-size: 22px; margin: 28px 0 8px; }

/* Newsletter */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 12px; margin: 0 0 56px; }
.signup h2 { font-size: 24px; }
.signup p { margin: 0; color: var(--muted); }
.signup form { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input { flex: 1 1 220px; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.signup button { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--tape); color: var(--tape-ink); border: 0; border-radius: 6px; padding: 10px 18px; cursor: pointer; }
.signup .msg { font-family: var(--font-label); font-size: 12px; color: var(--muted); min-height: 1em; }

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer nav a { color: var(--muted); }

@media (max-width: 820px) { .cat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cat-strip { grid-template-columns: 1fr; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
