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

:root {
  --cream: #f4f1ea;
  --cream-2: #ebe6da;
  --cream-3: #fffcf6;
  --paper: #faf7f0;

  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-soft: #2a2a2a;

  --gray-1: #4a4742;
  --gray-2: #6a6660;
  --gray-3: #8a857d;
  --gray-4: #b8b3a8;

  --line: #e0dbd1;
  --line-strong: #c8c2b5;

  --blue: #1a3ad0;
  --blue-soft: #e8ecfb;
  --orange: #ff5722;
  --orange-soft: #ffeae3;
  --green: #16a34a;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

main { position: relative; z-index: 2; }

/* ========== NAV (shared with main site) ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  transition: all 0.4s ease;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  font-variation-settings: 'opsz' 144;
  white-space: nowrap;
}
.brand-mark { width: 28px; height: 28px; position: relative; }
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--ink);
}
.brand-mark::after {
  border-color: var(--blue);
  animation: orbit 3s linear infinite;
  border-style: dashed;
  border-width: 1.5px;
}
@keyframes orbit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.brand-mark span {
  position: absolute; inset: 8px;
  background: var(--ink); border-radius: 50%;
}
.brand em { font-style: italic; color: var(--blue); margin-left: -2px; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 36px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--gray-1); transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--ink); transition: width 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--ink); color: var(--cream);
  padding: 11px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 500; border: none;
  display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ========== SHARED SECTION SCAFFOLDING ========== */
section { padding: 100px 40px; position: relative; }
.container { max-width: 1400px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--gray-2);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gray-2); }

.section-title {
  font-family: var(--sans); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 20px; color: var(--ink); max-width: 900px;
}
.section-title em { font-style: normal; color: var(--blue); font-weight: 700; }
.section-sub { font-size: 18px; color: var(--gray-1); max-width: 640px; line-height: 1.6; }

/* ========== BLOG HERO ========== */
.blog-hero {
  padding: 180px 40px 80px;
  border-bottom: 1px solid var(--line);
}
.blog-hero .status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--cream-3); border: 1px solid var(--line);
  border-radius: 100px; font-family: var(--mono); font-size: 11px;
  color: var(--gray-1); letter-spacing: 0.5px; margin-bottom: 28px;
}
.blog-hero .status-pill::before {
  content: ''; width: 7px; height: 7px; background: var(--green); border-radius: 50%;
}

/* topic filter row */
.topic-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px;
}
.topic-pill {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--gray-1); background: var(--cream-3); transition: all 0.2s;
}
.topic-pill:hover { border-color: var(--ink); color: var(--ink); }
.topic-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ========== FEATURED POST ========== */
.featured-section { padding-top: 60px; padding-bottom: 60px; }
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  background: var(--cream-3); border: 1px solid var(--line); border-radius: 24px;
  padding: 8px; align-items: stretch; overflow: hidden;
}
.featured-post-img {
  border-radius: 18px; overflow: hidden; min-height: 380px; position: relative;
}
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body { padding: 40px 40px 40px 8px; display: flex; flex-direction: column; justify-content: center; }
.post-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.post-tag::before { content: '●'; font-size: 8px; color: var(--orange); }
.featured-post-body h2 {
  font-family: var(--sans); font-size: clamp(28px, 3vw, 42px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--ink);
}
.featured-post-body h2 em { font-style: normal; color: var(--blue); }
.featured-post-body p { color: var(--gray-1); font-size: 16px; line-height: 1.6; margin-bottom: 28px; max-width: 480px; }
.post-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--gray-3);
  text-transform: uppercase; letter-spacing: 1px;
}
.post-meta .dot { width: 3px; height: 3px; background: var(--gray-4); border-radius: 50%; }
.read-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.read-more svg { transition: transform 0.2s; }
.featured-post:hover .read-more svg { transform: translateX(4px); }

/* ========== POST GRID ========== */
.post-grid-section { border-top: 1px solid var(--line); background: var(--paper); }
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px;
}
.post-card {
  background: var(--cream-3); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; 
}
.post-card:hover { border-color: var(--ink);  }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover;  }

.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-card-body h3 {
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
}
.post-card-body p { color: var(--gray-1); font-size: 14px; line-height: 1.55; flex: 1; }

/* newsletter strip */
.newsletter-strip {
  background: var(--ink); color: var(--cream); border-radius: 24px;
  padding: 56px 56px; margin-top: 90px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.newsletter-strip h3 {
  font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.newsletter-strip h3 em { font-style: normal; color: var(--orange); }
.newsletter-strip p { color: var(--gray-4); font-size: 15px; max-width: 380px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 14px 18px; border-radius: 100px; border: 1px solid var(--gray-1);
  background: transparent; color: var(--cream); font-family: inherit; font-size: 14px; min-width: 240px;
}
.newsletter-form input::placeholder { color: var(--gray-3); }
.newsletter-form button {
  background: var(--cream); color: var(--ink); border: none;
  padding: 14px 24px; border-radius: 100px; font-size: 13px; font-weight: 600;
}
.newsletter-form button:hover { background: var(--orange); color: var(--cream); }

/* ========== ARTICLE (SINGLE POST) ========== */
.article-hero {
  padding: 170px 40px 0; border-bottom: 1px solid var(--line);
}
.article-hero-inner { max-width: 820px; margin: 0 auto; padding-bottom: 56px; }
.article-hero .post-tag { margin-bottom: 22px; }
.article-title {
  font-family: var(--sans); font-size: clamp(34px, 5.5vw, 58px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 26px; color: var(--ink);
}
.article-title em { font-style: normal; color: var(--blue); }
.article-dek { font-size: 19px; color: var(--gray-1); line-height: 1.55; max-width: 640px; margin-bottom: 36px; }
.article-byline {
  display: flex; align-items: center; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line);
}
.byline-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 16px;
}
.byline-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.byline-meta { font-family: var(--mono); font-size: 12px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.article-cover { max-width: 1100px; margin: 0 auto; padding: 56px 40px 0; }
.article-cover img { border-radius: 20px; width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.article-body-section { padding: 70px 40px 0; }
.article-layout {
  max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 0;
}
.article-body {
  font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--ink-soft);
}
.article-body p { margin-bottom: 26px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--sans); font-weight: 700; font-size: 66px; line-height: 0.8;
  float: left; padding: 6px 10px 0 0; color: var(--blue);
}
.article-body h2 {
  font-family: var(--sans); font-weight: 700; font-size: 30px; letter-spacing: -0.02em;
  color: var(--ink); margin: 52px 0 20px; line-height: 1.2;
}
.article-body h2 em { font-style: normal; color: var(--blue); }
.article-body ul, .article-body ol { margin: 0 0 26px 24px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.pull-quote {
  font-family: var(--sans); font-size: 26px; font-weight: 600; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--ink); border-left: 3px solid var(--orange);
  padding: 4px 0 4px 28px; margin: 44px 0; max-width: 640px;
}
.pull-quote em { font-style: normal; color: var(--blue); }
.stat-callout {
  display: flex; gap: 28px; background: var(--cream-3); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; margin: 44px 0; flex-wrap: wrap;
}
.stat-callout-item { flex: 1; min-width: 140px; }
.stat-callout-num {
  font-family: var(--sans); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--blue);
}
.stat-callout-lbl { font-family: var(--mono); font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.article-tag {
  font-family: var(--mono); font-size: 11px; color: var(--gray-2); text-transform: uppercase;
  letter-spacing: 1px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px;
}

.article-cta {
  max-width: 820px; margin: 64px auto 0; background: var(--ink); color: var(--cream);
  border-radius: 20px; padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.article-cta h4 { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.article-cta h4 em { font-style: normal; color: var(--orange); }
.article-cta p { color: var(--gray-4); font-size: 14px; }
.article-cta .btn-primary {
  background: var(--cream); color: var(--ink); padding: 14px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.article-cta .btn-primary:hover { background: var(--orange); color: var(--cream); }

/* related posts */
.related-section { padding: 90px 40px 120px; border-top: 1px solid var(--line); background: var(--paper); margin-top: 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }

/* ========== FOOTER (shared with main site) ========== */
.footer { background: var(--ink); color: var(--gray-4); padding: 80px 40px 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 80px; align-items: start;
}
.footer-brand-block .brand { color: var(--cream); margin-bottom: 24px; }
.footer-brand-block p { font-size: 15px; color: var(--gray-4); line-height: 1.6; max-width: 320px; margin-bottom: 24px; }
.footer-phone { font-family: var(--mono); font-size: 16px; color: var(--orange); display: flex; align-items: center; gap: 8px; }
.footer-locations { display: flex; flex-direction: column; gap: 20px; }
.footer-location-label { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--cream); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.footer-location-addr { font-size: 14px; color: var(--gray-4); line-height: 1.5; max-width: 200px; }
.footer-email { font-family: var(--mono); font-size: 14px; color: var(--gray-4); display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.footer-email svg { color: var(--gray-3); flex-shrink: 0; }
.footer-email:hover { color: var(--orange); }
.footer h5 { font-family: var(--mono); font-size: 11px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; font-weight: 500; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 15px; color: var(--gray-4); transition: color 0.2s; }
.footer li a:hover { color: var(--orange); }
.footer-logotype {
  font-family: var(--serif); font-size: clamp(60px, 10vw, 120px); font-weight: 300; line-height: 0.85;
  letter-spacing: -0.06em; color: var(--cream); margin: 60px 0 40px; font-variation-settings: 'opsz' 144; user-select: none;
}
.footer-logotype em { font-style: italic; color: var(--orange); font-weight: 400; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 32px; display: flex;
  justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray-3); flex-wrap: wrap; gap: 16px;
}
.footer-bottom .powered { font-family: var(--sans); font-size: 13px; }
.footer-bottom .powered strong { color: var(--orange); font-weight: 600; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-img { min-height: 280px; }
  .featured-post-body { padding: 8px 32px 32px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .blog-hero { padding: 140px 24px 60px; }
  section { padding: 70px 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .newsletter-strip { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .article-hero { padding: 130px 24px 0; }
  .article-cover { padding: 40px 24px 0; }
  .article-body-section { padding: 48px 24px 0; }
  .article-cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 60px 24px 32px; }
}
