@view-transition { navigation: auto; }

:root {
  --color-bg: #fdfdfd;
  --color-fg: #1a1a1a;
  --color-muted: #666;
  --color-accent: #0066cc;
  --color-border: #e5e5e5;
  --color-code-bg: #000000;
  --color-code-fg: #ffffff;
  /* Vim `colorscheme vim` background=dark. Fixed across themes. */
  --color-syntax-comment: #80a0ff;    /* Comment */
  --color-syntax-constant: #ffa0a0;   /* Constant (String/Number/Boolean link here) */
  --color-syntax-statement: #ffff60;  /* Statement (Keyword/Operator link here) */
  --color-syntax-identifier: #40ffff; /* Identifier (Function links here) */
  --color-syntax-type: #60ff60;       /* Type */
  --color-syntax-preproc: #ff80ff;    /* PreProc */
  --color-syntax-special: #ffa500;    /* Special: Orange */
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: #111;
    --color-fg: #eee;
    --color-muted: #999;
    --color-accent: #6ea8ff;
    --color-border: #333;
  }
}

body {
  font-family: system-ui, sans-serif;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  background: var(--color-bg);
  color: var(--color-fg);
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}

header > a { font-weight: 600; text-decoration: none; color: var(--color-fg); }

header nav { display: flex; gap: 1rem; align-items: center; }


a { color: var(--color-accent); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

footer .socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
