/* ============================================================
   Apollo Nova — Blog (public)
   Reuses the site palette: burgundy #930f2f + cream #f7e7ce
   ============================================================ */

@font-face {
  font-family: "GT-Pressura-Bold";
  src: url("/fonts/GT-Pressura-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --burgundy: #930f2f;
  --burgundy-dark: #6f0b24;
  --cream: #f7e7ce;
  --cream-light: #fdf5eb;
  --charcoal: #1a1a1a;
  --text-dark: #2b1810;
  --muted: #6b5a4a;
  --line: rgba(43, 24, 16, 0.12);
  --font-display: "GT-Pressura-Bold", Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", "Noto Serif", serif;
  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body.blog {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: var(--wrap-narrow); }

/* ---- Header ---- */
.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 231, 206, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.blog-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
  height: 3.75rem; display: flex; align-items: center; justify-content: space-between;
}
.blog-logo__mark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em;
  color: var(--burgundy); font-size: 1.05rem;
}
.blog-header__nav { display: flex; gap: 1.25rem; align-items: center; }
.blog-header__nav a { color: var(--text-dark); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em; }
.blog-header__nav a.is-current { color: var(--burgundy); }

.blog-main { min-height: 50vh; padding-bottom: 4rem; }
/* Listing content sits directly in a .wrap; give it breathing room below the header. */
.blog-main > .wrap { padding-top: 2.5rem; }

/* ---- Shared editorial bits ---- */
/* Mono-ish uppercase section label used on cards and the featured story. */
.kicker {
  font-family: var(--font-display); color: var(--burgundy);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.82rem; }
.card-meta__author { color: var(--text-dark); font-weight: 600; }
.card-meta__sep { opacity: 0.5; }

/* ---- Featured lead story ---- */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center;
  margin: 3rem 0; padding-bottom: 3rem; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.featured:hover { text-decoration: none; }
.featured__media { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 16px; background: var(--cream); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.04); }
.featured__body { display: flex; flex-direction: column; gap: 0.85rem; }
.featured__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; margin: 0; color: var(--text-dark); }
.featured__excerpt { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.featured__more { color: var(--burgundy); font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.03em; }

@media (max-width: 48rem) {
  .featured { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---- Post grid ---- */
.post-grid {
  display: grid; gap: 2rem; margin: 3rem 0;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 24, 16, 0.12); }
.post-card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-card__link:hover { text-decoration: none; }
/* Square frame: the cover photos are portrait product/cocktail shots, so a
   1:1 crop shows them near-fully (and at native res) instead of slicing a
   tall bottle into a wide letterbox. */
.post-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0; color: var(--text-dark); line-height: 1.25; }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }
.post-card__body .card-meta { margin-top: auto; padding-top: 0.5rem; }

.blog-empty { text-align: center; color: var(--muted); padding: 4rem 0; font-size: 1.1rem; }

/* ---- Pager ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 2rem 0 4rem; }
.pager__count { color: var(--muted); font-size: 0.9rem; }

/* ---- Single post (editorial) ---- */
.post { padding-top: 2.5rem; }
.post__head { text-align: left; padding-top: 1rem; }
.post__back { display: inline-block; margin-bottom: 2rem; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); }
.post__back:hover { color: var(--burgundy); text-decoration: none; }

/* Mono-ish uppercase section label, like a Forbes kicker. */
.post__kicker {
  display: inline-block; margin-bottom: 0.9rem;
  font-family: var(--font-display); color: var(--burgundy);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.post__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.08; margin: 0 0 1.1rem; color: var(--text-dark); }
.post__lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--muted); margin: 0 0 1.6rem; font-style: italic; }

/* Byline row: author · date · reading time. */
.post__byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  padding: 1rem 0 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em;
}
.post__author { color: var(--text-dark); font-weight: 600; }
.post__sep { opacity: 0.5; }
.post__read { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }

.post__cover { margin: 2.5rem auto; max-width: var(--wrap); padding: 0 1.25rem; }
.post__cover img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 34rem; border-radius: 14px; }
.post__cover figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.82rem; font-style: italic; text-align: center; }

/* Cover display options, chosen per post in the editor. */
/* Width — how far across the page the hero spans. */
.post__cover.cover--w-narrow   { max-width: var(--wrap-narrow); }
.post__cover.cover--w-standard { max-width: var(--wrap); }
.post__cover.cover--w-wide     { max-width: 90rem; }
.post__cover.cover--w-full     { max-width: none; padding: 0; }
.post__cover.cover--w-full img { border-radius: 0; }
/* Height — "natural" shows the whole image; the bands crop to a clean strip. */
/* Natural = whole image, no crop. Fill the chosen cover width (like the banner
   heights do) so the width control has a visible effect even when the source
   image is smaller than the column. Capped at 40rem tall with object-fit:contain
   so tall/portrait sources can't balloon and nothing is ever distorted; small
   sources will upscale to fill and soften a little. */
.post__cover.cover--h-natural img { width: 100%; height: auto; max-height: 48rem; object-fit: contain; }
.post__cover.cover--h-short  img { width: 100%; height: 18rem; max-height: none; object-fit: cover; }
.post__cover.cover--h-medium img { width: 100%; height: 28rem; max-height: none; object-fit: cover; }
.post__cover.cover--h-tall   img { width: 100%; height: 42rem; max-height: none; object-fit: cover; }
@media (max-width: 40rem) {
  .post__cover.cover--h-medium img { height: 20rem; }
  .post__cover.cover--h-tall   img { height: 24rem; }
}

/* ---- Hero: wide cover image with a left-anchored, overlapping title card ---- */
/* --hero-band = full hero width; --read-col = body reading width; --card-col =
   title-card width. Card + body share the band's left edge (Forbes layout). */
.post--hero { padding-top: 0; --hero-band: 80rem; --read-col: 48rem; --card-col: 54rem; }
.post__topnav { padding-top: 1.5rem; padding-bottom: 0.25rem; }
.post--hero .post__back { margin-bottom: 1.25rem; }

.post__hero { position: relative; margin: 0 0 1rem; }
.post__hero-media { max-width: var(--hero-band); margin: 0 auto; padding: 0 1.5rem; }
.post__hero-media img {
  display: block; width: 100%; height: 32rem; object-fit: cover;
  border-radius: 18px; background: var(--cream);
}
/* Per-post height sets how tall the hero banner is; width is always the wide hero. */
.post__hero-media.cover--h-short   img { height: 22rem; }
.post__hero-media.cover--h-medium  img { height: 32rem; }
.post__hero-media.cover--h-tall    img { height: 42rem; }
.post__hero-media.cover--h-natural img { height: 30rem; }

/* Title card: anchored to the band's left, pulled up to overlap the image. */
.post__hero-cardwrap { max-width: var(--hero-band); margin: 0 auto; padding: 0 1.5rem; }
.post__hero-card {
  position: relative; z-index: 2; margin: -6rem auto 0; max-width: var(--card-col);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 2.1rem 2.4rem 1.8rem;
  box-shadow: 0 26px 60px rgba(43, 24, 16, 0.18);
}
.post__hero-card .post__kicker { margin-bottom: 0.75rem; }
.post__hero-card .post__title  { margin: 0 0 1rem; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.post__hero-card .post__lead   { margin: 0 0 1.2rem; }
.post__hero-card .post__byline { padding: 0.9rem 0 0; border-top: 1px solid var(--line); border-bottom: none; }

/* Body + footer sit in a centered reading column under the centered card. */
.post__band { max-width: var(--hero-band); margin: 2.5rem auto 0; padding: 0 1.5rem; }
.post__band .post__content { max-width: var(--read-col); margin-left: auto; margin-right: auto; }
.post__band .post__foot { max-width: var(--read-col); margin-left: auto; margin-right: auto; }

@media (max-width: 64rem) { .post--hero { --card-col: 42rem; } }
@media (max-width: 48rem) {
  .post__hero-media img,
  .post__hero-media.cover--h-medium img { height: 18rem; border-radius: 14px; }
  .post__hero-media.cover--h-short  img { height: 15rem; }
  .post__hero-media.cover--h-tall   img { height: 22rem; }
  .post__hero-media, .post__hero-cardwrap, .post__band { padding: 0 1.1rem; }
  .post__hero-card { margin-top: -3.5rem; padding: 1.5rem 1.4rem 1.3rem; border-radius: 14px; max-width: none; }
}

.post__content { font-size: 1.15rem; line-height: 1.8; overflow-wrap: anywhere; }
.post__content h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 2.4rem 0 0.8rem; color: var(--burgundy); }
.post__content h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.post__content h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.post__content p { margin: 0 0 1.3rem; }
.post__content img { border-radius: 10px; margin: 1.5rem auto; }
.post__content a { text-decoration: underline; }

/* Inline image figures — size, placement and optional caption set in the editor.
   All driven by classes so they survive the save-time HTML sanitizer. */
.post__content::after { content: ""; display: block; clear: both; }
.post__content figure.content-figure { margin: 1.8rem auto; max-width: 100%; }
.post__content figure.content-figure img { width: 100%; height: auto; margin: 0; border-radius: 10px; }
.post__content figure.content-figure figcaption {
  margin-top: 0.55rem; color: var(--muted); font-size: 0.85rem;
  font-style: italic; line-height: 1.5; text-align: center;
}
.post__content figure.content-figure.cfig--sm   { max-width: 15rem; }
.post__content figure.content-figure.cfig--md   { max-width: 23rem; }
.post__content figure.content-figure.cfig--lg   { max-width: 34rem; }
.post__content figure.content-figure.cfig--full { max-width: 100%; }
.post__content figure.content-figure.cfig--center { float: none; margin-left: auto; margin-right: auto; }
.post__content figure.content-figure.cfig--left  { float: left;  margin: 0.4rem 1.8rem 1.2rem 0; }
.post__content figure.content-figure.cfig--right { float: right; margin: 0.4rem 0 1.2rem 1.8rem; }
/* A full-width image never floats. */
.post__content figure.content-figure.cfig--full.cfig--left,
.post__content figure.content-figure.cfig--full.cfig--right { float: none; margin: 1.8rem auto; }
/* On phones, every image goes full-width so text never gets squeezed. */
@media (max-width: 34rem) {
  .post__content figure.content-figure {
    float: none !important; max-width: 100% !important; margin: 1.5rem auto !important;
  }
}
/* Pull-quote — larger, editorial, like a Forbes feature. */
.post__content blockquote {
  margin: 2.6rem 0; padding: 0.4rem 0 0.4rem 1.6rem; border-left: 4px solid var(--burgundy);
  font-family: var(--font-display); font-style: normal; color: var(--text-dark);
  font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.3;
}
.post__content blockquote p { margin: 0 0 0.6rem; }
.post__content blockquote p:last-child { margin-bottom: 0; }
.post__content ul, .post__content ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.post__content ul { list-style: disc; }
.post__content ol { list-style: decimal; }
.post__content li { margin: 0.3rem 0; }
.post__content pre { background: var(--charcoal); color: #f4f4f4; padding: 1rem; border-radius: 8px; overflow-x: auto; }
/* Quill alignment classes */
.post__content .ql-align-center { text-align: center; }
.post__content .ql-align-right { text-align: right; }
.post__content .ql-align-justify { text-align: justify; }

.post__foot {
  margin: 3.5rem auto 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.post__foot-by { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 0.6rem 1.25rem; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em;
  cursor: pointer; border: 1px solid transparent; transition: all 0.25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--burgundy); color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: var(--cream); }

/* ---- Footer ---- */
.blog-footer { background: var(--charcoal); color: var(--cream); padding: 2.5rem 0; }
.blog-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.blog-footer__brand { font-family: var(--font-display); letter-spacing: 0.14em; }
.blog-footer__note { opacity: 0.7; font-style: italic; }
.blog-footer a { color: var(--cream); }

@media (max-width: 40rem) {
  .blog-footer__inner { flex-direction: column; text-align: center; }
}
