:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #b91c1c;
  --code-bg: #1c1917;
  --max-width: 38rem;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

nav { display: flex; gap: 1.25rem; }

nav a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover { color: var(--text); }

.post-layout, .home-layout, .archive-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.post-header { margin-bottom: 1.5rem; }

.post-date {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.375rem;
}

.post-title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.post-deal-info {
  display: flex;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.post-docket { color: var(--accent); }

.post-body { margin-bottom: 2rem; }

.post-body > p:first-of-type {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-top: 0.5rem;
}

.post-body .post-highlight {
  font-size: 1.125rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 0.375rem 0 0.375rem 1.25rem;
  margin: 0 0 1.25rem 0;
  font-weight: 400;
}

.post-body > p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.875rem;
  color: #44403c;
}

.post-body .dialogue {
  margin: 1rem 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 2px solid var(--border);
}

.post-body .dialogue p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 1.0625rem;
  color: var(--text);
}

.post-body .dialogue .msg-name {
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.post-body .dialogue .msg-name::after {
  content: ':';
  margin-right: 0.375rem;
}

.post-body h2 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.25rem 0;
  letter-spacing: 0.01em;
}

.post-body h2 + p {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.post-body .source-attr {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.post-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.post-source a { color: var(--accent); }

.post-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--border);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-list { list-style: none; }

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

.post-list-item:first-child { padding-top: 0; }

.post-list-date {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-list-title {
  font-size: 1.125rem;
  margin: 0.125rem 0 0.125rem;
}

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

.post-list-title a:hover { color: var(--accent); }

.post-list-parties {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.home-header {
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
}

.home-header h1 {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.about-layout { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1rem; }

.about-layout h1 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.about-layout p { margin-bottom: 0.75rem; line-height: 1.6; }

.archive-year { margin-top: 1.5rem; margin-bottom: 0.5rem; }

.archive-year h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .post-title { font-size: 1.25rem; }
  .site-header { flex-direction: column; gap: 0.5rem; }
}
