:root {
    --bg: #121210;
    --text: #e4e1d8;
    --muted: #8f8c82;
    --border: #2d2c27;
    --accent: #c08a2e;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  html { color-scheme: dark; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    padding: 4rem 1.5rem 6rem;
  }

  main {
    max-width: 680px;
    margin: 0 auto;
  }

  a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }
  a:hover, a:focus-visible {
    border-bottom-color: var(--accent);
  }
  a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  header {
    margin-bottom: 3rem;
  }

  h1 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
  }

  .tagline {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 1.2rem;
  }

  .links {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--muted);
  }
  .links a { color: var(--text); }
  .links span.sep {
    margin: 0 0.5rem;
    color: var(--border);
  }

  section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
  }
  section:first-of-type {
    border-top: 1px solid var(--border);
  }

  h2 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1.2rem;
  }

  .entry {
    margin-bottom: 1.6rem;
  }
  .entry:last-child { margin-bottom: 0; }

  .entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
  }

  .entry-title {
    font-weight: 600;
    font-size: 1rem;
  }

  .entry-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
  }

  .entry-sub {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 0.6rem;
  }

  ul.bullets {
    margin: 0;
    padding-left: 1.2rem;
  }
  ul.bullets li {
    margin-bottom: 0.4rem;
  }
  ul.bullets li:last-child { margin-bottom: 0; }

  .proj-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
  }

  .proj-desc {
    margin: 0.4rem 0 0;
    color: var(--text);
  }

  .proj-sub {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border);
  }
  .proj-sub .entry-title { font-size: 0.95rem; }

  .note {
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  .skills-grid dt {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 0.85rem;
  }
  .skills-grid dd {
    margin: 0;
  }

  .writeups a {
    display: block;
    margin-bottom: 0.8rem;
  }

  footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
  }

  @media (max-width: 480px) {
    body { padding: 2.5rem 1.25rem 4rem; font-size: 16px; }
    .entry-head { flex-direction: column; gap: 0.2rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }
