/* Shared homepage and wiki masthead, scaled to the width of the printed sheet. */
.site-mast-frame {
  container-type: inline-size;
  max-width: 112rem;
  margin-inline: auto;
  background: #071a1c;
}
.site-mast-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(.5rem, 2cqw, 2rem);
  padding: 2.7cqw 4.1cqw 0;
}
/* Finish the petrol masthead before a light wiki document begins. */
.site-mast:has(+ .shell, + main > .evidence-reading:first-child) .site-mast-row {
  padding-block-end: clamp(1.125rem, 2cqw, 2.25rem);
}
.site-mast .cn-wordmark {
  color: #f5f2ed;
  font-size: 4.76cqw;
}
.site-tagline,
.paper-watch {
  text-transform: uppercase;
  font-weight: 530;
  letter-spacing: .17em;
}
.site-tagline {
  grid-column: 1 / -1;
  margin: 1.15cqw 0 0;
  color: #d3d4cf;
  font: 670 max(.65rem, 1.4cqw)/1.3 Inter, sans-serif;
  letter-spacing: .18em;
}
.site-tagline span { color: var(--cn-brand-salmon); }
.paper-watch {
  display: flex;
  align-items: center;
  justify-self: end;
  max-width: 100%;
  gap: .35em;
  color: var(--cn-fg);
  text-decoration: none;
  font-size: clamp(.68rem, 1cqw, .88rem);
  letter-spacing: .12em;
  line-height: 1.35;
  text-wrap: balance;
}
.paper-watch:hover { text-decoration: none; }
.paper-watch:is(:hover, :focus-visible) .paper-watch-label {
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: var(--cn-coral);
}
.paper-watch-pulse {
  display: inline-grid;
  grid-template: 100% / 100%;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--cn-coral);
}
.paper-watch-pulse > span {
  grid-area: 1 / 1;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
}
.paper-watch .update-dot { background: currentColor; }
.paper-watch .update-ring {
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: 0 0 .25rem .08rem color-mix(in srgb, currentColor 42%, transparent);
  animation: feed-pulse 1.65s ease-out infinite;
  pointer-events: none;
}
.paper-watch:is(:hover, :focus-visible) .update-ring {
  box-shadow: 0 0 .35rem .12rem color-mix(in srgb, currentColor 52%, transparent);
}
@keyframes feed-pulse {
  from { transform: scale(1); opacity: .12; }
  25% { opacity: .85; }
  to { transform: scale(2.1); opacity: .12; }
}
@keyframes feed-pulse-in-place {
  0%, 100% { opacity: .12; }
  50% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .paper-watch .update-ring {
    width: 1.4375rem;
    height: 1.4375rem;
    animation: feed-pulse-in-place 2s ease-in-out infinite;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25rem 1rem;
  min-height: 0;
  padding-block: 1rem;
  padding-inline: max(1.125rem, 4.1%, calc((100% - 112rem) / 2 + 4.592rem));
  border: 0;
  font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 2.5vw, 2rem); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer .footer-credit { margin-inline-start: auto; }

@media (min-width: 62rem) and (min-aspect-ratio: 3/2) {
  .site-mast-row { padding-top: min(2.7cqw, 3.4svh); }
}
@media (max-width: 41rem) {
  .site-mast-row { padding: 1.125rem max(1.125rem, 4.5cqw) 0; }
  .site-mast .cn-wordmark { font-size: clamp(1.9rem, 9.5cqw, 3.65rem); }
  .site-tagline { margin-top: .6rem; font-size: .65rem; }
  .paper-watch {
    font-size: clamp(.7rem, 2.15cqw, .8rem);
    letter-spacing: .015em;
    text-transform: none;
  }
}
