/* News page: the newest post as a lead story on paper (big cover beside the headline), then
   every earlier post listed under its year, each with the Events page's calendar page for its
   date. Loaded after home.css, pages.css and events.css (for .ev-cal). */
.nw{background-color:#f0f0f0;padding-top:5.6rem}
.nw a{color:var(--bark);font-weight:700}
.nw a:hover{color:var(--ink)}

/* lead story */
.nw-story{position:relative;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);background:#fbf7ee;border:.1rem solid rgba(89,68,56,.12);border-radius:.4rem;overflow:hidden;box-shadow:0 .1rem .2rem rgba(40,22,8,.08),0 1.2rem 2.4rem -1.4rem rgba(40,22,8,.4)}
.nw-story.no-cover{grid-template-columns:minmax(0,1fr)}
.nw-cover{display:block;width:100%;height:100%;min-height:30rem;aspect-ratio:3/2;object-fit:cover;background:var(--wood);transition:transform .6s cubic-bezier(.16,1,.3,1)}
.nw-story:hover .nw-cover{transform:scale(1.025)}
.nw-story-tx{display:flex;flex-direction:column;justify-content:center;padding:4rem 4rem 4.4rem}
.nw-story.no-cover .nw-story-tx{max-width:76rem;padding:4.8rem 4.8rem 5.2rem}
.nw-pin{align-self:flex-start;margin-bottom:1.4rem;padding:.3rem 1rem;border-radius:.3rem;background:var(--gold);font:700 var(--small)/1.4 var(--display);color:var(--sign)}
.nw-story-h{font-size:clamp(2.8rem,2.6vw,3.6rem);line-height:1.08;letter-spacing:-.015em}
.nw-story-h a,.nw-row h4 a{color:inherit;font-weight:inherit;text-decoration:none}
.nw-story-h a::after,.nw-row h4 a::after{content:"";position:absolute;inset:0}
.nw-story-h a:focus-visible,.nw-row h4 a:focus-visible{outline:0}
.nw-story:has(a:focus-visible){outline:.3rem solid var(--sign);outline-offset:.4rem}
.nw-meta{margin-top:1rem;font-size:var(--small);color:var(--muted);font-variant-numeric:tabular-nums}
.nw-ex{margin-top:1.4rem;max-width:62ch;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.nw-go{display:inline-flex;align-items:center;gap:.6rem;margin-top:2.4rem;font:700 max(1.7rem,16px)/1 var(--display);color:var(--bark)}
.nw-go svg{width:1.6rem;height:1.6rem;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.nw-story:hover .nw-go{text-decoration:underline;text-underline-offset:.2em}
.nw-story:hover .nw-go svg{transform:translateX(.4rem)}

/* placeholders while the posts load */
.nw-story.ph{box-shadow:none}
.nw-story.ph .nw-cover{min-height:32rem}
.nw-story.ph .nw-story-tx{gap:1.4rem}
.nw-story.ph .nw-story-tx span{display:block;height:1.6rem;border-radius:.4rem;background:var(--wood)}
.nw-story.ph .nw-story-tx span:nth-child(1){width:90%;height:3.6rem}
.nw-story.ph .nw-story-tx span:nth-child(2){width:60%;height:3.6rem}
.nw-story.ph .nw-story-tx span:nth-child(3){width:14rem}
.nw-story.ph .nw-story-tx span:nth-child(4){width:80%}

/* states */
.nw-msg{margin-top:2rem;font-weight:700}
.nw-msg:empty{display:none}
.nw-empty{max-width:62ch;padding:3.2rem 3.6rem;background:#fbf7ee;border:.1rem dashed rgba(89,68,56,.35);border-radius:.4rem}

/* earlier posts, by year */
.nw-earlier{margin-top:7.2rem;max-width:96rem}
.nw-earlier h2{font-size:3.4rem;line-height:1.1}
.nw-years{list-style:none;margin:0;padding:0}
.nw-year{margin-top:3.6rem}
.nw-year-h{display:flex;align-items:center;gap:1.6rem;font-size:max(1.8rem,16px);letter-spacing:.06em;color:#6b5e53;font-variant-numeric:tabular-nums}
.nw-year-h::after{content:"";flex:1;height:.2rem;background:rgba(89,68,56,.2)}
.nw-rows{list-style:none;margin:0;padding:0}
.nw-row{position:relative;display:grid;grid-template-columns:6.4rem minmax(0,1fr) 16rem;gap:2.8rem;align-items:start;padding:2.8rem 0;border-top:.1rem solid rgba(89,68,56,.14)}
.nw-year-h+.nw-rows .nw-row:first-child{border-top:0}
.nw-row.no-cover{grid-template-columns:6.4rem minmax(0,1fr)}
.nw-cal{margin-top:.2rem}
.nw-row h4{margin:0;font-family:var(--display);font-weight:700;color:var(--head);text-wrap:balance;font-size:max(2.4rem,19px);line-height:1.18;letter-spacing:-.01em}
.nw-row:hover h4{text-decoration:underline;text-decoration-thickness:.1em;text-underline-offset:.15em;color:var(--ink)}
.nw-row:has(a:focus-visible){outline:.3rem solid var(--sign);outline-offset:.4rem;border-radius:.4rem}
.nw-row .nw-meta{margin-top:.6rem}
.nw-row .nw-ex{margin-top:.8rem;-webkit-line-clamp:3}
.nw-thumb{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:.6rem;background:var(--wood);box-shadow:0 .8rem 1.6rem -1rem rgba(40,30,20,.5)}

.nw-more{margin-top:4rem}
.nw-foot{margin-top:5.6rem;max-width:62ch;font-size:var(--small)}

@media (max-width:899px){
  .nw{padding-top:4rem}
  .nw-story{grid-template-columns:minmax(0,1fr)}
  .nw-cover,.nw-story.ph .nw-cover{min-height:0;height:auto;aspect-ratio:16/9}
  .nw-story-tx,.nw-story.no-cover .nw-story-tx{padding:2.8rem 2.8rem 3.2rem}
  .nw-earlier{margin-top:5.6rem}
  .nw-earlier h2{font-size:2.8rem}
  .nw-row{grid-template-columns:6.4rem minmax(0,1fr) 14.4rem;gap:2rem}
}
@media (max-width:599px){
  .nw-story-tx,.nw-story.no-cover .nw-story-tx{padding:2.2rem 2rem 2.6rem}
  .nw-story-h{font-size:2.8rem}
  .nw-ex{-webkit-line-clamp:5}
  /* the calendar page and the words; the thumbnail is the same picture the post opens with */
  .nw-row,.nw-row.no-cover{grid-template-columns:5.6rem minmax(0,1fr);gap:1.6rem;padding:2.2rem 0}
  .nw-thumb{display:none}
  .nw-cal{width:5.6rem}
  .nw-cal .cal-d{font-size:2.6rem}
  .nw-row h4{font-size:2rem}
  .nw-empty{padding:2.4rem 2.2rem}
}
@media (prefers-reduced-motion:reduce){
  .nw-cover,.nw-go svg{transition:none}
  .nw-story:hover .nw-cover{transform:none}
}