:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --paper-bright: #ffffff;
  --ink: #080808;
  --ink-soft: #252525;
  --muted: #656560;
  --line: #d2d2ce;
  --line-dark: #4a4a47;
  --page-gutter: 40px;
  --content-width: 1280px;
  --header-height: 72px;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font-sans);
}

body {
  position: relative;
  min-width: 320px;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

.pages-ambient-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
  opacity: 0.18;
  pointer-events: none;
}

.pages-ambient-network canvas {
  opacity: 0.65;
}

.page-main,
.site-footer,
.not-found {
  position: relative;
  z-index: 1;
}

.site-header {
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-height);
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid rgba(8, 8, 8, 0.7);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
}

.site-brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 680;
}

.site-brand img,
.footer-brand img {
  border-radius: 0;
  filter: none;
}

.site-navigation {
  gap: 26px;
}

.site-navigation a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.site-navigation a::after {
  height: 1px;
}

.release-link {
  min-height: 44px;
  padding-inline: 16px;
  border-color: var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.release-link:hover,
.release-link:focus-visible {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.release-link .status-dot {
  display: none;
}

.page-main {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  margin-inline: auto;
}

.page-hero {
  max-width: none;
  padding: 90px 0 54px;
  border-bottom: 1px solid var(--ink);
}

.page-hero.compact {
  padding-top: 82px;
}

.page-hero .eyebrow,
.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font: 500 11px/1.3 var(--font-mono);
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 920px;
  font-size: 64px;
  font-weight: 620;
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.page-meta {
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--muted);
  font: 500 10px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.journal-toolbar {
  gap: 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.journal-search input {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
}

.journal-filters {
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: 4px;
  scrollbar-width: none;
}

.journal-filters::-webkit-scrollbar {
  display: none;
}

.journal-filters button {
  min-height: 42px;
  flex: 0 0 auto;
  padding-inline: 14px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font-size: 11px;
}

.journal-filters button:last-child {
  border-right: 0;
}

.journal-filters button.is-active,
.journal-filters button:hover,
.journal-filters button:focus-visible {
  background: var(--ink);
  color: #fff;
}

.journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 32px 0 86px;
}

.journal-card,
.journal-card:first-child,
.journal-card:nth-child(2) {
  grid-column: auto;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

.journal-card:first-child {
  grid-column: span 2;
  min-height: 340px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.journal-card:last-of-type {
  grid-column: span 3;
  min-height: 250px;
}

.journal-card:hover,
.journal-card:focus-within {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.journal-card-label,
.journal-card:first-child .journal-card-label {
  color: currentColor;
  font: 500 10px/1.3 var(--font-mono);
  opacity: 0.66;
  text-transform: uppercase;
}

.journal-card h2,
.journal-card:first-child h2 {
  max-width: 760px;
  font-size: 30px;
  font-weight: 610;
  line-height: 1.08;
}

.journal-card:first-child h2 {
  font-size: 44px;
}

.journal-card p,
.journal-card:first-child p {
  max-width: 640px;
  color: currentColor;
  opacity: 0.68;
}

.article-shell,
.legal-layout,
.support-layout {
  gap: 70px;
  padding: 54px 0 96px;
}

.article-body,
.legal-copy,
.support-copy {
  max-width: 820px;
}

.article-body .article-lead {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 1.65;
}

.article-body h2,
.legal-copy h2,
.support-copy h2 {
  margin-top: 54px;
  font-size: 31px;
  font-weight: 620;
  line-height: 1.15;
}

.article-body h3,
.legal-copy h3,
.support-copy h3 {
  margin-top: 36px;
  font-size: 21px;
  font-weight: 620;
}

.article-body p,
.article-body li,
.legal-copy p,
.legal-copy li,
.support-copy p,
.support-copy li {
  color: #393936;
  font-size: 16px;
  line-height: 1.75;
}

.article-body a,
.legal-copy a,
.support-copy a {
  color: var(--ink);
  text-decoration-color: #8e8e89;
  text-underline-offset: 3px;
}

.article-note,
.support-contact a,
.support-contact div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.article-table {
  border-color: var(--ink);
  border-radius: 6px;
  background: #fff;
}

.article-table th {
  background: #ededeb;
}

.article-aside,
.legal-nav {
  top: calc(var(--header-height) + 30px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.article-aside strong,
.legal-nav strong {
  font: 600 10px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.article-aside nav a,
.legal-nav a {
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  border-top-color: var(--ink);
}

.faq-item {
  border-color: var(--line);
}

.faq-item button {
  min-height: 68px;
  background: transparent;
  font-weight: 600;
}

.site-footer {
  grid-template-columns: 1.2fr auto 1fr;
  gap: 54px;
  padding: 42px var(--page-gutter) 38px;
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.97);
}

.footer-brand strong {
  font-size: 16px;
  font-weight: 680;
}

.footer-brand span,
.site-footer > p,
.site-footer nav a {
  color: var(--muted);
  font-size: 12px;
}

.site-footer nav {
  gap: 16px;
}

.not-found {
  min-height: 100svh;
  background: transparent;
}

.not-found > div {
  max-width: 720px;
  padding: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

.not-found h1 {
  font-size: 58px;
  font-weight: 620;
  line-height: 1.02;
}

.button,
.button-dark {
  border-radius: 4px;
}

@media (max-width: 920px) {
  :root {
    --page-gutter: 26px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-navigation {
    background: rgba(255, 255, 255, 0.98);
  }

  .release-link {
    display: none;
  }

  .page-hero h1 {
    font-size: 52px;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-card:last-of-type {
    grid-column: span 2;
  }

  .article-shell,
  .legal-layout,
  .support-layout {
    gap: 38px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 18px;
    --header-height: 64px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .page-hero,
  .page-hero.compact {
    padding: 58px 0 38px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .journal-toolbar {
    grid-template-columns: 1fr;
  }

  .journal-filters {
    width: 100%;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    padding-bottom: 66px;
  }

  .journal-card:first-child {
    grid-column: auto;
    min-height: 300px;
  }

  .journal-card:last-of-type {
    grid-column: auto;
  }

  .journal-card:first-child h2,
  .journal-card h2 {
    font-size: 28px;
  }

  .article-shell,
  .legal-layout,
  .support-layout {
    grid-template-columns: 1fr;
    padding: 38px 0 70px;
  }

  .article-aside,
  .legal-nav {
    position: static;
    grid-row: auto;
  }

  .article-body h2,
  .legal-copy h2,
  .support-copy h2 {
    margin-top: 44px;
    font-size: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-inline: 20px;
  }

  .site-footer > p {
    grid-column: auto;
  }

  .not-found > div {
    margin: 18px;
    padding: 30px 24px;
  }

  .not-found h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pages-ambient-network {
    display: none;
  }
}
