* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fafaf7;
  line-height: 1.65;
}
header {
  background: #f5f0e1;
  padding: 14px 32px;
  border-bottom: 2px solid #2a2520;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 56px;
  width: auto;
  display: block;
}
.topnav { display: flex; gap: 24px; }
.topnav a {
  color: #2a2520;
  text-decoration: none;
  font-size: 0.95em;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.3px;
}
.topnav a:hover, .topnav a.active { color: #b91c1c; border-bottom-color: #b91c1c; }
main { max-width: 880px; margin: 0 auto; padding: 40px 24px; }
main.home, main.archive, main.article, main.page { max-width: 880px; }
main.article { max-width: 760px; }

h1 { font-size: 2.2em; line-height: 1.25; margin: 0.4em 0 0.3em; color: #1a1a1a; }
h2 { font-size: 1.5em; color: #1a1a1a; margin-top: 1.6em; }
h3 { font-size: 1.2em; color: #1a1a1a; margin-top: 2em; }
h4 { font-size: 1.1em; margin: 0 0 6px; }
p { margin: 1em 0; }
a { color: #b91c1c; }
a:hover { text-decoration: underline; }

.tagline { color: #555; font-size: 1.15em; max-width: 640px; }
.kicker { font-size: 0.85em; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.kicker a { color: #888; }
.meta { color: #888; font-size: 0.88em; margin: 0 0 8px; }
.meta a { color: #888; }
.more { color: #b91c1c; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }
.hint { color: #777; }

.featured {
  margin: 36px 0 48px;
  padding: 24px;
  border: 1px solid #e5e5e0;
  border-left: 3px solid #b91c1c;
  border-radius: 6px;
  background: #fff;
}
.featured h2 { margin: 8px 0; font-size: 1.6em; }
.featured h2 a { color: #1a1a1a; text-decoration: none; }
.featured h2 a:hover { color: #b91c1c; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid #e5e5e0;
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.card h4 a { color: #1a1a1a; text-decoration: none; }
.card h4 a:hover { color: #b91c1c; }
.card p:last-of-type { margin-top: auto; padding-top: 8px; color: #555; font-size: 0.93em; }

.tags-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e5e5e0; }

.archive-list { list-style: none; padding: 0; }
.archive-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e0;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list h2 { font-size: 1.2em; margin: 4px 0 6px; }
.archive-list h2 a { color: #1a1a1a; text-decoration: none; }
.archive-list h2 a:hover { color: #b91c1c; }
.archive-list p { margin: 0; }

main.article h1 { font-size: 2em; margin-top: 0.4em; }
.article-head { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid #e5e5e0; }
main.article p, main.article ul, main.article ol { font-size: 1.04em; }
main.article h2 { font-size: 1.4em; margin: 1.6em 0 0.5em; }
main.article ol li, main.article ul li { margin: 0.6em 0; }
.breadcrumb { color: #777; font-size: 0.88em; margin-bottom: 1em; }
.breadcrumb a { color: #555; }

table.cmp {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 0.95em;
}
table.cmp th, table.cmp td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5e0;
  vertical-align: top;
}
table.cmp thead { background: #f0eee6; }
table.cmp tbody tr:hover { background: #fbf9f0; }

.prevnext-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e0;
  gap: 16px;
}
.prevnext {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e5e5e0;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 0.92em;
  background: #fff;
}
.prevnext:hover { border-color: #b91c1c; color: #b91c1c; }
.prevnext.next { text-align: right; }

footer {
  max-width: 880px;
  margin: 60px auto 24px;
  padding: 20px 24px;
  border-top: 1px solid #e5e5e0;
  color: #888;
  font-size: 0.85em;
  text-align: center;
}
