/* Blog layer. Built only on the tokens and fonts defined in ../styles.css; .dock, .glass, .btn,
   .name, .mono, .kicker and .foot are reused as they are. No new colours, no new fonts. */

/* ---------- page ---------- */
.post { position: relative; z-index: 1; max-width: 72ch; margin: 0 auto; padding: clamp(120px, 16vh, 160px) 16px 80px; }
.post-head { margin-bottom: 32px; }
.post-head .kicker { margin-bottom: 18px; }
.post h1 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(48px, 8vw, 92px); line-height: .88; letter-spacing: -.005em; margin: 0 0 18px; color: var(--fg); text-wrap: balance; }
.post .dateline { font-size: 11px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0; max-width: none; }
.post .dateline time { color: inherit; }

/* ---------- answer first ---------- */
.post .answer { font-family: var(--font-b); font-weight: 500; border-left-width: 3px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--fg); border-left: 3px solid var(--brand); padding-left: 18px; margin: 0 0 36px; max-width: 60ch; text-wrap: pretty; }

/* ---------- body text ---------- */
.post h2 { font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.015em; margin: 44px 0 12px; color: var(--fg); text-wrap: balance; }
.post p, .post li { font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: 60ch; }
.post p { margin: 0 0 16px; }
.post ul { margin: 0 0 16px; padding-left: 20px; }
.post li { margin: 0 0 6px; }
.post li::marker { color: var(--fg-3); }
.post p a:not(.btn), .post li a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post p a:not(.btn):hover, .post li a:hover { text-decoration-thickness: 2px; }
.post strong { color: var(--fg); font-weight: 600; }
.post code { font-family: var(--font-m); font-size: 13.5px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); white-space: nowrap; }

/* ---------- callout (use class="callout glass") ---------- */
.post .callout { padding: 18px 22px; margin: 28px 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); border-radius: var(--r-s); max-width: none; }
.post .callout::before, .post .callout::after { border-radius: inherit; }
.post .callout b { display: block; font-family: var(--font-m); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.post .callout p { font-size: 14.5px; margin: 0 0 8px; max-width: none; }
.post .callout p:last-child { margin-bottom: 0; }

/* ---------- end of post ---------- */
.post .see { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; max-width: none; }

/* ---------- blog index ---------- */
.blog-index .cards { display: grid; gap: 14px; margin-top: 8px; }
.blog-index .card { display: grid; gap: 8px; padding: 22px 24px; color: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
.blog-index .card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.blog-index .card:active { transform: translateY(0); }
.blog-index .card h2 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 34px; line-height: .92; margin: 0; color: var(--fg); }
.blog-index .card p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.blog-index .card .dateline { margin-top: 2px; }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .post { padding: 104px 16px 56px; }
  .post h2 { margin-top: 36px; }
  .post .callout { padding: 16px 18px; }
  .blog-index .card { padding: 18px 18px; }
  .post .see .btn { flex: 1; }
}
