@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400&family=Plus+Jakarta+Sans:wght@400;500&display=swap");

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ede8;
  --bg-parchment: #e8e4dd;
  --surface: #ffffff;
  --primary: #1b3d2f;
  --primary-muted: #4a6358;
  --accent: #c67b5c;
  --accent-hover: #b36a4d;
  --text-headline: #2c2c2c;
  --text-body: #2c2c2c;
  --text-secondary: #6b6560;
  --text-muted: #9a9590;
  --border: #e8e4dd;
  --shadow-card: 0 2px 8px rgba(44, 44, 44, 0.04), 0 8px 24px rgba(44, 44, 44, 0.06);
  --shadow-hover: 0 4px 12px rgba(44, 44, 44, 0.06), 0 16px 32px rgba(44, 44, 44, 0.08);
  --max-width: 1200px;
  --section-padding-v: 120px;
  --card-padding: 32px;
  --card-radius: 2px;
  --margin-desktop: 120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-body);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.005em;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

.blog-page {
  background: var(--bg);
}

.container {
  width: min(calc(100% - (var(--margin-desktop) * 2)), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding-v) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.overline {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overline.center {
  text-align: center;
}

.h2 {
  margin: 0;
  color: var(--text-headline);
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.005em;
}

.body-lg {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #2a4f3f;
}

/* NAV */
.blog-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.blog-nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(calc(100% - 80px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.wordmark {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-headline);
}

.nav-link.active {
  color: var(--text-headline);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  border-bottom: 1px solid var(--text-headline);
}

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile-panel {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.nav-mobile-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* HERO */
.blog-hero {
  margin-top: 80px;
  padding: 120px 0 64px;
  background: linear-gradient(180deg, #faf8f5 0%, #f0ede8 100%);
}

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

.blog-hero .overline {
  margin-bottom: 24px;
}

.blog-display {
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.015em;
  color: var(--text-headline);
}

.blog-hero .body-lg {
  max-width: 620px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 30px;
}

/* FEATURED POST */
.featured-section {
  padding: 0 0 80px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
  overflow: hidden;
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
}

.featured-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.featured-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--primary-muted);
  opacity: 0.4;
}

.featured-content {
  padding: 48px 48px 48px 0;
}

.featured-content .category-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  background: var(--primary);
  color: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: var(--card-radius);
}

.featured-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--text-headline);
}

.featured-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--primary);
}

.featured-excerpt {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.featured-meta .meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* BLOG POSTS GRID */
.posts-section {
  padding: 0 0 var(--section-padding-v);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: var(--card-padding);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-radius: var(--card-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.post-card-image svg {
  width: 32px;
  height: 32px;
  color: var(--primary-muted);
  opacity: 0.35;
}

.post-card-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: var(--card-radius);
  align-self: flex-start;
}

.post-card-title {
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: var(--text-headline);
}

.post-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-card-date {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

.post-card-readmore {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.post-card-readmore:hover {
  color: var(--primary-muted);
}

/* FOOTER */
.blog-footer {
  background: var(--primary);
  color: var(--bg);
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bg);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.footer-tagline {
  margin: 0;
  max-width: 240px;
  color: rgba(250, 248, 245, 0.6);
  font-size: 14px;
  line-height: 22px;
}

.footer-heading {
  margin: 0 0 16px;
  color: var(--bg);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0 0 10px;
}

.footer-links a {
  color: rgba(250, 248, 245, 0.65);
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 248, 245, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-copy,
.footer-bottom-links {
  color: rgba(250, 248, 245, 0.4);
  font-size: 13px;
  line-height: 20px;
}

.footer-bottom-links a:hover {
  color: var(--bg);
}

/* REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-20px);
}

.reveal-right {
  transform: translateX(20px);
  transition-delay: 0.15s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  :root {
    --margin-desktop: 64px;
    --section-padding-v: 96px;
  }

  .blog-display {
    font-size: 54px;
    line-height: 62px;
  }

  .featured-card {
    gap: 32px;
  }

  .featured-content {
    padding: 32px 32px 32px 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --margin-desktop: 40px;
  }

  .nav-inner {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .nav-center {
    gap: 24px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --margin-desktop: 20px;
    --section-padding-v: 64px;
  }

  .nav-inner {
    width: calc(100% - 40px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-center,
  .nav-cta-wrap {
    display: none;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .blog-hero {
    padding: 100px 0 48px;
  }

  .blog-display {
    font-size: 40px;
    line-height: 48px;
  }

  .h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .body-lg {
    font-size: 17px;
    line-height: 27px;
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-image-wrap {
    min-height: 220px;
  }

  .featured-image-placeholder {
    min-height: 220px;
  }

  .featured-content {
    padding: 28px;
  }

  .featured-title {
    font-size: 26px;
    line-height: 34px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .btn,
  .nav-link,
  .nav-mobile-panel,
  .post-card,
  .featured-card,
  .reveal {
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
