:root {
  --ink: #17181d;
  --muted: #626872;
  --line: rgba(23, 24, 29, 0.14);
  --paper: #f6f3ed;
  --surface: #f6f3ed;
  --blue: #315f8d;
  --green: #4f7f68;
  --red: #9f4f47;
  --gold: #8d6f3f;
  --code-bg: rgba(127, 127, 127, 0.14);
  --code-line: rgba(127, 127, 127, 0.24);
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-lede: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --font-code: "Monaspace Neon", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f3;
    --muted: #9aa1ac;
    --line: rgba(238, 240, 243, 0.16);
    --paper: #131418;
    --surface: #1a1b21;
    --blue: #6fb3dd;
    --green: #7fb69c;
    --red: #d98077;
    --gold: #c9a668;
  }
}

@font-face {
  font-family: "Monaspace Neon";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/githubnext/monaspace@main/fonts/Web%20Fonts/Variable%20Web%20Fonts/Monaspace%20Neon/Monaspace%20Neon%20Var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/adobe-fonts/source-sans@release/WOFF2/VF/SourceSans3VF-Upright.ttf.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/adobe-fonts/source-serif@release/WOFF2/VAR/SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(49, 95, 141, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-shell {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 clamp(20px, 5vw, 56px);
}

.site-nav-column {
  padding: 20px 0;
}

.nav-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 28px;
  width: 28px;
}

.brand span {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-toggle {
  align-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.hamburger {
  background: var(--ink);
  border-radius: 1px;
  display: block;
  height: 2px;
  position: relative;
  width: 18px;
}

.hamburger::before,
.hamburger::after {
  background: var(--ink);
  border-radius: 1px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 18px;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-tagline {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 10px 0 0;
  max-width: 200px;
}

.site-nav-links {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.site-nav-links.is-open {
  display: flex;
}

.site-nav-links a {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 0.95rem;
  font-weight: 650;
  gap: 8px;
  padding: 9px 10px;
  text-decoration: none;
}

.site-nav-links a svg {
  fill: currentColor;
  flex-shrink: 0;
}

.site-nav-links a:hover {
  background: var(--code-bg);
  color: var(--ink);
}

.site-main {
  min-width: 0;
}

@media (min-width: 821px) {
  .site-shell {
    align-items: flex-start;
    flex-direction: row-reverse;
    gap: clamp(32px, 5vw, 64px);
  }

  .site-nav-column {
    flex-shrink: 0;
    padding: 40px 0;
    position: sticky;
    top: 0;
    width: 200px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav-links {
    display: flex;
    margin-top: 32px;
  }

  .site-main {
    flex: 1;
    padding-top: 40px;
  }
}

.hero-shot {
  margin: 20px 0 12px;
}

.hero-shot img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  display: block;
  height: auto;
  width: 100%;
}

@media (min-width: 821px) {
  .hero-shot {
    margin-top: 0;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  padding: 0 0 clamp(16px, 2vw, 24px);
}

.hero-media {
  align-items: center;
  display: flex;
  height: auto;
  justify-content: center;
  order: 2;
  position: relative;
  width: 100%;
}

.hero-media img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  height: auto;
  max-height: 58vh;
  max-width: 1180px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.hero-content {
  color: var(--ink);
  font-family: var(--font-heading);
  margin: 0 auto;
  max-width: 800px;
  order: 1;
  position: relative;
  text-align: center;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1,
.page-header h1,
.section-heading h2,
.split-band h2 {
  font-family: var(--font-heading);
  line-height: 1;
  margin: 0;
}

.hero h1 {
  font-size: clamp(5.4rem, 16vw, 13.5rem);
  font-weight: 760;
  letter-spacing: 0;
}

.lede {
  color: var(--muted);
  font-family: var(--font-lede);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.3;
  margin: 22px auto 0;
  max-width: 800px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 760;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.button.primary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.button.secondary {
  color: var(--ink);
}

.download-button {
  min-width: 230px;
}

.download-menu {
  position: relative;
}

.download-menu summary {
  cursor: pointer;
  gap: 10px;
  list-style: none;
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.menu-arrow {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
  height: 7px;
  margin-top: -3px;
  transform: rotate(45deg);
  width: 7px;
}

.download-options {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 2px;
  left: 0;
  min-width: 230px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 20;
}

.download-options a {
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.download-options a:hover {
  background: var(--code-bg);
}

.feature-band,
.notes-band,
.split-band,
.page-shell {
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(48px, 8vw, 96px) 0;
}

.intro-band {
  padding-top: clamp(64px, 8vw, 96px);
}

.split-band h2,
.page-header h1 {
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  max-width: 850px;
}

.feature-band {
  padding-top: clamp(8px, 1.5vw, 16px);
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  padding: clamp(40px, 6vw, 64px) 0;
}

.feature-row:first-child {
  padding-top: clamp(20px, 3vw, 28px);
}

.feature-row-content {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
}

.feature-row:nth-child(odd) .feature-row-content {
  flex-direction: row-reverse;
}

.feature-media {
  flex: 2 1 380px;
  max-width: 560px;
}

.feature-media img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
  display: block;
  height: auto;
  width: 100%;
}

.feature-copy {
  flex: 1 1 260px;
  min-width: 0;
}

.feature-copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.feature-copy p,
.split-band p,
.prose p,
.summary {
  color: var(--muted);
}

.feature-copy p {
  font-size: 1.05rem;
  line-height: 1.5;
}

.split-band {
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
}

.split-band p {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  margin: 30px 0 0;
}

.article-list {
  display: grid;
  border-top: 1px solid var(--line);
  gap: 0;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 24px 0;
}

.article-list time {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-list a {
  font-size: 1.3rem;
  font-weight: 780;
  text-decoration: none;
}

.article-list .summary p {
  margin: 0;
}

.archive-list li {
  align-items: center;
  grid-template-columns: 150px minmax(0, 1fr);
}

.page-shell {
  max-width: 900px;
}

.page-header {
  margin-bottom: 42px;
}

.prose {
  font-size: 1.08rem;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 38px 0 10px;
}

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

code {
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: 5px;
  font-size: 0.92em;
  padding: 0.08em 0.28em;
}

pre {
  background: #111319;
  border-radius: 7px;
  color: #eef2f7;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-x: auto;
  padding: 18px;
}

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

.prose p {
  margin: 0 0 18px;
}

.site-footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 16px;
  justify-content: space-between;
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .split-band,
  .archive-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .article-list li {
    padding: 22px;
  }
}
