:root {
  --ink: #050505;
  --paper: #ffffff;
  --blue: #0a6bd6;
  --bright-blue: #148dfe;
  --deep-blue: #00429d;
  --cyan: #46c3fe;
  --pale-blue: #eaf6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header,
.hero,
.features,
.stack,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

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

.brand img {
  display: block;
  width: 220px;
  height: auto;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
footer a {
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  border-color: var(--bright-blue);
}

.hero {
  padding: 108px 0 112px;
}

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

h1 {
  margin-bottom: 30px;
  color: var(--blue);
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.intro {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.project-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.project-link-primary {
  background: var(--bright-blue);
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.features {
  border: 3px solid var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  min-height: 235px;
  padding: 42px;
  border-bottom: 3px solid var(--ink);
  scroll-margin-top: 24px;
}

.feature:last-child {
  border-bottom: 0;
}

.number {
  margin-bottom: 0;
  color: var(--deep-blue);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
}

.feature h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.feature div > p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}

.feature-modern {
  background: var(--paper);
}

.feature-complete {
  background: var(--pale-blue);
}

.feature-modular {
  background: var(--cyan);
}

.feature-free {
  background: var(--bright-blue);
}

.stack {
  margin-top: 96px;
}

.stack-heading {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  margin-bottom: 36px;
}

.stack-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.stack-heading div > p {
  margin-bottom: 0;
  font-size: 18px;
}

.stack-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter,
.detail-nav button {
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  background: var(--ink);
  color: var(--paper);
}

.stack-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  align-items: start;
  border: 3px solid var(--ink);
}

.logo-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 118px;
  gap: 3px;
  padding-right: 3px;
  background: var(--ink);
}

.tech-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.tech-tile[hidden] {
  display: none;
}

.tech-tile img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.tech-tile span {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-tile strong {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.tech-tile:hover,
.tech-tile:focus-visible {
  outline: 5px solid var(--ink);
  outline-offset: -8px;
}

.tech-tile.is-selected {
  outline: 7px solid var(--ink);
  outline-offset: -10px;
}

.tile-wide {
  grid-column: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-blue {
  background: var(--bright-blue);
}

.tile-cyan {
  background: var(--cyan);
}

.tile-pale {
  background: var(--pale-blue);
}

.tile-large img,
.tile-tall img {
  width: 82px;
  height: 82px;
}

.tile-large span,
.tile-tall span,
.tile-wide span {
  font-size: 15px;
}

.tile-go img {
  width: 76px;
}

.tile-solid img {
  width: 94px;
  height: 94px;
}

.tile-rust img {
  width: 96px;
  height: 96px;
}

.tile-api img {
  width: 58px;
  height: 58px;
}

.tile-bevy img {
  width: 76px;
  height: 58px;
}

.tile-luau img {
  width: 104px;
  height: 68px;
  align-self: center;
}

.tech-detail {
  position: sticky;
  top: 0;
  min-height: 475px;
  padding: 30px;
  background: var(--paper);
}

.detail-kicker,
#detail-index {
  margin-bottom: 18px;
  color: var(--deep-blue);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-title-row {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--ink);
}

.detail-title-row h3 {
  max-width: 260px;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

#detail-index {
  flex: 0 0 auto;
  margin: 3px 0 0;
  color: var(--ink);
}

.detail-description {
  min-height: 128px;
  margin: 24px 0;
  font-size: 17px;
  line-height: 1.55;
}

.detail-facts {
  margin: 0;
}

.detail-facts > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #a8a8a8;
}

.detail-facts dt,
.detail-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.detail-facts dt {
  font-weight: 800;
}

.detail-nav {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  margin-top: 26px;
}

.detail-nav button:hover,
.detail-nav button:focus-visible {
  background: var(--bright-blue);
}

footer {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 96px;
  border-top: 3px solid var(--ink);
}

footer img {
  width: 190px;
  height: auto;
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .features,
  .stack,
  footer {
    width: min(100% - 28px, 1120px);
  }

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

  .brand img {
    width: 174px;
  }

  nav {
    display: none;
  }

  .hero {
    padding: 76px 0 80px;
  }

  h1 {
    margin-bottom: 24px;
  }

  .intro {
    font-size: 20px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 30px;
  }

  .project-link {
    width: 100%;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 28px 24px 34px;
  }

  .feature div > p {
    font-size: 16px;
  }

  .stack {
    margin-top: 72px;
  }

  .stack-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .stack-filters {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
  }

  .filter {
    flex: 0 0 auto;
  }

  .stack-browser {
    grid-template-columns: 1fr;
  }

  .logo-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 104px;
    padding-right: 0;
    padding-bottom: 3px;
  }

  .tech-tile {
    padding: 14px;
  }

  .tech-tile img {
    width: 38px;
    height: 38px;
  }

  .tile-large img,
  .tile-tall img {
    width: 64px;
    height: 64px;
  }

  .tile-go img {
    width: 66px;
  }

  .tile-solid img,
  .tile-rust img {
    width: 70px;
    height: 70px;
  }

  .tech-detail {
    position: static;
    min-height: 0;
    padding: 24px 20px;
    border-top: 3px solid var(--ink);
  }

  .detail-description {
    min-height: 0;
  }

  footer {
    min-height: 140px;
    margin-top: 72px;
  }

  footer img {
    width: 160px;
  }
}
