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

:root {
  --ink: #0f0e0c;
  --paper: #f5f2eb;
  --accent: #c8392b;
  --muted: #6b6660;
  --border: #d4cfc5;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.site-wrapper { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }

/* Header */
.site-header {
  border-bottom: 3px double var(--ink);
  padding: 28px 0 16px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.masthead-title {
  font-family: var(--sans); font-weight: 800; font-size: 56px;
  letter-spacing: -2.5px; line-height: 0.9; text-transform: uppercase;
}
.masthead-dot { color: var(--accent); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.site-nav a { padding-bottom: 3px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--accent); }

/* Shared labels */
.post-label, .card-tag {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.card-meta { font-size: 13px; color: var(--muted); }

/* Lead story */
.lead { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--ink); }
.lead-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -1px; margin: 12px 0 18px; }
.lead-title a:hover { color: var(--accent); }
.lead-excerpt { font-size: 19px; line-height: 1.55; color: #2b2925; margin-bottom: 16px; max-width: 60ch; }
.read-more { display: inline-block; margin-top: 18px; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.lead-side { border-left: 1px solid var(--border); padding-left: 28px; }
.side-heading { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.side-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.side-title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; margin-top: 4px; }
.side-item:hover .side-title { color: var(--accent); }
.side-empty { color: var(--muted); font-style: italic; padding-top: 14px; }

/* Section rule */
.section-rule { display: flex; align-items: center; gap: 16px; margin: 48px 0 24px; font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.section-rule::after { content: ""; flex: 1; height: 1px; background: var(--ink); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 24px; }
.card { display: block; border-top: 3px solid var(--ink); padding-top: 14px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; margin: 8px 0 10px; }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { font-size: 15px; color: #3a3732; margin-bottom: 10px; }

.section-header { padding: 48px 0 8px; }
.empty { padding: 80px 0; font-family: var(--serif); font-size: 28px; color: var(--muted); }

/* Post */
.post { max-width: 720px; margin: 0 auto; padding: 56px 0 24px; }
.post-header { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.post-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1px; margin: 14px 0 18px; }
.post-dek { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: #3a3732; margin-bottom: 20px; }
.post-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-family: var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.post-image { margin: 0 -60px 40px; }

.post-content { font-size: 19px; line-height: 1.75; color: #1d1b18; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: 0.8; padding: 6px 10px 0 0; color: var(--accent); }
.post-content h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin-top: 1.8em; }
.post-content h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; margin-top: 1.6em; }
.post-content a { color: var(--accent); border-bottom: 1px solid currentColor; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; font-family: var(--serif); font-size: 26px; line-height: 1.35; font-style: italic; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: 0.4em; }
.post-content hr { border: 0; text-align: center; }
.post-content hr::after { content: "* * *"; letter-spacing: 12px; color: var(--accent); }
.post-content img { margin: 2em auto; }
.post-content code { font-size: 0.85em; background: #ebe6db; padding: 2px 5px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-content th, .post-content td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.post-content th { font-family: var(--sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid var(--ink); }

.more { border-top: 1px solid var(--ink); margin-top: 32px; }

/* Footer */
.site-footer {
  margin-top: 64px; padding: 24px 0 40px; border-top: 3px double var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-brand { font-family: var(--sans); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; text-transform: uppercase; color: var(--ink); }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }

@media (max-width: 820px) {
  .lead { grid-template-columns: 1fr; gap: 32px; }
  .lead-side { border-left: 0; padding-left: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .post-image { margin-left: 0; margin-right: 0; }
  .masthead-title { font-size: 42px; }
  .topbar-inner span:last-child { display: none; }
}
