/* Zenith Hosted (/d/*) — a small, fast, readable stylesheet for published
   articles. No web fonts (system stack only, for speed); light/dark via
   prefers-color-scheme; no script of any kind (see the page's own CSP). */

:root {
  color-scheme: light dark;
  --hosted-bg: #ffffff;
  --hosted-text: #16181d;
  --hosted-muted: #565b66;
  --hosted-border: #e2e4e9;
  --hosted-accent: #3355ee;
  --hosted-max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hosted-bg: #0e0f12;
    --hosted-text: #ecedf0;
    --hosted-muted: #a6a9b2;
    --hosted-border: #2a2d34;
    --hosted-accent: #8fa6ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hosted-bg);
  color: var(--hosted-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hosted-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--hosted-accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--hosted-accent);
  outline-offset: 2px;
}

.hosted-header {
  border-bottom: 1px solid var(--hosted-border);
  padding: 1.25rem 1.5rem;
}
.hosted-header a {
  font-weight: 600;
  text-decoration: none;
}

.news-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.news-header span {
  color: var(--hosted-muted);
  font-size: 0.875rem;
}

main {
  max-width: var(--hosted-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.hosted-byline {
  color: var(--hosted-muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

article h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}
article h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}
article p {
  margin: 0 0 1.25rem;
}
article ul,
article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
article li {
  margin-bottom: 0.4rem;
}
article blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--hosted-border);
  color: var(--hosted-muted);
}
article code {
  background: color-mix(in srgb, var(--hosted-text) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}
article pre {
  background: color-mix(in srgb, var(--hosted-text) 6%, transparent);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}
article pre code {
  background: none;
  padding: 0;
}
article img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
article hr {
  border: none;
  border-top: 1px solid var(--hosted-border);
  margin: 2.5rem 0;
}

.hosted-cta {
  margin-top: 2rem;
}
.hosted-cta a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--hosted-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.hosted-index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hosted-index li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hosted-border);
}
.hosted-index a {
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}
.hosted-index p {
  margin: 0.35rem 0 0;
  color: var(--hosted-muted);
}

.news-main {
  max-width: 72rem;
}
.news-kicker {
  margin: 0 0 0.75rem;
  color: var(--hosted-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-main > h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.news-intro {
  max-width: 38rem;
  margin: 1.5rem 0 3rem;
  color: var(--hosted-muted);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hosted-border);
}
.news-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hosted-border);
}
.news-card:nth-child(odd) {
  padding-right: 1.75rem;
  border-right: 1px solid var(--hosted-border);
}
.news-card:nth-child(even) {
  padding-left: 1.75rem;
}
.news-card__source,
.news-card time {
  color: var(--hosted-muted);
  font-size: 0.8rem;
}
.news-card__source {
  margin: 0 0 0.5rem;
}
.news-card__source a {
  color: inherit;
}
.news-card h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}
.news-card h2 a {
  color: inherit;
  text-decoration: none;
}
.news-card > p:not(.news-card__source) {
  margin: 0.8rem 0;
  color: var(--hosted-muted);
}

.hosted-footer {
  border-top: 1px solid var(--hosted-border);
  padding: 1.5rem;
  color: var(--hosted-muted);
  font-size: 0.875rem;
  text-align: center;
}
.hosted-footer a {
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    text-decoration-thickness: 1px;
  }
}

@media (max-width: 680px) {
  .news-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-card:nth-child(odd),
  .news-card:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}
