/* Changelog: one calm reading column, month-grouped rows, entry pages with desktop + phone frames. */
:root {
  --cl-bg: #f6f7f9; --cl-surface: #fff; --cl-fg: #14161b; --cl-muted: #5c6371; --cl-line: #e3e6ec;
  --cl-brand: #4f46e5; --cl-brand-ink: #fff; --cl-brand-soft: #eef0ff;
  --cl-new: #0d7a4c; --cl-new-soft: #e2f4eb; --cl-imp: #4338ca; --cl-imp-soft: #eceefe;
  --cl-shot: #eef1f6; --cl-shot-2: #dfe4ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cl-bg: #0d1014; --cl-surface: #151a21; --cl-fg: #e8eaef; --cl-muted: #9aa3b3; --cl-line: #262d38;
    --cl-brand: #8a84ff; --cl-brand-ink: #0d1014; --cl-brand-soft: #1e2142;
    --cl-new: #52c792; --cl-new-soft: #10291e; --cl-imp: #a5a0ff; --cl-imp-soft: #1d1f3d;
    --cl-shot: #1b212b; --cl-shot-2: #272f3b;
  }
}
.cl-body { background: var(--cl-bg); color: var(--cl-fg); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.55; padding-top: 64px; -webkit-font-smoothing: antialiased; }
.cl-body *, .cl-body *::before, .cl-body *::after { box-sizing: border-box; }
.cl-wrap { max-width: 880px; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); min-height: 70vh; }
.cl-wrap a { color: inherit; }
.cl-wrap :focus-visible { outline: 2px solid var(--cl-brand); outline-offset: 2px; border-radius: 6px; }

.cl-hero { display: grid; gap: 14px; margin-bottom: 28px; }
.cl-hero h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 800; text-wrap: balance; }
.cl-hero p { margin: 0; color: var(--cl-muted); font-size: 16px; max-width: 58ch; }
.cl-hero p a { color: var(--cl-brand); font-weight: 600; }
.cl-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cl-btn { border: 1px solid var(--cl-line); background: var(--cl-surface); color: var(--cl-fg) !important; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 9px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cl-btn:hover { border-color: var(--cl-brand); }
.cl-btn svg { width: 15px; height: 15px; }
.cl-crosslink { font-size: 14px; color: var(--cl-muted); }
.cl-crosslink a { color: var(--cl-brand); font-weight: 600; text-decoration: none; }
.cl-crosslink a:hover { text-decoration: underline; }

.cl-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding-block: 14px; border-top: 1px solid var(--cl-line); border-bottom: 1px solid var(--cl-line); margin-bottom: 8px; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cl-line); background: var(--cl-surface); color: var(--cl-muted) !important; text-decoration: none; }
.cl-chip:hover { border-color: var(--cl-brand); color: var(--cl-fg) !important; }
.cl-chip[aria-current] { background: var(--cl-fg); border-color: var(--cl-fg); color: var(--cl-bg) !important; }
.cl-seg { display: inline-flex; border: 1px solid var(--cl-line); border-radius: 9px; overflow: hidden; background: var(--cl-surface); }
.cl-seg a { font-size: 13px; font-weight: 600; padding: 6px 12px; color: var(--cl-muted) !important; text-decoration: none; }
.cl-seg a[aria-current] { background: var(--cl-brand-soft); color: var(--cl-brand) !important; }

.cl-month { margin-top: 26px; }
.cl-month h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cl-muted); margin: 0 0 6px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.cl-month h2 span { font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.cl-rows { list-style: none; margin: 0; padding: 0; }
.cl-row { border-bottom: 1px solid var(--cl-line); }
.cl-row a { display: grid; grid-template-columns: 150px 96px 92px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 13px 8px; text-decoration: none; border-radius: 10px; transition: background-color .15s ease; }
.cl-row a:hover { background: var(--cl-surface); }
.cl-row .title { font-weight: 600; font-size: 15.5px; min-width: 0; }
.cl-row .date { color: var(--cl-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cl-row .go { color: var(--cl-muted); }
.cl-row .go svg { width: 16px; height: 16px; display: block; }
@media (max-width: 640px) {
  .cl-row a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mod date" "title title" "badge badge"; gap: 6px 12px; padding: 14px 4px; }
  .cl-row .mod { grid-area: mod; } .cl-row .date { grid-area: date; } .cl-row .title { grid-area: title; } .cl-row .badge-cell { grid-area: badge; } .cl-row .go { display: none; }
}
.mod { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; min-width: 0; text-decoration: none; }
.mod-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--cl-brand-soft); color: var(--cl-brand); }
.mod-ico svg { width: 14px; height: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: 0.01em; }
.badge.new { background: var(--cl-new-soft); color: var(--cl-new); }
.badge.improved { background: var(--cl-imp-soft); color: var(--cl-imp); }
.cl-empty { padding: 28px 8px; color: var(--cl-muted); }
.cl-empty a { color: var(--cl-brand); font-weight: 600; }

.cl-back { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--cl-brand) !important; text-decoration: none; margin-bottom: 22px; }
.cl-back:hover { text-decoration: underline; }
.cl-entry-head { display: grid; gap: 12px; margin-bottom: 22px; justify-items: start; }
.cl-entry-head h1 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 800; text-wrap: balance; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--cl-muted); font-size: 14px; }
.cl-entry-body { max-width: 64ch; font-size: 16px; }
.cl-entry-body p { margin: 0 0 12px; }
.cl-entry-body ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; list-style: disc; }
.cl-entry-body a { color: var(--cl-brand); font-weight: 600; }
.cl-shots { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: end; margin-top: 26px; }
.cl-shots.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) { .cl-shots { grid-template-columns: minmax(0, 1fr); } .cl-phone-wrap { max-width: 230px; width: 100%; margin: 0 auto; } }
.cl-body figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.cl-body figcaption { font-size: 12.5px; color: var(--cl-muted); text-align: center; }
.cl-browser { border: 1px solid var(--cl-line); border-radius: 12px; overflow: hidden; background: var(--cl-surface); box-shadow: 0 10px 30px -18px rgba(20, 22, 27, 0.35); }
.cl-browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--cl-line); background: var(--cl-shot); }
.cl-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--cl-shot-2); display: block; flex: none; }
.cl-browser-bar span { margin-left: 8px; font-size: 11px; color: var(--cl-muted); background: var(--cl-surface); border-radius: 6px; padding: 2px 10px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-browser img, .cl-phone img { display: block; width: 100%; height: auto; }
.cl-phone { border: 1px solid var(--cl-line); border-radius: 26px; padding: 8px; background: var(--cl-surface); box-shadow: 0 10px 30px -18px rgba(20, 22, 27, 0.35); }
.cl-phone img { border-radius: 19px; }
.cl-noshot { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--cl-line); border-radius: 12px; color: var(--cl-muted); font-size: 14px; max-width: 64ch; }
.cl-entry-links { margin-top: 30px; display: grid; gap: 14px; }
.cl-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cl-pn a { border: 1px solid var(--cl-line); background: var(--cl-surface); border-radius: 12px; padding: 12px 14px; text-decoration: none; display: grid; gap: 2px; min-width: 0; transition: border-color .15s ease; }
.cl-pn a:hover { border-color: var(--cl-brand); }
.cl-pn a small { color: var(--cl-muted); font-size: 12px; }
.cl-pn a span { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-pn a.next { text-align: right; }
@media (max-width: 480px) { .cl-pn { grid-template-columns: minmax(0, 1fr); } .cl-pn a.next { text-align: left; } }
/* The shared nav is white and translucent; keep it crisp over the dark page. */
.cl-body > nav.fixed { background-color: rgba(255, 255, 255, 0.96); }
