/* Homepage only. Articles, images and the portable editor retain their own design. */
:root {
  --muted: #5f6159;
  --accent: #38553e;
  --line: #deddd5;
  --rule: 1px solid var(--line);
  --radius: .25rem;
  --type-meta: .75rem;
  --type-action: .875rem;
  --type-body: 1rem;
  --type-section: 1.125rem;
  --type-title: 1.5rem;
  --type-feature: 2rem;
}
html:has(.home-page) {
  background: #fcfaf6 url('/images/hero-noise.png') repeat;
  background-size: 100px 100px;
}
.home-page { max-width: 900px; padding-inline: 40px; font-size: var(--type-body); line-height: 1.7; }
.home-page [hidden] { display: none !important; }
.home-page h1, .home-page h2, .home-page h3 { text-wrap: balance; overflow-wrap: anywhere; }
.home-page p { text-wrap: pretty; }
.home-page h2, .home-page .section-heading h2 { margin: 0; font-size: var(--type-section); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.home-page a { text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color 160ms ease, text-decoration-color 160ms ease; }
.home-page a:hover { color: var(--accent); text-decoration: underline; }
.home-page :is(a, button, iframe):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-page .link-arrow { flex: 0 0 auto; font-size: 1em; font-weight: 400; line-height: 1; }
.home-page .small-label { margin: 0; color: var(--muted); font-size: var(--type-meta); font-weight: 500; line-height: 1.5; letter-spacing: .02em; text-transform: none; }

.home-page .site-header { min-height: 90px; height: auto; padding-block: 20px; gap: 8px 24px; flex-wrap: wrap; border-bottom: var(--rule); }
.home-page .wordmark { font-size: 1.75rem; line-height: 1.2; }
.home-page nav { gap: 4px 28px; flex-wrap: wrap; font-size: var(--type-action); line-height: 1.5; }
.home-page nav a, .home-page footer a { display: inline-flex; align-items: center; min-height: 44px; }
.home-page .intro { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 72px; padding: 96px 0 104px; }
.home-page .intro-copy, .home-page .intro-summary { min-width: 0; }
.home-page .intro-byline { margin-bottom: 16px; }
.home-page .intro h1 { font-size: clamp(2.5rem, 4.4vw, 3.375rem); line-height: 1.12; letter-spacing: -.035em; }
.home-page .intro-description { max-width: 46ch; margin: 0 0 12px; font-size: var(--type-body); line-height: 1.75; }
.home-page .text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .65em; font-size: var(--type-action); font-weight: 500; color: var(--accent); }

/* Titles lead; series and dates form a single, quieter metadata row. */
.home-page #writing { padding-bottom: 12px; }
.home-page .section-heading { padding-block: 24px 0; border-top: var(--rule); border-bottom: 0; }
.home-page .lead-post { padding: 28px 0; border-bottom: var(--rule); }
.home-page .lead-post-link { display: grid; grid-template-columns: .9fr 1.25fr; align-items: center; gap: 40px; }
.home-page .lead-post-copy { min-width: 0; }
.home-page .post-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.home-page .lead-post h3 { font-size: var(--type-feature); line-height: 1.22; letter-spacing: -.02em; margin: 12px 0 16px; }
.home-page .post-description { color: var(--muted); font-size: var(--type-body); line-height: 1.7; margin: 0; }
.home-page .post-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.6; font-variant-numeric: tabular-nums; }
.home-page .post-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.home-page .post-preview { min-width: 0; padding-block: 28px; border-bottom: var(--rule); }
.home-page .post-preview:nth-last-child(-n+2) { border-bottom: 0; }
.home-page .post-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 20px; height: 100%; }
.home-page .post-preview .post-thumbnail { aspect-ratio: 4 / 3; }
.home-page .post-copy { min-width: 0; }
.home-page .post-preview h3 { margin: 0 0 12px; font-size: var(--type-title); line-height: 1.25; letter-spacing: -.015em; }
.home-page :is(.post-link, .lead-post-link):is(:hover, :focus-visible) { text-decoration: none; color: inherit; }
.home-page :is(.post-link, .lead-post-link):is(:hover, :focus-visible) h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

.home-page .about-note { display: grid; grid-template-columns: .9fr 1.25fr; gap: 40px; border-top: var(--rule); padding: 36px 0; }
.home-page .about-note h2 { font: 400 1.75rem/1.25 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; }
.home-page .about-note > div > p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.75; max-width: 58ch; }
.home-page .about-note .text-link { margin-top: 8px; }
.home-page footer { min-height: 76px; border-top: var(--rule); }
.home-page footer p, .home-page footer > a:last-child { font-size: var(--type-meta); line-height: 1.65; }
.home-page footer a { gap: .65em; }
.home-page .github-activity { border-top: var(--rule); padding: 24px 0 28px; }
.home-page .github-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.home-page .github-profile { display: inline-flex; align-items: center; gap: .65em; min-height: 44px; color: var(--accent); font-size: var(--type-action); }
.home-page .github-activity picture { display: block; }
.home-page .github-activity img { display: block; width: 100%; height: auto; aspect-ratio: 799 / 161; }
.home-page .life-board { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; border-radius: var(--radius); }
.home-page .life-board:disabled { cursor: default; opacity: 1; }
.home-page .life-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home-page .life-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-page .life-challenge { margin: 12px 0 0; color: var(--muted); font-size: var(--type-action); line-height: 1.5; }

@media (max-width: 900px) {
  .home-page .intro { gap: 40px; }
  .home-page .post-grid { column-gap: 28px; }
  .home-page .post-link { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 700px) {
  .home-page { padding-inline: 24px; }
  .home-page .site-header { min-height: 76px; padding-block: 16px; gap: 4px 16px; }
  .home-page .wordmark { font-size: 1.5rem; }
  .home-page nav { gap: 4px 16px; }
  .home-page .intro { grid-template-columns: 1fr; align-items: start; gap: 20px; padding: 56px 0 64px; }
  .home-page .intro h1 { font-size: 2.75rem; }
  .home-page .intro-description { max-width: 50ch; margin-top: 20px; }
  .home-page .section-heading { padding-top: 24px; }
  .home-page .lead-post-link { grid-template-columns: 1fr; gap: 24px; }
  .home-page .lead-post { padding: 24px 0; }
  .home-page .post-grid { grid-template-columns: 1fr; }
  .home-page .post-preview { padding-block: 24px; }
  .home-page .post-preview:nth-last-child(2) { border-bottom: var(--rule); }
  .home-page .post-link { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
  .home-page .about-note { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .home-page footer { padding: 16px 0; gap: 6px; }
  .home-page footer p { flex-basis: 100%; margin: 0; }
}
@media (max-width: 600px) {
  .home-page .github-activity img { aspect-ratio: 394 / 161; }
}
@media (max-width: 420px) {
  .home-page { padding-inline: 20px; }
  .home-page nav { column-gap: 14px; }
  .home-page .post-link { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page a { transition: none; }
}
