.hero {
  overflow: hidden;
}

.commit-lab {
  position: relative;
}

.commit-console {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(216, 255, 109, 0.34);
  background: linear-gradient(
    145deg,
    rgba(216, 255, 109, 0.055),
    rgba(207, 240, 236, 0.025) 55%,
    transparent
  );
  box-shadow:
    0 0 80px rgba(207, 240, 236, 0.045),
    inset 0 0 0 1px rgba(5, 7, 6, 0.8);
}

.commit-console::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(transparent 50%, rgba(216, 255, 109, 0.018) 50%);
  background-size: 100% 6px;
}

.commit-equation {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  letter-spacing: 0.08em;
}

.commit-readout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) 0 1.4rem;
}

.commit-number {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 11vw, 10rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 0.72;
}

.commit-unit {
  display: block;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.commit-goal {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.commit-goal span {
  display: block;
  color: var(--acid);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.commit-goal small {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commit-meter {
  display: block;
  width: 100%;
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(207, 240, 236, 0.25);
  background: #020303;
  appearance: none;
}

.commit-meter::-webkit-progress-bar {
  background: #020303;
}

.commit-meter::-webkit-progress-value,
.commit-meter::-moz-progress-bar {
  background: linear-gradient(90deg, var(--mint), var(--acid));
  box-shadow: 0 0 18px rgba(216, 255, 109, 0.4);
}

.commit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.commit-stats p {
  margin: 0;
  padding: 1.2rem;
  background: var(--ink);
}

.commit-stats strong,
.commit-stats span {
  display: block;
}

.commit-stats strong {
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
}

.commit-stats span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0 1rem;
}

.repo-ledger {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.4rem, 5vw, 4rem);
}

.repo-ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.repo-ledger-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.repo-ledger-head p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.repo-ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.repo-card {
  display: grid;
  grid-template-rows: auto minmax(2.7em, auto) auto auto;
  gap: 0.65rem;
  height: 100%;
  padding: 1.25rem;
  background: linear-gradient(145deg, #090c0b, var(--ink));
  color: var(--white);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.repo-card:hover,
.repo-card:focus-visible {
  background: rgba(207, 240, 236, 0.07);
}

.repo-card strong {
  overflow-wrap: anywhere;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.repo-description {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.repo-facts,
.repo-updated {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  line-height: 1.45;
}

.repo-facts {
  color: var(--acid);
}

.repo-updated {
  color: #71807b;
}

.activity-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.activity-head a {
  color: var(--acid);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.commit-feed {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.commit-feed li {
  border-bottom: 1px solid var(--line);
}

.commit-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 110px minmax(170px, 0.34fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.2rem;
}

.commit-entry a {
  color: var(--white);
  text-decoration: none;
}

.commit-entry a:hover,
.commit-entry a:focus-visible {
  color: var(--acid);
}

.commit-sha {
  color: var(--acid) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.commit-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-entry time,
.commit-repo {
  color: var(--muted) !important;
  font-size: 0.72rem;
}

.commit-entry time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.commit-repo {
  overflow-wrap: anywhere;
  text-align: right;
}

.commit-feed > li > a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(130px, 0.3fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.2rem;
  color: var(--white);
  text-decoration: none;
}

.commit-feed > li > a:hover,
.commit-feed > li > a:focus-visible {
  background: rgba(207, 240, 236, 0.035);
}

.commit-feed > li > a code {
  color: var(--acid);
}

.commit-feed > li > a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-feed > li > a small {
  color: var(--muted);
  text-align: right;
}

.commit-method {
  max-width: 900px;
  margin: 1.5rem 0 0;
  color: #71807b;
  font-size: 0.7rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .commit-readout {
    align-items: flex-start;
    flex-direction: column;
  }

  .commit-goal {
    text-align: left;
  }

  .commit-stats {
    grid-template-columns: 1fr;
  }

  .commit-feed > li > a {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .repo-ledger-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .repo-ledger-grid {
    grid-template-columns: 1fr;
  }

  .commit-entry {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.55rem 0.8rem;
  }

  .commit-entry time {
    grid-column: 2;
  }

  .commit-repo {
    grid-column: 2;
    text-align: left;
  }

  .commit-feed > li > a small {
    grid-column: 2;
    text-align: left;
  }

  .commit-number {
    font-size: clamp(4rem, 18vw, 7rem);
  }
}
