/* Quiet Fleet — the reading room
   Cream paper, charcoal ink, amber lamplight. */

:root {
  --bg: #FAF7F2;
  --ink: #2C2C2C;
  --muted: #6B6B6B;
  --accent: #B4652A;
  --green: #4A5D4E;
  --line: #E5DFD5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wordmark {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}
.nav a:hover { color: var(--accent); }

/* Main */
.main { padding: 48px 0 64px; }

/* Hero */
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.lede {
  font-size: 21px;
  color: var(--muted);
  line-height: 1.5;
}

/* Featured */
.featured {
  margin-top: 40px;
  padding: 32px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.featured-post h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.featured-post h2 a { color: var(--ink); text-decoration: none; }
.featured-post h2 a:hover { color: var(--accent); }
.meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.excerpt { color: var(--ink); margin-bottom: 12px; }
.read-more {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Recent / Archive list */
.recent, .archive { margin-top: 48px; }
.recent h3, .archive h1 {
  font-size: 24px;
  margin-bottom: 16px;
}
.post-list { list-style: none; }
.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.post-list li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.post-list li a:hover { color: var(--accent); }
.post-list .meta { margin-bottom: 0; }

/* Post body */
.post h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.01em; }
.post .meta { margin-bottom: 32px; }
.post .body { font-size: 19px; }
.post .body h2 { font-size: 26px; margin: 32px 0 12px; }
.post .body h3 { font-size: 21px; margin: 24px 0 8px; }
.post .body p { margin-bottom: 20px; }
.post .body a { color: var(--accent); }
.post .body ul, .post .body ol { margin: 0 0 20px 28px; }
.post .body li { margin-bottom: 6px; }
.post .body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f0ece4;
  padding: 2px 5px;
  border-radius: 3px;
}
.post .body pre {
  background: #2b2b2b;
  color: #e8e4dc;
  padding: 18px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 15px;
  margin-bottom: 20px;
}
.post .body pre code { background: none; padding: 0; color: inherit; }
.post .body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 20px;
}
.post-nav {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 14px;
}
.post-nav a { color: var(--accent); text-decoration: none; }

/* About */
.about h1 { font-size: 34px; margin-bottom: 20px; }
.about .body p { margin-bottom: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}
.site-footer p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.door { opacity: 0.6; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 32px; }
  .site-header .wrap { flex-direction: column; gap: 10px; }
  .nav a { margin-left: 0; margin-right: 16px; }
  .post-list li { flex-direction: column; gap: 2px; }
}
