:root {
  --bg: #0e0c10;
  --bg2: #141017;
  --card: #1a141f;
  --card-hover: #221a28;
  --ink: #e9e2d6;
  --muted: #a2968a;
  --dim: #6f6558;
  --red: #e8420f;
  --red2: #ff6a3d;
  --gold: #d9a441;
  --line: #2b2231;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--red2); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav .brand:hover { color: var(--ink); }
.nav .brand img { width: 34px; height: 34px; }
.nav .brand b { color: var(--red2); font-weight: 700; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.nav ul a {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
}
.nav ul a:hover, .nav ul a.active { color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 100% at 50% -10%, rgba(232, 66, 15, 0.28), transparent 60%),
    linear-gradient(180deg, #191019 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 72px 20px 60px;
}
.hero .flame { width: 96px; height: 96px; margin-bottom: 18px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.hero h1 .loide { color: var(--red2); }
.hero .tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
}
.hero .meta {
  margin-top: 26px;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- layout ---------- */
.container { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }
.narrow { max-width: 760px; }

/* ---------- post list (index) ---------- */
.post-list { display: grid; gap: 18px; }
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 22px 26px;
  transition: background 0.15s, transform 0.15s;
}
.post-card:hover { background: var(--card-hover); transform: translateX(4px); color: var(--ink); }
.post-card .date {
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.post-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 8px 0 8px;
}
.post-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-title:first-child { margin-top: 0; }

/* ---------- post page ---------- */
.post { max-width: 780px; margin: 0 auto; }
.post .kicker {
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.post h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.post .dateline {
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 30px;
}
.post .dateline::before { content: "— "; }

.post p { margin-bottom: 20px; }
.post h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  margin: 38px 0 14px;
}
.post ul, .post ol { margin: 0 0 20px 24px; }
.post li { margin-bottom: 8px; }
.post blockquote {
  border-left: 3px solid var(--red);
  background: var(--bg2);
  padding: 16px 22px;
  margin: 26px 0;
  font-style: italic;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  border-radius: 0 6px 6px 0;
}
.post blockquote .attr {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  color: var(--muted);
}
.post strong { color: var(--gold); font-weight: 600; }

figure {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
}
figure img { width: 100%; display: block; }
figcaption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.sources {
  margin-top: 44px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.sources .sources-title {
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.sources ul { margin: 0 0 0 18px; }
.sources li { margin-bottom: 4px; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-nav a {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink);
}
.post-nav a:hover { border-color: var(--red); color: var(--ink); }
.post-nav a small {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 4px;
}
.post-nav a.next { text-align: right; }

/* ---------- intro box ---------- */
.intro-box {
  background: linear-gradient(135deg, rgba(232,66,15,0.10), rgba(217,164,65,0.06));
  border: 1px solid rgba(232, 66, 15, 0.35);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 30px 0;
}
.intro-box h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--red2);
}
.intro-box p { color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.intro-box p:last-child { margin-bottom: 0; }

/* ---------- timeline (about) ---------- */
.timeline { list-style: none; margin: 26px 0; border-left: 2px solid var(--line); padding-left: 26px; }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 66, 15, 0.18);
}
.timeline .year {
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}
.timeline .ev { color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.timeline .ev small { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.8;
}
.site-footer .flame { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.8; }
.site-footer .loide {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.site-footer .disclaimer {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 12.5px;
}
.site-footer a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav ul { margin-left: 0; width: 100%; justify-content: flex-start; }
  .hero { padding: 50px 16px 44px; }
  .post-nav { flex-direction: column; }
  .post-nav a.next { text-align: left; }
}
