:root {
  color-scheme: dark;
  background: #0e0e0e;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dock-top: 24px;
  --section-gap: 32px;
  --duration: 560ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #0e0e0e;
}

html {
  scroll-behavior: auto;
}

body {
  color: #ffffff;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #ffffff;
  background: #0e0e0e;
  transform: translateY(-180%);
}

.skip-link:focus {
  top: max(74px, calc(env(safe-area-inset-top) + 54px));
  left: max(20px, env(safe-area-inset-left));
  transform: none;
}

/* Without JavaScript, both sections remain readable in normal page flow. */
.identity-dock {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: gap var(--duration) var(--ease);
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  transition: width var(--duration) var(--ease);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 38px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
}

.social-link:focus-visible,
.logo-link:focus-visible,
.stuff-item:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  transform: scale(1);
  opacity: 1;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}

/* Scale the artwork, not the link's hit area. */
.social-links.is-highlighted .social-link:not(.is-active) .social-icon {
  transform: scale(0.82);
  opacity: 0.65;
}

.social-link.is-active .social-icon {
  transform: scale(1.25);
  opacity: 1;
}

.icon-label {
  position: fixed;
  z-index: 30;
  left: max(20px, env(safe-area-inset-left));
  top: max(20px, env(safe-area-inset-top));
  width: 0;
  height: 42px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: #ffffff;
  background: #252525;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 -1px 0 rgb(255 255 255 / 4%),
    0 6px 22px rgb(0 0 0 / 22%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition:
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 220ms;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .icon-label {
    background: rgb(255 255 255 / 9%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
}

.icon-label.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.icon-label-text {
  position: absolute;
  top: 10px;
  left: 16px;
  display: block;
  width: max-content;
  max-width: calc(100vw - 76px);
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stuff {
  padding: 0 24px 96px;
  outline: none;
}

.stuff-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.stuff h1 {
  position: sticky;
  z-index: 1;
  top: 0;
  margin: 0;
  padding: 0 0 30px;
  background: #0e0e0e;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  outline: none;
}

.stuff-list {
  border-top: 1px solid #2c2c2c;
}

.stuff-item {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #2c2c2c;
}

.stuff-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stuff-title {
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.stuff-description {
  color: #9c9c9c;
  font-size: 15px;
}

.stuff-arrow {
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  transition: transform 140ms ease;
}

.stuff-item:hover .stuff-arrow {
  transform: translateX(5px);
}

/* A two-state screen, not two viewport-height sections to scroll through. */
html.is-enhanced,
.is-enhanced body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.is-enhanced .page {
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--dock-top);
  overflow: hidden;
}

.is-enhanced .identity-dock {
  flex: 0 0 auto;
  align-self: center;
  min-height: 0;
  transform: translate3d(0, calc(50svh - 50% - var(--dock-top)), 0);
  transform: translate3d(0, calc(50dvh - 50% - var(--dock-top)), 0);
  transition: transform var(--duration) var(--ease);
}

.is-enhanced .stuff {
  flex: 1 1 0;
  min-height: 0;
  margin-top: var(--section-gap);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  scroll-padding-top: 100px;
  visibility: hidden;
  transform: translate3d(0, 100svh, 0);
  transform: translate3d(0, 100dvh, 0);
  transition:
    transform var(--duration) var(--ease),
    visibility 0s linear var(--duration);
}

.is-enhanced .has-scrolled .identity-dock {
  transform: translate3d(0, 0, 0);
}

.has-scrolled .identity {
  gap: 12px;
}

.has-scrolled .logo {
  width: min(190px, 54vw);
}

.is-enhanced .has-scrolled .stuff {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

/* Momentum cannot move the list during the opening/closing transition. */
.is-transitioning .stuff {
  overflow-y: hidden;
}

.is-initializing .identity-dock,
.is-initializing .identity,
.is-initializing .logo,
.is-initializing .stuff {
  transition: none;
}

@media (max-width: 600px) {
  :root {
    --dock-top: 18px;
    --section-gap: 28px;
  }

  .identity {
    gap: 24px;
  }

  .logo {
    width: min(250px, 72vw);
  }

  .has-scrolled .identity {
    gap: 10px;
  }

  .has-scrolled .logo {
    width: min(168px, 48vw);
  }

  .stuff {
    padding: 0 20px 72px;
  }

  .stuff h1 {
    padding-bottom: 22px;
  }

  .stuff-item {
    min-height: 92px;
    padding: 20px 2px;
  }
}

@media (max-height: 560px) {
  :root {
    --dock-top: 12px;
    --section-gap: 20px;
  }

  .has-scrolled .logo {
    width: min(112px, 34vw);
  }

  .has-scrolled .identity {
    gap: 8px;
  }

  .stuff {
    padding-bottom: 32px;
  }

  .stuff h1 {
    font-size: 28px;
    padding-bottom: 20px;
  }

  .stuff-item {
    min-height: 88px;
    padding: 18px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0ms;
  }

  .identity-dock,
  .identity,
  .logo,
  .stuff,
  .social-link,
  .social-icon,
  .icon-label,
  .stuff-arrow {
    transition: none !important;
  }

  .identity {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .icon-label {
    background: #252525;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: #ffffff;
  }
}

@media (forced-colors: active) {
  .icon-label {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .social-links .social-icon {
    opacity: 1 !important;
  }
}
