/* ============================================================
   Marco Milanello — blog: article pages (Appunti)
   Loaded AFTER card.css; reuses its variables.
   ============================================================ */

/* ---- Post hero ---- */
.post-back { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.post-back:hover { color: var(--accent); }
.post-hero { padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.post-hero .wrap { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; }
@media (min-width: 860px) { .post-hero .wrap { grid-template-columns: 1fr 220px; } }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.9rem; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.post-meta .cat { color: var(--accent); }
.post-meta .sep { color: var(--line); }
.post-meta .when, .post-meta .read { color: var(--ink-3); }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.018em; margin-top: 1rem; max-width: 22ch; text-wrap: balance; }
.post-hero .post-standfirst { margin-top: 1.2rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.post-art { width: min(220px, 56vw); justify-self: end; }
@media (max-width: 859px) { .post-art { justify-self: start; } }

/* ---- Post body ---- */
.post-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.post-body .wrap > * { max-width: 680px; }
.post-body p { font-size: 1.06rem; line-height: 1.8; color: var(--ink-2); margin: 0 0 1.25rem; }
.post-body p strong, .post-body p b { color: var(--ink); font-weight: 600; }
.post-body p em { font-style: italic; }
.post-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; margin: clamp(2.2rem, 4vw, 3rem) 0 1rem; letter-spacing: -0.012em; }
.post-body h2::before { content: ''; display: block; width: 34px; height: 2px; background: var(--accent); margin-bottom: 0.9rem; opacity: 0.85; }
.post-body .post-open p { font-family: var(--serif); font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink); }
.post-rule { border: none; height: 1px; background: var(--line); margin: clamp(2rem, 4vw, 2.8rem) 0; }

/* numbered strong-led list paragraphs get a hanging accent */
.post-body .pt { padding-left: 1.1rem; border-left: 2px solid rgba(151,88,47,0.35); }

/* ---- FAQ ---- */
.post-faq { border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); padding: clamp(1.4rem, 3vw, 2rem); margin: clamp(2.2rem, 4vw, 3rem) 0 0; }
.post-faq > h2 { margin: 0 0 1.2rem; font-size: 1.3rem; }
.post-faq > h2::before { display: none; }
.post-faq .faq-k { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.8rem; }
.post-faq dt { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 1.1rem 0 0.4rem; }
.post-faq dt:first-of-type { margin-top: 0; }
.post-faq dd { margin: 0; font-size: 0.97rem; line-height: 1.7; color: var(--ink-2); }

/* ---- Closing aphorism ---- */
.post-close { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 1.2rem; margin: clamp(2.2rem, 4vw, 3rem) 0 0; }

/* ---- CTA box ---- */
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border: 1px solid rgba(151,88,47,0.35); border-radius: 16px; background: var(--paper); box-shadow: 0 16px 36px -26px rgba(151,88,47,0.5); padding: clamp(1.4rem, 3vw, 2rem); margin-top: clamp(2rem, 3.5vw, 2.6rem); }
.post-cta p { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); max-width: 34ch; }
.post-cta .btn { flex-shrink: 0; }

/* ---- Prev / next ---- */
.post-nav { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; max-width: 680px; }
.post-nav a { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--ink-2); transition: color .2s; max-width: 46%; }
.post-nav a:hover { color: var(--accent); }
.post-nav .pn-lab { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem; }
.post-nav .next { text-align: right; margin-left: auto; }

/* ---- Minimal footer ---- */
.post-footer { border-top: 1px solid var(--line-soft); padding: 2rem 0 2.5rem; }
.post-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.post-footer small { font-size: 0.8rem; color: var(--ink-3); }
.post-footer a { color: var(--accent); font-weight: 600; }

/* article sketches draw immediately (no scroll gating needed on short heroes) */
.post-art .ink { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-art .ink2 { stroke: var(--ink-3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.post-art .node { fill: var(--accent); }
.post-art .node-open { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }
