/* Digital Projections: What's New (whats-new/), after css/base.css, css/site.css and css/portfolio.css, whose cards and
   viewer the posts use. The posts sit on the portfolio grid's warm stone paper, so a post's portfolio cards look just as
   they do on the portfolio page: one column for reading, the page's title in Projections Serif (as on the printing and
   legal pages), each post's title in the long run's face (Archivo, expanded black italic, the coral shadow) in navy. */

.site-main .news {
  --paper: linear-gradient(180deg, #f2ebdf, #e4d8c6);         /* the portfolio grid's paper (css/portfolio.css) */
  --ink: 51,42,33;                                             /* warm charcoal: lines and shadows */
  --ink-text: #3f362c; --ink-soft: #675c4f;                    /* the words; the quieter ones (captions) */
  --label: #b22234;                                            /* the dates, in the flag red */
  --tone: #2a2370; --tone-deep: #16123a; --tone-rgb: 42,35,112;   /* the navy: titles, links */
  --card: #fdfaf4; --shot: #ebe2d3;                            /* the portfolio cards' paper; behind a picture while it loads */
  min-height: 70vh; padding: 88px 0 112px; border-top: 0; color: var(--ink-text);
  background: var(--placard-sheen), var(--paper); box-shadow: var(--placard-tb);
}
.news-in { max-width: 1044px; }   /* 980px of reading */
.news :focus-visible { outline-color: rgb(var(--ink)); }
.news a { color: var(--tone); }

/* the page's title */
.news-head h1, .news-none h1 {
  margin: 0; font-family: 'Projections Serif', Georgia, serif; font-weight: 600; font-size: clamp(42px, 4.6vw, 72px); line-height: 1.08;
  letter-spacing: 0; color: var(--tone);
}
@media (max-width: 1099px) { .news-head h1, .news-none h1 { font-weight: 650; } }
.news-lede { margin: 16px 0 0; font-size: 23px; line-height: 1.5; color: var(--ink-text); }
.news-back { margin: 0; }
.news-back a, .news-pager a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; text-decoration: none;
}
.news-back a:hover, .news-pager a:hover { color: var(--label); }
.news-back svg, .news-pager svg { flex: none; transition: transform 0.25s cubic-bezier(.22,1,.36,1); }
.news-back a:hover svg, .news-newer:hover svg { transform: translateX(-3px); }
.news-older:hover svg { transform: translateX(3px); }

/* a post: its date, its title, then its words, photos and portfolio cards */
.wn-post { margin-top: 60px; padding-top: 56px; border-top: 1px solid rgba(var(--ink),0.16); }
.news-back + .wn-post { margin-top: 30px; padding-top: 0; border-top: 0; }
.wn-date { margin: 0; font: 400 15px/1.3 'Lexend Exa', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.wn-title {
  max-width: none; margin: 14px 0 0; color: var(--tone); text-wrap: balance;
  font-family: 'Archivo', 'Wix Madefor Display', system-ui, sans-serif; font-style: italic; font-stretch: 125%; font-weight: 850;
  font-size: clamp(27px, 3vw, 42px); line-height: 1.14; letter-spacing: 0; text-shadow: 0.05em 0.05em 0 #f0765e;
}
h1.wn-title { font-size: clamp(31px, 3.7vw, 54px); }
.wn-title a { color: inherit; text-decoration: none; }
.wn-title a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.16em; }
.wn-body { margin-top: 30px; }
.wn-body > :first-child { margin-top: 0; }
.wn-body > :last-child { margin-bottom: 0; }
/* (the post's own words only: the portfolio cards keep their own type) */
.wn-body > p, .wn-body > ul { margin: 22px 0; font-size: 20.5px; line-height: 1.7; }
.wn-body > ul { padding-left: 1.15em; }
.wn-body > ul li + li { margin-top: 6px; }
.wn-body > ul li { padding-left: 0.3em; }
.wn-body > ul li::marker { color: var(--tone); }
.wn-body > p + ul { margin-top: -10px; }   /* a list straight after its opening line */
.wn-body strong { font-weight: 650; color: rgb(var(--ink)); }
.wn-body > p a, .wn-body > ul a, .wn-photo figcaption a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  text-decoration-color: rgba(var(--tone-rgb),0.45); transition: text-decoration-color 0.2s ease;
}
.wn-body > p a:hover, .wn-body > ul a:hover, .wn-photo figcaption a:hover { text-decoration-color: var(--tone); text-decoration-thickness: 2px; }
.site .wn-sub { margin: 46px 0 14px; font: 800 27px/1.3 'Wix Madefor Display', sans-serif; letter-spacing: 0; color: var(--tone); }
.wn-body > .wn-sub + p, .wn-body > .wn-sub + ul { margin-top: 14px; }
.wn-photo { margin: 38px 0; }
.wn-photo img {
  display: block; width: 100%; height: auto; border-radius: 12px; background: var(--shot);
  box-shadow: 0 18px 34px -22px rgba(var(--ink),0.6);
}
.wn-photo figcaption { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.wn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 38px 0; }
.wn-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wn-cards[data-count="1"] { grid-template-columns: minmax(0, 480px); }
@media (max-width: 860px) { .wn-cards, .wn-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .wn-cards, .wn-cards[data-count] { grid-template-columns: minmax(0, 1fr); } }

/* more posts: older and newer pages of the list; on a post's own page, the posts either side by name */
.news-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(var(--ink),0.16); }
.news-pager-post a { flex-direction: column; align-items: flex-start; gap: 4px; max-width: 46%; }
.news-pager-post .news-older { align-items: flex-end; text-align: right; }
.news-pager-post small { display: inline-flex; align-items: center; gap: 6px; font: 300 13px/1.2 'Lexend Exa', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.news-pager-post span { font-size: 19px; line-height: 1.4; }

/* nothing to show */
.news-none-yet { margin: 56px 0 0; font-size: 22px; }
.news-none p { margin: 20px 0 0; font-size: 21px; }
.news-none a { text-decoration: underline; text-underline-offset: 0.18em; }

/* the editor's preview */
.news-preview {
  margin: 0 0 40px; padding: 12px 18px; border: 1px solid #d9bf5f; border-radius: 10px; background: #fbf0c8;
  font-size: 17px; line-height: 1.5; color: #4a3d14;
}

@media (max-width: 767px) {
  .site-main .news { padding: 56px 0 72px; }
  .news-lede { font-size: 20px; }
  .wn-post { margin-top: 44px; padding-top: 40px; }
  .wn-body { margin-top: 22px; }
  .wn-body > p, .wn-body > ul { margin: 18px 0; font-size: 19px; }
  .site .wn-sub { margin-top: 36px; font-size: 23px; }
  .wn-photo, .wn-cards { margin: 30px 0; }
  .wn-photo figcaption { font-size: 16.5px; }
  .news-pager { margin-top: 52px; }
  .news-pager-post span { font-size: 17.5px; }
}
