/* The blog: the home page's tokens, nav and footer (home.css), plus an editorial reading layout.
   Newsreader, the app's serif, carries headlines and body; Hanken Grotesk the labels and UI. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

picture { display: contents; }
.serif { font-family: "Newsreader", Georgia, "Times New Roman", serif; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--muted); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* Blog index */
.blog-head { padding: 72px 0 40px; }
.blog-head h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 72px; line-height: 1; letter-spacing: -0.03em; max-width: 14ch; margin: 14px 0 0; }
.blog-head p { margin-top: 18px; font-size: 20px; max-width: 560px; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 8px 0 96px; text-decoration: none; color: inherit; }
.feature .cover { border-radius: 28px; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 10; }
.feature .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature:hover .cover img { transform: scale(1.03); }
.feature h2 { text-wrap: balance; font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 16px; color: var(--ink); }
.feature:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature p { font-size: 18px; margin-bottom: 20px; }

/* A post */
.progress { position: fixed; top: 0; left: 0; z-index: 20; height: 2px; width: 100%; background: var(--forest); transform-origin: 0 50%; transform: scaleX(0); }
.post-head { max-width: 760px; margin: 0 auto; padding: 56px 0 40px; text-align: center; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; opacity: 0.5; }
.post-head h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 60px; line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch; margin: 16px auto 20px; text-wrap: balance; }
.post-head .dek { font-size: 21px; line-height: 1.5; max-width: 620px; margin: 0 auto 24px; }
.post-head .meta { justify-content: center; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.byline img { border-radius: 50%; }

.post-cover { max-width: 1040px; margin: 0 auto 64px; }
.post-cover img { width: 100%; border-radius: 28px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.post-cover figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

.prose { max-width: 680px; margin: 0 auto; font-family: "Newsreader", Georgia, serif; font-size: 21px; line-height: 1.7; }
.prose p { color: var(--ink); margin: 0 0 1.15em; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--forest); font-weight: 500; }
.prose h2 { font-family: "Hanken Grotesk", -apple-system, sans-serif; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; margin: 2.2em 0 0.7em; color: var(--ink); }
.prose strong { font-weight: 650; }
.prose a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 0.2em 0 0.2em 28px; border-left: 3px solid var(--forest); font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose ul { margin: 0 0 1.15em 1.1em; }
.prose li { margin: 0.35em 0; color: var(--ink); }

/* The ask at the end: the home page's deep forest card */
.cta { max-width: 760px; margin: 72px auto 0; padding: 40px; border-radius: 28px; background: var(--deep); color: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { font-size: 30px; line-height: 1.1; color: var(--paper); }
.cta p { color: rgba(234, 241, 234, 0.72); margin-top: 8px; font-size: 16px; }

.post-more { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.post-more a { color: var(--muted); text-decoration: none; }
.post-more a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .feature { gap: 32px; }
  .feature h2 { text-wrap: balance; font-size: 36px; }
}

@media (max-width: 760px) {
  .blog-head { padding: 40px 0 28px; }
  .blog-head h1 { font-size: 52px; }
  .blog-head p { font-size: 18px; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; }
  .feature .cover { border-radius: 20px; }
  .feature h2 { text-wrap: balance; font-size: 32px; margin: 10px 0 12px; }
  .post-head { padding: 32px 0 28px; text-align: left; }
  .post-head h1 { font-size: 40px; margin-left: 0; }
  .post-head .dek { font-size: 18px; margin-left: 0; }
  .post-head .meta { justify-content: flex-start; }
  .post-cover { margin-bottom: 40px; }
  .post-cover img { border-radius: 18px; }
  .prose { font-size: 19px; }
  .prose h2 { font-size: 25px; }
  .prose blockquote { font-size: 24px; padding-left: 20px; }
  .cta { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 22px; margin-top: 56px; }
  .cta .pill { width: 100%; }
  .post-more { flex-direction: column; padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature .cover img { transition: none; }
}
