:root {
  --ink: #f3f0e9;
  --muted: #a8a8ad;
  --paper: #090b10;
  --panel: #11141b;
  --panel-2: #171b24;
  --line: #292e3a;
  --violet: #9b78ff;
  --violet-strong: #7a49ff;
  --mint: #92f7bd;
  --max: 1180px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(122, 73, 255, 0.16), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: #090b10;
  background: var(--mint);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #090b10;
  background: var(--mint);
  transform: translateY(-150%);
}

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

.site-header,
.hero,
.section,
.final-cta,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.wordmark-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.desktop-nav a,
.text-link,
.channel-list a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--mint);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.button-small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
}

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

.button-primary {
  color: #0a0710;
  background: var(--violet);
  box-shadow: 0 12px 36px rgba(122, 73, 255, 0.22);
}

.button-primary:hover {
  background: #aa8cff;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.button-ghost:hover {
  border-color: #666d7d;
  background: var(--panel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 670px;
  padding-block: 5.5rem;
}

.eyebrow,
.section-index,
.repo-kicker,
.topic-tag,
.panel-topline,
.live-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
}

.eyebrow,
.section-index {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(146, 247, 189, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.8rem;
  font-size: clamp(4rem, 8vw, 7.35rem);
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #8b8d96;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 2rem;
  color: #c3c2c4;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.microcopy {
  margin: 0.75rem 0 0;
  color: #777a84;
  font-size: 0.72rem;
}

.microcopy strong {
  color: #aaaeb8;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #353b49;
  border-radius: var(--radius);
  background: rgba(17, 20, 27, 0.92);
  box-shadow: 24px 24px 0 rgba(122, 73, 255, 0.11);
}

.profile-panel::before {
  position: absolute;
  top: -140px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(155, 120, 255, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(155, 120, 255, 0.06),
    0 0 0 83px rgba(155, 120, 255, 0.04);
  content: "";
}

.panel-topline,
.identity-row,
.terminal,
.panel-follow {
  position: relative;
  z-index: 1;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: #8c909b;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.5);
}

.live-label {
  color: var(--mint);
}

.identity-row {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  padding: 2rem;
}

.avatar {
  width: 116px;
  height: 116px;
  border: 1px solid #3d4351;
  border-radius: 2px;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.handle {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.role {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.terminal {
  margin: 0 2rem 2rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: #090b10;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.75;
}

.prompt {
  color: var(--mint);
}

.terminal-output {
  padding-left: 1.15rem;
  color: #979ca8;
}

.panel-follow {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  color: var(--paper);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-block: 1px solid var(--line);
  background: #0d1016;
}

.proof-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1rem;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.72rem;
}

.section {
  padding-block: 8rem;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.section-heading h2,
.contributions-header h2,
.elsewhere h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(3.1rem, 6.5vw, 6.2rem);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.signal-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 2rem;
  background: var(--panel);
}

.signal-card.featured {
  background: var(--violet-strong);
}

.card-number {
  margin-bottom: auto;
  color: #7e828e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.featured .card-number,
.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.signal-card h3 {
  max-width: 240px;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.signal-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.topic-tag {
  margin-top: 1.25rem;
  color: var(--mint);
}

.featured .topic-tag {
  color: #fff;
}

.work-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--max)) / 2));
  background: #0d1016;
}

.section-heading-wide {
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
}

.section-heading-wide > p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
}

.repo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.repo-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.repo-card:hover,
.repo-card:focus-visible {
  border-color: var(--violet);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.repo-kicker {
  margin-bottom: auto;
  color: var(--violet);
}

.repo-name {
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.repo-description {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.9rem;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  color: #848995;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.repo-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.repo-meta b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 650;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 2.2rem;
  border-bottom: 1px solid #656976;
  font-size: 0.82rem;
}

.contributions-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--max)) / 2));
}

.contributions-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4.5rem;
}

.contributions-summary {
  max-width: 520px;
  padding-left: 1.25rem;
  border-left: 2px solid var(--mint);
}

.contributions-summary strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contributions-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.contribution-row {
  display: grid;
  grid-template-columns: minmax(185px, 0.55fr) minmax(0, 1.45fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 104px;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.contribution-row:hover,
.contribution-row:focus-visible {
  padding-inline: 1.25rem 0.75rem;
  color: var(--mint);
  background: rgba(146, 247, 189, 0.035);
}

.contribution-repo,
.contribution-link,
.pull-state {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
}

.contribution-repo {
  color: var(--violet);
  overflow-wrap: anywhere;
}

.contribution-title {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pull-state {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pull-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pull-state.merged {
  color: var(--mint);
}

.pull-state.closed {
  color: #8c909b;
}

.contribution-link {
  color: #8c909b;
  white-space: nowrap;
}

.elsewhere {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-list a {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.channel-list a:hover,
.channel-list a:focus-visible {
  color: var(--mint);
}

.channel-list span {
  font-weight: 750;
}

.channel-list small {
  color: var(--muted);
}

.final-cta {
  display: flex;
  min-height: 700px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 2.4rem;
}

.button-large {
  min-height: 60px;
  padding-inline: 1.7rem;
}

.final-cta > p:last-child {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 125px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.mobile-follow {
  display: none;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.8rem 1rem;
  color: var(--paper);
  background: var(--mint);
  font-size: 0.75rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 4.5rem 5.5rem;
  }

  .profile-panel {
    max-width: 620px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .section-heading-wide,
  .contributions-header,
  .elsewhere {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: 270px;
  }

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

  .contribution-row {
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) auto;
  }

  .contribution-link {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 66px;
  }

  .site-header,
  .hero,
  .section,
  .final-cta,
  footer {
    width: min(calc(100% - 2rem), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .site-header .button {
    display: none;
  }

  .hero {
    gap: 3.4rem;
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .profile-panel {
    box-shadow: 10px 10px 0 rgba(122, 73, 255, 0.12);
  }

  .identity-row {
    padding: 1.3rem;
  }

  .avatar {
    width: 86px;
    height: 86px;
  }

  .terminal {
    margin: 0 1.3rem 1.3rem;
  }

  .panel-follow {
    padding-inline: 1.3rem;
  }

  .proof-strip strong {
    font-size: 1.5rem;
  }

  .proof-strip span {
    font-size: 0.64rem;
  }

  .section {
    padding-block: 5.5rem;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .signal-card,
  .repo-card {
    padding: 1.4rem;
  }

  .repo-card {
    min-height: 280px;
  }

  .work-section {
    width: 100%;
    padding-inline: 1rem;
  }

  .contributions-section {
    width: 100%;
    padding-inline: 1rem;
  }

  .contributions-header {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .contribution-row {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
    min-height: 0;
    padding-block: 1.4rem;
  }

  .contribution-title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.88rem;
  }

  .contribution-repo {
    grid-column: 1;
    grid-row: 1;
  }

  .pull-state {
    grid-column: 2;
    grid-row: 1;
  }

  .channel-list a {
    grid-template-columns: 1fr auto;
  }

  .channel-list small {
    display: none;
  }

  .final-cta {
    min-height: 580px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-block: 2rem;
  }

  footer p:last-child {
    justify-self: start;
  }

  .mobile-follow {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 1.2rem;
    color: #090b10;
    background: var(--mint);
    font-size: 0.82rem;
    font-weight: 850;
  }

  .toast {
    right: 1rem;
    bottom: 75px;
  }
}

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

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