@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --fg: #161616;
  --muted: #6f6f6f;
  --line: #c6c6c6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #f4f4f4;
    --muted: #a8a8a8;
    --line: #525252;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { position: relative; z-index: 1; text-align: center; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx h1 { color: transparent; transition: color .3s; }
h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 9.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}
a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
a:hover, a:focus-visible {
  color: var(--fg);
  border-color: var(--line);
}
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
