/*
 * Real Brides Magazine — Blog Stylesheet
 * Shared across all blog posts in web/blog/
 *
 * Usage in each post's <head>:
 *   <link rel="preconnect" href="https://fonts.googleapis.com" />
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
 *   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:ital,wght@0,300;0,400;0,700;1,300&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap" rel="stylesheet" />
 *   <link rel="stylesheet" href="/blog/style.css" />
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #faf8f4;
  --warm-white:  #fffcf8;
  --gold:        #b8954a;
  --rose-gold:   #c9a87c;
  --light-gold:  #f5ede0;
  --text:        #2a2320;
  --text-light:  #6b5e58;
  --text-xlight: #a09289;
  --border:      #e6dbd2;
  --black:       #17120f;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ─── Sticky nav bar ─────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-nav__brand em { color: var(--gold); font-style: italic; }
.site-nav__back {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav__back::before { content: '←'; }
.site-nav__back:hover { color: var(--gold); }

/* ─── Article wrapper ────────────────────────────── */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ─── Article header ─────────────────────────────── */
.article__header {
  text-align: center;
  padding: 70px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}
.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.article__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: 20px;
}
.article__title em { font-style: italic; color: var(--gold); }
.article__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 30px;
}
.article__meta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-xlight);
}
.article__meta span { margin: 0 10px; }

/* ─── Section labels & headings ──────────────────── */
.section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.22;
  margin-bottom: 36px;
}
.section-title em { font-style: italic; }

/* ─── Body text ──────────────────────────────────── */
.prose { font-size: 1rem; line-height: 1.9; color: var(--text); }
.prose p { margin-bottom: 1.55em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--rose-gold); }
.prose strong { font-weight: 700; color: var(--black); }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.55em; }
.prose li { margin-bottom: 0.4em; }

/* ─── Full-width figure ───────────────────────────── */
.fig-full {
  margin: 44px 0;
  border-radius: 4px;
  overflow: hidden;
}
.fig-full img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3; /* reserves space before load — override per-post with width+height attrs */
}
.fig-full figcaption {
  font-size: 0.73rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-xlight);
  text-align: center;
  padding-top: 11px;
}

/* ─── Bleed-wide editorial figure ───────────────── */
.fig-editorial {
  margin: 56px -80px;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
@media (max-width: 960px) { .fig-editorial { margin: 48px 0; } }
.fig-editorial img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.fig-editorial figcaption {
  font-size: 0.73rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-xlight);
  text-align: center;
  padding-top: 11px;
}

/* ─── Floated portrait ───────────────────────────── */
.fig-portrait {
  float: right;
  width: 320px;
  margin: 6px 0 28px 44px;
  border-radius: 3px;
  overflow: hidden;
  shape-outside: margin-box;
}
@media (max-width: 640px) {
  .fig-portrait { float: none; width: 100%; margin: 0 0 32px; }
}
.fig-portrait img { width: 100%; height: auto; display: block; aspect-ratio: 2 / 3; /* reserves space before load */ }
.fig-portrait figcaption {
  font-size: 0.73rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-xlight);
  text-align: center;
  padding-top: 9px;
}

/* ─── Pull quote ─────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--rose-gold);
  padding: 6px 0 6px 30px;
  margin: 44px 0;
}
.pull-quote__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
}
.pull-quote__attr {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}

/* ─── Highlight / callout box ────────────────────── */
.highlight-box {
  background: var(--light-gold);
  border-top: 3px solid var(--rose-gold);
  border-radius: 4px;
  padding: 30px 36px;
  margin: 44px 0;
}
.highlight-box__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.highlight-box p { font-size: 0.95rem; }

/* ─── Tip box (lighter, bordered variant) ────────── */
.tip-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 28px;
  margin: 36px 0;
  background: var(--warm-white);
}
.tip-box__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.tip-box p { font-size: 0.95rem; color: var(--text); }

/* ─── Step list ──────────────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  margin: 36px 0;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-gold);
  border: 1px solid var(--rose-gold);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ─── Ornamental divider ─────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ornament__glyph {
  font-size: 0.9rem;
  color: var(--rose-gold);
  letter-spacing: 8px;
}

/* ─── Italic intro line ──────────────────────────── */
.intro-italic {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2em;
}

/* ─── Signature block ────────────────────────────── */
.signature {
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.signature__warm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 4px;
}
.signature__name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin: 8px 0 3px;
}
.signature__title {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: 28px;
}
.signature__closing {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-light);
  border-left: 2px solid var(--rose-gold);
  padding-left: 22px;
  line-height: 1.65;
}

/* ─── Article footer ─────────────────────────────── */
.article-footer {
  text-align: center;
  padding: 52px 0 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
}
.article-footer__back {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.article-footer__back:hover { color: var(--rose-gold); }
.article-footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-xlight);
  margin-top: 14px;
}

/* ─── Clearfix ───────────────────────────────────── */
.clearfix::after { content: ''; display: table; clear: both; }
