/* ── WonderTx shared site styles ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d1321;
  --ink-soft: #4b5468;
  --paper: #fbfaf8;
  --accent: #ff5b1f;
  --accent-soft: rgba(255, 91, 31, 0.10);
  --line: rgba(13, 19, 33, 0.10);
  --header-h: 104px;
}

html, body {
  height: 100%;
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background-image: url('assets/header-bg.png');
  background-size: cover;
  background-position: center;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 58px;
  width: auto;
  display: block;
}

/* Nav — currently just "About"; Team / Blog get added as siblings
   inside .site-nav once those pages exist. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 19, 33, 0.16);
  background: rgba(251, 250, 248, 0.7);
  transition: border-color .2s, color .2s, background .2s;
}

.site-nav a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-nav a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ── Responsive header ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    padding: 0 18px;
  }

  .logo-link img {
    height: 30px;
    max-width: 100%;
  }

  .site-nav a {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}

/* ── Shared type ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ── Tags (shared: post cards + post headers) ──────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(13, 19, 33, 0.05);
  border: 1px solid rgba(13, 19, 33, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Blog index ─────────────────────────────────────────────── */
.blog-page {
  padding: calc(var(--header-h) + 64px) 24px 120px;
  max-width: 820px;
  margin: 0 auto;
}

.blog-page .eyebrow { margin-bottom: 24px; }

.blog-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 48px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: block;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(251, 250, 248, 0.6);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.post-card:hover {
  border-color: rgba(13, 19, 33, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13, 19, 33, 0.08);
}

.post-card .post-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.post-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 10px;
}

.post-card .post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ── Single post ────────────────────────────────────────────── */
.post-page {
  padding: calc(var(--header-h) + 64px) 24px 120px;
  max-width: 720px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 36px;
}

.post-back:hover { color: var(--ink); }

.post-header .tag-row { margin-bottom: 22px; }

.post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.post-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.post-body p { margin-bottom: 26px; }

.post-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin: 44px 0 20px;
}

.post-body strong { color: var(--ink); font-weight: 700; }

.post-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}
