:root {
  color-scheme: light dark;
  --paper: #f6f6f6;
  --ink: #050505;
  --screen: #8a8a8a;
  --muted-light: rgba(246, 246, 246, 0.58);
  --muted-dark: rgba(5, 5, 5, 0.58);
  --header-height: 58px;
  --page-gutter: clamp(14px, 2vw, 28px);
  --plugin-index-size: clamp(86px, 8.5vw, 118px);
  --section-index-width: var(--plugin-index-size);
  --detail-label-size: clamp(10px, 0.85vw, 12px);
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Liberation Mono", Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1px);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  --header-divider-position: 25%;
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 3fr;
  align-items: stretch;
  background:
    linear-gradient(var(--ink), var(--ink))
      calc(var(--header-divider-position) - 1px) 0 / 2px 100% no-repeat,
    var(--paper);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-header > * {
  margin: 0;
  display: flex;
  align-items: center;
  padding-inline: var(--page-gutter);
}

.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.08em;
}

.wordmark::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  background: var(--ink);
}

.header-note {
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero {
  min-height: calc(100svh + 2px);
  padding-top: var(--header-height);
  display: grid;
  grid-template-columns: var(--section-index-width) minmax(320px, 2.1fr) minmax(230px, 1fr);
  grid-template-rows: 1fr 74px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hero-index {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--page-gutter) 12px;
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 6vw, 92px) var(--page-gutter);
}

.eyebrow {
  margin: 0 0 clamp(28px, 5vw, 66px);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 14vw, 220px);
  line-height: 0.78;
  letter-spacing: -0.105em;
  white-space: nowrap;
}

.hero h1 span {
  letter-spacing: -0.04em;
}

.hero-description {
  width: min(590px, 94%);
  margin: clamp(30px, 7vw, 86px) 0 0 auto;
  font-size: clamp(15px, 2.05vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.hero-geometry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  min-height: 460px;
}

.mass {
  background: var(--ink);
}

.mass-a {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.mass-b {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
}

.mass-c {
  grid-column: 1;
  grid-row: 3 / 5;
}

.mass-d {
  grid-column: 3;
  grid-row: 4;
}

.hero-jump {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--detail-label-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: background-color 120ms linear, color 120ms linear;
}

.hero-jump:hover,
.hero-jump:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero-jump span:last-child {
  font-size: 22px;
  transition: transform 120ms linear;
}

.hero-jump:hover span:last-child,
.hero-jump:focus-visible span:last-child {
  transform: translateY(5px);
}

.plugin {
  border-bottom: 2px solid currentColor;
}

.plugin-dark {
  background: var(--ink);
  color: var(--paper);
}

.plugin-light {
  background: var(--paper);
  color: var(--ink);
}

.plugin-heading {
  height: var(--plugin-index-size);
  display: grid;
  grid-template-columns: var(--section-index-width) minmax(0, 1fr);
  border-bottom: 2px solid currentColor;
}

.plugin-heading > * {
  margin: 0;
  padding: clamp(10px, 1.2vw, 18px);
}

.plugin-number {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plugin-number::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  right: 0;
  bottom: -2px;
  width: 2px;
  background: currentColor;
}

.plugin-heading h2 {
  min-width: 0;
  align-self: end;
  padding-block: 12px;
  font-size: clamp(42px, 6.2vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.09em;
  white-space: nowrap;
}

.plugin-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
}

.plugin-visual {
  margin: 0;
  padding: 10px var(--page-gutter) 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 2px solid currentColor;
}

.screenshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1vw, 14px);
  background: var(--screen);
}

.screenshot-frame img {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

.plugin-visual figcaption {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.plugin-information {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.plugin-lead {
  margin: 0;
  padding: clamp(18px, 2vw, 28px) var(--page-gutter);
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid currentColor;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.feature-grid {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid > div {
  min-height: 102px;
  padding: 14px;
  border-bottom: 2px solid currentColor;
}

.feature-grid > div:nth-child(odd) {
  border-right: 2px solid currentColor;
}

.feature-grid dt {
  font-size: clamp(22px, 2.5vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.feature-grid dd {
  margin: 12px 0 0;
  font-size: var(--detail-label-size);
  line-height: 1.35;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.download-link,
.source-link {
  min-height: 72px;
  padding: 0 14px;
  font-size: var(--detail-label-size);
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 120ms linear, color 120ms linear;
}

.download-links {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.download-link:not(:last-child) {
  border-right: 2px solid currentColor;
}

.link-arrow {
  flex: 0 0 auto;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 0.75;
  letter-spacing: 0;
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid currentColor;
}

.plugin-dark .download-link:hover,
.plugin-dark .download-link:focus-visible,
.plugin-dark .source-link:hover,
.plugin-dark .source-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.plugin-light .download-link:hover,
.plugin-light .download-link:focus-visible,
.plugin-light .source-link:hover,
.plugin-light .source-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  min-height: 148px;
  padding: var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.site-footer p,
.site-footer a {
  margin: 0;
}

.site-footer > p:nth-child(2) {
  justify-self: center;
  text-align: center;
  font-size: clamp(11px, 1vw, 15px);
}

.footer-mark {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.site-footer a {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.back-to-top-arrow {
  font-size: 22px;
  line-height: 1;
  transition: transform 120ms linear;
}

.site-footer a:hover .back-to-top-arrow,
.site-footer a:focus-visible .back-to-top-arrow {
  transform: translateY(-5px);
}

.section-rail {
  position: fixed;
  z-index: 45;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}

.section-rail a {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  transition: width 120ms linear;
}

.section-rail a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--rail-outline, var(--paper));
  pointer-events: none;
}

.section-rail a > span {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 120ms linear, color 120ms linear;
}

.section-rail a:hover,
.section-rail a:focus-visible {
  width: 52px;
  outline: 0;
}

.section-rail a[aria-current="true"] {
  width: 52px;
}

.section-rail a[aria-current="true"] > span {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 920px) {
  :root {
    --section-index-width: 54px;
  }

  .header-note {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: var(--section-index-width) minmax(0, 1fr);
    grid-template-rows: minmax(520px, 1fr) 180px 64px;
  }

  .hero-index {
    grid-row: 1 / -1;
  }

  .hero-copy {
    grid-column: 2;
  }

  .hero h1 {
    font-size: clamp(70px, 19vw, 160px);
  }

  .hero-geometry {
    grid-column: 2;
    min-height: 0;
    border-top: 2px solid var(--ink);
  }

  .mass-a {
    grid-column: 1 / 4;
  }

  .hero-jump {
    grid-column: 2;
  }

  .plugin-body {
    grid-template-columns: 1fr;
  }

  .plugin-visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid currentColor;
  }

  .plugin-information {
    min-height: 0;
  }

}

@media (max-width: 620px) {
  :root {
    --header-height: 50px;
    --page-gutter: 14px;
    --section-index-width: 38px;
  }

  .site-header {
    --header-divider-position: 50%;
    grid-template-columns: 1fr 1fr;
  }

  .header-note {
    justify-content: flex-end;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .hero {
    grid-template-columns: var(--section-index-width) minmax(0, 1fr);
    grid-template-rows: minmax(500px, 1fr) 140px 58px;
  }

  .hero-copy {
    padding-block: 58px 34px;
  }

  .hero h1 {
    font-size: clamp(62px, 24vw, 118px);
  }

  .hero-description {
    width: 100%;
    margin-top: 48px;
    font-size: 17px;
  }

  .plugin-heading {
    height: 84px;
    grid-template-rows: 1fr;
  }

  .plugin-heading h2 {
    padding-block: 8px;
    font-size: clamp(26px, 7.4vw, 44px);
    white-space: normal;
  }

  .plugin-heading > *,
  .feature-grid > div,
  .download-link,
  .source-link {
    min-width: 0;
  }

  .plugin-visual {
    padding-block: 8px 6px;
  }

  .feature-grid > div {
    min-height: 98px;
  }

  .feature-grid dd {
    overflow-wrap: anywhere;
  }

  .download-link {
    min-height: 74px;
    padding-inline: 8px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .source-link {
    min-height: 74px;
  }

  .site-footer {
    min-height: 0;
    padding-block: 20px;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .site-footer > p:nth-child(2) {
    justify-self: start;
    text-align: left;
    font-size: 9px;
  }

  .site-footer a {
    justify-self: start;
  }

  .section-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .section-rail,
  .hero-jump {
    display: none;
  }

  .hero {
    padding-top: 0;
  }
}
