/* ============================================================
   PhotoFresco marketing landing — dark, cinematic, confident.
   Self-contained: system fonts only, no external assets.
   ============================================================ */

:root {
  --bg: #101216;
  --bg-raised: #15171c;
  --surface: #1b1e25;
  --surface-2: #21252e;
  --line: rgba(230, 233, 238, 0.08);
  --line-strong: rgba(230, 233, 238, 0.14);
  --text: #e6e9ee;
  --text-dim: #9aa3b2;
  --text-faint: #6b7280;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --amber: #f0a35e;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 18px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #4b8ef8 0%, #2f6fe0 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px -8px rgba(59, 130, 246, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 32px -10px rgba(59, 130, 246, 0.7);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(230, 233, 238, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(230, 233, 238, 0.08);
  border-color: rgba(230, 233, 238, 0.24);
  transform: translateY(-1px);
}

.btn-lg { font-size: 17px; padding: 17px 32px; border-radius: 13px; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 22, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: url(/logo-mark.svg) center / contain no-repeat;
}

.brand-word {
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand .fresco {
  background-image: linear-gradient(105deg, #8ab4ff 0%, #b98ad8 55%, #f3ac5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--text-dim);
}

.nav-links a:not(.btn) { transition: color 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav .btn { font-size: 14px; padding: 10px 18px; border-radius: 10px; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

/* layered atmosphere: blue key light + a sunset ember echoing the artwork */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 900px;
  background:
    radial-gradient(560px 420px at 72% 30%, rgba(224, 118, 59, 0.16), transparent 68%),
    radial-gradient(820px 560px at 30% 12%, rgba(59, 130, 246, 0.2), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 233, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 233, 238, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(230, 233, 238, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 76px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 14ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 20%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; /* fallback */
}

.hero h1 .free {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 55%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 56ch;
  text-wrap: balance;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* hero screenshot in a window frame */

.hero-shot {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  max-width: 1120px;
  padding: 0 24px;
}

.window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 120px -30px rgba(59, 130, 246, 0.25);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #23272f 0%, #1d2129 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.window-bar .wdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(230, 233, 238, 0.16);
}

.window-bar .wdot:nth-child(1) { background: #f66a5c; }
.window-bar .wdot:nth-child(2) { background: #f5bf4f; }
.window-bar .wdot:nth-child(3) { background: #63c554; }

.window-bar .wurl {
  margin-left: 12px;
  flex: 1;
  max-width: 380px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window img { width: 100%; }

.hero-fade {
  position: relative;
  height: 110px;
  margin-top: -110px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ---------- ticker strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 20px 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.strip-inner svg { color: var(--accent); flex: none; }

/* ---------- features ---------- */

.features { padding: 110px 0 40px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17.5px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}

.feature + .feature { border-top: 1px solid var(--line); }

.feature.flip .feature-media { order: 2; }
.feature.flip .feature-copy { order: 1; }

.feature-copy .kicker { margin-bottom: 16px; }

.feature-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17px;
}

.feature-copy .points {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.feature-copy .points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-dim);
}

.feature-copy .points li strong { color: var(--text); font-weight: 600; }

.points .check {
  flex: none;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7fb0fa;
}

.feature-media { position: relative; min-width: 0; }

.feature-media .glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(59, 130, 246, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.feature-media.warm .glow {
  background: radial-gradient(60% 60% at 50% 50%, rgba(224, 118, 59, 0.14), transparent 70%);
}

.shot {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 60px -18px rgba(0, 0, 0, 0.6);
}

.shot img { width: 100%; }

/* cropped viewport: zooms a screenshot region (keeps text in shots legible) */
.shot.crop { aspect-ratio: 4 / 3.1; }

.shot.crop img {
  position: absolute;
  width: 172%;
  max-width: none;
  top: 0;
  right: 0;
}

.shot-caption {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-caption::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

/* privacy "network monitor" card (feature 3 has no screenshot — build one) */

.netmon {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 24px 60px -18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.netmon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.netmon-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34d399;
}

.netmon-bar .live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.9);
}

.netmon-rows { padding: 8px 0; }

.netmon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
}

.netmon-row + .netmon-row { border-top: 1px solid rgba(230, 233, 238, 0.045); }

.netmon-row .op { color: var(--text); }
.netmon-row .op .path { color: var(--text-dim); }

.netmon-row .val { color: var(--text-dim); white-space: nowrap; }
.netmon-row .val.ok { color: #34d399; }

.netmon-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line-strong);
  background: rgba(52, 211, 153, 0.06);
  color: #34d399;
  font-weight: 600;
}

.netmon-total .zero { font-size: 22px; letter-spacing: -0.02em; }

/* pricing chips under the premium feature */

.price-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.price-chip {
  border: 1px solid var(--line-strong);
  background: rgba(230, 233, 238, 0.03);
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.45;
}

.price-chip b {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.price-chip.hot {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--accent-soft);
}

.price-chip.hot b { color: #9cc1fb; }

.price-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.price-note + .price-note { margin-top: 6px; }

.price-note strong { color: var(--text); }

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  /* copy leads on small screens; the shot follows it */
  .feature .feature-copy,
  .feature.flip .feature-copy { order: 1; }
  .feature .feature-media,
  .feature.flip .feature-media { order: 2; }
  .features { padding: 72px 0 20px; }
}

/* ---------- final CTA ---------- */

.cta {
  position: relative;
  margin: 40px 0 0;
  padding: 96px 0 108px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: auto -20% -60%;
  height: 620px;
  background:
    radial-gradient(500px 340px at 66% 80%, rgba(224, 118, 59, 0.13), transparent 70%),
    radial-gradient(700px 460px at 38% 90%, rgba(59, 130, 246, 0.22), transparent 68%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.cta h2 .free {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 60%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 18px;
  max-width: 48ch;
  text-wrap: balance;
}

.cta .hero-ctas { margin-top: 34px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
}

.footer .brand { font-size: 15px; }
.footer .brand-mark { width: 22px; height: 22px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }

.footer-legal {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #565d6b;
}

/* ---------- entrance animation (CSS only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.16s; }
  .rise-3 { animation-delay: 0.27s; }
  .rise-4 { animation-delay: 0.38s; }
  .rise-5 { animation-delay: 0.52s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   PhotoFresco blog — long-form reading layer over the landing
   design system. Appended after landing.css by scripts/
   build-blog.mjs (tokens, nav, footer, buttons come from there).
   ============================================================ */

/* ---------- blog index ---------- */

.blog-index {
  padding: 88px 24px 120px;
}

.blog-hero {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 20%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.blog-hero .accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 55%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.blog-hero p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 17.5px;
  text-wrap: balance;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 22px 48px -18px rgba(0, 0, 0, 0.6),
    0 0 60px -24px rgba(59, 130, 246, 0.4);
}

.post-card h2 {
  font-size: 21.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

.post-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

.post-card-tags,
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.post-card-meta .sep { color: var(--text-faint); }

.post-card-meta .read-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.post-card:hover .read-more { color: #9cc1fb; }
.post-card .read-more .arrow { transition: transform 0.15s ease; }
.post-card:hover .read-more .arrow { transform: translateX(3px); }

/* ---------- post page ---------- */

.post-page {
  position: relative;
  padding: 72px 0 110px;
  overflow: hidden;
}

/* faint key light echoing the landing hero */
.post-page::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto;
  height: 620px;
  background:
    radial-gradient(460px 340px at 74% 20%, rgba(224, 118, 59, 0.08), transparent 68%),
    radial-gradient(700px 460px at 28% 6%, rgba(59, 130, 246, 0.1), transparent 65%);
  pointer-events: none;
}

.post-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.post-head { margin-bottom: 44px; }

.post-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.crumb {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.crumb:hover { color: var(--text); }

.post-head h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.post-standfirst {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.byline-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    url(/logo-mark.svg) center / 22px no-repeat,
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.byline-text { display: flex; flex-direction: column; gap: 1px; }

.byline-author {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.byline-meta {
  font-size: 13px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- article body — serif long-form ---------- */

.post-body {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.75;
  color: #cdd3dd;
}

.post-body > * + * { margin-top: 1.25em; }

.post-body h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2.2em;
  text-wrap: balance;
}

.post-body h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 1.8em;
}

.post-body h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
  margin-top: 1.6em;
}

.post-body strong { color: var(--text); font-weight: 600; }

.post-body a {
  color: #8ab4ff;
  text-decoration: underline;
  text-decoration-color: rgba(138, 180, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.post-body a:hover {
  color: #aecbff;
  text-decoration-color: rgba(138, 180, 255, 0.8);
}

.post-body ul,
.post-body ol {
  padding-left: 1.4em;
  display: grid;
  gap: 0.55em;
}

.post-body li::marker { color: var(--text-faint); }

.post-body blockquote {
  border-left: 3px solid rgba(224, 118, 59, 0.55);
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--text-dim);
}

.post-body blockquote p + p { margin-top: 0.8em; }

.post-body hr {
  border: 0;
  height: 1px;
  background: var(--line-strong);
  margin: 2.4em auto;
  width: 120px;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-style: normal;
  color: #d7dde8;
  background: rgba(230, 233, 238, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  font-size: inherit;
  color: #d7dde8;
}

.post-body figure {
  margin: 1.8em 0;
}

.post-body img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 20px 50px -18px rgba(0, 0, 0, 0.55);
}

.post-body .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
}

.post-body th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.post-body td { border-bottom: 1px solid var(--line); color: var(--text-dim); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body td strong, .post-body td code { color: var(--text); }

/* ---------- post CTA card ---------- */

.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 32px 36px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 12% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    radial-gradient(360px 200px at 92% 110%, rgba(224, 118, 59, 0.1), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
}

.post-cta-copy { max-width: 46ch; }

.post-cta h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.post-cta p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

.post-cta .btn { flex: none; }

.post-end-nav {
  margin-top: 36px;
  font-size: 14.5px;
}

.post-end-nav a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s ease;
}

.post-end-nav a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .blog-index { padding: 56px 24px 80px; }
  .blog-hero { margin-bottom: 44px; }
  .post-page { padding: 44px 0 72px; }
  .post-head { margin-bottom: 34px; }
  .post-standfirst { font-size: 18px; }
  .post-body { font-size: 17px; line-height: 1.72; }
  .post-body h2 { font-size: 23px; }
  .post-body h3 { font-size: 18.5px; }
  .post-cta { padding: 26px 24px; }
  .post-cta .btn-lg { width: 100%; justify-content: center; }
}
