/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #ff6b35;
  --accent-soft: #ff6b3520;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --max-width: 720px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* === Nav === */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* === Main === */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

/* === Hero === */
.hero {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.subhead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
}

/* === Latest === */
.latest {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.latest h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: color 0.15s;
}

.post-item:first-child { border-top: 1px solid var(--border); }

.post-item:hover .post-title { color: var(--accent); }

.post-title {
  font-size: 0.975rem;
  transition: color 0.15s;
  flex: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* === About Blurb === */
.about-blurb {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-blurb p { margin-bottom: 1rem; }

.read-more {
  color: var(--accent);
  font-size: 0.875rem;
}

.read-more:hover { text-decoration: underline; }

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.social-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

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

/* === Article pages === */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
  font-weight: 500;
}

.speaker {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.25rem;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--muted);
  font-style: italic;
  margin: 2rem 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }

/* === About page === */
.about-section { margin-bottom: 3rem; }
.about-section h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}
.about-section p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

/* === Writing index === */
.writing-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.writing-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

/* === Responsive === */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .post-item { flex-direction: column; gap: 0.25rem; }
  .post-meta { display: none; }
  nav { padding: 0; }
}
