:root {
  font-family: 'JetBrains Mono Nerd Font', monospace;
}

body {
  position: relative;
  overflow-x: hidden;
  background: #303446;
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100vw;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: calc(50% - 50vw);
  padding: 0 max(32px, calc((100vw - 1116px) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--base) 18%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.nav-wrap::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(180deg, rgba(198, 208, 245, .08), rgba(198, 208, 245, .015));
  opacity: .9;
  pointer-events: none;
}

.nav-wrap.nav-solid {
  border-color: var(--surface-0);
  background: var(--base);
  box-shadow: 0 12px 30px rgba(35, 38, 52, .22);
}

.nav-wrap.nav-solid::before {
  opacity: 0;
}

.wordmark,
footer div {
  color: var(--text);
  font: 600 15px 'JetBrains Mono Nerd Font', monospace;
  text-decoration: none;
  letter-spacing: .02em;
}

.mark {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--subtext-0);
  font: 500 12px 'JetBrains Mono Nerd Font', monospace;
}

.icon,
.stack-icon,
.choice-icon {
  font-family: 'JetBrains Mono Nerd Font';
  font-style: normal;
}

.icon {
  color: var(--green);
  font-size: 19px;
  line-height: 1;
  vertical-align: -3px;
}

.nav-links a,
footer a {
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a:hover,
footer a:hover,
.text-link:hover {
  color: var(--green);
}

.x-link {
  color: var(--text) !important;
}

.wallpaper {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 920px;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(48, 52, 70, 0) 0%, rgba(48, 52, 70, 0) 28%, rgba(48, 52, 70, .24) 42%, rgba(48, 52, 70, .82) 70%, #303446 84%, #303446 100%),
    url('/arindam-saha-wallpaper.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .92;
}

.hero {
  min-height: min(760px, calc(100vh - 88px));
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 48px;
  padding: 36px 0 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 5px rgba(35, 38, 52, .7);
}

.section-number,
.label {
  color: var(--green);
  font: 500 30px 'JetBrains Mono Nerd Font', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  margin: 21px 0 25px;
  color: var(--text);
  font-size: clamp(48px, 7.5vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}

h1 em {
  color: var(--green);
  font-style: normal;
}

.lede {
  max-width: 510px;
  color: var(--subtext-0);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 500 12px 'JetBrains Mono Nerd Font', monospace;
  transition: transform .2s ease, background .2s ease;
}

.button-primary {
  color: var(--crust);
  background: var(--green);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #b8df9a;
}

.text-link {
  color: var(--subtext-0);
  font: 500 12px 'JetBrains Mono Nerd Font', monospace;
  text-decoration: none;
}

.text-link span {
  color: var(--green);
}

.hero-aside {
  justify-self: end;
  width: 224px;
  transform: translateY(-18px);
}

.portrait-frame {
  border: 1px solid var(--surface-1);
  border-radius: 8px;
  padding: 10px;
  background: var(--mantle);
  overflow: hidden;
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
  filter: saturate(.8);
}

.aside-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 0 18px;
  border-left: 1px solid var(--green);
  color: var(--subtext-0);
  font: 500 12px/1.6 'JetBrains Mono Nerd Font', monospace;
}

.aside-note .label {
  color: var(--overlay-0);
  font-size: 10px;
}

.ticker {
  display: flex;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--surface-0);
  border-bottom: 1px solid var(--surface-0);
  padding: 12px 0;
  color: var(--subtext-0);
  font: 500 10px 'JetBrains Mono Nerd Font', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.ticker span:first-child,
.dot {
  color: var(--green);
}

.stack-section,
.software-section,
.about-section {
  padding: 68px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface-0);
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 21px;
}

h2 {
  color: var(--text);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.section-caption {
  color: var(--overlay-0);
  font: 11px 'JetBrains Mono Nerd Font', monospace;
}

.stack-list,
.choices-panel {
  background: transparent;
  margin-top: 8px;
}

.stack-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--surface-0) 58%, transparent);
}

.stack-item:last-child {
  border-bottom: 0;
}

.stack-item > span {
  color: var(--green);
  font: 10px 'JetBrains Mono Nerd Font', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.stack-item .stack-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 34%, transparent);
  border-radius: 6px;
  font-size: 34px;
  line-height: 1;
}

.stack-item > span:not(.stack-icon) {
  display: none;
}

.stack-item strong {
  color: var(--text);
  font: 500 15px 'JetBrains Mono Nerd Font', monospace;
}

.stack-item small {
  color: var(--overlay-0);
  font: 10px 'JetBrains Mono Nerd Font', monospace;
}

.choice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--surface-0) 58%, transparent);
}

.choice-row:last-child {
  border-bottom: 0;
}

.choice-row > span {
  color: var(--overlay-0);
  font: 10px 'JetBrains Mono Nerd Font', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.choice-row strong {
  color: var(--text);
  font: 500 12px 'JetBrains Mono Nerd Font', monospace;
  text-align: right;
}

.choice-icon {
  display: inline-block;
  width: 30px;
  margin-right: 8px;
  color: var(--green);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: -5px;
}

.choice-row i {
  color: var(--green);
  font-style: normal;
}

.about-section {
  border-top: 1px solid var(--surface-0);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  padding-top: 24px;
}

.about-lede {
  max-width: 380px;
  color: var(--green);
  font-size: 35px;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.about-copy {
  max-width: 430px;
  color: var(--subtext-0);
  font-size: 14px;
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0 30px;
  border-top: 1px solid var(--surface-0);
  color: var(--overlay-0);
  font: 10px 'JetBrains Mono Nerd Font', monospace;
}

footer a {
  color: var(--subtext-0);
}

@media (max-width: 700px) {
  .site-shell {
    padding: 0 19px;
  }

  .nav-wrap {
    height: 72px;
    padding: 0 19px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a:not(.x-link):not(.github-link) {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0 42px;
  }

  h1 {
    font-size: clamp(47px, 14vw, 72px);
  }

  .lede {
    font-size: 15px;
  }

  .hero-aside {
    align-self: flex-end;
    width: 180px;
    transform: none;
  }

  .ticker {
    gap: 13px;
    overflow: hidden;
    white-space: nowrap;
  }

  .ticker span:nth-child(n + 5) {
    display: none;
  }

  .stack-section,
  .software-section,
  .about-section {
    padding: 48px 0;
  }

  .section-caption {
    display: none;
  }

  .stack-item {
    grid-template-columns: 54px 1fr;
    gap: 9px 16px;
  }

  .stack-item small {
    grid-column: 2;
  }

  .choice-row {
    align-items: flex-start;
  }

  .choice-row strong {
    max-width: 55%;
    line-height: 1.6;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    min-height: 205px;
  }

  .about-grid {
    gap: 35px;
  }

  .about-lede {
    font-size: 32px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
