:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --white: #fffefa;
  --ink: #211a2d;
  --muted: #5c5466;
  --line: #e3dde6;
  --purple: #7242d3;
  --purple-soft: #bb9dfd;
  --orange: #eea469;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Inter", "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
:focus-visible {
  outline: 3px solid #8a52ec;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
img {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 4;
  background: var(--white);
  padding: 0.8rem 1rem;
  transform: translateY(-170%);
}
.skip:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand,
.profile {
  display: flex;
  align-items: center;
  gap: 0.63rem;
  font-weight: 720;
  white-space: nowrap;
}
.brand-mark {
  border-radius: 0.55rem;
  background: var(--ink);
  color: #dac7ff;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font: 660 0.88rem var(--mono);
  letter-spacing: -0.12em;
  padding-right: 0.1em;
}
nav {
  display: flex;
  gap: 1.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.profile {
  justify-self: end;
  font-size: 0.875rem;
}
.profile img {
  border-radius: 50%;
  border: 1px solid #daccf2;
  background: #e8d9ff;
}

.hero {
  position: relative;
  isolation: isolate;
  border-radius: 1.55rem;
  overflow: hidden;
  min-height: 412px;
  color: #fff9f3;
  background: radial-gradient(ellipse at 79% 55%, #3c2267 0, #261640 39%, #211330 63%);
  display: flex;
  align-items: center;
  padding: 3.2rem clamp(2rem, 5.8vw, 5.2rem);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.overline,
.hero-meta,
.eyebrow {
  font: 650 0.81rem var(--mono);
  letter-spacing: 0.1em;
}
.overline {
  color: #dfc8ff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.overline span {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 0.1rem;
}
h1 {
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
  font-weight: 850;
}
h1 em {
  color: #c4a4ff;
  font-style: normal;
}
.hero-desc {
  margin-top: 1.45rem;
  color: #f3eafb;
  font-size: 1.1rem;
}
.hero-meta {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: #d1bfdc;
  letter-spacing: 0.055em;
}
.hero-meta span + span {
  border-left: 1px solid #78578a;
  padding-left: 1rem;
}

.hero-art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 46%;
  overflow: hidden;
  pointer-events: none;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#e3d0ff18 1px, transparent 1px), linear-gradient(90deg, #e3d0ff18 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: radial-gradient(ellipse at 58% 50%, black, transparent 75%);
}
.stack {
  position: absolute;
  width: clamp(165px, 23vw, 260px);
  aspect-ratio: 1;
  top: 50%;
  left: 51%;
  border-radius: 19%;
  transform: translate(-50%, -50%) rotate(-18deg);
}
.stack-back {
  margin: -27px 0 0 42px;
  background: #fbae76;
  border: 1px solid #ffd3a2;
  box-shadow: 0 17px 37px #170b30aa;
  transform: translate(-50%, -50%) rotate(-8deg);
}
.stack-middle {
  margin: -10px 0 0 23px;
  background: #6e46bb;
  border: 1px solid #e0a6ff;
  transform: translate(-50%, -50%) rotate(-13deg);
}
.stack-front {
  color: #281341;
  background: linear-gradient(140deg, #d2b6ff 0%, #af86ff 56%, #9665f3 100%);
  border: 1px solid #e1cdfe;
  box-shadow:
    0 21px 45px #16082970,
    inset 0 0 0 8px #ffffff23;
  display: grid;
  place-items: center;
}
.stack-front span {
  font: 650 clamp(5rem, 11vw, 9rem)/1 var(--mono);
  letter-spacing: -0.12em;
  transform: translate(-0.06em, -0.035em);
}
.stack-front i {
  font-style: normal;
  color: #fff1e3;
}
.orbit {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 82%;
  height: 44%;
  border: 1px solid #dcbcff5e;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-27deg);
}
.orbit-two {
  z-index: -1;
  width: 86%;
  height: 58%;
  transform: translate(-50%, -50%) rotate(27deg);
  border-color: #b09bee42;
}
.spark {
  position: absolute;
  color: #ffb67e;
  line-height: 1;
}
.spark-one {
  top: 19%;
  left: 20%;
  font-size: 2rem;
}
.spark-two {
  right: 11%;
  bottom: 20%;
  font-size: 1.85rem;
}
.spark-three {
  left: 24%;
  bottom: 18%;
  color: #d8b3ff;
  font-size: 1.7rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.stats article,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}
.stats article {
  min-height: 152px;
  padding: 1.25rem 1.45rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.28rem;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.93rem;
}
.stat-icon {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--purple);
  border-radius: 0.12rem;
}
.stat-icon.diamond {
  transform: rotate(45deg);
  background: #a56af1;
}
.stat-icon.circle {
  border-radius: 50%;
  background: #dd884c;
}
.stats strong {
  font-size: clamp(2.65rem, 4.8vw, 4.1rem);
  letter-spacing: -0.075em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}
.stat-detail {
  color: var(--muted);
  font-size: 0.875rem;
}
.stat-compare {
  margin-top: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: #fbeee2;
  color: #7a4317;
  font: 650 0.78rem var(--mono);
}
.chapter {
  margin-top: clamp(3.5rem, 6.5vw, 5.9rem);
  scroll-margin-top: 1.5rem;
}
.chapter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.3rem;
  margin-bottom: 1.25rem;
}
.eyebrow {
  color: #6f399d;
  margin-bottom: 0.45rem;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1.04;
}
.chapter-heading > p {
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.45;
  margin-bottom: 0.12rem;
}
.activity-panel {
  padding: 1.4rem clamp(1rem, 3vw, 2.25rem) 1.1rem;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
h3 {
  letter-spacing: -0.026em;
  font-size: 1.15rem;
}
.legend {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.95rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot {
  width: 0.62rem;
  height: 0.62rem;
  display: block;
  border-radius: 0.15rem;
}
.merged {
  background: var(--purple);
}
.other {
  background: #dbc9fa;
}
.dot.previous {
  height: 0.18rem;
  border-radius: 1rem;
  background: #dd884c;
}
.chart {
  height: 232px;
  position: relative;
  margin: 1.45rem 0 0.45rem;
  --axis: 2.35rem;
  --chart-label: 1.55rem;
}
.scale {
  position: absolute;
  height: calc(100% - var(--chart-label));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--axis);
  font: 0.75rem var(--mono);
  color: var(--muted);
  text-align: right;
  padding-right: 0.55rem;
  transform: translateY(-0.43rem);
}
.grid-lines {
  position: absolute;
  inset: 0 0 var(--chart-label) var(--axis);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%);
}
.bars {
  position: absolute;
  inset: 0 0 0 var(--axis);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.bar {
  display: grid;
  grid-template-rows: 1fr var(--chart-label);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.35rem;
  color: var(--muted);
}
.bar:hover,
.bar[aria-pressed="true"] {
  background: #f4edff9c;
  color: #482575;
}
.bar-body {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 0;
}
.bar-previous {
  position: absolute;
  left: 50%;
  width: 75%;
  max-width: 4.6rem;
  height: 3px;
  translate: -50% 50%;
  border-radius: 1rem;
  background: #dd884c;
  box-shadow: 0 0 0 1px var(--white);
}
.bar-stack {
  width: 55%;
  max-width: 3.5rem;
  min-width: 0.4rem;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 0.34rem 0.34rem 0 0;
}
.bar-stack span {
  display: block;
}
.bar[aria-pressed="true"] .merged {
  background: #5626a9;
}
.bar-label {
  font: 0.73rem var(--mono);
  align-self: end;
  padding-bottom: 0.08rem;
}
.bar-short {
  display: none;
}
.month-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
  padding: 0.83rem 1rem;
  border-radius: 0.57rem;
  background: #f5effc;
  color: #544567;
  font-size: 0.875rem;
}
.month-detail strong {
  color: #3f2364;
}
.month-detail .partial {
  margin-left: auto;
}
.month-detail .previous-detail {
  color: #7a4317;
}
.repo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.repo-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(4rem, 1.5fr) 4rem;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.35rem;
}
.repo-row + .repo-row {
  border-top: 1px solid #ede8ee;
}
.repo-row a {
  width: fit-content;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.repo-row a span {
  color: var(--muted);
  font-weight: 500;
}
.repo-track {
  height: 0.5rem;
  background: #ede7f4;
  border-radius: 1rem;
  overflow: hidden;
}
.repo-track i {
  display: block;
  min-width: 0.35rem;
  height: 100%;
  border-radius: 1rem;
  background: var(--purple);
}
.repo-count {
  font: 650 0.95rem var(--mono);
  text-align: end;
}
.text-button {
  background: none;
  border: 0;
  border-top: 1px solid #ede8ee;
  color: #5b3092;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  text-align: start;
  width: 100%;
  border-radius: 0 0 1.1rem 1.1rem;
}
.text-button:hover {
  background: #f5effc;
}
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.highlight {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.57rem;
  min-height: 148px;
  padding: 1.3rem 1.4rem;
  background: #f0e5ff;
  border: 1px solid #e5d6f9;
  border-radius: 1.1rem;
}
.highlight:nth-child(2n) {
  background: #faece0;
  border-color: #f2e0d0;
}
.highlight small {
  font: 650 0.79rem var(--mono);
  color: #614685;
}
.highlight:nth-child(2n) small {
  color: #78492b;
}
.highlight p {
  color: #53485e;
  font: 0.81rem var(--mono);
  margin-top: auto;
  overflow-wrap: anywhere;
}
.end-panel {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding: 1.65rem clamp(1.25rem, 3vw, 2.6rem);
  border-radius: 1.1rem;
  background: #271636;
  color: #fff9f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.end-panel h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
}
.end-panel p {
  margin-top: 0.4rem;
  color: #e3d4ef;
}
.end-panel button {
  background: #c9a9ff;
  color: #2a143c;
  border: 0;
  border-radius: 0.52rem;
  font-weight: 750;
  padding: 0.68rem 1rem;
  white-space: nowrap;
}
.end-panel button:hover {
  background: #dac4ff;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  padding: 1.3rem 0.1rem 2.2rem;
  font-size: 0.91rem;
  line-height: 1.5;
}
footer details {
  max-width: 69ch;
}
footer summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}
footer details p,
footer details a {
  margin-top: 0.6rem;
}
footer details a {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
footer > a {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    min-height: 355px;
  }
  .topbar {
    gap: 0.75rem;
  }
  nav {
    gap: 1rem;
  }
}
@media (max-width: 660px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topbar {
    height: 62px;
    grid-template-columns: 1fr 1fr;
  }
  nav {
    display: none;
  }
  .hero {
    min-height: 390px;
    align-items: stretch;
    padding: 1.6rem 1.2rem;
    border-radius: 1.1rem;
  }
  h1 {
    font-size: clamp(3.35rem, 12vw, 5rem);
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .hero-meta span + span {
    padding-left: 0.5rem;
  }
  .hero-art {
    inset: 32% -40px -38px 43%;
  }
  .stack {
    width: clamp(98px, 28vw, 160px);
  }
  .stack-back {
    margin: -15px 0 0 20px;
  }
  .stack-middle {
    margin: -7px 0 0 11px;
  }
  .stack-front span {
    font-size: clamp(3.15rem, 15vw, 4.7rem);
  }
  .spark-one {
    left: 13%;
  }
  .spark-two {
    right: 21%;
    bottom: 16%;
  }
  .stats {
    gap: 0.45rem;
  }
  .stats article {
    min-height: 122px;
    padding: 0.7rem 0.52rem;
    gap: 0.3rem;
  }
  .stats strong {
    font-size: clamp(1.9rem, 7.4vw, 3rem);
  }
  .stat-label {
    font-size: 0.81rem;
    align-items: baseline;
    line-height: 1.15;
    gap: 0.28rem;
  }
  .stat-icon {
    flex-shrink: 0;
    width: 0.42rem;
    height: 0.42rem;
  }
  .stat-detail {
    font-size: 0.74rem;
    line-height: 1.23;
  }
  .stat-compare {
    font-size: 0.66rem;
    padding: 0.15rem 0.3rem;
  }
  .chapter-heading {
    display: block;
  }
  .chapter-heading > p {
    margin-top: 0.6rem;
  }
  .chart-top {
    flex-wrap: wrap;
  }
  .chart {
    height: 180px;
    --axis: 1.8rem;
  }
  .bar-label {
    font-size: 0.67rem;
  }
  .bar-long {
    display: none;
  }
  .bar-short {
    display: inline;
  }
  .month-detail .partial {
    margin-left: 0;
  }
  .repo-row {
    grid-template-columns: minmax(0, 1fr) minmax(2rem, 0.4fr) 2.65rem;
    padding-inline: 0.8rem;
    gap: 0.5rem;
  }
  .text-button {
    padding-inline: 0.8rem;
  }
  .highlight {
    min-height: 128px;
    padding: 1rem;
  }
  .highlights-grid {
    gap: 0.65rem;
  }
  .end-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    flex-direction: column;
  }
}
@media (max-width: 390px) {
  .highlight h3 {
    font-size: 1rem;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
.repo-row[hidden] {
  display: none;
}
