/* High-End Visual Design for Blog */

.page-blog {
  background-color: #FDFBF7; /* Editorial Luxury */
  position: relative;
}

/* Add a subtle noise texture overlay for the Editorial Luxury vibe */
.page-blog::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  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)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

/* Macro Whitespace & Layout centering */
.page-blog .ss-article-shell {
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(8rem, 12vw, 12rem);
  gap: 4rem;
  display: block; /* Override grid */
  max-width: 840px;
  margin-inline: auto;
}

/* Ensure the main article content is beautifully centered */
.page-blog .ss-article-main {
  margin-inline: auto;
}

/* Center rail cards under the article instead of side-by-side */
.page-blog .ss-article-rail {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Massive Typography & Wide geometric Grotesk or Editorial Serif */
.page-blog .hero__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1F1712;
}

.page-blog .hero-content-container {
  text-align: center;
}

/* Fluid Animation for buttons */
.page-blog .ss-btn, .page-blog .btn {
  border-radius: 9999px !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 700ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}

.page-blog .ss-btn:active, .page-blog .btn:active {
  transform: scale(0.98);
}

/* Double-Bezel Rail Cards */
.page-blog .ss-rail-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 2rem;
  padding: 2rem; /* Better padding for full width cards */
  box-shadow: none;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-blog .ss-rail-card::before {
  content: "";
  position: absolute;
  inset: 0.375rem;
  border-radius: calc(2rem - 0.375rem);
  background: #FFFFFF;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8);
  z-index: -1;
}

/* Eyebrow Tags */
.page-blog .ss-eyebrow {
  display: inline-block;
  background: rgba(0,0,0,0.05);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 1rem;
}
