/* ==========================================================================
   Home — the opening pair between the two halves of the h1, then two more
   pairs hung on their shared feature. Builds on site.css; restyles no chrome.
   ========================================================================== */

/* opening: one grid. The h1 spans rows 1–3 behind the pair; its two spans sit
   in the empty rows above and below, so no letter ever meets a picture. */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:minmax(3.25rem,auto) auto minmax(3.25rem,auto) auto auto;
  column-gap:1rem;row-gap:0.75rem;
  max-width:min(70rem,125vh);
}
.hero__h1{
  grid-column:1/-1;grid-row:1/4;
  display:flex;flex-direction:column;justify-content:space-between;
  margin:0;max-width:none;font-size:var(--t-4);
}
.hero__a,.hero__b{display:block;white-space:nowrap;line-height:1.06}
.hero__a{align-self:flex-start}
.hero__b{align-self:flex-end}

/* the pair: tops left uneven on purpose. The right print drops by a share of
   the gutter so the railing shadow carries on down into the stems. */
.hero__pair{
  grid-column:1/-1;grid-row:2;
  position:relative;z-index:1;
  align-items:start;margin:0;
}
.hero__pair .mount:nth-of-type(2){margin-top:calc(var(--pair-gap) * 0.55)}
.hero__slogan{align-self:center}
.mount__cap{display:block}

/* action row */
.hero__btn{
  grid-column:1;grid-row:4;
  justify-self:start;align-self:center;
  position:relative;z-index:1;
}
.hero__stamp{
  grid-column:2;grid-row:4;
  justify-self:end;align-self:center;
  --size:5.75rem;font-size:0.78rem;
  margin:0.25rem 0.75rem 0.5rem 0;
  animation:stamp-press 180ms ease-out 250ms 1 backwards;
}
.hero__lede{
  grid-column:1/-1;grid-row:5;
  margin:0.5rem 0 0;font-size:var(--t-1);line-height:1.5;max-width:27rem;
}

@keyframes stamp-press{
  from{transform:rotate(8deg) scale(1.15)}
  to{transform:rotate(8deg) scale(1)}
}
@media (prefers-reduced-motion:reduce){
  .hero__stamp{animation:none}
}

@media (max-width:47.99rem){
  .hero__pair{column-gap:0.75rem}
}

@media (min-width:48rem){
  .hero{grid-template-rows:minmax(3.25rem,auto) auto minmax(3.25rem,auto) auto}
  .hero__btn{grid-row:3;align-self:start}
  .hero__stamp{
    grid-row:4;--size:7rem;font-size:0.9rem;
    align-self:start;margin:0.75rem 1rem 0.5rem 0;
  }
  .hero__lede{grid-column:1;grid-row:4;align-self:start;margin-top:0.75rem}
}

/* sections below the opening */
.band{margin-top:clamp(3.5rem,8vw,6.5rem)}
.band h2{font-size:var(--t-3)}
.band__head{grid-column:1/6;margin-bottom:clamp(1.5rem,3vw,2.25rem)}
.band__head--right{grid-column:6/-1}
@media (max-width:47.99rem){
  .band__head,.band__head--right{grid-column:1/-1}
}

/* a hung pair: mounts in the top row, each print's own words beneath it */
.hang{
  grid-template-areas:"left note right" "lw . rw";
  align-items:start;row-gap:1rem;margin-bottom:0;
}
.hang .pair__note{align-self:center}
.words--l{grid-area:lw}
.words--r{grid-area:rw}
.words h3{margin-bottom:0.35rem}
.words p{margin-bottom:0.2rem;max-width:26rem}
.words__link{display:inline-block;padding:0.7rem 0}

/* wet seams sit a little below the middle; the caption drops with them */
.hang--seam .pair__note{margin-top:3rem}

/* the upright print beside the lower one: centred on the bright patch,
   the mint above and below the milkweed stays empty */
.hang--light{width:78%;margin-inline:auto}
.hang--light .mount:nth-of-type(2){align-self:center}

@media (max-width:47.99rem){
  .hang{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"left" "lw" "note" "right" "rw";
    row-gap:0.9rem;
  }
  .hang .pair__note,.hang--seam .pair__note{
    margin:0.6rem 0 0.4rem;font-weight:700;
  }
  .hang--light{width:100%}
}

/* Meet Brian: words left, subjects right, stepped across the gutter */
.brian{align-items:start;row-gap:2rem}
.brian__words{grid-column:1/6}
.brian__subjects{grid-column:7/-1;margin-top:clamp(1.5rem,5vw,4rem)}
.brian__says{
  margin:1.25rem 0;padding:0.1rem 0 0.1rem 1rem;
  border-left:var(--rule) solid var(--ink);
}
.brian__says p{font-size:var(--t-1);line-height:1.45;max-width:30rem}
@media (max-width:47.99rem){
  .brian__words,.brian__subjects{grid-column:1/-1}
  .brian__subjects{margin-top:0}
}

.subjects{margin-top:1.1rem}
.subjects li{margin:0 var(--drop) 1.1rem 0}
.subject{
  display:block;padding:0.75rem 0.9rem 0.8rem;
  color:var(--ink);background:var(--ground);text-decoration:none;
  border:var(--rule) solid var(--ink);
  box-shadow:var(--drop) var(--drop) 0 var(--ink);
  transition:transform var(--press),box-shadow var(--press);
}
.subject:active{transform:translate(var(--drop),var(--drop));box-shadow:0 0 0 var(--ink)}
.subject:hover .subject__name{text-decoration:underline;text-underline-offset:0.15em;text-decoration-thickness:0.08em}
.subject__name{
  display:block;font-family:var(--font-display);font-weight:600;
  font-size:1.4rem;line-height:1.1;letter-spacing:-0.01em;
}
.subject__list{display:block;margin-top:0.3rem;font-size:var(--t--1);line-height:1.35}

/* Ask about a print: two sentences, one button */
.ask{max-width:34rem}
.ask__copy{font-size:var(--t-1);line-height:1.5;margin-bottom:1.25rem}
