:root {
  --bg: #f9f6f1;
  --bg2: #f1ece4;
  --text: #1e1a14;
  --text2: #6b5e4a;
  --accent: #c47c2b;
  --accent2: #2c4a6e;
  --link: #2c4a6e;
  --border: #ddd5c5;
  --font: 'Georgia', 'Times New Roman', serif;
  --mono: 'Menlo', 'Courier New', monospace;
  --max: 720px;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo:hover { color: var(--accent); }
nav { display: flex; gap: 1.2rem; }
nav a { text-decoration: none; font-size: 0.95rem; color: var(--text2); }
nav a:hover, nav a.active { color: var(--accent); }

/* Main */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero */
.hero {
  margin-bottom: 2.5rem;
}
.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 560px;
}

/* Headings */
h1 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 0.75rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; color: var(--text); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0.5rem 0 1.1rem 1.4rem; }
li { margin-bottom: 0.3rem; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  display: grid;
  gap: 0.2rem;
}
.post-list li:first-child { border-top: 1px solid var(--border); }
.post-list .post-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}
.post-list .post-title:hover { color: var(--accent); }
.post-list .meta {
  font-size: 0.82rem;
  color: var(--text2);
  font-family: var(--mono);
}
.post-list .excerpt {
  font-size: 0.95rem;
  color: var(--text2);
  margin-top: 0.2rem;
}

/* Article */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.article-meta {
  font-size: 0.83rem;
  font-family: var(--mono);
  color: var(--text2);
  margin-bottom: 1.2rem;
}
.article-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

article h2 { font-size: 1.25rem; }
article p { margin-bottom: 1.15rem; }

/* Specs table */
.specs {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 0.6rem;
}
.specs dd { margin-left: 0; }

/* Section titles */
.section-title {
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 1.2rem;
}

/* Tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tag {
  font-size: 0.78rem;
  font-family: var(--mono);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  color: var(--text2);
  text-decoration: none;
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: var(--text2);
  font-style: italic;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text2);
  font-family: var(--mono);
  flex-wrap: wrap;
}
.footer-inner a { color: var(--text2); }
.footer-inner a:hover { color: var(--accent); }

/* 404 */
.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page h1 { font-size: 5rem; color: var(--border); margin-bottom: 1rem; }

/* About page */
.about-grid { display: grid; gap: 1.5rem; }
.gear-list { list-style: none; margin: 0; padding: 0; }
.gear-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 0.5rem;
}
.gear-list li span:first-child {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text2);
  min-width: 70px;
  padding-top: 0.15rem;
}

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav { flex-wrap: wrap; gap: 0.8rem; }
  .hero h1 { font-size: 1.5rem; }
  h1 { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}
