:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --panel: #162033;
  --panel-2: #1b2740;
  --text: #e7edf7;
  --muted: #9fb0c9;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8fb7ff;
  --accent-strong: #cfe0ff;
  --max: 1160px;
  --narrow: 760px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #09111d 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: white;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 12, 21, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: white;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #23324e, #132036);
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy h1,
.page-hero h1,
.article-page h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: 0.2s ease;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #8fb7ff, #b7cbff);
  color: #07111f;
  border-color: transparent;
}

.btn-primary:hover {
  color: #07111f;
  transform: translateY(-1px);
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel,
.panel-card,
.info-card,
.archive-card,
.inline-panel,
.quote-box {
  background: linear-gradient(180deg, rgba(25, 36, 58, 0.95), rgba(16, 25, 41, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-card,
.info-card,
.archive-card,
.inline-panel,
.quote-box {
  padding: 1.4rem;
}

.panel-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 0 0 0.6rem;
}

.panel-card h2,
.archive-card h2,
.info-card h3 {
  margin-top: 0;
  line-height: 1.2;
}

.text-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
}

.section {
  padding: 3.6rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-accent {
  padding-top: 2.8rem;
  padding-bottom: 4.2rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.post-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-body h3 {
  margin: 0 0 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}

.quote-box blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.quote-credit {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 33, 53, 0.95), rgba(13, 21, 36, 0.95));
}

.page-hero {
  padding: 4.2rem 0 1rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.archive-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.8rem;
}

.article-page {
  padding: 4rem 0;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.prose p,
.prose li {
  color: #d9e2f1;
}

.prose ul {
  padding-left: 1.2rem;
}

.email-link {
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 1.8rem;
  padding: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid.three,
  .archive-grid,
  .two-col,
  .footer-grid,
  .post-row {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 18, 32, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .page-hero,
  .article-page {
    padding-top: 2.8rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .article-page h1 {
    font-size: 2.25rem;
  }
}
