/* Static homepage layout. Screenshots stay contained; scrolling is browser-native. */
body.home {
  --home-header:4.75rem;
  --home-stage:calc(100svh - var(--home-header));
}
.home>.masthead {
  position:relative;
  min-height:var(--home-header);
  border-bottom:1px solid var(--night-rule);
}
.home .home-hero,.home .scene-inner {
  display:grid;
  grid-template-columns:minmax(0,3.5fr) minmax(0,6.5fr);
  grid-template-rows:auto;
  align-items:center;
  column-gap:clamp(2rem,4vw,4rem);
  row-gap:1.5rem;
  padding-block:clamp(2rem,6svh,4rem) 1.5rem;
}
.home .home-hero { min-height:var(--home-stage); }
.home .scene-inner { padding-block:4rem; }
.home .hero-copy,.home .scene-copy { min-width:0; max-width:25rem; }
.home .hero-copy .kicker { font-size:.75rem; line-height:1.5; margin:0 0 1.25rem; }
.home .home-hero h1 {
  font-size:clamp(2.75rem,4.5vw,4rem);
  line-height:1.04;
  margin:0 0 1.5rem;
  max-width:none;
}
.home .hero-dek { max-width:22rem; font-size:1.125rem; line-height:1.5; }
.home .hero-actions { margin-top:1.75rem; gap:.875rem 1rem; align-items:center; }
.home .limited-note { color:var(--mark); font:600 .8125rem/1.5 var(--font-ui); }
.home .hero-screenshot,.home .scene-screenshot { min-width:0; max-width:none; }
.home .hero-screenshot a,.home .scene-screenshot a { display:block; cursor:zoom-in; }
.home .hero-screenshot img,.home .scene-screenshot img {
  width:100%;
  height:auto;
  max-height:calc(100svh - 15rem);
  object-fit:contain;
  transform:none;
  box-shadow:0 1.5rem 4rem -2rem rgba(0,0,0,.25);
  border:1px solid var(--rule);
  border-radius:6px;
}
.home .hero-screenshot img { border-color:var(--night-rule); box-shadow:none; }
.home .hero-screenshot--wiki img { border:0; border-radius:10px; clip-path:inset(1px round 9px); }

.home .hero-screenshot figcaption,.home .scene-screenshot figcaption {
  display:block;
  margin-top:1rem;
  color:var(--ink-soft);
  font:400 .75rem/1.5 var(--font-ui);
}
.home .hero-screenshot figcaption { color:var(--night-mute); }
.home .story-panel { background:var(--paper); border-top:1px solid var(--rule); }
.home .story-panel + .story-panel { background:var(--paper-sunk); }
.home .scene-copy .kicker { margin:0 0 1.25rem; }
.home .scene-copy h2 { font-size:clamp(2rem,3.6vw,3rem); line-height:1.12; margin:0 0 1.25rem; }
.home .scene-copy > p:not(.kicker) { color:var(--ink-soft); font-size:1.125rem; margin:0; max-width:21rem; }
.home .home-reading { padding-block:2rem 4rem; }
.home .section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem 2rem; margin-bottom:2rem; }
.home .home-reading h2 { font-size:1.625rem; font-weight:500; margin:0; }
.home .section-heading > a { font:400 .9375rem/1.5 var(--font-ui); }
/* A lead journal entry, then the next journal entry and two recent reports. */
.home .reading-nav { display:flex; flex-wrap:wrap; gap:1.5rem; font:400 .9375rem/1.5 var(--font-ui); }
.home .reading-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:3rem; align-items:start; }
.home .reading-stack { display:grid; gap:1.5rem; }
.home .reading-card { min-width:0; }
.home .reading-card-link { display:grid; grid-template-columns:144px minmax(0,1fr); align-items:start; gap:1.25rem; color:var(--ink); text-decoration:none; }
.home .reading-card-link picture { overflow:hidden; border-radius:4px; background:var(--paper-sunk); }
.home .reading-card-link img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.home .reading-card h3 { margin:.5rem 0 0; font-size:1.125rem; line-height:1.25; font-weight:500; overflow-wrap:break-word; }
.home .reading-card-link:hover h3 { text-decoration:underline; text-underline-offset:.15em; }
.home .reading-card-link:focus-visible { outline-offset:6px; }
.home .reading-meta { display:flex; flex-wrap:wrap; gap:.25rem .75rem; margin:0; color:var(--ink-soft); font:400 .75rem/1.45 var(--font-ui); }
.home .reading-meta > span { color:var(--ink); }
.home .reading-meta time { white-space:nowrap; }
.home .reading-card--lead .reading-card-link { display:block; }
.home .reading-card--lead .reading-copy { padding-top:1rem; }
.home .reading-card--lead h3 { font-size:1.75rem; line-height:1.12; margin-top:.75rem; }
.home .reading-stack .reading-card + .reading-card { padding-top:1.5rem; border-top:1px solid var(--rule); }
.home .signup { padding-block:3rem; }
@media (max-width:1099px) {
  .home .reading-grid { gap:2rem; }
  .home .reading-card-link { grid-template-columns:112px minmax(0,1fr); gap:1rem; }
}
@media (max-width:719px) {
  .home .reading-grid { grid-template-columns:1fr; gap:2rem; }
  .home .reading-card--lead h3 { font-size:1.5rem; }
  .home .reading-stack { gap:1.25rem; }
  .home .reading-stack .reading-card + .reading-card { padding-top:1.25rem; }
}
@media (max-width:899px) {
  .home .home-hero,.home .scene-inner {
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    align-content:center;
    gap:1.25rem;
    padding-block:1.5rem 1rem;
  }
  .home .hero-copy,.home .scene-copy { max-width:none; }
  .home .hero-copy .kicker { margin-bottom:.75rem; font-size:.6875rem; }
  .home .home-hero h1 { font-size:clamp(2.5rem,6.5svh,3.5rem); line-height:1.02; margin-bottom:1rem; }
  .home .hero-dek { max-width:32rem; font-size:1.0625rem; }
  .home .hero-actions { margin-top:1rem; flex-direction:row; }
  .home .hero-actions .button { width:auto; }
  .home .hero-screenshot,.home .scene-screenshot { width:100%; justify-self:center; }
  .home .hero-screenshot a,.home .scene-screenshot a { display:flex; justify-content:center; }
  .home .hero-screenshot img { width:auto; max-height:max(8rem,calc(100svh - 31rem)); }
  .home .scene-screenshot img { width:auto; max-height:max(10rem,calc(100svh - 24rem)); }
  .home .hero-screenshot figcaption,.home .scene-screenshot figcaption { text-align:center; margin-top:.75rem; }
  .home .scene-copy .kicker { margin-bottom:.75rem; }
  .home .scene-copy h2 { font-size:2.25rem; margin-bottom:.75rem; }
  .home .scene-copy > p:not(.kicker) { max-width:none; }
}
@media (max-width:639px) {
  body.home { --home-header:7.125rem; }
  .home .hero-copy .kicker { max-width:26rem; }
  .home .home-reading { padding-bottom:3rem; }
  .home .section-heading { flex-direction:column; gap:.5rem; margin-bottom:1.5rem; }
}
/* Short windows and zoomed layouts may grow naturally instead of clipping. */
@media (max-height:619px) {
  .home>.masthead { position:relative; }
  .home .home-hero,.home .scene-inner { min-height:0; padding-block:2rem; }
  .home .hero-screenshot img,.home .scene-screenshot img { max-height:none; }
}
@media print {
  .home .home-hero,.home .scene-inner { min-height:0; break-inside:avoid; padding-block:1rem; }
  .home .hero-screenshot img,.home .scene-screenshot img { max-height:none; }
}
