/* The footer's backdrop covers the letters behind it. It is painted by a pseudo-element, so its empty parts stay plain
   page to the clump's touch handling (freeSpot): a swipe there scrolls the page like anywhere else (L67). */
#site-footer { position: relative; isolation: isolate; }
#site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); pointer-events: none; }
#site-footer .news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 120px);
  padding-top: clamp(24px, 5vw, 72px);
}
.news-grid h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1;
  font-weight: 450;
  letter-spacing: -.05em;
}
.news-grid p {
  max-width: 39ch;
  margin: 14px 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.4;
  text-transform: none;
}
.news-links { margin: 14px 0 0; padding: 0; list-style: none; }
.news-grid form { margin-top: 20px; }
.news-grid label { display: block; margin-bottom: 6px; font-size: 15px; }
.news-entry { display: flex; max-width: 30rem; gap: 8px; flex-wrap: wrap; }
.news-entry input, .news-entry button {
  box-sizing: border-box;
  min-height: 46px;
  border-radius: 0;
  font: inherit;
}
.news-entry input {
  flex: 1 1 11rem;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid #919591;
}
.news-entry button {
  padding: 8px 18px;
  color: #061509;
  background: #5effae;
  border: 1px solid transparent;
  cursor: pointer;
}
.news-entry button:disabled { opacity: .7; cursor: progress; }
.news-entry :focus-visible, .news-details a:focus-visible, .news-visits summary:focus-visible {
  outline: 2px solid #5effae;
  outline-offset: 3px;
}
.news-grid .news-details, .news-grid .news-status { font-size: 15px; }
.news-status:empty { margin: 0; }
.news-details { color: #b5b9b5; }
.news-details a { color: inherit; text-underline-offset: .2em; }
/* Privacy (2026-11-25/26): one fold-out line under "Unsubscribe anytime", styled like a link, holding the newsletter's
   privacy text (as on the newsletter page) and how visits are counted, in the same small grey. Closed, it takes no room of its own: its 38 px (6 px gap + 32 px line) come out of the footer's bottom
   space (on the left; the sound button is on the right), so the footer keeps its height and its resting place on every
   screen. Open, the footer grows and scrolls as a tall footer does. */
.news-grid .news-visits { margin: -8px 0 14px; font-size: 15px; text-transform: none; }
.news-grid .news-visits:not([open]) { margin-bottom: -24px; }
.news-visits summary {
  display: inline-block;
  padding: 6px 0;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  touch-action: manipulation;
}
.news-visits summary::-webkit-details-marker { display: none; }
.news-grid .news-visits p { margin: 4px 0 0; font-size: 15px; }
.news-visits h3 { margin: 14px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.news-visits a:focus-visible { outline: 2px solid #5effae; outline-offset: 3px; }
@media (max-width: 640px) {
  #site-footer .news-grid { grid-template-columns: minmax(0, 1fr); }
}
/* On a phone, upright or sideways, the whole footer fits the screen, so it comes to rest at the page's end with its
   heading in view, as the footer always has. The bottom space still clears the sound button (16 + 44 px). */
@media (max-width: 640px), (max-height: 500px) {
  #site-footer { padding-bottom: max(72px, calc(72px + env(safe-area-inset-bottom))); }
}
@media (max-height: 500px) {
  #site-footer .news-grid { padding-top: 16px; }
  /* The menu's tornado button (fixed, 96 px, 16 px in from the top right) stays clear of the footer at rest: the
     signup sentence beside it ends 8 px left of the button's box. */
  #news-wording {
    margin-right: max(0px, calc(max(16px, env(safe-area-inset-right)) + 96px + 8px - max(16px, 4vw, env(safe-area-inset-right))));
  }
}
/* Upright on a phone the footer rests at the page's end; a little less space between its two parts lets the
   introduction's first line rest below the tornado button (76 px, 16 px from the top). */
@media (max-width: 640px) {
  #site-footer .news-grid { row-gap: 24px; }
}
