@font-face {
  font-family: 'Spline Sans Mono';
  src: url('/fonts/SplineSansMono-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #24272c;
  --muted: #636972;
  --line: #e0e3e8;
  --accent: #255ee8;
  --accent-hover: #1747be;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191d;
    --fg: #eaedf2;
    --muted: #a5aab3;
    --line: #343942;
    --accent: #89adff;
    --accent-hover: #b3caff;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  max-width: 660px;
  margin: auto;
  padding: 56px 24px 40px;
  color: var(--fg);
  font: 300 14px/1.65 'Spline Sans Mono', ui-monospace, monospace;
  font-synthesis: none;
  overflow-wrap: anywhere;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

header span { color: var(--muted); font-size: 0.75rem; }
.logo { color: inherit; font-size: 1rem; font-weight: 300; text-decoration: none; }
main { padding: 56px 0; }
h1 { max-width: 30ch; margin: 0 0 20px; font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 300; line-height: 1.4; text-wrap: balance; }
.intro { max-width: 58ch; margin: 0; color: var(--muted); }
section { margin-top: 40px; }
h2 { margin: 0 0 24px; color: var(--muted); font-size: 0.75rem; font-weight: 300; }

.projects { list-style: none; margin: 0; padding: 0; }
.projects li { position: relative; padding-left: 18px; margin-top: 20px; }
.projects li:first-child { margin-top: 0; }
.projects li::before { content: ""; position: absolute; inset-inline-start: 1px; top: 0.65em; width: 4px; height: 4px; border: 1px solid var(--accent); transform: rotate(45deg); }
.projects a { display: block; width: fit-content; max-width: 100%; color: inherit; text-decoration: none; }
.projects a strong { color: var(--accent); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.projects a:hover strong { color: var(--accent-hover); }
.projects strong { display: block; font-size: inherit; font-weight: 300; }
.projects span, .projects small { display: block; margin-top: 3px; color: var(--muted); }
.projects span { max-width: 60ch; }
.projects small { font-size: 0.8rem; }
footer { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
footer small { font-size: 0.6875rem; }

@media (max-width: 480px) {
  body { padding: 28px 20px; }
  header { align-items: baseline; gap: 8px 16px; }
  main { padding: 40px 0; }
}
