/* ── fonts ── */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-2.304-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-2.304-Medium.woff2') format('woff2');
}

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

/* app.js reads the colors by name, and the cell size from .content's padding. */
:root {
  --paper: #0a0a0a;
  --ink: #e6e6e6;
  --muted: #8a8a8a;
  --rule: #141414;
  --rule-major: #1f1f1f;
  --signal: #ffffff;
  --col: 4rem;
  --row: 2rem;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

body {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--signal);
  color: var(--paper);
}

#gemm-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── content ── */

/* Line heights are whole multiples of --row, so text lands on the matrix rows. */
.content {
  position: relative;
  padding: var(--row) var(--col);
  margin-left: max(var(--col), 50vw - var(--col) * 9);
}

.name {
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem);
  font-weight: 500;
  line-height: calc(var(--row) * 2);
  letter-spacing: -0.035em;
}

.role {
  font-size: 0.9375rem;
  line-height: var(--row);
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5em;
  margin-top: var(--row);
  font-size: 0.9375rem;
  line-height: var(--row);
}

.links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.links a:hover {
  color: var(--signal);
  text-decoration-color: currentColor;
}

.links a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  :root {
    --col: 3.5rem;
  }

  .content {
    margin-left: 0;
  }
}
