:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #23211e;
  --ink-2: #5d5951;
  --muted: #8f897f;
  --line: #ebe6dd;
  --accent: #4f6b4a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --card: #201f1c;
    --ink: #eeeae3;
    --ink-2: #bdb7ad;
    --muted: #8a847a;
    --line: #2e2c28;
    --accent: #9cb796;
  }
  .tile { filter: brightness(0.85) saturate(0.9); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-top: 28px; padding-bottom: 8px; }
.logo { font: 600 22px var(--serif); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
nav a { color: var(--ink-2); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* intro */
.hello { padding: 48px 0 20px; }
.hello h1 { font: 500 clamp(34px, 7vw, 48px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; }
.hello p { color: var(--ink-2); font-size: 18px; margin: 0; max-width: 34em; }
.hello.small { padding-top: 36px; }
.hello.small h1 { font-size: 36px; margin-bottom: 8px; }

/* sections */
.cat { margin-top: 44px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.cat-head h2 { font: 500 24px var(--serif); margin: 0; }
.cat-head a { font-size: 14px; color: var(--muted); text-decoration: none; }
.cat-head a:hover { color: var(--ink); }

/* product rows */
.list { display: flex; flex-direction: column; }
.card { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.card:last-child { border-bottom: 0; }
.card h3 { font: 600 17px/1.35 var(--sans); margin: 2px 0 4px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.card .pill { display: inline-block; margin-bottom: 2px; font-size: 12px; }
.pill { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); background: var(--line); border-radius: 99px; padding: 1px 8px; }

.tile { flex: none; width: 84px; height: 84px; border-radius: 14px; background: var(--tint, var(--line)); color: var(--ink); display: grid; place-items: center; object-fit: cover; }
.tile svg { width: 38px; height: 38px; color: var(--ink); }
.tile[style] svg { color: var(--ink); }
.tile.big { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; margin: 8px 0 28px; }
.tile.big svg { width: 72px; height: 72px; }

/* article */
.post { padding: 28px 0 8px; }
.post h1 { font: 500 clamp(30px, 6vw, 40px)/1.15 var(--serif); letter-spacing: -0.015em; margin: 8px 0 12px; }
.post h2 { font: 600 18px var(--sans); margin: 32px 0 8px; }
.post p, .post li { color: var(--ink-2); font-size: 17px; }
.post ul { padding-left: 1.2em; margin: 0; }
.post li { margin: 6px 0; }
.lede { font-size: 20px !important; color: var(--ink) !important; margin: 0; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.buys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.buy { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 12px; }
.buy:hover { opacity: 0.88; }
.fine { font-size: 13px !important; color: var(--muted) !important; margin-top: 12px; }
.muted { color: var(--muted); }

/* footer */
.foot { margin-top: 72px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }

@media (max-width: 480px) {
  .tile:not(.big) { width: 64px; height: 64px; border-radius: 12px; }
  .tile:not(.big) svg { width: 30px; height: 30px; }
  .card { gap: 14px; }
}

/* photo */
.me { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 62%; display: block; margin-bottom: 20px; }
.about-photo { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; object-position: 50% 62%; border-radius: 18px; display: block; margin: 8px 0 24px; }

/* guides + tags */
.guides { display: flex; flex-direction: column; }
.guides a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guides a:last-child { border-bottom: 0; }
.guides b { font-weight: 600; font-size: 17px; }
.guides span { flex: none; color: var(--muted); font-size: 14px; }
.guides a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.tags a { font-size: 14px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.tags a:hover { color: var(--ink); border-color: var(--muted); }
.tags.more { margin-top: 28px; }

/* verdicts (shown once you set one in products.mjs) */
.pill + .pill { margin-left: 6px; }
.v-again { color: var(--accent) !important; }
.v-skip { color: #a5533f !important; }
.verdict { display: inline-block; font-weight: 600; font-size: 15px !important; border: 1px solid currentColor; border-radius: 99px; padding: 3px 12px; margin: 14px 0 0; }
