/* Blog: the index (blog.html) and each post (blog/<slug>.html) */

/* A cover: the drawn SVG, always 16:10, always the same corners */
.bl-cover { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
a:hover .bl-cover img { transform: scale(1.025); }

.bl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bl-meta span:first-child { color: var(--carmine); }

/* The newest post, large */
.bl-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; padding-bottom: var(--space-16); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bl-feat .bl-cover { border-radius: var(--radius-xl); }
.bl-feat__text { display: grid; gap: var(--space-4); justify-items: start; }
.bl-feat__text .display-m { margin: 0; }
.bl-feat__text em { margin-top: var(--space-2); font-style: normal; font-weight: 500; font-size: 15px; }
.bl-feat .mb-arrow, .bl-more__head .mb-arrow, .bp__back .mb-arrow { display: inline-block; transition: transform .2s ease; }
.bl-feat:hover .mb-arrow, .bl-more__head a:hover .mb-arrow { transform: translateX(3px); }

/* Every other post, three across */
.bl-grid { margin-top: var(--space-16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
.bl-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); }
.bl-card .bl-cover { margin-bottom: 6px; }
.bl-card h3 { margin: 0; font-size: 21px; line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.bl-card p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.bl-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* A post */
.bp { padding: var(--space-16) 0 var(--space-8); }
.bp__head { display: grid; gap: var(--space-4); justify-items: start; max-width: calc(680px + 2 * var(--gutter)); }
.bp__back { margin-bottom: var(--space-4); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.bp__back:hover { color: var(--ink); }
.bp__back:hover .mb-arrow { transform: translateX(-3px); }
.bp__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bp__meta span:first-child { color: var(--carmine); }
.bp__head .display-l { margin: 0; max-width: 18ch; }
.bp__head .lead { max-width: 52ch; }
.bp__cover { margin-top: var(--space-12); }
.bp__cover .bl-cover { border-radius: var(--radius-xl); aspect-ratio: 16 / 8; }

.bp__body { max-width: 680px; margin: var(--space-16) auto 0; font-family: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; font-size: 21px; line-height: 1.62; color: var(--ink-2); font-kerning: normal; }
.bp__body > * + * { margin-top: 1.1em; }
.bp__body h2 { margin-top: 1.9em; font-family: var(--font-sans); font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.bp__body h2 + * { margin-top: .6em; }
.bp__body p { text-wrap: pretty; }
.bp__body b { font-weight: 600; color: var(--ink); }
.bp__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s ease; }
.bp__body a:hover { text-decoration-color: var(--carmine); }
.bp__body ul, .bp__body ol { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bp__body ul li, .bp__body ol li { position: relative; padding-left: 30px; }
.bp__body ul li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--carmine); }
.bp__body ol { counter-reset: bp; }
.bp__body ol li { counter-increment: bp; }
.bp__body ol li::before { content: counter(bp, decimal-leading-zero); position: absolute; left: 0; top: .6em; font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.bp__by { margin-top: var(--space-12) !important; padding-top: var(--space-6); border-top: 1px solid var(--line); font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.bl-more { border-top: 1px solid var(--line); margin-top: var(--space-16); }
.bl-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.bl-more__head .display-m { margin: 0; }
.bl-more__head a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.bl-more .bl-grid { margin-top: var(--space-12); }

@media (max-width: 1100px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .bl-feat { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-bottom: var(--space-12); }
  .bp { padding-top: var(--space-8); }
  .bp__cover { margin-top: var(--space-8); }
  .bp__cover .bl-cover { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .bp__body { margin-top: var(--space-12); font-size: 19px; }
}
@media (max-width: 640px) { .bl-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); } }

/* Authors */
.bl-face { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--fg); font: 600 12px/1 var(--font-sans); }
.bl-face--l { width: 48px; height: 48px; font-size: 19px; }
.bl-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.bl-by b { font-weight: 500; color: var(--ink); }
.bl-card .bl-by { margin-top: 4px; }
.bp__head .bl-by { margin-top: var(--space-2); font-size: 14.5px; }
.bp__author { font-family: var(--font-sans); margin-top: var(--space-12) !important; padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); }
.bp__author span { display: grid; gap: 2px; }
.bp__author b { font-weight: 600; color: var(--ink); }
