:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --text: #c9d1d9;
  --text-dim: #6e7681;
  --accent: #e8b339;
  --accent-dim: #7a51f;
  --border: #30363d;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  line-height: 1.6;
  padding: 2rem 1.25rem;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

nav {
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-right: 1.25rem;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.prompt {
  color: var(--accent);
}

.prompt::after {
  content: "▋";
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

p { margin-bottom: 1rem; color: var(--text-dim); }

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

.card {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p { margin-bottom: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.4rem;
}

footer {
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .prompt::after { animation: none; }
}
figure {
  margin-bottom: 2rem;
}

figure img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('hat-tiling.svg');
  background-size: 500px 500px;
  background-repeat: repeat;
  opacity: 0.1;
  z-index: -1;
  }

