:root {
  --bg: #fdfdf5;
  --text: #2d2d2d;
  --accent: #5b7c99;
  --muted: #7a7367;
  --border: #e8e6dc;
  --code-bg: #f5f3e8;
  --paper: #fefffe;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
}

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

nav a.active {
  color: var(--accent);
  font-weight: 500;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.project-list, .tool-list, .note-list {
  list-style: none;
  margin-top: 2rem;
}

.project-item, .tool-item, .note-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.project-item:last-child,
.tool-item:last-child,
.note-item:last-child {
  border-bottom: none;
}

.project-title, .tool-title, .note-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-meta, .tool-meta, .note-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.project-description, .tool-description, .note-description {
  color: var(--text);
  margin-top: 0.5rem;
}

code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

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

.tool-embed {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Interactive tool styling */
.calculator {
  max-width: 400px;
}

.calculator input,
.calculator select {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

.calculator button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.calculator button:hover {
  opacity: 0.9;
}

.result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--code-bg);
  border-radius: 4px;
  font-weight: 500;
}
