/* ─── Theme tokens ──────────────────────────────────────────────────────
   Defined once here, referenced everywhere below as var(--name).
   Change a colour in this block and it updates across the whole page.     */

:root {
  --bg: #ffffff;
  --fg: #241325;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-hover: #241325;
  --focus: #2563eb;
}

/* Same token names, different values, when the visitor's OS is in dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241325;
    --fg: #f2f2f2;
    --muted: #8f8f8f;
    --line: #262626;
    --line-hover: #f2f2f2;
    --focus: #7aa2ff;
  }
}

/* ─── Base ──────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  padding: 4rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 26rem;
}

/* ─── Header ────────────────────────────────────────────────────────── */

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
  background: var(--line);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  /* Mono wants tracking OUT, not in — tight spacing muddies the blocks. */
  letter-spacing: 0.22em;
  /* Compensate for the trailing letter's space so it stays optically centred */
  text-indent: 0.22em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ─── Links ─────────────────────────────────────────────────────────── */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.links a:hover {
  border-color: var(--line-hover);
}

.links a:active {
  transform: scale(0.99);
}

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

.links svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Arrow pinned to the right edge */
.arrow {
  margin-left: auto;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.links a:hover .arrow {
  transform: translateX(3px);
}

/* ─── Footer ────────────────────────────────────────────────────────── */

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Respect the OS setting for people who get motion sickness from animation */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
