@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

body {
  --site-width: 700px;
  --mono: 'IBM Plex Mono',ui-monospace,monospace;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Newsreader',Georgia,serif;
  font-size: 18px;
  line-height: 1.5;
}

::selection {
  background: var(--ac);
  color: var(--bg);
}

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

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

.site {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 24px clamp(20px,6vw,40px) 28px;
}

.meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mu);
}

.emphasis {
  font-style: italic;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.site-header nav {
  display: flex;
  gap: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px .6em;
}

.tags > :not(:last-child)::after {
  content: ",";
  display: inline-block;
}

.tags a {
  color: var(--so);
  text-decoration: underline;
  text-decoration-color: var(--mu);
  text-underline-offset: 3px;
}

.tags a:hover {
  color: var(--ac);
  text-decoration-color: var(--ac);
}

.nav-link:hover {
  color: var(--tx);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 270px;
  align-items: end;
  gap: 8px;
  padding: 40px 0 26px;
}

h1 {
  font-size: clamp(50px,11vw,76px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 12px;
}

.figures {
  width: 270px;
  height: 189px;
  display: block;
  justify-self: end;
}

.facts {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mu);
}

.facts span {
  display: inline-block;
  margin-right: 24px;
}

.facts b {
  font-weight: 500;
  color: var(--tx);
}

.chat {
  padding-top: 34px;
}

.intro-question span {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ac);
}

.intro-question span::before {
  content: "> ";
}

.js .intro-question {
  opacity: 0;
  transition: opacity .3s;
}

.js .intro-question.is-visible {
  opacity: 1;
}

.intro {
  font-size: clamp(22px,3.9vw,28px);
  line-height: 1.32;
  margin: 10px 0 0;
  max-width: 23em;
  min-height: 3.96em;
}

.js .stream-word {
  opacity: 0;
}

.js .stream-word.is-visible {
  opacity: 1;
}

.stream-cursor {
  display: inline-block;
  width: 0;
  position: relative;
}

.stream-cursor::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -.86em;
  width: .48em;
  height: 1.05em;
  background: var(--ac);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.answer-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.js .answer-chips {
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s;
}

.js .answer-chips.is-visible {
  visibility: visible;
  opacity: 1;
}

.answer-chips>span {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ac);
  margin-right: -12px;
}

.chip {
  font: 500 13.5px var(--mono);
  color: var(--so);
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--mu);
  border-radius: 0;
  padding: 2px 0;
  cursor: pointer;
}

.chip:hover {
  color: var(--tx);
  border-bottom-color: var(--tx);
}

.chip[aria-pressed="true"] {
  color: var(--ac);
  border-bottom: 1px solid var(--ac);
}

.answers {
  margin-top: 26px;
}

.js .answers {
  min-height: 330px;
}

.js .answers section:not(.is-visible) {
  display: none;
}

html:not(.js) .answers section + section {
  margin-top: 30px;
}

html:not(.js) .answer-chips button,html:not(.js) #theme,.js .fallback-chip {
  display: none;
}

.lead {
  font-size: 20px;
  line-height: 1.38;
  color: var(--so);
  margin: 0 0 6px;
  max-width: 30em;
}

.js .stream-item {
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s;
}

.js .stream-item.is-visible {
  visibility: visible;
  opacity: 1;
}

.package-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.package-row h2 {
  font: 600 19px var(--mono);
  margin: 0;
}

.package-row:hover h2 {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.package-row p {
  margin: 4px 0 0;
  font-size: 17px;
  color: var(--mu);
}

.package-row .download-count {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mu);
  white-space: nowrap;
}

.package-row .download-count b {
  font-weight: 500;
  color: var(--so);
  margin-right: .5em;
}

.extra-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
}

.extra-links a {
  color: var(--so);
  text-decoration: underline;
  text-decoration-color: var(--mu);
  text-underline-offset: 3px;
}

.extra-links a:hover {
  color: var(--ac);
  text-decoration-color: var(--ac);
}

.list-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18.5px;
  line-height: 1.3;
}

.list-row:hover,.link-row:hover {
  color: var(--ac);
}

.list-row .highlight {
  color: var(--ac);
}

.list-row small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mu);
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.link-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18.5px;
}

.link-row span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mu);
  margin-left: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width:520px) {
  .site-header nav {
    gap: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }
  .figures {
    grid-row: 1;
    justify-self: start;
    width: 220px;
    height: 154px;
    margin: 0 0 10px -8px;
  }
  .facts span {
    margin-right: 18px;
  }
  .package-row {
    grid-template-columns: 1fr;
  }
  .list-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
}

.consent:not([hidden]) {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  max-width: calc(100% - 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.consent p {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--so);
}

@media (prefers-reduced-motion:reduce) {
  .stream-cursor::after {
    animation: none;
  }
  .js .stream-word,.js .stream-item,.js .intro-question,.js .answer-chips {
    visibility: visible;
    opacity: 1;
    transition: none;
  }
}
