@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --border: #e5e5e5;
  --font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededed;
    --muted: #a6a6a6;
    --border: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--font-sans);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 600;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--text);
}

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.pitch {
  margin: 0.75rem 0;
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.entry {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

details {
  margin-top: 0.25rem;
}

summary {
  color: var(--muted);
  transition: color 150ms ease;
}

summary:hover,
details[open] > summary {
  color: var(--text);
}

ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.6rem;
}

.points {
  margin-top: 0.4rem;
}

.points li + li {
  margin-top: 0.25rem;
}

/* Monospace for the scaffolding (name, labels, dates, stacks); Lexend for everything you read. */
h1,
h2,
.date,
.stack,
summary {
  font-family: var(--font-mono);
}

.date,
.stack,
summary {
  font-size: 0.8rem;
  color: var(--muted);
}

.date {
  flex-shrink: 0;
  white-space: nowrap;
}

h3,
strong {
  font-weight: 500;
}

/* Cursor: a small dot by default that becomes a scope over anything clickable.
   Vector SVGs so they stay crisp at their exact size; the system cursor is the fallback. */
body {
  cursor: url("/assets/cursor/dot-light.svg") 4 4, auto;
}

a,
summary {
  cursor: url("/assets/cursor/scope-light.svg") 8 8, pointer;
}

@media (prefers-color-scheme: dark) {
  body {
    cursor: url("/assets/cursor/dot-dark.svg") 4 4, auto;
  }

  a,
  summary {
    cursor: url("/assets/cursor/scope-dark.svg") 8 8, pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  summary {
    transition: none;
  }
}
