@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Hedvig Letters Serif'; src: url(fonts/hedvig-letters-serif-latin-400-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #3a3c42;
  --mute: rgba(58, 60, 66, 0.5);
  --faint: rgba(58, 60, 66, 0.26);
  --rule: rgba(58, 60, 66, 0.12);
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(16px, 1.25vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.bar, .foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: var(--mute);
}
.bar span { color: var(--ink); }
.bar a:hover { color: var(--ink); }

main {
  align-self: end;
  padding: 0 var(--gutter) clamp(48px, 10vh, 120px);
}

.who {
  display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px);
  margin: 0 0 clamp(40px, 8vh, 96px);
}
.pfp {
  width: clamp(84px, 8vw, 128px); height: auto; flex: none;
  image-rendering: pixelated;
}
.lede {
  font-family: 'Hedvig Letters Serif', ui-serif, Georgia, serif;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--faint);
  margin: 0;
  max-width: 18em;
}
@media (max-width: 560px) { .who { flex-direction: column; align-items: flex-start; } }
.lede .ink { color: var(--ink); }

.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rooms a {
  display: grid;
  grid-template-columns: 3.5em minmax(0, auto) 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(14px, 2.2vw, 28px) 0 clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
  transition: color .35s var(--ease);
}
.no, .what, .go { color: var(--mute); transition: color .35s var(--ease); }
.name {
  font-family: 'Hedvig Letters Serif', ui-serif, Georgia, serif;
  font-size: clamp(48px, 9vw, 168px);
  letter-spacing: -0.06em;
  line-height: .9;
  white-space: nowrap;
}
.go { justify-self: end; transition: transform .5s var(--ease), color .35s var(--ease); }

/* hovering one room quiets the other */
.rooms:hover a { color: var(--faint); }
.rooms:hover a .no, .rooms:hover a .what, .rooms:hover a .go { color: var(--faint); }
.rooms a:hover, .rooms a:hover .no, .rooms a:hover .what, .rooms a:hover .go { color: var(--ink); }
.rooms a:hover .go { transform: translate(.15em, -.15em); }

@media (max-width: 720px) {
  .rooms a { grid-template-columns: 2.4em 1fr auto; row-gap: 6px; }
  .what { grid-column: 2 / -1; }
  .name { font-size: clamp(40px, 12vw, 72px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
