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

:root {
  --cream: #F8F6F1;
  --cream-dark: #EDEAE3;
  --ink: #1A1A1A;
  --ink-soft: #52525B;
  --ink-muted: #71717A;
  --dark: #0F0F0F;
  --dark-border: #2E2E2E;
  --violet: #6D28D9;
  --orange: #F97316;
  --grad-brand: linear-gradient(135deg, #6D28D9 0%, #F97316 100%);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(15,15,15,.88);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  will-change: transform;
  transform: translateZ(0);
  border-bottom: 1px solid var(--dark-border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; line-height: 0;
}
.nav-brand img { height: 28px; width: 28px; display: block; border-radius: 7px; object-fit: cover; }
.nav-logo-wordmark { font-size: 17px; font-weight: 500; color: #fff; letter-spacing: -.3px; line-height: 1; }
.nav-logo-wordmark strong {
  background: linear-gradient(135deg, #f97316, #9333ea);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 700;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: rgba(255,255,255,.9); }
.nav-cta {
  background: linear-gradient(135deg, #6D28D9 0%, #F97316 100%); color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600 !important; font-size: 13px !important;
  transition: opacity .15s, transform .1s; text-decoration: none !important;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }


@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo-wordmark { font-size: 15px; white-space: nowrap; }
  .nav-cta { display: none; }
  .nav-links a:not(.nav-cta) { font-size: 13px; white-space: nowrap; }
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

main { padding: 120px 0 80px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 24px;
}
.article-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--violet); background: rgba(109,40,217,.08);
  padding: 6px 10px; border-radius: 6px;
}
.article-date { font-size: 13px; color: var(--ink-muted); }

h1 {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 46px);
  font-weight: 400; line-height: 1.12; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: 20px;
}
.lead {
  font-size: 20px; line-height: 1.55; color: var(--ink-mid, var(--ink-soft));
  margin-bottom: 40px; color: var(--ink);
  opacity: .85;
}

.prose h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--ink); margin: 48px 0 16px; line-height: 1.25;
}
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 20px 1.2em; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }

.article-figure {
  margin: 32px 0; text-align: center;
}
.article-figure img {
  width: 100%; max-width: 640px; height: auto;
  border-radius: 12px; border: 1px solid var(--cream-dark);
  display: inline-block;
}
.article-figure figcaption {
  margin-top: 10px; font-size: 12px; color: var(--ink-muted);
  font-family: var(--mono);
}
.article-figure figcaption a { color: var(--ink-muted); }

.callout {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--violet);
  border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-box {
  margin-top: 56px; padding: 32px;
  background: var(--dark); border-radius: 16px; color: rgba(255,255,255,.7);
  text-align: center;
}
.cta-box h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: #fff; margin-bottom: 12px;
}
.cta-box p { margin-bottom: 20px; font-size: 15px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-brand); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: opacity .15s;
}
.cta-btn:hover { opacity: .9; }

.related {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}
.related-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-muted); margin-bottom: 12px; display: block;
}
.related a {
  color: var(--ink-soft); font-weight: 500; text-decoration: none;
}
.related a:hover { text-decoration: underline; }

.footer {
  background: var(--dark); border-top: 1px solid var(--dark-border);
  color: rgba(255,255,255,.25); text-align: center;
  padding: 24px 32px; font-size: 13px;
}
.footer a { color: rgba(255,255,255,.35); text-decoration: underline; }
