@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #070708;
  color-scheme: dark;
}

body {
  margin: 0;
  background: #070708;
  color: #f2f2ef;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #f2f2ef;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  padding: 8px 12px;
  background: #f2f2ef;
  color: #141416;
}

.skip:focus {
  top: 12px;
}

.hero {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  padding-top: 64px;
  overflow: hidden;
  background: #070708;
}

#morphism,
#record {
  scroll-margin-top: 80px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  background: #070708;
  border-bottom: 1px solid #3a3a3e;
}

.mark {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
  justify-self: start;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 10px;
  font-size: 15px;
}

.nav-end {
  justify-self: end;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #f2f2ef;
  color: #141416;
  border: 1px solid #f2f2ef;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #141416;
}

.btn:active {
  transform: translateY(1px);
}

.ascii {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  overflow: hidden;
}

.ascii pre {
  margin: 0;
  color: #e4e4e0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  font-variant-ligatures: none;
  white-space: pre;
}

.ascii-d {
  font-size: clamp(6px, min(calc((100vw - 48px) / 108), calc((100dvh - 280px) / 42)), 15px);
}

.ascii-m {
  display: none;
  font-size: clamp(6px, min(calc((100vw - 28px) / 58), calc((100dvh - 300px) / 22)), 15px);
}

.band {
  flex: 0 0 auto;
  background: #121214;
  border-top: 1px solid #4a4a50;
  padding: 26px 0 30px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.band-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

h1,
h2,
.v,
.plate-n {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  padding-bottom: 2px;
}

.band p,
.lead,
.k,
.foot {
  margin: 0;
}

.sub {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.4;
  color: #d4d4d0;
}

.plate {
  min-width: 148px;
  padding: 14px 18px 16px;
  background: #070708;
  border: 1px solid #2a2a2e;
  border-top-color: #5a5a60;
}

.plate-n {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
}

.plate-k {
  display: block;
  margin-top: 4px;
  color: #b5b5b0;
  font-size: 15px;
}

.work {
  background: #121214;
  border-top: 1px solid #3a3a3e;
  padding: 88px 0 96px;
}

h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  padding-bottom: 2px;
}

.lead {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  color: #e4e4e0;
}

.source {
  margin: 18px 0 0;
  font-size: 16px;
}

.source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin-top: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 220px;
  padding: 22px;
  background: #070708;
  border: 1px solid #2a2a2e;
  border-top-color: #4e4e54;
}

.tile-focus {
  background: #f2f2ef;
  color: #141416;
  border-color: #d8d8d4;
  border-top-color: #ffffff;
}

.k {
  max-width: 28ch;
  color: #b5b5b0;
  font-size: 15px;
  line-height: 1.4;
}

.tile-focus .k {
  color: #3a3a3e;
}

.v {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: clamp(32px, 3vw, 46px);
}

.foot {
  background: #070708;
  border-top: 1px solid #2a2a2e;
  padding: 28px 0;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  align-items: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .nav {
    padding: 0 16px;
  }

  .nav-links a {
    padding: 8px 6px;
    font-size: 14px;
  }

  .btn {
    padding: 10px 12px;
    font-size: 14px;
  }

  .ascii {
    padding: 8px 12px;
  }

  .ascii-d {
    display: none;
  }

  .ascii-m {
    display: block;
  }

  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .band-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .tile {
    min-height: 0;
  }

  .work {
    padding: 56px 0 64px;
  }

  .foot-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}
