@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Serif+4:wght@300;400;600&family=JetBrains+Mono:wght@400;500&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body { background: #f5f0e8; color: #1a1108; font-family: 'Source Serif 4', Georgia, serif; font-weight: 300; line-height: 1.65; min-height: 100vh; }
a { color: #8b1a1a; text-decoration: none; }
a:hover { text-decoration: underline; }
.masthead { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 0; border-bottom: 3px double #c8b99a; }
.masthead-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; color: #7a6a55; letter-spacing: 0.04em; padding-bottom: 0.5rem; border-bottom: 1px solid #c8b99a; margin-bottom: 0.75rem; }
.paper-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-align: center; color: #1a1108; padding: 0.3rem 0 0.5rem; }
.masthead-rule { height: 4px; background: linear-gradient(to right, #8b1a1a 0%, #1a1108 40%, #2c4a6e 100%); margin: 0.5rem 0; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0; justify-content: center; padding: 0.4rem 0 0.6rem; font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.topic-nav a { color: #3d2f1f; padding: 0 0.7rem; border-right: 1px solid #c8b99a; line-height: 1; }
.topic-nav a:last-child { border-right: none; }
.topic-nav a:hover { color: #8b1a1a; text-decoration: none; }
.layout { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 3rem; display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.article-card { border-bottom: 1px solid #c8b99a; padding-bottom: 1.6rem; margin-bottom: 1.6rem; }
.article-card:last-child { border-bottom: none; }
.article-card.featured { border-bottom: 2px solid #1a1108; margin-bottom: 2rem; padding-bottom: 2rem; }
.article-card.featured .article-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-style: italic; }
.article-card.featured .article-excerpt { font-size: 1.05rem; }
.article-card.hidden { display: none; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7a6a55; margin-bottom: 0.4rem; }
.article-topic-tag { background: #1a1108; color: #f5f0e8; padding: 0.1rem 0.45rem; font-size: 0.62rem; letter-spacing: 0.08em; }
.article-topic-tag.color-1 { background: #8b1a1a; }
.article-topic-tag.color-2 { background: #2c4a6e; }
.article-topic-tag.color-3 { background: #3a6b3a; }
.article-topic-tag.color-4 { background: #7a4f00; }
.article-topic-tag.color-5 { background: #5a3070; }
.article-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; color: #1a1108; }
.article-title a { color: inherit; }
.article-title a:hover { color: #8b1a1a; text-decoration: none; }
.article-excerpt { font-size: 0.95rem; color: #3d2f1f; line-height: 1.6; margin-bottom: 0.6rem; }
.read-more { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8b1a1a; border-bottom: 1px solid #8b1a1a; }
.sidebar { border-left: 1px solid #c8b99a; padding-left: 1.5rem; position: sticky; top: 1rem; }
.sidebar-heading { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7a6a55; border-bottom: 2px solid #1a1108; padding-bottom: 0.4rem; margin-bottom: 1rem; }
.sidebar-topic-group { margin-bottom: 1.2rem; }
.sidebar-topic-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f5f0e8; background: #7a6a55; display: inline-block; padding: 0.1rem 0.4rem; margin-bottom: 0.4rem; }
.sidebar-item { padding: 0.4rem 0; border-bottom: 1px dotted #c8b99a; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-title { font-family: 'Playfair Display', Georgia, serif; font-size: 0.88rem; font-weight: 700; line-height: 1.3; color: #1a1108; }
.sidebar-item-title a { color: inherit; }
.sidebar-item-title a:hover { color: #8b1a1a; }
.sidebar-item-date { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: #7a6a55; letter-spacing: 0.04em; }
.sidebar-about { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid #1a1108; }
.sidebar-about h3 { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.sidebar-about p { font-size: 0.82rem; color: #3d2f1f; margin-bottom: 0.5rem; line-height: 1.5; }
.about-sig { font-style: italic; font-family: 'Playfair Display', Georgia, serif; font-size: 0.95rem !important; color: #7a6a55 !important; }
.article-page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 4rem; display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.article-body { max-width: 680px; }
.article-body h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; font-style: italic; line-height: 1.15; margin-bottom: 0.5rem; }
.article-body .article-meta { margin-bottom: 1.5rem; }
.article-body .article-lede { font-size: 1.15rem; font-weight: 400; color: #3d2f1f; border-left: 3px solid #8b1a1a; padding-left: 1rem; margin-bottom: 2rem; font-style: italic; }
.article-body .content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.5rem; color: #1a1108; }
.article-body .content p { margin-bottom: 1.2rem; font-size: 1rem; }
.article-body .content blockquote { border-left: 3px solid #2c4a6e; margin: 1.5rem 0; padding: 0.5rem 1rem; color: #3d2f1f; font-style: italic; }
.article-body .content code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: #ede7d8; padding: 0.1em 0.3em; border: 1px solid #c8b99a; }
.article-body .content pre { background: #ede7d8; border: 1px solid #c8b99a; padding: 1rem; overflow-x: auto; margin: 1.5rem 0; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.5; }
.article-body .content pre code { background: none; border: none; padding: 0; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7a6a55; }
.back-link:hover { color: #8b1a1a; text-decoration: none; }
.site-footer { background: #1a1108; color: #ede7d8; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.05em; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-link { color: #c8b99a; }
.footer-link:hover { color: #f5f0e8; text-decoration: none; }
@media (max-width: 720px) {
  .layout, .article-page-wrap { grid-template-columns: 1fr; }
  .sidebar { border-left: none; border-top: 2px solid #1a1108; padding-left: 0; padding-top: 1.5rem; position: static; }
  .masthead-top { flex-direction: column; gap: 0.25rem; }
}

.cc-wrap { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #c8b99a; }
.cc { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: #7a6a55; letter-spacing: 0.04em; }
.cc a { color: #7a6a55; border-bottom: 1px solid #c8b99a; }
.cc a:hover { color: #8b1a1a; }
