/* ── Corner ribbon ────────────────────────────────────────────────────────── */

.corner-ribbon {
  position: fixed;
  top: 26px;
  right: -36px;
  width: 160px;
  padding: 6px 0;
  background: #4361ee;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */

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

:root {
  --bg:         #07071a;
  --bg-card:    #10102a;
  --border:     #1e1e3a;
  --text:       #ddd;
  --text-muted: #666;
  --accent:     #4361ee;
  --accent-dim: #2a3ea0;
  --radius:     10px;
  --max-w:      760px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: #eee; }
h1 { font-size: 2rem;   margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

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

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #eee;
  white-space: nowrap;
}
.site-title:hover { text-decoration: none; color: #fff; }

.main-nav { display: flex; gap: 1rem; flex: 1; }
.main-nav a { color: var(--text-muted); font-size: 0.9rem; }
.main-nav a:hover, .main-nav a.active { color: #eee; text-decoration: none; }

.lang-switcher { display: flex; gap: 0.75rem; font-size: 0.85rem; }
.lang-switcher a { color: var(--text-muted); }
.lang-switcher a.active { color: #eee; font-weight: 600; }
.lang-switcher a:hover { text-decoration: none; color: #eee; }

/* ── Main ─────────────────────────────────────────────────────────────────── */

.site-main { flex: 1; padding: 2.5rem 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Hero (home) ──────────────────────────────────────────────────────────── */

.hero { margin-bottom: 3rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.75rem; }
.hero-content { color: var(--text-muted); font-size: 1.05rem; }

/* ── Post card (list) ─────────────────────────────────────────────────────── */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.post-card--foreign { border-color: #2a2a3a; opacity: 0.85; }

.post-card h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.post-card h2 a { color: #eee; }
.post-card h2 a:hover { color: #fff; text-decoration: none; }

.post-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.6rem; }

.lang-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  background: #1a1a3a;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text-muted);
}

.post-summary { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.read-more { font-size: 0.85rem; color: var(--accent); }
.read-more:hover { text-decoration: underline; }

/* ── Single post / page ───────────────────────────────────────────────────── */

.post-header, .page-header { margin-bottom: 1.5rem; }
.post-content, .page-content { max-width: 65ch; }
.post-content p, .page-content p { margin-bottom: 1rem; }

/* ── Language notice (foreign-language post) ──────────────────────────────── */

.lang-notice {
  background: #1a1a3a;
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Recent posts section (home) ──────────────────────────────────────────── */

.recent-posts h2 { margin-bottom: 1rem; font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.recent-posts > p { margin-top: 0.5rem; font-size: 0.9rem; }
