/* ── History of Jazz — jazz noir theme (dark mode) ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --max-width: 720px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #111111;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --text: #e8e8e8;
  --text-bright: #ffffff;
  --muted: #9ca3af;
  --muted-dim: #6b7280;
  --border: #2a2a2a;
  --red: #e63946;
  --red-dark: #c41e3a;
  --red-soft: rgba(230, 57, 70, 0.1);
}

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  background: var(--bg);
  padding: 0;
  border-bottom: 2px solid var(--red);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-title:hover {
  color: var(--red);
}
.site-header nav {
  display: flex;
  align-items: center;
}
.site-header nav a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text-bright);
}

/* ── Language switcher ── */
.lang-switch {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.lang-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted) !important;
  text-decoration: none;
}
.lang-link:hover {
  color: var(--red) !important;
}

/* ── Translation link (single post) ── */
.translation-link {
  margin-top: 8px;
  font-size: 0.9rem;
}
.translation-link a {
  color: var(--red);
  text-decoration: none;
}
.translation-link a:hover {
  text-decoration: underline;
}

/* ── Hero (home) ── */
.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-bright);
}
.hero-content {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.hero-content a { color: var(--red); }
.hero-content strong { color: var(--text-bright); }

/* ── Post list ── */
.latest-posts { padding: 0 0 48px; }
.latest-posts h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
}
.post-list {
  list-style: none;
}
.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.post-item:hover {
  background: var(--bg-hover);
  margin: 0 -12px;
  padding: 20px 12px;
  border-radius: 4px;
  border-bottom-color: transparent;
}
.post-item time {
  font-size: 0.8rem;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 6px 0 8px;
  line-height: 1.4;
}
.post-item h3 a {
  color: var(--text-bright);
  text-decoration: none;
}
.post-item h3 a:hover {
  color: var(--red);
}
.post-item .excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}
.view-all {
  display: inline-block;
  margin-top: 24px;
  color: var(--red);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.view-all:hover { text-decoration: underline; }

/* ── Empty state ── */
.empty {
  color: var(--muted-dim);
  font-style: italic;
  padding: 24px 0;
}

/* ── Tags ── */
.tags { margin-top: 8px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--red);
  background: var(--red-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-right: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Section intro ── */
.section-intro {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

/* ── Single post ── */
.post { padding: 48px 0 60px; }
.post-header { margin-bottom: 36px; }
.post-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text-bright);
}
.post-header .meta {
  color: var(--muted-dim);
  font-size: 0.85rem;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-content h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 40px 0 12px;
  color: var(--text-bright);
  border-bottom: 2px solid var(--red-soft);
  padding-bottom: 6px;
}
.post-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--text-bright);
}
.post-content p {
  margin-bottom: 18px;
}
.post-content a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-soft);
}
.post-content a:hover {
  border-bottom-color: var(--red);
}
.post-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  color: var(--muted);
  margin: 20px 0;
  font-style: italic;
}
.post-content img { max-width: 100%; border-radius: 4px; }

/* ── Sources ── */
.sources {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 6px;
  margin-top: 32px;
}
.sources h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 10px;
}
.sources ol {
  padding-left: 20px;
  font-size: 0.88rem;
}
.sources li { margin-bottom: 4px; }
.sources a {
  color: var(--red);
  word-break: break-all;
}

/* ── Post nav ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.post-nav a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.post-nav a:hover { text-decoration: underline; }
.post-nav .next { margin-left: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--bg);
  padding: 20px 0;
  margin-top: 48px;
  border-top: 2px solid var(--red);
}
.site-footer p {
  font-size: 0.82rem;
  color: var(--muted-dim);
  text-align: center;
}
.site-footer .ai-notice {
  font-size: 0.75rem;
  color: var(--muted-dim);
  margin-top: 4px;
}
.site-footer a {
  color: var(--red);
  text-decoration: none;
}

/* ── Selection ── */
::selection {
  background: var(--red);
  color: var(--text-bright);
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-dim); }

/* ── Responsive ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.7rem; }
  .post-header h1 { font-size: 1.5rem; }
  .site-header .container { flex-direction: column; gap: 10px; }
  .site-header nav a { margin-left: 16px; }
  .lang-switch { margin-left: 12px; padding-left: 12px; }
  .post-item:hover { margin: 0 -8px; padding: 20px 8px; }
}
