.nav__drawer,
.nav--solid,
.footer {
  background: var(--marine-deep);
}


.blog-post__container {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 3rem 1.5rem;
}

.blog-post__header {
    margin-bottom: 3rem;
}

.blog-post__title {
    position: relative;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(3rem, 5vw, 4rem);
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.03em;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.blog-post__title span {
    display: inline-block;
}

.blog-post__meta {
    font-size: 0.95rem;
    color: var(--ink-3);
    font-weight: 400;
}
.blog-post-heading {
    font-size: 1.25em;
}

.blog-post__content {
    line-height: 1.8;
    color: var(--ink);
}


.blog-post__content a {
    color: var(--marine);
    text-decoration: underline;
}

.blog-post__content a:hover {
    color: var(--marine-mid);
    text-decoration: underline;
}

.blog-post__content h2 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--marine);
    font-weight: 500;
    font-style: italic;
    line-height: 1.02;
    letter-spacing: -.03em;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}


.blog-post__content h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.blog-post__content hr {
    margin-top: 3rem;
    padding-top: 2rem;
    color: var(--rule);
    border: none;
    border-top: 1px solid var(--marine-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-post__content p {
    margin-bottom: 1.25rem;
}

.blog-post__content ul,
.blog-post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-post__content > :not(.blog-post__figure) {
    width: 100%;
    max-width: 740px;
    margin-inline: auto;
    box-sizing: border-box;
}

.blog-post__content li {
    margin-bottom: 0.75rem;
}

.blog-post__content strong {
    font-weight: 600;
}

.blog-post__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-post__link {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

.blog-post__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--marine);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.blog-post__back-link:hover {
    color: var(--marine-mid);
}

@media (max-width: 768px) {
    .blog-post__container {
        padding: 0.75rem 1rem 2rem;
    }

    /* tighter space between the header bar, "Back to Insights" and the title on phones */
    .blog-post__link {
        margin-bottom: 1.25rem;
        padding-bottom: 0.9rem;
    }

    .blog-post__header {
        margin-bottom: 2rem;
    }

    .blog-post__content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .blog-post__content h3 {
        font-size: 1.2rem;
    }
}

/* Editorial images inside blog posts */
.blog-post__figure {
    width: min(100%, 820px);
    margin: 2rem auto 2.5rem;
    position: relative;
}

.blog-post__figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(30, 54, 40, 0.10);
}

.blog-post__figure::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    background: url("./logo.png") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

@media (max-width: 768px) {

    .blog-post__title {
        font-size: clamp(2rem, 5vw, 3rem);        
    }
    .blog-post__figure {
        width: min(100%, 820px);
        margin: 1.5rem auto 2rem;
    }

    .blog-post__figure img {
        border-radius: 12px;
    }

}

/* SHARE ICONS */
.blog-post__share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.blog-post__share--footer {
    margin-top: 0;
}

.blog-post__share-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 2px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--rule);
    color: var(--ink-3);
    background: transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
    overflow: hidden;
    position: relative;
}

.share-icon:hover,
.share-icon:focus-visible {
    color: var(--marine);
    border-color: var(--marine-mid);
    background: var(--marine-tint);
}

.share-icon svg {
    display: block;
}

.share-icon--x svg {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
}

.share-icon--copy[data-copied="true"] {
    color: var(--forest-mid);
    border-color: var(--forest-mid);
    background: var(--forest-tint);
}

@media (max-width: 480px) {
    .blog-post__share {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-post__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Related reading block — add to post.css */
.blog-post__related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-post__related-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-post__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.blog-post__related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-post__related-card:hover {
  border-color: var(--brand-accent, #c47c2b);
  transform: translateY(-2px);
}

.blog-post__related-card-title {
  font-weight: 600;
  line-height: 1.3;
}

.blog-post__related-card-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}
/* Category label above the article title (add to post.css) */
.blog-post__category {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    /* darker amber than the brand colour: AA contrast for small text */
    color: #9a5f1c;
}

.blog-post__content em {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 1.1em; /* Cormorant runs small next to Outfit */
}
/* Short notice at the start of a post (e.g. "I'm not a doctor"):
   same body font, upright, calm warm panel, easier to read than italic serif */
.blog-post__content p.blog-post__note {
    font-family: inherit;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink);
    background: rgba(196, 124, 43, 0.08);
    border-left: 3px solid rgba(196, 124, 43, 0.55);
    border-radius: 0 12px 12px 0;
    padding: 0.9rem 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
}
.blog-post__content p.blog-post__note strong {
    font-weight: 600;
}

/* Video figure (e.g. Hue Sync demo): same frame as images, no logo watermark over the controls */
.blog-post__figure--video::after { display: none; }
.blog-post__figure video {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #14261b;
    border-radius: 18px; box-shadow: 0 18px 45px rgba(30, 54, 40, 0.10);
}
.blog-post__figure figcaption { margin-top: .75rem; font-size: .9rem; opacity: .75; text-align: center; }

/* Product images beside the text (desktop) / above it (mobile) */
.blog-post__buy { display: flow-root; }
.blog-post__figure--aside {
    float: right;
    clear: right;
    width: 190px;
    margin: .35rem 0 1rem 1.75rem;
}
.blog-post__figure--aside::after { display: none; }
.blog-post__figure--aside img {
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(30, 54, 40, 0.10);
}
@media (max-width: 768px) {
    .blog-post__figure--aside {
        float: none;
        width: min(100%, 320px);
        margin: 1.25rem auto 1rem;
    }
}

/* Opening heading: when a post starts with a heading, it gets its own style */
.blog-post__content > h2:first-child {
    position: relative;
    font-size: clamp(2.1rem, 4vw, 2.7rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding-top: 1.5rem;
}

.blog-post__content > h2:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--gold-light);
}

/* Intro block: the opening paragraphs of a post stand out */
.blog-post__content > p:first-child,
.blog-post__content > p:first-child + p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    padding-left: 1.25rem;
    border-left: 3px solid var(--gold-light);
    margin-bottom: 0;
    padding-bottom: 1.1rem;
}

.blog-post__content > p:first-child + p {
    margin-bottom: 2.25rem;
}

@media (max-width: 768px) {
    .blog-post__content > p:first-child,
    .blog-post__content > p:first-child + p {
        font-size: 1.12rem;
        padding-left: 1rem;
    }
}

/* anchor targets inside posts: keep headings clear of the sticky header */
.blog-post h2[id] { scroll-margin-top: 90px; }

/* Optional front matter `heroImage: true` shows the post's own og image at the top of the article body. */
.blog-post__figure--hero {
    width: 100%;
    margin: 0 auto 2rem;
}

.blog-post__figure--hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
