/* A quiet article surface using the site's compact type and white glow. */
html body #blog .news-card { cursor: pointer; }
html body #blog .news-post-open {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-wrap: balance;
  cursor: pointer;
  transition: text-shadow 200ms ease;
}
html body #blog .news-card:hover .news-post-open,
html body #blog .news-card:focus-within .news-post-open {
  color: var(--award-paper);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  color: var(--award-paper);
  font: 500 0.75rem/1.4 var(--uww-reading);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.news-read-more span { font-size: 1.2rem; }
html.news-reader-open,
html.news-reader-open body,
html.news-reader-open #blog { overflow: hidden !important; }

.news-reader {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(62rem, calc(100% - 2rem));
  height: fit-content;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--uww-rule);
  border-radius: 0;
  background: #101014;
  color: var(--award-paper);
  box-shadow: 0 0 70px rgba(255, 255, 255, 0.08);
  font-family: var(--uww-reading);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.35) #101014;
  cursor: auto;
}
.news-reader:not([open]) { display: none; }
/* The scene's custom pointer lives outside the dialog's browser top layer. */
html body .news-reader,
html body .news-reader * { cursor: auto !important; }
html body .news-reader a,
html body .news-reader button { cursor: pointer !important; }
.news-reader::backdrop {
  background: rgba(5, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  cursor: auto;
}
.news-reader-toolbar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--uww-rule-soft);
  background: #101014;
  color: rgba(255, 253, 247, 0.68);
  font: 500 0.7rem/1.4 var(--uww-reading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-reader-close {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--award-paper);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.news-reader-close span:last-child { font-size: 1.8rem; line-height: 1; }
.news-reader-close:hover { text-shadow: 0 0 18px rgba(255, 255, 255, 0.6); }
.news-reader-article { padding: clamp(1.25rem, 4vw, 3rem); }
.news-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 0 0 1.3rem;
  color: rgba(255, 253, 247, 0.6);
  font: 500 0.75rem/1.5 var(--uww-reading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-reader-title {
  margin: 0 0 2rem;
  font-family: var(--uww-display);
  font-size: clamp(1.75rem, 4.2vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.news-reader-title:focus { outline: none; }
.news-reader-image { margin: 0 0 2.5rem; }
.news-reader-image[hidden] { display: none; }
.news-reader-image img {
  display: block;
  width: 100%;
  max-height: 32rem;
  object-fit: contain;
  object-position: left center;
}
.news-reader-prose {
  max-width: 65ch;
  color: rgba(255, 253, 247, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.news-reader-prose p { margin: 0 0 1.3em; white-space: pre-line; }
.news-reader-prose h2 {
  margin: 2.1em 0 0.75em;
  color: var(--award-paper);
  font-family: var(--uww-display);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.news-reader-prose :first-child { margin-top: 0; }
.news-reader-prose ul,
.news-reader-prose ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.news-reader-prose li { margin: 0.35em 0; }
.news-reader-prose li > ul,
.news-reader-prose li > ol { margin: 0.6em 0; }
.news-reader-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--uww-rule); }
.news-reader-prose a {
  color: var(--award-paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.news-reader-prose a:hover { text-shadow: 0 0 16px rgba(255, 255, 255, 0.5); }
html body #blog .news-post-open:focus-visible,
.news-reader-close:focus-visible,
.news-reader-prose a:focus-visible {
  outline: 2px solid var(--award-paper);
  outline-offset: 4px;
}
@media (max-width: 560px) {
  .news-reader { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .news-reader-toolbar { padding-inline: 1.25rem; }
  .news-reader-article { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html body #blog .news-post-open { transition: none; }
}
