/* ============================================================
   Notes + Skills — list and detail pages.
   Header, nav, brand, :root tokens, focus styles all come from
   golden.css (linked alongside this file). Only the page-specific
   reading/article rules live here — lifted verbatim from the
   preview sketches (preview/notes/index.html + the-portfolio-edit.html)
   so there is zero visual drift.
   ============================================================ */

/* reading-width wrappers (list uses 760, detail uses 680) */
.reading{max-width:760px}
article .reading{max-width:680px;margin:0 auto}

/* nav active state (list page marks the current section) */
nav a.active{color:var(--ink)}

/* ---------- list: header block ---------- */
.head{padding:64px 0 30px}
.eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--clay)}
h1{font-family:var(--font-display);font-weight:700;font-size:clamp(34px,5vw,54px);letter-spacing:-.025em;line-height:1.02;margin-top:12px}
.lede{font-family:var(--font-serif);font-size:clamp(17px,2vw,21px);line-height:1.6;color:var(--ink);margin-top:18px;max-width:60ch}

/* ---------- list: the notes/skills index ---------- */
.notes-list{padding:18px 0 90px;display:grid;gap:0;border-top:1px solid var(--border)}
.note{display:grid;grid-template-columns:140px 1fr;gap:26px;align-items:baseline;padding:26px 4px;border-bottom:1px solid var(--border);transition:background .16s}
.note:hover{background:rgba(199,122,26,.045)}
.note .when{font-family:var(--font-mono);font-size:12px;color:var(--muted);line-height:1.6}
.note .when .by{display:block;color:var(--clay);margin-top:4px}
.note h2{font-family:var(--font-display);font-weight:700;font-size:clamp(20px,2.4vw,26px);letter-spacing:-.015em;line-height:1.18}
.note:hover h2{color:var(--honey)}
.note p{font-family:var(--font-serif);font-size:16px;line-height:1.6;color:var(--muted);margin-top:9px;max-width:62ch}
.note .more{font-family:var(--font-mono);font-size:12.5px;color:var(--clay);margin-top:12px;display:inline-block}
@media (max-width:620px){.note{grid-template-columns:1fr;gap:6px}}

/* quiet empty state */
.notes-empty{padding:30px 4px 90px;font-family:var(--font-serif);font-size:17px;color:var(--muted);border-top:1px solid var(--border)}

/* ---------- detail: article ---------- */
article{padding:54px 0 40px}
.back{font-family:var(--font-mono);font-size:12.5px;color:var(--clay);display:inline-block;margin-bottom:26px}
.post-eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.06em;color:var(--muted)}
.post-eyebrow b{color:var(--clay);font-weight:500}
article h1{font-family:var(--font-display);font-weight:700;font-size:clamp(30px,4.4vw,46px);letter-spacing:-.025em;line-height:1.05;margin:14px 0 0}
.post-body{font-family:var(--font-serif);font-size:18.5px;line-height:1.72;color:var(--ink);margin-top:34px}
.post-body p{margin:0 0 22px}
.post-body h2{font-family:var(--font-display);font-weight:700;font-size:24px;letter-spacing:-.015em;line-height:1.2;margin:40px 0 14px}
.post-body strong{font-weight:600}
.post-body ul{margin:0 0 22px;padding-left:22px}
.post-body li{margin:0 0 10px}
.post-body .pull{font-family:var(--font-display);font-weight:600;font-size:22px;line-height:1.35;color:var(--ink);border-left:3px solid var(--amber);padding:4px 0 4px 20px;margin:30px 0}
/* code — new posts carry fenced blocks; styled in the Golden Hour family */
.post-body code{font-family:var(--font-mono);font-size:.82em;color:var(--ink);background:var(--paper-2);border:1px solid var(--hair);border-radius:6px;padding:2px 6px}
.post-body pre{font-family:var(--font-mono);font-size:13.5px;line-height:1.62;background:var(--paper-2);border:1px solid var(--hair);border-radius:10px;padding:18px 20px;overflow-x:auto;margin:0 0 24px}
.post-body pre code{font-size:inherit;color:inherit;background:none;border:0;padding:0}
.post-body a{color:var(--clay);border-bottom:1px solid var(--border)}
.post-body a:hover{color:var(--ink)}
.post-body blockquote{margin:0 0 22px;padding:2px 0 2px 20px;border-left:3px solid var(--border);color:var(--muted)}
.post-body h3{font-family:var(--font-display);font-weight:600;font-size:19px;letter-spacing:-.01em;line-height:1.25;margin:32px 0 12px}
.post-body ol{margin:0 0 22px;padding-left:24px}

/* ---------- skill: mono fact row (version · install · repo) ---------- */
.skill-facts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:20px;font-family:var(--font-mono);font-size:13px;color:var(--muted)}
.skill-facts .k{color:var(--clay)}
.skill-facts code{font-family:var(--font-mono);font-size:13px;color:var(--ink);background:var(--paper-2);border:1px solid var(--hair);border-radius:7px;padding:4px 9px}
.skill-facts a{color:var(--clay);border-bottom:1px solid var(--border)}
.skill-facts a:hover{color:var(--ink)}

/* ---------- detail: post CTA ---------- */
.post-cta{margin:40px 0 10px;padding:26px 28px;border:1px solid var(--border);background:var(--card);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.post-cta p{font-family:var(--font-serif);font-size:16px;color:var(--ink);max-width:42ch}
.post-cta a{font-family:var(--font-mono);font-size:13px;color:#FCEFD6;padding:13px 22px;border-radius:12px;background:radial-gradient(58% 92% at 74% -6%,rgba(255,234,178,.82),rgba(244,181,40,.3) 50%,transparent 85%),radial-gradient(82% 104% at 30% -10%,rgba(255,198,108,.5),rgba(199,122,26,.24) 50%,transparent 85%),#1A140D;white-space:nowrap}

/* ---------- notes/skills footer (paper-2, hairline) ---------- */
.notes-footer{border-top:1px solid var(--hair);padding:40px 0 56px;background:var(--paper-2)}
.notes-footer p{font-family:var(--font-serif);font-size:14.5px;color:var(--muted)}
.notes-footer a{color:var(--ink);border-bottom:1px solid var(--border)}
