@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@800&display=swap');

:root {
  --accent: #E2C675;
  --accent_dark: #C9AD5E;
  --accent_light: rgba(226, 198, 117, 0.15);
  --accent_glow: rgba(226, 198, 117, 0.25);
  --cta: #5B9CF6;
  --cta_dark: #4A87E0;
  --primary: #1E3A8A;
  --surface: #101528;
  --bg: #0A0E1A;
  --border: rgba(255, 255, 255, 0.08);
  --border_dark: rgba(255, 255, 255, 0.14);
  --text: #ECEDF2;
  --text_mid: #B8BBCF;
  --text_muted: #9A9EBA;
  --font_sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font_display: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  background-color: var(--bg);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font_sans);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(226, 198, 117, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(30, 58, 138, 0.08) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle dotted overlay — same treatment as the lobby */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font_display);
  color: var(--text);
  font-weight: 800;
}

a { color: var(--cta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

/* ── Header / Navbar ── */
.site_header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site_header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site_brand {
  font-family: var(--font_display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
  user-select: none;
}
.site_brand span { color: var(--accent); }
.site_brand:hover { color: var(--text); }

.site_back_link {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text_mid);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site_back_link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Footer ── */
.site_footer {
  background: var(--surface);
  margin-top: 80px;
  padding: 32px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.site_footer_inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.2rem;
  color: var(--text_muted);
}
.site_footer_inner a {
  color: var(--text_muted);
  transition: color 0.2s;
}
.site_footer_inner a:hover { color: var(--text); }

/* ── Post list (index page) ── */
.post_list_main { padding: 64px 0 24px; }

.post_list_eyebrow {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post_list_title {
  font-family: var(--font_display);
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.post_list_intro {
  font-size: 1.6rem;
  color: var(--text_mid);
  margin-bottom: 48px;
  max-width: 560px;
}

.post_list { list-style: none; }
.post_list_item { border-top: 1px solid var(--border); }
.post_list_item:last-child { border-bottom: 1px solid var(--border); }

.post_list_link {
  display: block;
  padding: 24px 0;
  color: var(--text);
  transition: padding 0.25s ease, background 0.25s ease;
}
.post_list_link:hover {
  padding-left: 12px;
  color: var(--text);
}
.post_list_date {
  display: block;
  font-size: 1.1rem;
  color: var(--text_muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.post_list_item_title {
  font-family: var(--font_display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.post_list_link:hover .post_list_item_title { color: var(--accent); }
.post_list_item_excerpt {
  color: var(--text_mid);
  font-size: 1.4rem;
}

/* ── Post (article page) ── */
.post_main { padding: 56px 0 24px; }

.post_meta {
  font-size: 1.1rem;
  color: var(--text_muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.post_title {
  font-family: var(--font_display);
  font-size: clamp(3.4rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.post_lede {
  font-size: 1.8rem;
  color: var(--text_mid);
  line-height: 1.55;
  margin-bottom: 48px;
  max-width: 640px;
}

.post_body { font-size: 1.6rem; color: var(--text); }
.post_body p {
  margin-bottom: 20px;
  color: var(--text_mid);
}
.post_body h2 {
  font-family: var(--font_display);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.post_body h3 {
  font-family: var(--font_display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text);
}
.post_body ul, .post_body ol {
  margin: 0 0 20px 28px;
  color: var(--text_mid);
}
.post_body li { margin-bottom: 8px; }
.post_body strong { color: var(--text); font-weight: 600; }

.post_body a { color: var(--cta); }
.post_body a:hover { color: var(--accent); }

.post_body code {
  background: rgba(226, 198, 117, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
}
.post_body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 1.35rem;
  line-height: 1.55;
}
.post_body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.post_body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 20px 0;
  color: var(--text_mid);
  font-style: italic;
}

.post_body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  border: 1px solid var(--border);
}

.post_back {
  display: inline-block;
  margin-top: 32px;
  font-size: 1.3rem;
  color: var(--text_mid);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.post_back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border_dark);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site_header { height: 56px; }
  .site_brand { font-size: 1.8rem; }
  .post_list_main { padding: 40px 0 20px; }
  .post_main { padding: 36px 0 20px; }
  .post_list_link:hover { padding-left: 0; }
}
