@font-face {
  font-family: "Plex";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d1115;
  --surface: #12191f;
  --text: #edf1f3;
  --muted: #a3afb8;
  --line: #2a353e;
  --accent: #aecbd8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Plex", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button[hidden] { display: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--background); background: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(100%, 1248px); padding-inline: 48px; margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.eyebrow { color: var(--muted); margin-bottom: 24px; }
.skip-link { position: fixed; top: 16px; left: 16px; padding: 14px 18px; background: var(--accent); color: var(--background); z-index: 10; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }

.site-header { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 500; letter-spacing: -.045em; }
.wordmark svg { width: 24px; height: 24px; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color 160ms ease; }
.site-header nav a:hover { color: var(--text); }
.site-header nav .github-link { color: var(--text); gap: 12px; }
.github-link span { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--accent); }
h1 { font-size: clamp(42px, 4.3vw, 56px); line-height: 1.08; letter-spacing: -.04em; max-width: 680px; }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 575px; margin-top: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 20px; min-height: 48px; font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: background-color 160ms ease, border-color 160ms ease; }
.button-primary { color: var(--background); background: var(--accent); }
.button-primary:hover { background: #c4dce6; }
.button-primary:active { background: #96b6c5; }
.button span, .text-link span { font-size: 18px; font-weight: 400; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; color: var(--accent); transition: color 160ms ease; }
.text-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.hero-license { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.hero-license span { margin-inline: 8px; }
.architecture-figure { margin: 0; padding-top: 8px; min-width: 0; }
.architecture-figure img { display: block; width: 100%; height: auto; }
.architecture-figure figcaption { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.architecture-figure .mono { color: var(--accent); }
.project-status { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding-top: 24px; padding-bottom: 24px; border-block: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.project-status .status-label { color: var(--text); }
.project-status p:not(.status-label) { color: var(--muted); }
.project-status a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--accent); }
.project-status a:hover { text-decoration: underline; text-underline-offset: 5px; }

.section { padding-top: 80px; padding-bottom: 80px; }
.section-intro { display: grid; grid-template-columns: .55fr 1.25fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.section-intro .eyebrow { margin-top: 6px; margin-bottom: 0; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.section-intro > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.65; }
.contribute-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contributor-steps { list-style: none; margin: 0; padding: 0; }
.contributor-steps li { display: flex; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.step-number { color: var(--muted); padding-top: 5px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.contributor-steps p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 365px; margin-top: 10px; }
.contributor-steps .text-link { margin-top: 8px; }
.source-panel { min-width: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.source-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.copy-button { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 8px 12px; min-height: 44px; font-size: 12px; transition: border-color 160ms ease, color 160ms ease; }
.copy-button:hover { border-color: var(--accent); color: var(--text); }
.copy-button:active { background: var(--surface); }
.source-caption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
pre { background: var(--surface); padding: 24px; margin: 24px 0 20px; border: 1px solid var(--line); overflow-x: auto; }
code { font: 13px/1.9 var(--mono); color: var(--text); }
.source-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.copy-status { min-height: 21px; color: var(--accent); font-size: 12px; line-height: 1.6; margin-top: 8px; }
.workstreams { margin-top: 24px; }
.workstreams .eyebrow { margin-bottom: 12px; }
.workstreams a { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 12px; font-size: 14px; line-height: 1.5; min-height: 48px; }
.workstreams a:hover { color: var(--accent); }
.workstreams a > span:last-child { color: var(--accent); }

.installation { border-top: 1px solid var(--line); }
.platform-row { display: grid; grid-template-columns: .9fr 1.5fr .6fr; gap: 48px; align-items: start; padding-block: 32px; border-top: 1px solid var(--line); }
.platform-state { color: var(--accent); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.platform-row > div:nth-child(2) p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.platform-row > div:nth-child(2) .platform-detail { margin-top: 12px; font-size: 13px; color: var(--text); }
.platform-row > .text-link { justify-self: end; text-align: right; }

.hosted-section { background: var(--surface); padding-block: 72px; border-block: 1px solid var(--line); }
.hosted-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.hosted-description p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; max-width: 460px; }
.planned-label { display: inline-block; font-size: 12px; color: var(--accent); line-height: 1.7; }
.hosted-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid #3a4a55; }
.hosted-flow li { padding-top: 24px; }
.hosted-flow .mono { color: var(--accent); }
.hosted-flow h3 { font-size: 18px; margin-top: 16px; }
.hosted-flow p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.hosted-bottom { display: flex; justify-content: space-between; align-items: center; gap: 48px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.hosted-bottom p { max-width: 720px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hosted-bottom .text-link { flex-shrink: 0; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 72px; }
.closing .eyebrow { margin-bottom: 16px; }
.closing .button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer .wordmark { font-size: 24px; color: var(--text); }
.site-footer p { flex: 1; }
.site-footer > a:not(.wordmark) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 1050px) {
  .wrap { padding-inline: 32px; }
  .hero { grid-template-columns: 1.45fr 1fr; gap: 32px; padding-block: 56px; }
  h1 { font-size: 46px; }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 16px 24px; }
  .project-status { grid-template-columns: 1fr 1.5fr auto; gap: 24px; }
  .section-intro { grid-template-columns: .6fr 1.1fr 1fr; gap: 24px; }
  .section-intro h2 { font-size: 30px; }
  .contribute-layout, .hosted-intro { gap: 48px; }
  .platform-row { grid-template-columns: .8fr 1.4fr .7fr; gap: 32px; }
  .hosted-flow { gap: 24px; }
}

@media (max-width: 800px) {
  .site-header { min-height: 88px; }
  .site-header nav { gap: 24px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  h1 { font-size: 52px; max-width: 660px; }
  .hero-description { max-width: 560px; }
  .architecture-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; max-width: 620px; padding-top: 0; }
  .architecture-figure figcaption { display: block; border-top: 0; margin-top: 0; padding-top: 0; font-size: 14px; line-height: 1.8; }
  .architecture-figure .mono { display: block; margin-bottom: 8px; }
  .project-status { grid-template-columns: 1fr auto; gap: 8px 24px; }
  .project-status .status-label { grid-column: 1/-1; }
  .section { padding-block: 64px; }
  .section-intro { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .section-intro .eyebrow { grid-column: 1/-1; margin-top: 0; }
  .section-intro h2 { font-size: 32px; }
  .contribute-layout { gap: 40px; }
  .contributor-steps li { gap: 16px; }
  .contributor-steps h3 { font-size: 18px; }
  .contributor-steps p { font-size: 14px; }
  .source-heading { flex-wrap: wrap; gap: 8px; }
  pre { padding: 20px; }
  .platform-row { grid-template-columns: .9fr 1.4fr; gap: 24px 40px; }
  .platform-row > .text-link { grid-column: 2; justify-self: start; }
  .hosted-intro { gap: 40px; }
  .hosted-flow { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .hosted-bottom { align-items: start; gap: 32px; }
  .closing { padding-block: 64px; }
  .closing h2 { font-size: 30px; }
  .site-footer { flex-wrap: wrap; gap: 16px 24px; }
  .site-footer p { flex-basis: calc(100% - 120px); }
}

@media (max-width: 560px) {
  .wrap { padding-inline: max(24px, env(safe-area-inset-left)); }
  .site-header { display: grid; grid-template-columns: 1fr auto; min-height: 120px; gap: 0 16px; padding-top: 8px; padding-bottom: 8px; }
  .wordmark { font-size: 27px; gap: 10px; }
  .wordmark svg { width: 21px; height: 21px; }
  .site-header nav { display: contents; font-size: 13px; }
  .site-header .wordmark { grid-column: 1; grid-row: 1; }
  .site-header nav > a:first-child { grid-column: 1; grid-row: 2; }
  .site-header nav > a:nth-child(2) { grid-column: 2; grid-row: 2; justify-self: end; }
  .site-header nav > .github-link { grid-column: 2; grid-row: 1; justify-self: end; }
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 24px; }
  h1 { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
  .hero-description { font-size: 16px; line-height: 1.7; margin-top: 24px; }
  .hero-actions { gap: 8px 24px; margin-top: 24px; }
  .button { gap: 24px; padding: 14px 16px; }
  .hero-license { max-width: 280px; font-size: 12px; margin-top: 12px; }
  .architecture-figure { display: block; max-width: 410px; }
  .architecture-figure figcaption { display: flex; gap: 16px; font-size: 12px; line-height: 1.7; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
  .architecture-figure .mono { margin-bottom: 0; }
  .project-status { padding-block: 20px; font-size: 12px; gap: 8px 16px; }
  .project-status .status-label { font-size: 13px; }
  .section { padding-block: 48px; }
  .section-intro { display: block; margin-bottom: 32px; }
  .section-intro .eyebrow { margin-bottom: 20px; }
  .section-intro h2 { font-size: 30px; }
  .section-intro > p:last-child { margin-top: 20px; max-width: 380px; }
  .contribute-layout { grid-template-columns: 1fr; gap: 24px; }
  .contributor-steps li { gap: 20px; padding-block: 24px; }
  .contributor-steps h3 { font-size: 20px; }
  .contributor-steps p { font-size: 15px; }
  .source-heading { flex-wrap: nowrap; }
  .source-heading h3 { font-size: 20px; }
  .copy-button { font-size: 11px; padding: 8px; }
  .source-caption { max-width: 280px; }
  pre { padding: 20px 16px; }
  .workstreams { margin-top: 20px; }
  .platform-row { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .platform-state { margin-top: 8px; }
  .platform-row > .text-link { grid-column: 1; margin-top: -8px; }
  .hosted-section { padding-block: 48px; }
  .hosted-intro { grid-template-columns: 1fr; gap: 24px; }
  .hosted-intro h2 { font-size: 30px; }
  .hosted-intro .eyebrow { margin-bottom: 20px; }
  .hosted-flow { grid-template-columns: 1fr; margin-top: 32px; gap: 0; }
  .hosted-flow li { display: grid; grid-template-columns: 28px 1fr; gap: 0 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
  .hosted-flow .mono { padding-top: 4px; }
  .hosted-flow h3 { margin-top: 0; font-size: 20px; }
  .hosted-flow p { grid-column: 2; margin-top: 10px; font-size: 15px; }
  .hosted-bottom { display: block; border-top: 0; margin-top: 24px; padding-top: 0; }
  .hosted-bottom p { font-size: 13px; }
  .hosted-bottom .text-link { margin-top: 16px; }
  .closing { display: block; padding-block: 48px; }
  .closing h2 { font-size: 30px; max-width: 280px; }
  .closing .button { margin-top: 24px; }
  .site-footer { padding-block: 24px; gap: 8px 24px; }
  .site-footer .wordmark { flex-basis: 100%; }
  .site-footer p { flex-basis: 100%; margin-top: 8px; margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
