:root {
  --font-mono: "JetBrains Mono", Consolas, Monaco, "Liberation Mono", "Courier New", monospace;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-light: #f8f8f8;
  --color-gray-border: #e5e5e5;
  --color-gray-text: #666666;
}

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

html {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-black);
  background: var(--color-white);
  font-weight: 400;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-gray-border);
  margin-bottom: 0;
}

header h1 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

header h1 a {
  color: var(--color-black);
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: none;
}

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

nav a {
  font-size: 0.875rem;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.05em;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  text-decoration-color: var(--color-black);
}

/* Main content */
main {
  min-height: 60vh;
  padding: 3rem 0;
}

/* Typography */
h1, h2, h3 {
  font-weight: 400;
  margin: 2rem 0 1rem;
}

h1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Homepage specific */
main p:first-child {
  margin-top: 0;
}

/* Links */
a {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-color: var(--color-gray-border);
  text-underline-offset: 2px;
}

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

/* Lists */
ul, ol {
  margin: 0 0 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Code */
code {
  font-family: inherit;
  font-size: 0.875em;
  background: var(--color-gray-light);
  padding: 0.125rem 0.25rem;
}

pre {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 0.875rem;
  color: var(--color-gray-text);
  margin-top: 0.5rem;
}

/* HR */
hr {
  border: 0;
  height: 1px;
  background: var(--color-gray-border);
  margin: 2rem 0;
}

/* Footer */
footer {
  margin-top: 6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-border);
  font-size: 0.75rem;
  color: var(--color-gray-text);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}