:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --bg-soft: #f3f1ed;
  --surface: #ffffff;
  --surface-soft: #fafaf6;
  --text: #1a2845;
  --text-soft: #3d4b6b;
  --muted: #6b7390;
  --line: rgba(26, 40, 69, 0.1);
  --line-strong: rgba(26, 40, 69, 0.18);
  --accent: #a8533a;
  --accent-strong: #8e4329;
  --accent-soft: rgba(168, 83, 58, 0.08);
  --accent-soft-strong: rgba(168, 83, 58, 0.18);
  --shadow-sm: 0 1px 2px rgba(26, 40, 69, 0.04), 0 2px 6px rgba(26, 40, 69, 0.04);
  --shadow-md: 0 1px 2px rgba(26, 40, 69, 0.04), 0 8px 24px rgba(26, 40, 69, 0.06);
  --shadow-lg: 0 1px 2px rgba(26, 40, 69, 0.04), 0 24px 60px rgba(26, 40, 69, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(26, 40, 69, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 40, 69, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 55%);
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.88em;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 64px;
  padding: 10px 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 250, 248, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand,
.nav-links a,
.nav-cta,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.brand-by {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    filter 120ms ease,
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.nav-cta {
  color: #ffffff;
  background: var(--accent);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: center;
  padding: 32px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lede {
  max-width: 600px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.trust-strip li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid #233056;
  border-radius: var(--radius);
  background: #1a2845;
  box-shadow: var(--shadow-lg);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

.terminal-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.terminal-titlebar strong {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-card pre {
  padding: 24px;
  color: #dfe4ee;
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal-card pre code {
  background: transparent;
  color: inherit;
}

.card,
.release-card,
.feature-card,
.scope,
.quickstart,
.faq,
.code-card,
.download-shell,
.enterprise-card,
.network-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.release-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 88px;
  padding: clamp(24px, 5vw, 40px);
}

.release-card p:last-child,
.feature-card p,
.section-heading p,
.scope li,
.faq p,
.download-shell p,
.enterprise-card p,
.network-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.span-2 {
  grid-column: 1 / -1;
}

.network-section,
.download-section,
.feature-grid,
.scope,
.quickstart,
.enterprise,
.faq {
  margin-bottom: 88px;
}

.network-card {
  padding: clamp(24px, 4vw, 40px);
}

.network-card .diagram-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.network-card .diagram-header h3 {
  margin: 0;
}

.network-card .diagram-stats {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.network-svg-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.network-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.network-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.network-legend svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.network-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.download-shell {
  padding: clamp(28px, 5vw, 44px);
}

.platform-kicker {
  margin-bottom: 4px;
}

.platform-glyph {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
}

.download-panel {
  display: grid;
  gap: 22px;
}

.download-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.download-panel-header h3 {
  margin-bottom: 0;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.checksums-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
  text-transform: uppercase;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.download-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.download-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.download-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.download-button:hover {
  background: var(--accent-strong);
}

.sha-value {
  display: block;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-command {
  font-family: var(--font-mono);
}

.download-note,
.download-loading {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.scope,
.quickstart,
.enterprise-card,
.faq {
  padding: clamp(22px, 4vw, 32px);
}

.feature-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--accent-soft-strong);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scope-columns,
.code-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.scope li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
}

.scope li:last-child {
  border-bottom: 0;
}

.scope li::before {
  position: absolute;
  top: 18px;
  left: 4px;
  width: 10px;
  height: 10px;
  content: "";
}

.scope .now li::before {
  border-radius: 999px;
  background: var(--accent);
}

.scope .roadmap li::before {
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
}

.code-card {
  overflow: hidden;
  box-shadow: none;
}

.code-card h3 {
  padding: 20px 22px 0;
}

.code-card pre {
  margin: 12px 0 0;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.code-card pre code {
  background: transparent;
  color: inherit;
}

.enterprise-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 40px);
}

.enterprise-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.enterprise-card p {
  max-width: 580px;
  margin: 0;
}

.enterprise-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.enterprise-cta:hover {
  color: #ffffff;
  background: var(--accent);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.news-page,
.writing-page {
  margin-bottom: 96px;
}

.news-page h1,
.writing-article h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}

.post-list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.post-card h2 {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.2;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.55;
}

.writing-article {
  max-width: 840px;
}

.writing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 36px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.writing-body {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.writing-body p,
.writing-body ul,
.writing-body ol {
  margin: 0 0 20px;
}

.faq details {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.faq p {
  margin: 14px 0 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.footer-brand a {
  color: var(--accent);
  text-decoration: none;
}

.footer-brand a:hover {
  text-decoration: underline;
}

.footer-meta {
  text-align: right;
  line-height: 1.6;
}

.footer-meta p {
  margin: 0;
}

.footer-meta p + p {
  margin-top: 4px;
}

.footer-meta a {
  color: var(--text);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
    border-radius: 999px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero,
  .release-card,
  .download-grid,
  .feature-grid,
  .scope-columns,
  .code-panels,
  .enterprise-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 0;
  }

  .release-card,
  .network-section,
  .download-section,
  .feature-grid,
  .scope,
  .quickstart,
  .enterprise,
  .faq {
    margin-bottom: 56px;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-by {
    display: none;
  }

  .download-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-links {
    justify-content: flex-start;
  }
}
