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

:root {
  --cream: #F7F2F0;
  --warm-white: #FBF7F6;
  --terracotta: #856870;
  --terracotta-light: #F0E8E6;
  --terracotta-mid: #A98990;
  --terracotta-dark: #5C464C;
  --bark: #2E1F22;
  --stone: #7A6468;
  --stone-light: #dec5be;
  --border: #E8D8D4;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--bark); font-size: 16px; line-height: 1.6; }
a { color: inherit; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,242,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--bark); text-decoration: none; }
.nav-logo em { color: var(--terracotta); font-style: normal; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--stone); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--terracotta); }
.nav-cta { background: var(--terracotta) !important; color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 100px; font-weight: 500 !important; }
.nav-cta:hover { background: var(--terracotta-dark) !important; }

.blog-hero { padding: 6.5rem 3rem 5rem; position: relative; overflow: hidden; }
.blog-hero::after {
  content: ''; position: absolute; width: 34rem; height: 34rem; right: -10rem; top: -14rem;
  border-radius: 50%; background: radial-gradient(circle, var(--terracotta-light), transparent 68%); pointer-events: none;
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
  color: var(--terracotta); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--terracotta); }
.blog-title { max-width: 760px; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.7rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
.blog-title em { color: var(--terracotta); font-weight: 400; }
.blog-intro { max-width: 650px; margin-top: 1.75rem; color: var(--stone); font-size: 1.05rem; line-height: 1.8; }

.posts-section { padding: 1rem 3rem 7rem; }
.posts-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(300px, auto); gap: 1.25rem; }
.post-card {
  min-height: 300px; background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; display: flex; flex-direction: column; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.post-card:first-child { grid-row: span 3; min-height: 0; padding: clamp(2rem, 5vw, 3.25rem); }
.post-card:hover { border-color: var(--terracotta-mid); box-shadow: 0 10px 34px rgba(44,26,14,0.08); transform: translateY(-2px); }
.post-card:focus-visible, .btn-primary:focus-visible, .nav-links a:focus-visible, .nav-logo:focus-visible, .back-link:focus-visible { outline: 3px solid var(--terracotta-mid); outline-offset: 4px; }
.post-meta { display: flex; align-items: center; gap: 0.65rem; color: var(--terracotta); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.post-meta span + span::before { content: '·'; margin-right: 0.65rem; color: var(--terracotta-mid); }
.post-card h2 { margin: auto 0 1rem; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.25; }
.post-card-image-frame { width: 100%; min-height: 250px; max-height: 390px; aspect-ratio: 1200 / 760; margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.post-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card:first-child h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.2rem); max-width: 620px; }
.post-card p { color: var(--stone); font-size: 0.92rem; line-height: 1.75; }
.read-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; color: var(--terracotta); font-size: 0.85rem; font-weight: 500; }
.read-link::after { content: '→'; transition: transform 0.2s; }
.post-card:hover .read-link::after { transform: translateX(4px); }

.blog-cta { padding: 6rem 3rem; background: var(--warm-white); border-top: 1px solid var(--border); }
.blog-cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.blog-cta .eyebrow { justify-content: center; }
.blog-cta .eyebrow::before { display: none; }
.blog-cta h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.2; }
.blog-cta p { max-width: 500px; margin: 1rem auto 2rem; color: var(--stone); }
.btn-primary {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 100px; background: var(--terracotta); color: #fff;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.article-header { padding: 5.5rem 3rem 4.5rem; border-bottom: 1px solid var(--border); }
.article-header-inner { max-width: 850px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2.25rem; color: var(--stone); font-size: 0.84rem; text-decoration: none; }
.back-link:hover { color: var(--terracotta); }
.article-header h1 { max-width: 820px; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.article-deck { max-width: 690px; margin-top: 1.5rem; color: var(--stone); font-size: 1.05rem; line-height: 1.8; }
.article-meta { margin-top: 2rem; }

.article-body { padding: 5rem 3rem 6rem; }
.article-content { max-width: 720px; margin: 0 auto; }
.article-content > * + * { margin-top: 1.4rem; }
.article-content h2 { margin-top: 3.25rem; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 400; line-height: 1.25; }
.article-content h3 { margin-top: 2.25rem; font-size: 1rem; font-weight: 500; }
.article-content p, .article-content li { color: var(--stone); line-height: 1.85; }
.article-content ul, .article-content ol { padding-left: 1.35rem; }
.article-content li + li { margin-top: 0.7rem; }
.article-content strong { color: var(--bark); font-weight: 500; }
.article-content a { color: var(--terracotta); text-underline-offset: 3px; }
.article-note { padding: 1.4rem 1.5rem; background: var(--terracotta-light); border-left: 2px solid var(--terracotta); border-radius: 0 10px 10px 0; }
.article-note p { color: var(--bark); font-size: 0.9rem; }
.article-disclaimer { margin-top: 3.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--stone); font-size: 0.78rem; }

footer { background: var(--bark); color: var(--stone-light); padding: 2.5rem 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.footer-logo em { color: var(--terracotta-mid); font-style: normal; }
.footer-note { font-size: 0.8rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.blog-hero .eyebrow, .article-header .back-link { animation: fadeUp 0.45s ease both; }
.blog-title, .article-header h1 { animation: fadeUp 0.5s 0.08s ease both; }
.blog-intro, .article-deck, .article-meta { animation: fadeUp 0.5s 0.16s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 860px) {
  nav { padding: 0.75rem 1rem 0.65rem; flex-wrap: wrap; gap: 0.55rem; }
  .nav-logo { width: 100%; text-align: center; }
  .nav-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; width: 100%; }
  .nav-links li:last-child { display: none; }
  .nav-links a { display: block; padding: 0.45rem 0.2rem; border-radius: 8px; background: rgba(255,255,255,0.38); text-align: center; font-size: 0.76rem; }
  .blog-hero { padding: 4.5rem 1.5rem 3.5rem; }
  .posts-section { padding: 0 1.5rem 4.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card, .post-card:first-child { grid-row: auto; min-height: 330px; padding: 1.75rem; }
  .post-card-image-frame {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    margin: 1.5rem 0;
  }
  .post-card-image {
    object-position: 48% center;
  }
  .post-card:first-child h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .blog-cta { padding: 4.5rem 1.5rem; }
  .article-header { padding: 3.5rem 1.5rem 3.25rem; }
  .article-body { padding: 3.5rem 1.5rem 4.5rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}
