@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: var(--page);
  --ink: var(--on-surface);
  --muted: var(--on-surface-variant);
  --rule: color-mix(in srgb, var(--on-surface) 14%, transparent);

  --display: "Archivo", "Arial Black", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", monospace;

  --bar-h: 80px;
  --edge: clamp(20px, 3.9vw, 56px);
  --gutter: max(var(--edge), calc((100vw - 1200px) / 2));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --float: var(--card);
  --float-fill: var(--block);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --float: var(--block);
    --float-fill: var(--inset);
  }
}

/* Registered so the page eases into each accent's palette as scene.js steps through them on scroll. */
@property --page {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --card {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --block {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --inset {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --on-surface {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --on-surface-variant {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --primary {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --on-primary {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --primary-container {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@property --on-primary-container {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    transition: --page 0.6s, --card 0.6s, --block 0.6s, --inset 0.6s, --on-surface 0.6s,
      --on-surface-variant 0.6s, --primary 0.6s, --on-primary 0.6s,
      --primary-container 0.6s, --on-primary-container 0.6s;
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121,
        1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%,
        0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

/* The app's seededColorScheme of each seed, written by
   flutter test --update-goldens test/tool/site_palette_test.dart */

:root {
  --page: #efedf0;
  --card: #fcf8f9;
  --block: #efedf0;
  --inset: #e4e2e4;
  --on-surface: #181c23;
  --on-surface-variant: #414755;
  --primary: #007aff;
  --on-primary: #ffffff;
  --primary-container: #d8e2ff;
  --on-primary-container: #0e448e;
  --success: #006e1c;
  --warning: #8b5000;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
}

:root[data-accent="purple"] {
  --page: #f3ecef;
  --card: #fef8f9;
  --block: #f3ecef;
  --inset: #e8e1e3;
  --on-surface: #221822;
  --on-surface-variant: #524151;
  --primary: #cb30e0;
  --on-primary: #ffffff;
  --primary-container: #ffd6fc;
  --on-primary-container: #6b2d72;
}

:root[data-accent="pink"] {
  --page: #f6ebeb;
  --card: #fff8f7;
  --block: #f6ebeb;
  --inset: #ebe0e0;
  --on-surface: #281718;
  --on-surface-variant: #5d3f40;
  --primary: #ff2d55;
  --on-primary: #ffffff;
  --primary-container: #ffdada;
  --on-primary-container: #7d2933;
}

:root[data-accent="red"] {
  --page: #f6ebea;
  --card: #fff8f7;
  --block: #f6ebea;
  --inset: #ebe0df;
  --on-surface: #291715;
  --on-surface-variant: #5d3f3d;
  --primary: #ff383c;
  --on-primary: #ffffff;
  --primary-container: #ffdad7;
  --on-primary-container: #7e2a27;
}

:root[data-accent="orange"] {
  --page: #f6ece7;
  --card: #fff8f5;
  --block: #f6ece7;
  --inset: #eae1dc;
  --on-surface: #241913;
  --on-surface-variant: #564336;
  --primary: #de7405;
  --on-primary: #ffffff;
  --primary-container: #ffdcc5;
  --on-primary-container: #703700;
}

:root[data-accent="yellow"] {
  --page: #f3ede6;
  --card: #fef8f5;
  --block: #f3ede6;
  --inset: #e7e2db;
  --on-surface: #1f1b10;
  --on-surface-variant: #4e4632;
  --primary: #b08c00;
  --on-primary: #ffffff;
  --primary-container: #ffe08b;
  --on-primary-container: #584400;
}

:root[data-accent="green"] {
  --page: #eeeee9;
  --card: #fbf9f6;
  --block: #eeeee9;
  --inset: #e3e3de;
  --on-surface: #161d16;
  --on-surface-variant: #3d4a3c;
  --primary: #00a741;
  --on-primary: #ffffff;
  --primary-container: #a5f5a8;
  --on-primary-container: #00531c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #131315;
    --card: #252628;
    --block: #323235;
    --inset: #404042;
    --on-surface: #f5f6ff;
    --on-surface-variant: #c1c6d7;
    --primary: #2f83ff;
    --on-primary: #ffffff;
    --primary-container: #0e448e;
    --on-primary-container: #d8e2ff;
    --success: #78dc77;
    --warning: #ffb870;
    --error: #ffb4ab;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
  }

  :root[data-accent="purple"] {
    --page: #151315;
    --card: #282527;
    --block: #353234;
    --inset: #433f41;
    --on-surface: #fff3fa;
    --on-surface-variant: #d7c0d3;
    --primary: #d43be9;
    --on-primary: #ffffff;
    --primary-container: #6b2d72;
    --on-primary-container: #ffd6fc;
  }

  :root[data-accent="pink"] {
    --page: #171212;
    --card: #2a2525;
    --block: #373131;
    --inset: #443e3e;
    --on-surface: #fff4f3;
    --on-surface-variant: #e6bcbd;
    --primary: #ff4962;
    --on-primary: #ffffff;
    --primary-container: #7d2933;
    --on-primary-container: #ffdada;
  }

  :root[data-accent="red"] {
    --page: #171212;
    --card: #2a2524;
    --block: #373131;
    --inset: #453e3e;
    --on-surface: #fff4f3;
    --on-surface-variant: #e6bdb9;
    --primary: #ff504d;
    --on-primary: #ffffff;
    --primary-container: #7e2a27;
    --on-primary-container: #ffdad7;
  }

  :root[data-accent="orange"] {
    --page: #171310;
    --card: #292522;
    --block: #37322f;
    --inset: #443f3c;
    --on-surface: #fff4ef;
    --on-surface-variant: #ddc1b0;
    --primary: #ff9a49;
    --on-primary: #301400;
    --primary-container: #703700;
    --on-primary-container: #ffdcc5;
  }

  :root[data-accent="yellow"] {
    --page: #15130f;
    --card: #282521;
    --block: #35322e;
    --inset: #42403b;
    --on-surface: #fff5e5;
    --on-surface-variant: #d2c5ab;
    --primary: #e0b300;
    --on-primary: #241a00;
    --primary-container: #584400;
    --on-primary-container: #ffe08b;
  }

  :root[data-accent="green"] {
    --page: #121411;
    --card: #252624;
    --block: #313330;
    --inset: #3f403d;
    --on-surface: #f1f9ec;
    --on-surface-variant: #bccbb8;
    --primary: #3fd060;
    --on-primary: #002107;
    --primary-container: #00531c;
    --on-primary-container: #a5f5a8;
  }
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px / 1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* Material's state layer: each control names its fill and the content color laid over it on hover and press. */
:where(.brand, .seg, .release-tag, .cta, .file, .go, .copy, .more) {
  --state: 0%;
  background-color: color-mix(in srgb, var(--on) var(--state), var(--fill));
  transition: background-color 0.2s, color 0.2s, border-radius 0.4s var(--spring);
}

@media (hover: hover) {
  :where(.brand, .seg, .release-tag, .cta, .file, .copy, .more):hover,
  .file:hover .go {
    --state: 8%;
  }
}

:where(.brand, .seg, .release-tag, .cta, .file, .copy, .more):active,
.file:active .go {
  --state: 10%;
}

.bar {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--float) 72%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  transition: translate 0.45s var(--ease-out), opacity 0.3s;
}

.bar.away:not(:focus-within) {
  translate: 0 calc(-100% - 16px);
  opacity: 0;
  pointer-events: none;
}

.brand,
.seg {
  --fill: transparent;
  --on: var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Material's connected button group: --r is half an item's height and the radius of the group's ends and of the
   selected item; the corners between items are a third of it and tighten on press. */
.segs {
  --r: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.seg {
  --fill: var(--seg-fill, var(--card));
  height: calc(var(--r) * 2);
  padding: 0 calc(var(--r) - 2px);
  border-radius: calc(var(--r) / 3);
}

.seg:first-child {
  border-top-left-radius: var(--r);
  border-bottom-left-radius: var(--r);
}

.seg:last-child {
  border-top-right-radius: var(--r);
  border-bottom-right-radius: var(--r);
}

.seg:active {
  border-radius: calc(var(--r) * 0.6);
}

.seg:is([aria-current], [aria-selected="true"]),
.seg:is([aria-current], [aria-selected="true"]):active {
  --fill: var(--primary);
  --on: var(--on-primary);
  border-radius: var(--r);
  color: var(--on-primary);
  font-weight: 600;
}

.seg-icon {
  display: grid;
  flex: none;
  place-items: center;
}

.brand {
  gap: 10px;
  padding-left: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.glyph {
  width: 22px;
  height: 22px;
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

#langs .seg {
  min-width: 72px;
}

.links .segs {
  --r: 20px;
  --seg-fill: var(--float-fill);
  flex-wrap: nowrap;
}

.stars {
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}


.stage {
  --dock-w: calc((100vw - 2 * var(--gutter)) * 0.42);
  --mark: min(calc(var(--dock-w) - 24px), 62vh, 560px);
  --spot: calc(var(--mark) * 0.72);
  position: relative;
  overflow-x: clip;
}

.dock {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.emblem {
  position: absolute;
  width: var(--mark);
  height: var(--mark);
  visibility: hidden;
}

.emblem.ready {
  visibility: visible;
}

.emblem.live {
  pointer-events: auto;
  cursor: pointer;
}

.emblem-press {
  position: relative;
  width: 100%;
  height: 100%;
  transition: scale 0.4s var(--spring);
}

.emblem.live:active .emblem-press {
  scale: 0.95;
}

.emblem-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.emblem-shape path {
  --state: 0%;
  fill: color-mix(in srgb, var(--on-primary) var(--state), var(--primary));
  transition: fill 0.2s;
}

@media (hover: hover) {
  .emblem.live:hover .emblem-shape path {
    --state: 8%;
  }
}

.emblem-glyph {
  position: absolute;
  left: 33%;
  top: 33%;
  width: 34%;
  height: 34%;
  overflow: visible;
  fill: var(--on-primary);
}

.emblem-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--on-primary);
  font-family: var(--display);
  font-size: calc(var(--mark) * 0.3);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.emblem-count span,
.dock-part {
  grid-area: 1 / 1;
  opacity: 0;
}

/* data-part is the section the docked column names: 0 while the emblem travels, 1 downloads, 2 the changelog. */
[data-part="1"] :is(.emblem-count span:first-child, .dock-part:first-child),
[data-part="2"] :is(.emblem-count span:last-child, .dock-part:last-child) {
  opacity: 1;
}

.dock-title {
  display: none;
}

.dock-name {
  font-family: var(--display);
  font-size: clamp(44px, 4.6vw, 72px);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.dock-sub {
  min-height: 1.5em;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}


.hero {
  --title: clamp(56px, min(10.8vw, 17.3vh), 156px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bar-h) + clamp(16px, 5.8vh, 52px)) var(--gutter) clamp(96px, 14vh, 124px);
}

.spot {
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.hero-copy > * {
  pointer-events: auto;
}

.release-tag {
  --fill: var(--card);
  --on: var(--on-surface);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 7px;
  border-radius: 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.release-tag:active {
  border-radius: 11px;
}

#hero-release-text {
  padding-right: 9px;
}

#hero-release-text:empty {
  display: none;
}

.title {
  display: flex;
  flex-direction: column;
  margin: 16px 0 0 -0.05em;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.title-word {
  font-size: var(--title);
  font-stretch: 118%;
  line-height: 0.92;
}

.title-for {
  margin: 0.35em 0 0 0.15em;
  color: var(--muted);
  font-size: max(22px, calc(var(--title) * 0.256));
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede {
  width: min(420px, 34vw);
  margin-top: clamp(20px, 4.3vh, 39px);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.cta-block {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: clamp(22px, 5.6vh, 51px);
}

.cta {
  --fill: var(--primary);
  --on: var(--on-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px 0 22px;
  border-radius: 28px;
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.cta:active {
  border-radius: 16px;
}

.cta-icon {
  display: grid;
  place-items: center;
}

.cta-sub,
.cta-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.cta-note {
  max-width: 34em;
  font-family: var(--sans);
  font-size: 13px;
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(32px, 7.8vh, 70px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}


.flow {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
}

.part + .part {
  margin-top: clamp(96px, 16vh, 168px);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 6.4vw, 96px);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 560px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.meta,
.section-sub {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.tabs {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 500;
}

.segs.small {
  --r: 18px;
  font-size: 14px;
}

.panel {
  margin-top: 36px;
}

.panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 36px;
  margin-bottom: 14px;
}

.panel-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.files {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file,
.tip {
  border-radius: 6px;
}

.file {
  --fill: var(--card);
  --on: var(--on-surface);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
}

:is(.file, .tip):first-child {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

:is(.file, .tip):last-child {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

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

.file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.file-title {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.file-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rec-tag,
.latest,
.scope {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.rec-tag,
.latest {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rec-tag {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.file-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.note {
  margin-right: 4px;
  font-family: var(--sans);
  font-size: 13px;
}

.sha {
  position: relative;
  z-index: 1;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sha.done {
  text-decoration: none;
}

/* scene.js sets the start button's circle and cookie at this size as --circle and --cookie on the root. */
.go {
  --fill: var(--block);
  --on: var(--on-surface);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  color: var(--ink);
  clip-path: var(--circle, none);
}

@media (hover: hover) {
  .file:hover .go {
    clip-path: var(--cookie, none);
  }
}

.file.rec .go {
  --fill: var(--primary);
  --on: var(--on-primary);
  color: var(--on-primary);
}

.dl-error {
  margin-top: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--error-container);
  color: var(--on-error-container);
}

.extras {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.extras:empty {
  display: none;
}

.tip {
  min-width: 0;
  padding: 14px 20px 16px;
  background: var(--card);
}

.tip h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.tip p {
  color: var(--muted);
  font-size: 13px;
}

.tip p + p {
  margin-top: 6px;
}

.cmd {
  position: relative;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--block);
}

.cmd pre {
  margin: 0;
  padding: 10px 48px 10px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.copy {
  --fill: transparent;
  --on: var(--on-surface);
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
}

.copy .ico-check,
.copy.done .ico-copy {
  display: none;
}

.copy.done .ico-check {
  display: block;
}

.dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
}

.dl-links a {
  text-underline-offset: 4px;
}


.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
  height: 56px;
  margin-top: 28px;
  padding: 0 12px 0 20px;
  border-radius: 28px;
  background: var(--card);
  color: var(--muted);
  cursor: text;
}

.search:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search input::placeholder {
  color: var(--muted);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

kbd {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--block);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.cl-status {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.cl-status button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cl-status a {
  text-underline-offset: 3px;
}

.year {
  padding: 48px 0 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 22px;
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.timeline > .year:first-child {
  padding-top: 8px;
}

.release {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 14px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.release-head {
  position: sticky;
  top: 28px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ver-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ver {
  font-family: var(--display);
  font-size: 30px;
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.latest {
  background: var(--primary);
  color: var(--on-primary);
}

.when {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.when a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.when a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-body {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.group {
  --type: var(--muted);
}

.group[data-type="feat"] {
  --type: var(--success);
}

.group[data-type="fix"] {
  --type: var(--primary);
}

.group[data-type="perf"] {
  --type: var(--warning);
}

.group[data-type="breaking"] {
  --type: var(--error);
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--type);
}

.entries {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.55;
}

.entry-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scope {
  margin-right: 8px;
  padding: 2px 9px;
  background: var(--card);
  color: var(--muted);
  vertical-align: 1px;
}

.hash {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

.hash:hover {
  color: var(--ink);
  text-decoration: underline;
}

.empty {
  color: var(--muted);
}

mark {
  border-radius: 4px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.more {
  --fill: var(--card);
  --on: var(--on-surface);
  display: block;
  height: 48px;
  margin-top: 32px;
  padding: 0 24px;
  border: 0;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
}

.more:active {
  border-radius: 14px;
}


.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 48px var(--gutter) max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}

.foot-main {
  display: grid;
  gap: 10px;
}

.foot-name {
  font-family: var(--display);
  font-size: 28px;
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.foot-text {
  max-width: 46ch;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.foot-links {
  font-size: 14px;
  font-weight: 500;
}


@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.9s var(--ease-out) backwards;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .scroll-hint {
    animation: rise 0.9s var(--ease-out) 0.5s backwards;
  }

  .emblem.ready .emblem-press {
    animation: grow 0.9s var(--spring) 0.15s backwards;
  }

  .cta-icon svg,
  .file .go svg {
    transition: translate 0.4s var(--spring);
  }

  .go {
    transition: background-color 0.2s, clip-path 0.45s var(--spring);
  }

  .emblem-count span,
  .dock-part {
    transition: opacity 0.09s linear, translate 0.09s linear;
  }

  :is(.emblem-count span, .dock-part) {
    translate: 0 12px;
  }

  [data-part="1"] :is(.emblem-count span:first-child, .dock-part:first-child),
  [data-part="2"] :is(.emblem-count span:last-child, .dock-part:last-child) {
    translate: none;
    transition: opacity 0.21s linear 0.09s, translate 0.5s var(--spring) 0.09s;
  }

  #download {
    transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), translate 0.7s var(--spring);
  }

  .cta:hover .cta-icon svg,
  .file:hover .go svg {
    translate: 0 3px;
  }

  .release.pending {
    opacity: 0;
    translate: 0 24px;
  }

  .release.shown {
    transition: opacity 0.6s var(--ease-out), translate 0.8s var(--spring);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes grow {
  from {
    opacity: 0;
    scale: 0.4;
  }
}


/* Wide screens split below the hero: the emblem docks in the left column above the name of the section the right
   column is showing. The downloads start under the hero and stay hidden until the emblem has docked, then appear in
   place with their top on --rest, the line the docked column starts on, instead of scrolling up through empty space. */
@media (min-width: 960px) {
  .stage {
    --mark: min(calc(var(--dock-w) - 24px), 48vh, 440px);
    --spot: calc(var(--mark) * 0.8);
    --rest: max(20vh, 96px);
  }

  .dock-view {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .emblem {
    left: var(--gutter);
    top: var(--rest);
  }

  .dock-title {
    position: absolute;
    left: var(--gutter);
    top: calc(var(--rest) + var(--mark) + 32px);
    display: grid;
    width: var(--dock-w);
  }

  .part-head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .part-head + * {
    margin-top: 0;
  }

  [data-part="0"] #download {
    opacity: 0;
    filter: blur(16px);
    translate: 0 32px;
    pointer-events: none;
  }

  .spot {
    position: absolute;
    left: calc(73% - var(--spot) / 2);
    top: calc(50% - var(--spot) / 2);
    width: var(--spot);
    height: var(--spot);
  }

  /* 55vh is the scroll by which scene.js has docked the emblem, DOCKED_VH. */
  .flow {
    margin-top: calc(var(--rest) - 55vh);
    padding-left: calc(var(--gutter) + var(--dock-w) + clamp(32px, 3vw, 56px));
  }
}

@media (min-width: 960px) and (max-width: 1279.98px) {
  .release {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-head {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
  }
}

@media (max-width: 959.98px) {
  .stage {
    --mark: min(64vw, 38vh, 340px);
    --spot: calc(var(--mark) / 1.15);
  }

  .emblem {
    left: 0;
    top: 0;
  }

  .hero {
    min-height: 0;
    padding-bottom: 48px;
  }

  .spot {
    order: 1;
    align-self: center;
    width: var(--spot);
    height: var(--spot);
    margin-top: 40px;
  }

  .lede {
    width: auto;
    max-width: 30em;
    font-size: 17px;
  }

  .scroll-hint {
    display: none;
  }

  .flow {
    padding-top: 24px;
  }

  .release {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-head {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
  }

  .ver {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  :root {
    --bar-h: 72px;
  }

  .bar {
    top: 8px;
    height: 52px;
  }

  .gh-name {
    display: none;
  }

  .links .seg {
    padding: 0 10px;
  }

  #langs .seg {
    min-width: 52px;
  }

  .note {
    flex-basis: 100%;
  }

  .foot-links {
    flex-direction: column;
    width: 100%;
  }

  .foot-links .seg,
  .foot-links .seg:is(:first-child, :last-child) {
    border-radius: calc(var(--r) / 3);
  }

  .foot-links .seg:first-child {
    border-top-left-radius: var(--r);
    border-top-right-radius: var(--r);
  }

  .foot-links .seg:last-child {
    border-bottom-left-radius: var(--r);
    border-bottom-right-radius: var(--r);
  }

  .tabs {
    --r: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    font-size: 15px;
  }

  .tabs .seg {
    padding: 0 6px;
  }
}

@media (max-width: 379.98px) {
  .stars {
    display: none;
  }
}
