@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #fafafa;
  --ink: #171717;
  --edge: #a9a9a9;
  --hover: #eeeeee;
  --art-opacity: .72;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
.homepage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100svh;
  padding: 44px 24px 160px;
  background: var(--paper);
}
.masthead { position: relative; z-index: 1; margin: 0 auto 30px; }
.identity {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(40px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.12;
}
.identity-line { display: block; width: max-content; white-space: nowrap; }
.handle { font-family: "IBM Plex Mono", monospace; }
.name { font-family: Inter, sans-serif; letter-spacing: .14em; margin-top: .12em; }
.network { position: relative; z-index: 1; width: min(100%, 660px); margin: 0 auto; }
.network ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 46px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.network li { display: flex; justify-content: center; min-width: 0; }
.destination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 172px;
  aspect-ratio: 1;
  padding: 20px 12px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.destination:hover { background: var(--hover); border-color: var(--ink); transform: translateY(-3px); }
.destination:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.destination:active { transform: translateY(0); }
.destination-icon { display: block; width: 56px; height: 56px; object-fit: contain; }
.destination-label { max-width: 130px; font-size: 22px; line-height: 1.25; }
/* Separate the footer braid so it stays below the links on tall phone screens.
   Feather both layers to avoid a visible crop through the generated linework. */
.weave, .bottom-weave {
  position: absolute;
  pointer-events: none;
  background-image: url("assets/weave-desktop.webp");
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: var(--art-opacity);
}
.weave {
  z-index: 0;
  inset: 0 0 auto;
  height: 850px;
  background-size: max(1440px, 100%) 1250px;
  background-position: center -145px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
}
.bottom-weave {
  inset: auto 0 0;
  height: 150px;
  background-size: max(1440px, 100%) 1000px;
  background-position: center bottom;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #202020; --ink: #f1f1f1; --edge: #9a9a9a; --hover: #303030; --art-opacity: .8; }
  .weave, .bottom-weave { filter: invert(1) brightness(1.8); mix-blend-mode: screen; }
  .destination-icon:not(.sphere) { filter: invert(1); }
}
@media (min-width: 1000px) {
  .homepage { padding-top: max(36px, calc((100svh - 930px) / 2)); min-height: max(100svh, 930px); }
  .masthead { margin-bottom: 32px; }
}
@media (max-width: 700px) {
  .homepage { padding: 28px 16px 150px; min-height: max(100svh, 710px); }
  .identity { font-size: clamp(24px, 8.5vw, 40px); line-height: 1.35; }
  .network { max-width: 450px; }
  .network ul { column-gap: 10px; row-gap: 24px; }
  .destination { width: 100%; max-width: 138px; padding: 12px 5px; gap: 9px; }
  .destination-icon { width: 35px; height: 35px; }
  .destination-label { max-width: 108px; font-size: 14px; line-height: 1.2; }
  .weave {
    top: 130px;
    bottom: auto;
    height: calc(min(450px, 100vw - 32px) + 60px);
    background-size: max(570px, 100%) 720px;
    background-position: center -160px;
    opacity: .5;
  }
  .bottom-weave { height: 125px; bottom: 12px; background-size: 740px 514px; }
}
@media (max-width: 359px) {
  .homepage { padding-inline: 12px; }
  .network ul { column-gap: 7px; }
  .destination { min-height: 98px; padding-inline: 4px; }
  .destination-label { font-size: 12px; }
  .destination-icon { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .destination { transition: none; }
  .destination:hover { transform: none; }
}
@media (forced-colors: active) {
  .weave, .bottom-weave { display: none; }
  .destination { border-color: LinkText; }
}
