:root {
  --paper: #f5f4f0;
  --paper-2: #f5f4f0;
  --ink: #1b1c19;
  --muted: #696b65;
  --line: #d3d1c9;
  --green: #879274;
  --green-deep: #65704f;
  --blue: #dedfd9;
  --dark: #20211e;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
.site-shell { max-width: 100%; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 240, .96);
  backdrop-filter: blur(12px);
  transition: transform .18s ease, background-color .18s ease;
}
.topbar.scrolled { background: rgba(245, 244, 240, .98); }
.topbar.header-hidden { transform: translateY(-100%); pointer-events: none; }
.brand { gap: 10px; font-size: 17px; letter-spacing: -.055em; }
.brand img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.brand-edition, .footer-wordmark span {
  color: var(--muted);
  font: 500 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desktop-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.desktop-nav a:hover, .site-footer a:hover { color: var(--green-deep); }
.desktop-nav .docs-nav-link,
.desktop-nav .docs-nav-link:hover { color: #cf4b28; }
.docs-nav-external { font-size: 14px; }
.top-actions { grid-column: 3; gap: 16px; }
.lang-switch { color: var(--muted); font: 600 10px var(--mono); letter-spacing: .06em; }
.button {
  min-height: 46px;
  padding: 0 19px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.button:hover { transform: none; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #41433d; }
.button-outline { border-color: var(--line); }
.menu-toggle { grid-column: 4; }
.page-content { min-height: 55vh; }
.page-content .eyebrow::after { content: none !important; }
.section-frame { width: min(1320px, calc(100% - 48px)); }

h1, h2, h3 { font-family: var(--sans); }
h1 { letter-spacing: -.075em; }
h1 em, h2 em { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.eyebrow, .section-kicker { color: var(--green-deep); font-size: 10px; letter-spacing: .12em; }
.hero-lede, .section-heading > p:last-child { color: var(--muted); }

.lift-hero { padding: clamp(64px, 9vw, 124px) 0 90px; }
.lift-inner { width: min(1320px, calc(100% - 48px)); }
.lift-copy { max-width: 780px; }
.lift-hero .workbench { display: none; }
.lift-hero h1 {
  max-width: 780px;
  font-size: clamp(60px, 9vw, 124px);
  line-height: .9;
}
.lift-hero h1 em { color: var(--green-deep); }
.lift-hero .hero-lede { max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); }
.os-row { gap: 12px 22px; }
.os-row .os-logo { display: block; }
.product-shot {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto clamp(72px, 10vw, 132px);
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #373a35;
}
.product-shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font: 10px var(--mono);
}
.workbench { margin-top: clamp(54px, 8vw, 104px); }
.workbench-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.workbench-modes { gap: 0; border-top: 1px solid #49534b; }
.workbench-modes label { padding: 16px 10px; border: 0; border-bottom: 1px solid #49534b; }
.workbench-modes label strong { font-size: 13px; }
.workbench-modes label small { font-size: 10px; }
.workbench-window { min-height: 390px; border: 1px solid #3c4039; box-shadow: none; }
.wb-titlebar, .wb-tabs { border-color: #3c4039; }
.wb-search { background: #20211e; }
.wb-status { background: #171815; }
.surface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 42px; }
.surface-card {
  min-height: unset;
  padding: 27px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  gap: 10px;
}
.surface-card:hover, .surface-ide, .surface-ide:hover { transform: none; background: transparent; }
.surface-card h3 { margin: 0; font-size: clamp(23px, 3vw, 34px); }
.surface-card p { color: var(--muted); }
.surface-frame, .surface-go span { display: none; }
.surface-go { margin: 2px 0 0; padding: 0; color: var(--green-deep); }
.ide-grid { gap: 0 32px; }
.ide-cell {
  min-height: unset;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.ide-cell b { margin-bottom: 18px; color: var(--muted); }
.ide-cell h3 { font-size: 19px; }
.ide-cell .capability-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 22px;
  color: var(--green-deep);
}
.use-grid { gap: 0 34px; }
.use-card, .use-accent {
  min-height: unset;
  padding: 25px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.use-card h3 { margin: 24px 0 9px; font-size: 24px; }
.use-card p, .use-accent p { color: var(--muted); }
.capability-grid { gap: 0 32px; }
.capability-card, .card-large, .card-wide {
  min-height: unset;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.capability-card:hover { transform: none; background: transparent; }
.card-icon, .feature-symbol, .option-icon, .platform-card-top .system-icon { display: none; }
.lang-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.lang-strip a {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--language-border, var(--line));
  background: var(--language-surface, var(--paper-2));
  transition: border-color .18s ease, transform .18s ease;
}
.lang-strip a:hover {
  transform: translateY(-2px);
  border-color: var(--language-ink, var(--ink));
}
.lang-strip img { display: block; width: 36px; height: 36px; object-fit: contain; }
.lang-strip a > span:not(.language-logo-pair) { font-size: 13px; font-weight: 650; }
.lang-strip small { color: var(--muted); font: 10px var(--mono); }
.lang-strip .language-logo-pair { display: flex; align-items: center; gap: 7px; }
.lang-strip .language-logo-pair img { width: 30px; height: 30px; }
.lang-strip a:nth-child(1), .plugin-grid .plugin-card:nth-child(1) { --language-surface: #f5e7df; --language-border: #e9c9b9; --language-ink: #a64e2d; }
.lang-strip a:nth-child(2), .plugin-grid .plugin-card:nth-child(2) { --language-surface: #e6f0f7; --language-border: #c6dce9; --language-ink: #3776ab; }
.lang-strip a:nth-child(3), .plugin-grid .plugin-card:nth-child(3) { --language-surface: #e4f3f6; --language-border: #c2e2e9; --language-ink: #0087a8; }
.lang-strip a:nth-child(4), .plugin-grid .plugin-card:nth-child(4) { --language-surface: #e8eef5; --language-border: #ccd9e7; --language-ink: #38658b; }
.lang-strip a:nth-child(5), .plugin-grid .plugin-card:nth-child(5) { --language-surface: #e7edf8; --language-border: #c9d6ec; --language-ink: #3178c6; }
.lang-strip a:nth-child(6), .plugin-grid .plugin-card:nth-child(6) { --language-surface: #f8e9e1; --language-border: #edccbb; --language-ink: #cf4b28; }
.lang-strip a:nth-child(7), .plugin-grid .plugin-card:nth-child(7) { --language-surface: #e6eef9; --language-border: #cad9f0; --language-ink: #2363a5; }
.lang-strip a:nth-child(8), .plugin-grid .plugin-card:nth-child(8) { --language-surface: #eeeeea; --language-border: #d7d7d0; --language-ink: #33332f; }
.lang-strip a:nth-child(9), .plugin-grid .plugin-card:nth-child(9) { --language-surface: #f8e8e9; --language-border: #ecc8ca; --language-ink: #b9222c; }
.lang-strip a:nth-child(10), .plugin-grid .plugin-card:nth-child(10) { --language-surface: #f2e9e4; --language-border: #e4d1c5; --language-ink: #8d4526; }
.lang-strip a:nth-child(11), .plugin-grid .plugin-card:nth-child(11) { --language-surface: #ececea; --language-border: #d7d7d2; --language-ink: #33332f; }
.plugin-grid .plugin-card {
  background: var(--language-surface, var(--paper-2));
  border-color: var(--language-border, var(--line));
}
.plugin-grid .plugin-card h3 { color: var(--language-ink, var(--ink)); }
.plugin-grid .plugin-card a.plugin-go { color: var(--language-ink, var(--green-deep)); }
.plugin-grid .language-logo-pair { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
.plugin-grid .language-logo-pair img { width: 32px; height: 32px; margin: 0; }
.plugin-grid .plugin-card > img { margin-bottom: 22px; }
.feature-cards, .platform-cards, .install-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.feature-cards article, .platform-card, .install-option {
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.platform-card.is-detected { outline: 0; }
.platform-card-top img { display: block; }
.platform-card-top .os-logo { width: 40px; height: 40px; object-fit: contain; }
.platform-card h2 { font-size: 28px; }
.platform-button { border-radius: 0; box-shadow: none; }
.download-info-grid, .requirements, .feature-band, .architecture-layout { border-color: var(--line); }
.download-mark img { display: none; }
.footer, .site-footer { background: var(--paper); color: var(--ink); }
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 22px 48px;
  margin-top: 100px;
  padding: 38px clamp(24px, 5vw, 76px) 26px;
  border-top: 1px solid var(--line);
}
.footer-wordmark { font-weight: 800; letter-spacing: -.05em; }
.site-footer p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; font-size: 12px; }
.site-footer nav .footer-empoor { color: #cf4b28; font-weight: 700; }
.site-footer nav .footer-empoor:hover { color: #a64e2d; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); font: 10px var(--mono); }
.product-screenshot { margin: clamp(42px, 6vw, 86px) 0; }
.product-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.product-screenshot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font: 11px/1.6 var(--mono);
}
@media (max-width: 960px) {
  .site-shell { padding-top: 68px; }
  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    height: 68px;
  }
  .topbar > .top-actions { grid-column: 2; justify-self: end; min-width: 0; }
  .desktop-nav {
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .desktop-nav.mobile-open { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .top-actions { grid-column: 2; }
  .menu-toggle {
    display: grid;
    grid-column: auto;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
  }
  .menu-toggle span { margin: 3px auto; }
  .workbench-layout { grid-template-columns: 1fr; }
  .workbench-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surface-grid, .feature-cards, .platform-cards, .install-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .surface-card, .ide-cell, .use-card, .capability-card,
  .feature-cards article, .platform-card, .install-option { min-width: 0; }
}
@media (max-width: 900px) {
  .surface-grid, .ide-grid, .use-grid, .capability-grid,
  .feature-cards, .platform-cards, .install-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .section-frame, .lift-inner { width: calc(100% - 36px); }
  .lift-hero { padding-top: 58px; }
  .lift-hero h1 { font-size: clamp(54px, 16vw, 86px); }
  .site-shell { padding-top: 70px; }
  .topbar { height: 70px; min-height: 70px; padding: 0 18px; }
  .desktop-nav { max-height: calc(100dvh - 70px); }
  .workbench-layout { gap: 14px; }
  .workbench-modes { grid-template-columns: 1fr; }
  .workbench-window { min-height: 300px; }
  .wb-files { display: none; }
  .surface-grid, .ide-grid, .use-grid, .capability-grid, .feature-cards, .platform-cards, .install-options { grid-template-columns: 1fr; }
  .lang-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; gap: 18px; margin-top: 68px; }
  .site-footer nav { justify-content: flex-start; }
  .command-block pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .command-block code { white-space: inherit; overflow-wrap: inherit; }
}

.site-footer {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
  gap: 38px 64px;
  padding-top: 48px;
}
.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.footer-wordmark img { width: 30px; height: 30px; object-fit: contain; }
.footer-about p {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.footer-about .footer-license { margin-top: 12px; font-size: 11px; }
.footer-license a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.footer-group { display: grid; align-content: start; gap: 11px; }
.footer-group h2 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-group a { color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer-group a:hover { color: var(--ink); }
.footer-group .footer-empoor { color: #cf4b28; font-weight: 700; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
}
.footer-bottom small { color: inherit; font: inherit; }
@media (max-width: 1000px) {
  .site-footer { grid-template-columns: 1fr; gap: 32px; }
  .footer-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-footer { margin-top: 68px; padding-top: 32px; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

.legal-page,
.updates-page { padding: clamp(54px, 8vw, 104px) 0 100px; }
.legal-header,
.updates-header {
  max-width: 820px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.legal-header h1,
.updates-header h1 {
  margin: 12px 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -.07em;
}
.legal-header > p:last-child,
.updates-header > p:last-child {
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.legal-document { max-width: 820px; }
.legal-document section,
.update-entry { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal-document h2,
.update-entry h3 { margin: 0 0 14px; font-size: 19px; letter-spacing: -.035em; }
.legal-document p,
.update-entry p,
.update-entry li {
  max-width: 74ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.legal-document p + p { margin-top: 12px; }
.legal-document a,
.update-source {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green-deep);
  text-underline-offset: 3px;
}
.updates-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}
.updates-index a { color: var(--muted); }
.updates-index a:hover,
.update-source:hover { color: var(--green-deep); }
.update-entry { max-width: 880px; scroll-margin-top: 90px; }
.update-entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.release-label,
.update-meta {
  margin: 0;
  color: var(--muted);
  font: 11px/1.6 var(--mono);
}
.update-entry h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.055em; }
.update-summary { margin: 0 0 22px; color: var(--ink) !important; }
.update-entry h3 { margin-top: 26px; }
.update-entry ul { display: grid; gap: 12px; margin: 0 0 22px; padding-left: 20px; }
.update-entry li strong { color: var(--ink); }
.update-source { font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .legal-page,
  .updates-page { padding: 48px 0 72px; }
  .update-entry-header { display: block; }
  .update-meta { margin-top: 8px; }
  .legal-document section,
  .update-entry { padding: 26px 0; }
}
