:root {
  --ink: #1d1f24;
  --muted: #5b616c;
  --line: #e4e6eb;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef2;
    --muted: #a3a9b5;
    --line: #2a2e36;
    --paper: #14161a;
    --card: #1c1f25;
    --accent: #2dd4bf;
    --accent-ink: #0b1f1d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* Post cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding-bottom: 56px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.card .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); aspect-ratio: 4 / 3; }
.card .thumbs img, .card .thumbs .ph { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .thumbs .ph { display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; padding: 10px; font-weight: 600; }
.card .body { padding: 18px 20px 22px; }
.card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }

/* Article */
.article-head { padding: 48px 0 12px; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.15; margin: 6px 0 12px; letter-spacing: -0.02em; }
.article-head p.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.section-title { font-size: 1.1rem; margin: 40px 0 16px; letter-spacing: -0.01em; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pick {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.pick .img { aspect-ratio: 1 / 1; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.pick .img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pick .img .ph { color: var(--muted); font-size: .9rem; text-align: center; padding: 16px; font-weight: 600; }
.pick h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.pick .price { font-weight: 600; }
.pick p { margin: 0; color: var(--muted); font-size: .95rem; }
.button {
  margin-top: auto; display: inline-block; text-align: center; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.button:hover { filter: brightness(1.08); }
.button.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.pick .source { font-size: .85rem; color: var(--muted); }

.headlines { padding-left: 1.1rem; color: var(--muted); }
.headlines li { margin-bottom: 6px; }

.article-body { max-width: 68ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .nav a { margin-left: 14px; }
}
