/* ========================================================================== 
   Alpaca Farms — how alpacas handle weather
   Production path: /alpacas/how-alpacas-handle-weather/style/weather.css
   ========================================================================== */

.weather-page{
  --guide-accent:#42677b;
  --weather-blue:#42677b;
  --weather-ice:#dce8eb;
  --weather-rain:#637d75;
  --weather-green:#496c5a;
  --weather-sun:#c28a3e;
  --weather-clay:#a5654a;
  --weather-cloud:#edf1ef;
}

/* Hero */
.weather-hero{
  display:grid;
  grid-template-columns:minmax(0, .82fr) minmax(24rem, 1.18fr);
  gap:0 clamp(2.5rem, 8vw, 7rem);
  align-items:center;
  padding-top:clamp(1rem, 4vw, 2.75rem);
}

.weather-hero h1{
  max-width:10ch;
  font-size:clamp(2.65rem, 5.7vw, 4.9rem);
  line-height:1.02;
}

.weather-hero__lede{
  color:var(--fleece-brown);
  font-size:clamp(1.04rem, 2vw, 1.2rem);
  line-height:1.65;
}

.weather-hero__copy > p:last-child{
  color:var(--fleece-brown);
}

.weather-hero__media{
  position:relative;
  margin:0 1rem 1rem 0;
}

.weather-hero__media::before,
.weather-hero__media::after{
  content:"";
  position:absolute;
  z-index:-1;
}

.weather-hero__media::before{
  inset:-.65rem .65rem .65rem -.65rem;
  border:1px solid #bfcfd3;
}

.weather-hero__media::after{
  inset:1rem -1rem -1rem 1rem;
  background:linear-gradient(110deg, var(--weather-ice), #e4eadf 55%, #eee1c8);
}

.weather-hero__media img{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  border:1px solid var(--fleece-beige);
}

.weather-hero__factors{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  margin-top:3rem;
  border-block:1px solid var(--fleece-beige);
}

.weather-hero__factors div{
  padding:1.15rem 1.3rem;
  border-left:3px solid var(--factor-color, var(--weather-blue));
}

.weather-hero__factors div:nth-child(2){ --factor-color:var(--weather-rain); }
.weather-hero__factors div:nth-child(3){ --factor-color:var(--weather-green); }
.weather-hero__factors div:nth-child(4){ --factor-color:var(--weather-sun); }

.weather-hero__factors span,
.weather-hero__factors strong{
  display:block;
}

.weather-hero__factors span{
  margin-bottom:.25rem;
  color:var(--factor-color, var(--weather-blue));
  font-size:.64rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.weather-hero__factors strong{
  color:var(--fleece-brown);
  font-size:.82rem;
}

/* Combined conditions */
.weather-pattern{
  padding-block:clamp(2.75rem, 7vw, 5rem);
  border-block:1px solid var(--fleece-beige);
}

.weather-pattern__intro{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(18rem, .7fr);
  gap:0 5rem;
  align-items:end;
  margin-bottom:2rem;
}

.weather-pattern__intro .guide-kicker,
.weather-pattern__intro h2{
  grid-column:1;
}

.weather-pattern__intro h2{
  margin:.15rem 0 0;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
}

.weather-pattern__intro > p:last-child{
  grid-column:2;
  grid-row:1 / span 2;
  margin:0;
  color:var(--fleece-brown);
}

.condition-band{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:1px;
  padding:1px;
  background:var(--fleece-beige);
}

.condition-band article{
  --condition-color:var(--weather-blue);
  min-height:14rem;
  padding:1.35rem;
  background:var(--fleece-card);
  border-top:5px solid var(--condition-color);
}

.condition-band__wet{ --condition-color:var(--weather-rain) !important; }
.condition-band__warm{ --condition-color:var(--weather-sun) !important; }
.condition-band__change{ --condition-color:var(--weather-clay) !important; }

.condition-band span{
  color:var(--condition-color);
  font-size:.65rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.condition-band h3{
  margin:.85rem 0 .6rem;
  font-family:var(--font-display);
  font-size:1.18rem;
  line-height:1.25;
}

.condition-band p{
  margin:0;
  color:var(--fleece-brown);
  font-size:.8rem;
}

/* Main weather stories */
.weather-story{
  --story-color:var(--weather-blue);
  display:grid;
  grid-template-columns:minmax(20rem, .95fr) minmax(0, 1.05fr);
  gap:clamp(2.5rem, 8vw, 7rem);
  align-items:center;
}

.weather-story--rain{ --story-color:var(--weather-rain); }
.weather-story--heat{ --story-color:var(--weather-sun); }

.weather-story .guide-kicker{
  color:var(--story-color);
}

.weather-story__media{
  position:relative;
  padding-bottom:.85rem;
  border-bottom:4px solid var(--story-color);
}

.weather-story__media::before{
  content:"";
  position:absolute;
  inset:.8rem -.8rem 0 .8rem;
  z-index:-1;
  background:color-mix(in srgb, var(--story-color) 12%, white);
}

.weather-story--reverse .weather-story__media{
  grid-column:2;
  grid-row:1;
}

.weather-story--reverse .weather-story__copy{
  grid-column:1;
  grid-row:1;
}

.summer-signals{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1px;
  margin-top:1.5rem;
  padding:1px;
  background:var(--fleece-beige);
}

.summer-signals > div{
  padding:.9rem 1rem;
  background:var(--fleece-card);
}

.summer-signals strong,
.summer-signals span{
  display:block;
}

.summer-signals strong{
  margin-bottom:.3rem;
  color:var(--weather-sun);
  font-size:.67rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.summer-signals span{
  color:var(--fleece-brown);
  font-size:.76rem;
  line-height:1.45;
}

/* Recently shorn section */
.shorn-section{
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(20rem, .98fr);
  gap:clamp(2.5rem, 8vw, 7rem);
  align-items:center;
  padding:clamp(2rem, 6vw, 4rem);
  background:linear-gradient(110deg, #f2eadc, #f4f0e8);
  border:1px solid #dfd1bb;
}

.shorn-section .guide-kicker{
  color:var(--weather-clay);
}

.shorn-section__media img{
  border-color:#d8c8ae;
}

/* Routine comparison */
.routine-section{
  padding-block:clamp(2.75rem, 7vw, 5rem);
  border-block:1px solid var(--fleece-beige);
}

.routine-section__head{
  max-width:50rem;
  margin-bottom:2rem;
}

.routine-section__head h2{
  margin:.15rem 0 .8rem;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
}

.routine-section__head > p:last-child{
  color:var(--fleece-brown);
}

.routine-table{
  border:1px solid var(--fleece-beige);
}

.routine-table__row{
  display:grid;
  grid-template-columns:minmax(9rem, .55fr) minmax(15rem, 1.2fr) minmax(15rem, 1.25fr);
}

.routine-table__row + .routine-table__row{
  border-top:1px solid var(--fleece-beige);
}

.routine-table__row > *{
  padding:1rem 1.1rem;
}

.routine-table__row > * + *{
  border-left:1px solid var(--fleece-beige);
}

.routine-table__row strong{
  color:var(--weather-blue);
  font-size:.84rem;
}

.routine-table__row span{
  color:var(--fleece-brown);
  font-size:.8rem;
  line-height:1.5;
}

.routine-table__row--head{
  background:#314f59;
}

.routine-table__row--head span{
  color:#fff;
  font-size:.67rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* State examples */
.weather-states__head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(17rem, .65fr);
  gap:1rem 5rem;
  align-items:end;
  margin-bottom:2rem;
}

.weather-states__head .guide-kicker,
.weather-states__head h2{
  grid-column:1;
}

.weather-states__head h2{
  margin:.15rem 0 0;
  font-size:clamp(1.8rem, 4vw, 2.6rem);
}

.weather-states__head > p:last-child{
  grid-column:2;
  grid-row:1 / span 2;
  margin:0;
  color:var(--fleece-brown);
}

.weather-states__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.25rem;
}

.weather-state{
  --state-color:var(--weather-blue);
  display:grid;
  grid-template-columns:minmax(10rem, .78fr) minmax(0, 1.22fr);
  background:var(--fleece-card);
  border:1px solid var(--fleece-beige);
  border-bottom:5px solid var(--state-color);
}

.weather-state--oregon{
  --state-color:var(--weather-green);
}

.weather-state img{
  width:100%;
  height:100%;
  min-height:17rem;
  object-fit:cover;
}

.weather-state > div{
  display:flex;
  flex-direction:column;
  padding:1.4rem;
}

.weather-state p{
  margin:0 0 .45rem;
  color:var(--state-color);
  font-size:.65rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.weather-state h3{
  margin:0 0 .65rem;
  font-family:var(--font-display);
  font-size:1.5rem;
}

.weather-state span{
  color:var(--fleece-brown);
  font-size:.82rem;
  line-height:1.55;
}

.weather-state a{
  margin-top:auto;
  padding-top:1.2rem;
  color:var(--state-color);
  font-weight:600;
}

.weather-states__all{
  margin:1.5rem 0 0;
  color:var(--fleece-brown);
  text-align:center;
}

/* Conclusion */
.weather-conclusion{
  max-width:58rem;
}

.weather-conclusion h2{
  margin:.15rem 0 1.25rem;
  font-family:var(--font-display);
  font-size:clamp(1.8rem, 4vw, 2.55rem);
  line-height:1.15;
}

.weather-conclusion__columns{
  columns:2 20rem;
  column-gap:3.5rem;
}

.weather-conclusion__columns p{
  break-inside:avoid;
  color:var(--fleece-brown);
}

@media (max-width:64rem){
  .condition-band{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .condition-band article{
    min-height:11rem;
  }

  .weather-state{
    grid-template-columns:1fr;
  }

  .weather-state img{
    min-height:0;
    aspect-ratio:16 / 9;
  }
}

@media (max-width:52rem){
  .weather-hero,
  .weather-story,
  .weather-story--reverse,
  .shorn-section{
    grid-template-columns:1fr;
  }

  .weather-hero__copy{
    max-width:44rem;
  }

  .weather-hero__media{
    margin-top:2rem;
  }

  .weather-hero__factors{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .weather-pattern__intro,
  .weather-states__head{
    grid-template-columns:1fr;
  }

  .weather-pattern__intro > p:last-child,
  .weather-states__head > p:last-child{
    grid-column:1;
    grid-row:auto;
  }

  .weather-story--reverse .weather-story__media,
  .weather-story--reverse .weather-story__copy{
    grid-column:1;
    grid-row:auto;
  }

  .weather-story--reverse .weather-story__media{
    order:0;
  }

  .weather-story--reverse .weather-story__copy{
    order:1;
  }

  .shorn-section__media{
    order:-1;
  }

  .routine-table__row{
    grid-template-columns:1fr;
    padding:1rem;
  }

  .routine-table__row > *{
    padding:.3rem 0;
  }

  .routine-table__row > * + *{
    border-left:0;
  }

  .routine-table__row--head{
    display:none;
  }

  .weather-states__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:38rem){
  .weather-hero h1{
    font-size:2.55rem;
  }

  .weather-hero__factors,
  .condition-band,
  .summer-signals{
    grid-template-columns:1fr;
  }

  .condition-band article{
    min-height:0;
  }
}
