:root {
  --bg: #0d0f14;
  --surface: #111520;
  --surface-soft: #181c28;
  --text: #e2e4ec;
  --muted: #8b8fa8;
  --border: #1e2235;
  --accent-blue: #38bdf8;
  --accent-magenta: #d946ef;
  --accent-purple: #7c6fcd;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #151923;
  --muted: #5d6675;
  --border: #d9dee8;
  --shadow: 0 18px 45px rgba(22, 28, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

/* ── Nav ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-avatar-link {
  flex: 0 0 auto;
  text-decoration: none;
  display: block;
  border-radius: 50%;
  outline-offset: 2px;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

/* ── Social icons ── */

.social-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
}

.social-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

/* ── Theme toggle ── */

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color 120ms, background 120ms;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-soft);
}

/* ── Page wrapper ── */

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Hero ── */

.hero {
  padding: 100px 0 64px;
}

.location {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 0.95rem;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.accent-blue {
  color: var(--accent-blue);
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--accent-magenta);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 760px;
}

.lede {
  max-width: 640px;
  margin: 0 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}

.button.primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #0a0d12;
}

.button:hover {
  opacity: 0.88;
}

.hero-social {
  margin-top: 28px;
  gap: 4px;
}

.hero-social a {
  width: 40px;
  height: 40px;
}

/* ── Sections ── */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.view-all {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.view-all:hover {
  text-decoration: underline;
}

/* ── Cards / grid ── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms;
}

a.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.item-eyebrow,
.item-date,
.item-status {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  background: var(--surface-soft);
}

/* ── Section panels (brand partnerships) ── */

.section-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.section-panel h3 {
  margin-bottom: 12px;
}

.section-panel p {
  color: var(--muted);
  margin: 0 0 10px;
}

.section-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ── Post pages ── */

.post-shell {
  max-width: 780px;
  padding: 64px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin: 18px 0 28px;
}

.post-body {
  font-size: 1.05rem;
}

.post-body p,
.post-body ul {
  margin: 0 0 20px;
}

.post-body h2 {
  margin: 34px 0 12px;
  font-size: 1.5rem;
}

/* ── Footer ── */

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-inner p {
  margin: 0;
}

/* ── List stack (used by sub-pages) ── */

.list-stack {
  display: grid;
  gap: 14px;
}

/* ── Mobile ── */

@media (max-width: 820px) {
  .nav-shell {
    display: flex;
    align-items: center;
    padding: 10px 0;
  }

  .nav-right {
    gap: 4px;
  }

  .nav-links a {
    padding: 0 8px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
