:root {
  --bg: #f5f3f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #161616;
  --text-soft: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.05);
  --accent: #111111;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 28px 70px rgba(0, 0, 0, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.035), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.03), transparent 22%),
    linear-gradient(180deg, #f7f6f4 0%, #f2efec 100%);
  line-height: 1.7;
}

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

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

/* NAV */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 243, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(94%, var(--max-width));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #111;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav a {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e6e;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
  color: #111;
  transform: translateY(-1px);
}

/* HERO */
.hero-blog {
  width: min(94%, var(--max-width));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
}

.hero-blog-content {
  max-width: 760px;
  padding: 2rem 0 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.hero-blog h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.intro {
  margin: 1.4rem 0 0;
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* WRAPPER */
.blog-wrapper {
  width: min(94%, var(--max-width));
  margin: 0 auto 5rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.section-heading h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 650px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.6rem;
}

.post-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}

.post-card.featured {
  grid-column: span 8;
}

.post-image-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e6e2;
}

.post-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover img {
  transform: scale(1.04);
}

.post-info {
  padding: 1.4rem 1.4rem 1.6rem;
}

.post-category {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.post-info h2 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.post-info h2 a {
  color: var(--text);
  transition: opacity 0.25s ease;
}

.post-info h2 a:hover {
  opacity: 0.7;
}

.post-excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* featured refinements */
.post-card.featured .post-info {
  padding: 1.6rem 1.6rem 1.8rem;
}

.post-card.featured .post-info h2 {
  font-size: 1.95rem;
}

/* subtle spacing rhythm */
.post-card:nth-child(3n + 2) {
  margin-top: 1.2rem;
}

.post-card:nth-child(3n) {
  margin-top: 2.2rem;
}

/* responsive */
@media (max-width: 1100px) {
  .post-card,
  .post-card.featured {
    grid-column: span 6;
  }

  .post-card:nth-child(3n + 2),
  .post-card:nth-child(3n) {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 78px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-blog {
    padding: 3.5rem 0 2.2rem;
  }

  .hero-blog h1 {
    font-size: 2.8rem;
  }

  .intro {
    font-size: 1rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .post-card,
  .post-card.featured {
    grid-column: auto;
    margin-top: 0;
  }

  .post-info h2,
  .post-card.featured .post-info h2 {
    font-size: 1.35rem;
  }

  .post-info {
    padding: 1.2rem 1.2rem 1.4rem;
  }
}