/* ── Fonts ── */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-italic.woff2) format("woff2");
}

/* ── Design Tokens ── */
:root {
  --bg: #f5f4f0;
  --fg: #1a1a18;
  --fg-muted: #525250; /* ~7.4:1 on --bg */
  --fg-light: #76766f; /* ~4.2:1 on --bg, AA large */
  --accent: #42ee42; /* bright glow — decorative / dark surfaces only */
  --accent-text: #1a7a1a; /* ~5:1 on --bg, use for green text on light bg */
  --accent-dim: #42ee4233;
  --accent-bg: #42ee420d;
  --border: #e0e0db;
  --surface: #f0f0ec;
  --mono: "JetBrains Mono", monospace;
  --serif: "Source Serif 4", Georgia, serif;
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav.scrolled {
  border-bottom-color: var(--border);
}
nav .wordmark {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}
nav .wordmark span {
  color: var(--accent);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.2s;
}
nav ul a:hover {
  color: var(--fg);
}

/* ── Footer ── */
footer {
  padding: 4rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
footer .left {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  line-height: 1.8;
}
footer .left a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
footer .left a:hover {
  color: var(--fg);
}
footer .right {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive (shared) ── */
@media (max-width: 680px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1rem;
  }
  footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
