/* Blog pages (the list and the articles), in the homepage's black-and-white style. They sit inside
   <main class="home">, so home.css provides the shared parts: .wrap, .kicker, .label, buttons, the footer. */
.page-main { min-height: 100vh; }
.home .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-family: "Reddit Mono", ui-monospace, Menlo, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home .breadcrumbs a { transition: color .2s ease; }
.home .breadcrumbs a:hover { color: var(--ink); }
.home .breadcrumbs [aria-current] { color: #bdbdbd; }

/* --- Blog list --------------------------------------------------------------------------------- */
.home .page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(36px, 4vw, 60px); }
.home .page-title { margin: 0; font-size: clamp(3.25rem, 7.2vw, 8rem); font-weight: 500; line-height: .98; letter-spacing: -.065em; }
.home .page-lead { max-width: 640px; margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; }
.home .page-lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; }
.home .page-body { padding-bottom: clamp(80px, 10vw, 140px); }
.home .page-empty { font-size: 1.125rem; }
/* The one-time admin setup form. */
.home .setup-form { display: grid; gap: 16px; max-width: 420px; }
.home .setup-form label { display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.home .setup-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #0b0b0b; }
.home .setup-error { color: #ff8a8a; }
/* The contact page's two buttons under its lead. */
.home .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home .post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.home .post-card { display: grid; grid-template-columns: clamp(110px, 11vw, 150px) minmax(0, 1fr); align-items: start; gap: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color .25s ease; }
.home .post-card:hover { border-color: #3a3a3a; }
/* Small rounding only: the cover images have their own rounded frame, which a bigger radius would clip. */
.home .post-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.home .post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px 8px 0; }
.home .post-card .meta { font-family: "Reddit Mono", ui-monospace, Menlo, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home .post-card :is(h2, h3) { font-size: clamp(1.1rem, 1.35vw, 1.35rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.home .post-card:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home .post-card p { font-size: .875rem; line-height: 1.55; color: var(--muted); }

/* --- Article ----------------------------------------------------------------------------------- */
.home .article-head { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.home .article-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.home .article-head h1 { margin: 18px 0 0; font-size: clamp(2.4rem, 4.6vw, 4.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -.055em; }
.home .article-lead { margin-top: 24px; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; }
.home .article-lead strong { color: var(--ink); }
.home .byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.home .byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.home .byline div { display: grid; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.home .byline strong { font-weight: 500; color: var(--ink); }
.home .article-cover { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); }

.home .article-layout { padding: clamp(48px, 6vw, 90px) 0 clamp(72px, 9vw, 120px); }
.home .article-layout .wrap { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 760px); justify-content: start; gap: clamp(32px, 5vw, 80px); }
.home .article-layout .wrap:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.home .toc { position: sticky; top: calc(var(--header-height) + 28px); align-self: start; }
.home .toc nav { display: grid; gap: 12px; }
.home .toc a { font-size: .875rem; line-height: 1.4; color: var(--muted); transition: color .2s ease; }
.home .toc a:hover { color: var(--ink); }

/* The article text. */
.home .prose { font-size: 1.0625rem; line-height: 1.75; color: var(--soft); }
.home .prose > :first-child { margin-top: 0; }
.home .prose h2 { margin: 2.2em 0 .7em; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; color: var(--ink); scroll-margin-top: calc(var(--header-height) + 20px); }
.home .prose h2 .num { margin-right: 14px; font: 500 .875rem/1 "Reddit Mono", ui-monospace, Menlo, monospace; letter-spacing: 0; color: var(--muted); vertical-align: 6px; }
.home .prose .pull { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--ink); font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.home .prose h3 { margin: 1.6em 0 .5em; font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.home .prose p { margin: 0 0 1.1em; }
.home .prose :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.2em; list-style: revert; }
.home .prose li { margin: .45em 0; }
.home .prose li::marker { color: var(--muted); }
.home .prose strong { font-weight: 600; color: var(--ink); }
.home .prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; }
.home .prose a:hover { text-decoration-color: var(--ink); }
.home .prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid #3a3a3a; color: var(--ink); }
.home .prose code { padding: 2px 6px; border-radius: 6px; font-family: "Reddit Mono", ui-monospace, Menlo, monospace; font-size: .88em; background: #141414; }
.home .prose pre { margin: 0 0 1.4em; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #0b0b0b; }
.home .prose pre code { padding: 0; background: none; }
.home .prose img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; border-radius: 16px; }
.home .prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.home .prose .callout { margin: 1.6em 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: #0b0b0b; }
.home .prose .callout > :last-child { margin-bottom: 0; }

/* The call to action and the author, under every article. */
.home .cta-box { margin-top: 3em; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: #0b0b0b; }
.home .cta-box .cta-title { margin-bottom: .45em; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
.home .cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.home .cta-box .btn { text-decoration: none; }
.home .cta-box .btn-accent { color: #000; }
.home .author-box { display: flex; align-items: flex-start; gap: 18px; margin-top: 2em; padding-top: 2em; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.home .author-box img { flex: none; width: 72px; height: 72px; margin: 0; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.home .author-box .label { display: block; margin-bottom: 4px; }
.home .author-box strong { display: block; font-weight: 500; color: var(--ink); }

.home .more-posts .section-head h2 { font-size: clamp(1.8rem, 3vw, 3rem); }

/* --- Narrower windows -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .home .article-grid, .home .article-layout .wrap { grid-template-columns: minmax(0, 1fr); }
  .home .toc { position: static; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .home .post-list { grid-template-columns: minmax(0, 1fr); }
  .home .post-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .page .site-nav { position: static; transform: none; font-size: .8125rem; }
  .page .site-header { gap: 16px; }
  .page .nav-divider { padding: 0 6px; }
}
