@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg: #fbfaf8;
  --ink: #0f0f0e;
  --ink-soft: #3a3a36;
  --accent: #1a3a2a;
  --accent-light: #e8ece9;
  --border: #e2e2df;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin-top: 2rem;
}

h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 1.5rem; }

p { margin-bottom: 1.5rem; color: var(--ink-soft); font-size: 1.05rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.topic-card {
  background: white;
  border: 1px solid var(--border);
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  border-radius: 4px;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.topic-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
}

.topic-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 8px;
  margin-bottom: 15px;
  border-radius: 2px;
}

.footer {
  margin-top: 100px;
  padding: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

blockquote {
  margin: 2rem 0;
  padding: 20px 30px;
  border-left: 4px solid var(--accent);
  background: white;
  font-style: italic;
  font-size: 1.1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th {
  text-align: left;
  padding: 12px;
  background: var(--accent-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

pre {
  background: #f4f4f2;
  padding: 20px;
  overflow-x: auto;
  border-radius: 4px;
}
