/* Shared stylesheet for the blog section (blog.html + individual posts).
   Tokens match index.html's brand system so the blog feels like one site,
   not a bolted-on afterthought. */

:root{
    --ink:#1b4332;
    --ink-soft:#2d6a4f;
    --clay:#bf6b4c;
    --clay-soft:#e3b48f;
    --cream:#f6efe0;
    --paper:#fffaf2;
    --charcoal:#241f1c;
    --stamp:#a13d2e;
    --brass:#b6903f;
    --text:#4a4340;
    --border:#e8dcc8;
    --font-display:'Fraunces', serif;
    --font-body:'Nunito', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; } }

body{ font-family:var(--font-body); background:var(--cream); color:var(--text); margin:0; line-height:1.7; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:3px solid var(--clay); outline-offset:2px; }

.wrap{ max-width:820px; margin:0 auto; padding:0 24px; }

/* ── HEADER (matches index.html) ── */
.site-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; max-width:1180px; margin:0 auto; flex-wrap:nowrap; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-logo{ width:42px; height:42px; border-radius:50%; border:2px solid var(--brass); object-fit:cover; background:#fff; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:var(--ink); letter-spacing:0.02em; }
.header-links{ display:flex; align-items:center; gap:16px; flex-wrap:nowrap; }
.main-nav{ display:flex; align-items:center; gap:2px; background:var(--paper); border:1px solid var(--border); border-radius:999px; padding:5px; }
.main-nav .nav-link{ padding:9px 18px; border-radius:999px; font-weight:800; font-size:0.88rem; color:var(--ink); text-decoration:none; transition:background .2s ease, color .2s ease; white-space:nowrap; }
.main-nav .nav-link:hover{ background:var(--cream); }
.main-nav .nav-link.active{ background:var(--ink); color:#fff; }
.header-socials{ display:flex; align-items:center; gap:12px; }
.header-socials a{ display:flex; }
.header-socials img{ width:22px; height:22px; opacity:0.75; transition:opacity .2s ease, transform .2s ease; }
.header-socials a:hover img{ opacity:1; transform:translateY(-2px); }
.ticket-link{
    display:flex; align-items:center; gap:8px;
    background:var(--clay); border:none; border-radius:999px; color:#fff;
    padding:13px 24px; font-weight:900; font-size:0.92rem; text-decoration:none;
    box-shadow:0 6px 18px rgba(191,107,76,0.38);
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease; white-space:nowrap;
    animation:ticketPulse 2.6s ease-in-out infinite;
}
.ticket-link:hover{ transform:translateY(-2px); background:var(--stamp); box-shadow:0 10px 26px rgba(161,61,46,0.45); }
@keyframes ticketPulse{
    0%,100%{ box-shadow:0 6px 18px rgba(191,107,76,0.38); }
    50%{ box-shadow:0 6px 24px rgba(191,107,76,0.55), 0 0 0 6px rgba(191,107,76,0.14); }
}

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle{
    display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
    width:44px; height:44px; border-radius:12px; border:1.5px solid var(--border); background:var(--paper);
    cursor:pointer; flex-shrink:0; padding:0;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ── BLOG HERO / LISTING ── */
.blog-hero{ padding:48px 24px 20px; text-align:center; }
.eyebrow{ font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--stamp); font-weight:700; margin-bottom:14px; display:inline-block; border-bottom:2px solid var(--stamp); padding-bottom:4px; }
.blog-hero h1{ font-family:var(--font-display); font-size:2.6rem; line-height:1.1; color:var(--ink); margin:0 auto 14px; font-weight:900; max-width:20ch; }
.blog-hero p{ color:var(--text); font-size:1.05rem; max-width:52ch; margin:0 auto; }

.post-grid{ max-width:1080px; margin:44px auto 80px; padding:0 24px; display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.post-card{ background:var(--paper); border-radius:16px; overflow:hidden; border:1px solid var(--border); box-shadow:0 10px 24px rgba(36,31,28,0.08); transition:transform .25s ease, box-shadow .25s ease; text-decoration:none; color:inherit; display:block; }
.post-card:hover{ transform:translateY(-4px); box-shadow:0 18px 32px rgba(36,31,28,0.14); }
.post-card-img{ aspect-ratio:4/3; background:linear-gradient(135deg, var(--clay-soft), var(--brass)); position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.post-card-img img{ width:100%; height:100%; object-fit:cover; }
.post-card-img .img-fallback{ font-family:var(--font-mono); font-size:0.65rem; color:#fff; text-align:center; padding:14px; letter-spacing:0.04em; opacity:0.85; }
.post-card-tag{ position:absolute; top:10px; left:10px; font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.06em; background:rgba(255,255,255,0.9); color:var(--stamp); border:1.5px dashed var(--stamp); border-radius:8px; padding:3px 8px; font-weight:800; text-transform:uppercase; }
.post-card-body{ padding:20px 22px 24px; }
.post-card-body h2{ font-family:var(--font-display); font-size:1.25rem; margin:0 0 8px; color:var(--ink); font-weight:700; }
.post-card-body p{ margin:0 0 14px; font-size:0.9rem; color:var(--text); }
.post-card-cta{ font-weight:800; font-size:0.85rem; color:var(--clay); }

/* ── INDIVIDUAL POST ── */
.post-hero-img{ max-width:1080px; margin:20px auto 0; padding:0 24px; }
.post-hero-img .frame{ aspect-ratio:16/6; border-radius:20px; overflow:hidden; background:linear-gradient(135deg, var(--clay-soft), var(--brass)); display:flex; align-items:center; justify-content:center; }
.post-hero-img img{ width:100%; height:100%; object-fit:cover; }
.post-hero-img .img-fallback{ font-family:var(--font-mono); font-size:0.75rem; color:#fff; text-align:center; padding:20px; letter-spacing:0.05em; }

.draft-note{ max-width:820px; margin:28px auto 0; padding:0 24px; }
.draft-note .box{ background:#fdf3e7; border:1.5px dashed var(--brass); border-radius:14px; padding:16px 20px; font-size:0.88rem; color:var(--ink); }

article.post{ max-width:720px; margin:0 auto; padding:36px 24px 80px; }
article.post .post-eyebrow{ font-family:var(--font-mono); font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink-soft); font-weight:700; margin-bottom:10px; }
article.post h1{ font-family:var(--font-display); font-size:2.3rem; color:var(--ink); margin:0 0 16px; font-weight:900; line-height:1.15; }
article.post .byline{ font-size:0.9rem; color:#8a7f74; font-weight:700; margin-bottom:36px; }
article.post h2{ font-family:var(--font-display); font-size:1.4rem; color:var(--ink); margin:38px 0 14px; font-weight:700; }
article.post p{ font-size:1.05rem; margin:0 0 18px; }
article.post .fill-me{ background:#fdf3e7; border-bottom:2px dashed var(--brass); padding:0 3px; border-radius:3px; font-weight:700; color:var(--ink); }
article.post blockquote{ font-family:var(--font-display); font-style:italic; font-size:1.3rem; color:var(--clay); border-left:3px solid var(--clay); margin:30px 0; padding:4px 0 4px 22px; }

.post-nav{ max-width:720px; margin:0 auto 60px; padding:0 24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.post-nav a{ text-decoration:none; font-weight:800; color:var(--ink); font-size:0.92rem; }
.post-nav a:hover{ color:var(--clay); }

.author-box{ max-width:720px; margin:0 auto 70px; padding:24px; background:var(--paper); border:1px solid var(--border); border-radius:16px; display:flex; gap:16px; align-items:flex-start; }
.author-box img{ width:56px; height:56px; border-radius:50%; border:2px solid var(--brass); object-fit:cover; flex:none; }
.author-box h3{ font-family:var(--font-display); margin:0 0 4px; color:var(--ink); font-size:1.05rem; }
.author-box p{ margin:0; font-size:0.88rem; color:var(--text); }

.btn{ display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:0.95rem; padding:14px 26px; border-radius:50px; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease; border:2px solid transparent; }
.btn-primary{ background:var(--ink); color:#fff; box-shadow:0 8px 20px rgba(27,67,50,0.25); }
.btn-primary:hover{ background:var(--ink-soft); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }
.center{ text-align:center; }

/* ── FOOTER (matches index.html) ── */
footer{ background:var(--charcoal); color:#e6ddd0; padding:64px 24px 40px; text-align:center; }
.footer-logo-wrap{ width:80px; height:80px; border-radius:50%; margin:0 auto 18px; border:2px solid var(--brass); background:#fff; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.footer-logo-wrap img{ width:100%; height:100%; object-fit:cover; transform:scale(1.4); }
footer h2{ font-family:var(--font-display); font-size:1.5rem; margin:0 0 16px; letter-spacing:0.04em; color:#fff; }
footer .about{ max-width:600px; margin:0 auto 30px; font-size:0.95rem; line-height:1.7; color:#cdbfae; }
footer .about strong{ color:#f3ece0; }
.foot-socials{ display:flex; justify-content:center; gap:28px; margin-bottom:28px; }
.foot-socials a{ display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; color:#e6ddd0; font-size:0.75rem; font-weight:800; }
.foot-socials img{ width:26px; height:26px; }
footer .fine-print{ font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; opacity:0.5; }

/* ── RESPONSIVE ── */
@media (max-width:1100px){
    .site-header{ position:relative; flex-wrap:nowrap; }
    .nav-toggle{ display:flex; }
    .header-links{
        position:absolute; top:calc(100% + 10px); left:24px; right:24px; z-index:200;
        flex-direction:column; align-items:stretch; gap:14px;
        background:var(--paper); border:1px solid var(--border); border-radius:20px;
        padding:20px; box-shadow:0 20px 44px rgba(36,31,28,0.18);
        max-height:0; overflow:hidden; opacity:0; pointer-events:none;
        transition:max-height .3s ease, opacity .25s ease;
    }
    .header-links.open{ max-height:480px; opacity:1; pointer-events:auto; }
    .main-nav{ flex-direction:column; align-items:stretch; background:none; border:none; padding:0; gap:4px; }
    .main-nav .nav-link{ text-align:left; padding:12px 14px; }
    .header-socials{ padding-top:12px; border-top:1px solid var(--border); }
    .ticket-link{ justify-content:center; }
}
@media (max-width:860px){
    .post-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
    .blog-hero h1{ font-size:2rem; }
    .post-grid{ grid-template-columns:1fr; }
    article.post h1{ font-size:1.8rem; }
}
