/* Blog post styles — editorial layout
   Uses brand Helvetica for body, Cormorant Garamond for H1 + pull quote. */

:root {
  --post-bg: #f6f1ea;
  --post-fg: #1d1d1b;
  --post-fg-soft: #5f5b54;
  --post-accent: #c49a6c;
  --post-rule: rgba(29, 29, 27, 0.12);
  --post-serif: "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --post-sans: Helvetica, Arial, sans-serif;
  --post-max: 720px;
}

body { background: var(--post-bg); color: var(--post-fg); }

/* ----- Hero ----- */
.post-hero {
  background-color: var(--bg-header);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  color: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  padding: 140px 24px 120px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.65) 100%);
  z-index: -1;
}

.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, 0.35), transparent 70%);
  z-index: -1;
}

.post-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.post-eyebrow {
  font-family: var(--post-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--post-accent);
  margin: 0 0 24px;
}

.post-title {
  font-family: var(--post-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 28px;
  max-width: 18ch;
  color: #ffffff;
}

.post-meta {
  font-family: var(--post-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.post-meta .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--post-accent);
  border-radius: 50%;
}

/* ----- Body ----- */
.post-body {
  max-width: var(--post-max);
  margin: 0 auto;
  padding: 80px 24px 64px;
  font-family: var(--post-sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 300;
  color: var(--post-fg);
}

.post-body p {
  margin: 0 0 1.6em;
}

.post-body p:last-child { margin-bottom: 0; }

/* Drop cap on lead paragraph */
.post-body .lead::first-letter {
  font-family: var(--post-serif);
  font-weight: 500;
  float: left;
  font-size: 76px;
  line-height: 0.86;
  padding: 6px 12px 0 0;
  color: var(--post-fg);
}

/* Inline figure (full-bleed) */
.post-figure {
  margin: 64px calc(50% - 50vw);
  padding: 0;
  max-width: 100vw;
}

.post-figure img {
  display: block;
  width: min(1240px, 100vw);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-figure figcaption {
  max-width: var(--post-max);
  margin: 16px auto 0;
  padding: 0 24px;
  font-family: var(--post-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--post-fg-soft);
  font-style: italic;
}

/* Pull quote */
.post-body blockquote {
  margin: 56px -8px;
  padding: 12px 0 12px 28px;
  border-left: 2px solid var(--post-accent);
  font-family: var(--post-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--post-fg);
}

.post-body blockquote p { margin: 0; }

/* Inline links */
.post-body a {
  color: var(--post-fg);
  text-decoration: underline;
  text-decoration-color: var(--post-accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.post-body a:hover {
  color: var(--post-accent);
  text-decoration-color: var(--post-accent);
}

/* ----- Footer of post ----- */
.post-footer {
  max-width: var(--post-max);
  margin: 0 auto;
  padding: 0 24px 96px;
  border-top: 1px solid var(--post-rule);
  padding-top: 32px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.post-tags a {
  display: inline-block;
  font-family: var(--post-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--post-rule);
  color: var(--post-fg-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.post-tags a:hover {
  color: #ffffff;
  background: var(--post-accent);
  border-color: var(--post-accent);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--post-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--post-fg);
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}

.post-back::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.post-back:hover { color: var(--post-accent); gap: 14px; }
.post-back:hover::before { background: var(--post-accent); width: 28px; }

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .post-hero { padding: 64px 20px 56px; }
  .post-body { padding: 56px 22px 48px; font-size: 16px; line-height: 1.75; }
  .post-body .lead::first-letter { font-size: 60px; padding-right: 10px; }
  .post-body blockquote { margin: 40px 0; padding-left: 18px; }
  .post-footer { padding: 28px 22px 72px; }
  .post-meta { font-size: 11px; gap: 10px; }
}
