@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PP Mondwest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_next/static/media/PPMondwest_Regular-s.0_9ksmp-90p0c.otf") format("opentype");
}

:root {
  color-scheme: light;
  --bg: #f4f4f0;
  --fg: #141414;
  --muted: #5b5b57;
  --faint: #9a9a94;
  --blue: #2724d1;
  --blue-deep: #1a17a8;
  --blue-soft: #2724d11f;
  --marker: #ffe14d;
  --display: "PP Mondwest", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

main {
  width: min(40rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5.5rem 0 7rem;
  animation: fade 150ms ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--blue);
}

.alias {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--faint);
}

.bio {
  margin-top: 2.75rem;
}

.bio p + p {
  margin-top: 1em;
}

section + section,
.vault + section {
  margin-top: 3rem;
}

section h2 {
  margin-bottom: 0.85rem;
}

ul {
  list-style: none;
  padding: 0;
}

li + li {
  margin-top: 0.55rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--blue-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition:
    text-decoration-color 150ms ease,
    color 150ms ease;
}

a:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

a.pill {
  font-family: var(--display);
  font-size: 1.1em;
  color: var(--blue);
  text-decoration-color: var(--blue);
  white-space: nowrap;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  text-decoration-color: currentColor;
}

/* ---------- the vault door ---------- */

.vault {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding: 1.6rem 1.75rem;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 1px 0 #ffffff33 inset,
    0 24px 60px -30px #2724d1b3;
  transition:
    transform 320ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 320ms cubic-bezier(0.2, 0, 0, 1);
}

/* drifting graph paper */
.vault::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(#ffffff2e 1px, transparent 1.4px);
  background-size: 18px 18px;
  animation: drift 14s linear infinite;
  pointer-events: none;
}

/* marker-yellow layer that wipes in one pixel column at a time */
.vault::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marker);
  clip-path: polygon(-30% 0, -12% 0, -30% 100%, -30% 100%);
  transition: clip-path 620ms cubic-bezier(0.65, 0, 0.15, 1);
  pointer-events: none;
}

.vault:hover,
.vault:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 #ffffff40 inset,
    0 24px 60px -30px #2724d1b3;
  text-decoration: none;
  outline: none;
}

.vault:hover::after,
.vault:focus-visible::after {
  clip-path: polygon(-30% 0, 130% 0, 130% 100%, -30% 100%);
}

/* once the wipe passes the text, the ink flips to blue */
.vault:hover .vault-copy,
.vault:focus-visible .vault-copy {
  color: var(--blue);
  transition-delay: 160ms;
}

.vault:hover .vault-kicker,
.vault:hover .vault-meta,
.vault:focus-visible .vault-kicker,
.vault:focus-visible .vault-meta {
  color: var(--blue-deep);
  transition-delay: 160ms;
}

.vault:hover .vault-meta b,
.vault:focus-visible .vault-meta b {
  color: var(--blue);
  transition-delay: 160ms;
}

/* the word swaps in pixel time */
.vault-title .word {
  position: relative;
  display: inline-grid;
}

.vault-title .word > span {
  grid-area: 1 / 1;
  transition: opacity 220ms ease 120ms;
}

.vault-title .word > span:last-child {
  opacity: 0;
}

.vault:hover .vault-title .word > span:first-child,
.vault:focus-visible .vault-title .word > span:first-child {
  opacity: 0;
}

.vault:hover .vault-title .word > span:last-child,
.vault:focus-visible .vault-title .word > span:last-child {
  opacity: 1;
}

.vault-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  transition: color 260ms ease;
}

.vault-kicker {
  font-family: var(--display);
  font-size: 0.95rem;
  color: #d9d8ff;
  transition: color 260ms ease;
}

.vault-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 0.95;
}

.vault-title .arrow {
  display: inline-block;
  font-size: 0.8em;
  transition: transform 420ms cubic-bezier(0.2, 0, 0, 1);
}

.vault:hover .vault-title .arrow {
  transform: translateX(0.35em);
}

.vault-meta {
  font-size: 0.95rem;
  color: #d9d8ff;
  letter-spacing: -0.005em;
  transition: color 260ms ease;
}

.vault-meta b {
  font-weight: 400;
  color: #fff;
  transition: color 260ms ease;
}

/* combination dial: pixel art on a 4px grid, turns in crisp quarter steps */
.dial {
  position: relative;
  z-index: 1;
  display: block;
  width: 96px;
  height: 96px;
  flex: none;
  color: #fff;
  image-rendering: pixelated;
  transition:
    transform 640ms steps(3, end),
    color 200ms ease 200ms;
}

.dial .d-ink {
  fill: currentColor;
}

.dial .d-mark {
  fill: var(--marker);
  transition: fill 200ms ease 200ms;
}

.vault:hover .dial,
.vault:focus-visible .dial {
  transform: rotate(-270deg);
  color: var(--blue);
}

.vault:hover .dial .d-mark,
.vault:focus-visible .dial .d-mark {
  fill: var(--blue);
}

@media (min-width: 640px) {
  main {
    width: min(42rem, calc(100% - 4rem));
    padding: 7rem 0 9rem;
  }
}

@media (max-width: 480px) {
  .vault {
    grid-template-columns: 1fr;
    padding: 1.4rem 1.35rem;
  }

  .dial {
    width: 72px;
    height: 72px;
    justify-self: end;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }

  a,
  .vault,
  .vault::after,
  .vault-copy,
  .vault-kicker,
  .vault-meta,
  .vault-meta b,
  .vault-title .word > span,
  .vault-title .arrow {
    transition: none;
  }

  .vault::before {
    animation: none;
  }

  .dial {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  main {
    width: 100%;
    padding: 0;
    animation: none;
  }

  a {
    text-decoration: none;
  }

  .vault {
    display: none;
  }
}
