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

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e5e3de;
  --text: #111;
  --muted: #888;
  --accent: #1a56a0;
  --nav-bg: #111;
  --nav-text: #ccc;
  --tag-budget:     #d1fae5; --tag-budget-text:     #065f46;
  --tag-analysis:   #fef3c7; --tag-analysis-text:   #92400e;
  --tag-commentary: #fee2e2; --tag-commentary-text: #991b1b;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  gap: 0;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) calc(2rem + env(safe-area-inset-right)) 0 calc(2rem + env(safe-area-inset-left));
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}

nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover { color: #fff; }
nav a.active { color: #fff; border-bottom-color: #4a9edd; }

/* ── BANNER ── */
.banner {
  position: relative;
  background: #0d1b2a;
  overflow: hidden;
}

.banner-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 260px;
  opacity: 0.55;
}

.banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-photo.placeholder {
  background: #1c3555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: system-ui, sans-serif;
}

.banner-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  text-align: center;
  padding: 1.25rem 1.5rem;
}

.banner-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  backdrop-filter: blur(2px);
}

.banner-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-seal .seal-placeholder {
  text-align: center;
  line-height: 1.3;
  padding: 8px;
}

.banner-seal .seal-placeholder span {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-family: system-ui, sans-serif;
}

.banner-seal .seal-placeholder strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.banner-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1;
}

.banner-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  line-height: 1.5;
}

/* ── LAYOUT ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.page-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 2.5rem;
}

/* ── POST CARDS ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.post-card:first-child { border-top: 1px solid var(--border); }

.post-thumb {
  width: 130px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}

.post-thumb.placeholder {
  background: #e8e8e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  border-radius: 5px;
  border: 1px dashed #ccc;
}

.post-content { min-width: 0; }

.post-card .meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.post-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }

.post-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover { text-decoration: underline; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.tag.budget     { background: var(--tag-budget);     color: var(--tag-budget-text); }
.tag.analysis   { background: var(--tag-analysis);   color: var(--tag-analysis-text); }
.tag.commentary { background: var(--tag-commentary); color: var(--tag-commentary-text); }

/* ── ARTICLE ── */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-header .meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.article-body { max-width: 680px; }

.article-body p          { margin-bottom: 1.1rem; line-height: 1.75; }
.article-body h2         { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.6rem; letter-spacing: -0.01em; }
.article-body h3         { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; color: #333; }
.article-body ul,
.article-body ol         { margin: 0 0 1rem 1.25rem; }
.article-body li         { margin-bottom: 0.35rem; line-height: 1.65; }
.article-body blockquote {
  border-left: 3px solid var(--border);
  padding: 0.5rem 1rem;
  margin: 1.25rem 0;
  color: #555;
  font-style: italic;
}

/* ── ABOUT ── */
.about-body { max-width: 620px; }
.about-body h2 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.4rem; }
.about-body p  { color: #444; margin-bottom: 0.85rem; line-height: 1.7; }

/* ── EMPTY STATE ── */
.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.back-link:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* ── HOME LAYOUT ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  align-items: start;
}

.questions-panel {
  position: sticky;
  top: 68px;
}

.questions-heading {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.questions-stage {
  background: #0d1b2a;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.questions-stage::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 1rem;
  font-size: 5rem;
  color: rgba(255,255,255,0.07);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.question-text {
  color: #e8f0fe;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.question-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.question-counter {
  display: flex;
  gap: 5px;
  margin-top: 1.25rem;
}

.q-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s;
}

.q-dot.active {
  background: #4a9edd;
}

.posts-panel .page-header { margin-bottom: 1rem; }
.posts-panel .page-header h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.posts-panel .page-header p  { color: var(--muted); font-size: 0.95rem; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  nav a { padding: 0 0.4rem; font-size: 0.65rem; }
  .container { padding: 2rem 1rem; }
  .banner-photos { height: 180px; }
  .banner-title { font-size: 1.6rem; }
  .post-card {
    grid-template-columns: 90px 1fr;
    gap: 0.85rem;
  }
  .post-thumb { width: 90px; height: 65px; }
  .home-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1rem;
  }
  .questions-panel { position: static; }
}
