:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-secondary: #444;
  --text-muted: #888;
  --text-nav-label: #555;
  --border: #e5e5e5;
}

[data-theme="dark"] {
  --bg: #111;
  --text: #e2e2e2;
  --text-secondary: #aaa;
  --text-muted: #666;
  --text-nav-label: #999;
  --border: #2a2a2a;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

nav .site-title {
  font-weight: 600;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-logo {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: system-ui, sans-serif;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  line-height: 1.5;
  transition: border-color 0.2s, color 0.2s;
}

#theme-toggle:hover {
  border-color: var(--text);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-nav-label);
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

ul li {
  margin-bottom: 0.35rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-date {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

#post-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

#post-search:focus {
  outline: none;
  border-color: var(--text-muted);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tag-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.tag-btn:hover,
.tag-btn.active {
  border-color: var(--text);
  color: var(--text);
}

.post-list-full {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
}

.post-meta {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.read-more {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.read-more:hover {
  color: var(--text);
}

.archives-link {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.archive-year {
  margin-bottom: 2.5rem;
}

.archive-year > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Georgia, serif;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.archive-month {
  margin: 1.25rem 0 0 1rem;
}

.archive-month h3 {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  padding: 0.2rem 0;
}

.archive-list a {
  color: var(--text);
  text-decoration: none;
}

.archive-list a:hover {
  text-decoration: underline;
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.model-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.model-item:last-child {
  border-bottom: none;
}

.model-item a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.model-item a:hover {
  text-decoration: underline;
}

.model-description {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.model-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--text);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.social-links a,
.social-discord {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.social-links svg,
.social-discord svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.discord-username {
  font-size: 0.85rem;
  font-family: system-ui, sans-serif;
}
