/* ===========================================
   POST-EDITORIAL.CSS
   Editorial layout for the Amaro V2 post
   Matches Pencil design: V2 - Editorial Guide
   Colors: bg #090909 | accent #C4713B | body #B8B8B8 | heading #E8E8E8 | caption #5A5A5A | rule #1E1E1E
=========================================== */

/* ----------------------------------------
   Page base
---------------------------------------- */
.ed-page {
    background: #090909;
    color: #B8B8B8;
}

/* ----------------------------------------
   Nav
---------------------------------------- */
.ed-nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 9, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #1E1E1E;
    box-shadow: none;
}

/* ----------------------------------------
   Hero
---------------------------------------- */
.ed-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 0; /* nav is fixed, no offset needed */
}

.ed-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ed-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9, 9, 9, 0.08) 0%,
        rgba(9, 9, 9, 0.35) 40%,
        rgba(9, 9, 9, 0.88) 100%
    );
}

.ed-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 48px 40px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ed-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ed-engage-header {
    display: flex;
    align-items: center;
}

.ed-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C4713B;
}

.ed-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(196, 113, 59, 0.1);
    border: 1px solid rgba(196, 113, 59, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    color: #C4713B;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}
.ed-like-btn:hover {
    background: rgba(196, 113, 59, 0.2);
}
.ed-like-btn .like-icon {
    width: 15px;
    height: 15px;
}
.ed-like-btn .like-count {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.ed-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0 0 14px;
    max-width: 720px;
}

.ed-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(221, 221, 221, 0.75);
    letter-spacing: 0.1px;
}

/* ----------------------------------------
   Article container
---------------------------------------- */
.ed-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 140px 0;
    box-sizing: border-box;
}

/* ----------------------------------------
   Paragraphs
---------------------------------------- */
.ed-article p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #B8B8B8;
    margin: 0 0 24px;
}

/* Opening paragraphs slightly larger */
.ed-article > p:first-of-type,
.ed-article > p:nth-of-type(2) {
    font-size: 18px;
}
.ed-article > p:first-of-type {
    margin-top: 40px;
}

/* ----------------------------------------
   Section headings (h2)
---------------------------------------- */
.ed-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #E8E8E8;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 80px 0 0;
}

/* Accent rule divider — appears before 3rd, 4th, 5th h2 (Paper Plane, Where to Start, Common Questions) */
.ed-article h2:nth-of-type(n+3) {
    margin-top: 0;
    padding-top: 0;
}
.ed-article h2:nth-of-type(n+3)::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #C4713B;
    margin-bottom: 80px;
    margin-top: 80px;
}

.ed-article h2 + p {
    margin-top: 24px;
}

/* Subtitle line immediately after h2 (e.g. "And why one cocktail changed everything.") */
.ed-article h2 + p + p,
.ed-article h2 + p:only-of-type {
    font-size: 17px;
}

/* ----------------------------------------
   Role labels (h3 — AS A MODIFIER etc)
---------------------------------------- */
.ed-article h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C4713B;
    margin: 56px 0 0;
    line-height: 1;
}

.ed-article h3 + p {
    margin-top: 12px;
}

/* ----------------------------------------
   Feature boxes
   Used for: map tiers + bottle guide
---------------------------------------- */
.ed-feature-box {
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ed-feature-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #E8E8E8;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    padding: 20px 22px 10px;
    background: #111111;
    border: 1px solid #1E1E1E;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.ed-feature-box h3 + p {
    font-size: 17px;
    line-height: 1.85;
    color: #B8B8B8;
    margin: 0;
    padding: 0 22px 20px;
    background: #111111;
    border: 1px solid #1E1E1E;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* For "Where to Start" cards — h3 gets an eyebrow label look */
.ed-feature-box h3[id*="your"],
.ed-feature-box h3:contains("YOUR") {
    /* fallback — won't work in CSS but handled by selector below */
}

/* ----------------------------------------
   FAQ section
---------------------------------------- */
.ed-faq {
    margin-top: 24px;
}

.ed-faq-item {
    padding: 32px 0;
    border-bottom: 1px solid #1E1E1E;
}

.ed-faq-item:first-child {
    padding-top: 0;
}

.ed-faq-item:last-child {
    border-bottom: none;
}

.ed-faq-item strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #E8E8E8;
    margin-bottom: 12px;
    font-style: normal;
}

.ed-faq-item p {
    font-size: 16px;
    line-height: 1.85;
    color: #B8B8B8;
    margin: 0;
}

/* ----------------------------------------
   Author bio
---------------------------------------- */
.ed-author-bio {
    margin: 80px 0 0;
    padding: 40px 0 0;
    border-top: 1px solid #1E1E1E;
}

.ed-author-bio-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #5A5A5A;
}

.ed-author-bio-text strong,
.ed-author-bio-text strong a {
    color: #B8B8B8;
    font-weight: 500;
    text-decoration: none;
}

.ed-author-bio-text a {
    color: #B8B8B8;
    text-decoration: none;
    transition: color 0.15s;
}

.ed-author-bio-text a:hover {
    color: #C4713B;
}

/* ----------------------------------------
   Engage bar (like + share)
---------------------------------------- */
.ed-engage {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0 0;
    padding: 24px 0;
    border-top: 1px solid #1E1E1E;
}

/* ----------------------------------------
   Back link
---------------------------------------- */
.ed-back {
    display: inline-block;
    margin: 48px 0 80px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5A5A5A;
    text-decoration: none;
    transition: color 0.2s;
}
.ed-back:hover {
    color: #C4713B;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.ed-footer.footer {
    background: #090909;
    border-top: 1px solid #1E1E1E;
    padding: 32px 0 60px;
    margin-top: 0;
}

.ed-footer .footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #5A5A5A;
}

/* ----------------------------------------
   Inline content helpers
   (pull quotes, recipe blocks use inline styles
   from the markdown but these reinforce them)
---------------------------------------- */

/* Images inside article */
.ed-article img {
    display: block;
    width: 100%;
    border-radius: 4px;
    margin: 0;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
    .ed-article {
        padding: 0 48px;
    }
}

@media (max-width: 640px) {
    .ed-title {
        font-size: 36px;
    }
    .ed-hero {
        height: 400px;
    }
    .ed-hero-content {
        padding: 0 24px 28px;
    }
    .ed-article {
        padding: 0 20px;
    }
    .ed-article h2 {
        font-size: 26px;
    }
    .ed-article h2:nth-of-type(n+3)::before {
        margin-top: 56px;
        margin-bottom: 56px;
    }
}
