:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #f2f2f2;
  background: #0a0a0c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 78% 8%, #292930 0%, transparent 45%),
    linear-gradient(165deg, #151518 0%, #0a0a0c 65%);
}

body::before {
  content: "";
  position: fixed;
  inset: -22vh 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/chip-background.jpg") center / cover no-repeat;
  opacity: .055;
  transform: translate3d(0, var(--background-shift, 0px), 0);
}

a {
  color: inherit;
  text-underline-offset: .25em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid #f2f2f2;
  outline-offset: 6px;
}

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  padding: 1rem;
  background: #151518;
  z-index: 2;
}

.skip:focus {
  top: 1rem;
}

.hero {
  min-height: 80svh;
  max-width: 1800px;
  margin: auto;
  padding: clamp(2rem, 7vh, 5rem) 7vw 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 8vw;
}

.welcome-block {
  align-self: start;
  padding-top: .35rem;
}

.welcome-label {
  color: #aaaab4;
  font-size: .85rem;
  margin: 0 0 1.25rem;
  letter-spacing: .02em;
}

h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 0;
  font-weight: 600;
  min-height: 3.75em;
  text-wrap: pretty;
}

.audio-guide {
  border: 1px solid #72727c;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffffff08, #ffffff02);
  align-self: start;
  margin-top: .35rem;
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
}

.audio-guide h2 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.045em;
}

.audio-intro {
  font-weight: 500;
  line-height: 1.5;
  margin: 1.5rem 0;
  font-size: 1rem;
}

#audio-status {
  font-size: .8rem;
  line-height: 1.5;
  margin: 1.25rem 0 0;
  color: #aaaab4;
}

.player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

[hidden] {
  display: none !important;
}

button {
  background: #f2f2f2;
  color: #111114;
  border: 2px solid #f2f2f2;
  padding: .6rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

#greeting.is-typing::after {
  content: "";
  display: inline-block;
  height: .9em;
  border-right: .055em solid #aaaab4;
  margin-left: .08em;
  vertical-align: -.05em;
  animation: typing-cursor .65s step-end infinite;
}

input[type="range"] {
  accent-color: #f2f2f2;
  min-width: 70px;
  width: 100px;
  flex: 1;
}

#time {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.seek-label, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.identity {
  grid-column: 1 / -1;
  align-self: end;
  text-align: center;
  padding: clamp(4rem, 12vh, 9rem) 0 1rem;
}

.wordmark {
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: clamp(2rem, 8.1vw, 9rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.matrix-display {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  aspect-ratio: 77 / 8;
  margin-inline: auto;
  fill: #f2f4fa;
  filter: drop-shadow(0 0 2px #ffffff18);
}

@keyframes typing-cursor {
  0%, 100% {
    border-color: transparent;
  }

  50% {
    border-color: #aaaab4;
  }

}

.handle {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 1.5rem 0 0;
  color: #aaaab4;
}

.section-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  border-bottom: 1px solid #3a3a42;
  padding: 1.3rem 0;
  margin: 0 7vw;
  font-size: .85rem;
  font-weight: 700;
}

.section-nav a {
  text-decoration: none;
  padding-block: .35rem;
}

.section-nav a:hover {
  text-decoration: underline;
}

.content-section {
  margin: 0 7vw;
  padding: 5rem 0;
  border-bottom: 1px solid #3a3a42;
  display: grid;
  grid-template-columns: 20% 1fr;
}

.section-number {
  font-size: .9rem;
  font-weight: 700;
  padding-top: .7rem;
}

.content-section h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -.05em;
  margin: 0 0 2rem;
}

.content-section p {
  max-width: 650px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.placeholder {
  color: #aaaab4;
}

.project {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid #3a3a42;
  padding: 2rem 0 0;
  margin-top: 2.5rem;
  max-width: 850px;
}

.project-date {
  color: #aaaab4;
  font-size: .8rem;
  line-height: 1.6;
  padding-top: .4rem;
}

.project h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.project p {
  margin: 0;
  color: #aaaab4;
  font-size: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: .65rem 1rem;
  border: 1px solid #72727c;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}

.project-link:hover {
  background: #f2f2f2;
  border-color: #f2f2f2;
  color: #111114;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #3a3a42;
  border-radius: 4px;
  color: #c4c4ce;
}

.social-links a:hover {
  border-color: #aaaab4;
  background: #ffffff0a;
  color: #fff;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

footer {
  margin: 0 7vw;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(85svh - 5rem);
    padding: 2.5rem 6vw;
  }

  h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .audio-guide {
    margin-top: 2.2rem;
    min-height: 0;
    padding: 1.2rem;
    width: 100%;
  }

  .audio-intro {
    margin: 1.3rem 0;
  }

  .identity {
    align-self: stretch;
    margin-top: auto;
    padding: 4rem 0 1rem;
  }

  .wordmark {
    font-size: 8.7vw;
  }

  .section-nav, .content-section, footer {
    margin-inline: 6vw;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 0;
  }

  .content-section h2 {
    margin-bottom: 1.5rem;
  }

  .project {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: 1.5rem 0 0;
    margin-top: 2rem;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
  }

}

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

  body::before {
    position: absolute;
    inset: 0;
    transform: none;
  }

}
