:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fdfdfb;
  --accent: #8a3324;
  --max-width: 680px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.site-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  display: block;
}

.category-nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.25rem;
}

.category-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}

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

.social-links {
  font-size: 0.95rem;
  color: var(--muted);
}

.about-photo {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 0 1.5rem;
  border-radius: 4px;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.4rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

main:has(.home-layout) {
  max-width: 1100px;
}

.home-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.home-main {
  flex: 1 1 auto;
  min-width: 0;
}

.home-sidebar {
  flex: 0 0 420px;
}

.tweet-box {
  border: 1px solid #e5e2dc;
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 300px;
}

@media (max-width: 700px) {
  .home-layout {
    flex-direction: column;
  }
  .home-sidebar {
    flex-basis: auto;
    width: 100%;
  }
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #e5e2dc;
}

h1, h2, h3 { line-height: 1.3; }

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

.piece-list {
  list-style: none;
  padding: 0;
}

.piece-list li {
  margin-bottom: 1.5rem;
}

.piece-list .piece-title {
  font-size: 1.15rem;
  display: block;
}

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

.piece-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

pre {
  overflow-x: auto;
  background: #f1efe9;
  padding: 1rem;
  border-radius: 4px;
}
