@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/playfair-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/playfair-italic-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* === MOODY FOOD MAG PALETTE === */
    --espresso: #2c1810;
    --espresso-light: #4a332a;
    --burgundy: #7a2b3a;
    --gold: #c9a96e;
    --gold-dark: #a8893e;
    --burnt-orange: #d4622a;
    --cream: #f8f4ef;
    --warm-white: #fff;
    --warm-gray: #8a7568;
    --warm-gray-light: #a09080;
    --warm-gray-pale: #b8a898;
    --border: #e0d8ce;
    --surface: #ece6dd;
    --body-text: #4a3a30;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 17px;
    color: var(--body-text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: var(--espresso);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
}
.site-logo:hover { color: var(--cream); }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); }
.nav-subscribe {
    background: var(--burnt-orange) !important;
    color: var(--cream) !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem !important;
    letter-spacing: 0.03em;
}
.nav-subscribe:hover { background: var(--gold) !important; color: var(--espresso) !important; }

/* ===== MAIN CONTENT ===== */
.site-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ===== AD PLACEMENTS ===== */
.ad-slot {
    background: var(--surface);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    color: var(--warm-gray-light);
    font-size: 0.8rem;
    margin: 1.5rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot.ad-slot-rect { min-height: 280px; }
.ad-slot .adsbygoogle { width: 100%; }

/* ===== HOMEPAGE ===== */

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}
.hero-image {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    object-fit: cover;
    display: block;
}
.hero-image-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, var(--espresso), var(--espresso-light), #1a0e08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.hero p {
    font-size: 1.2rem;
    color: var(--warm-gray);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.hero-cta {
    display: inline-block;
    background: var(--burnt-orange);
    color: var(--warm-white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.25rem;
    transition: all 0.2s;
}
.hero-cta:hover {
    background: var(--burgundy);
    transform: translateY(-1px);
}

/* Section titles */
.section-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* How it works */
.how-it-works {
    background: var(--warm-white);
    padding: 2rem 0;
}
.steps-row {
    display: flex;
    gap: 1.5rem;
}
.step {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}
.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.3rem;
}
.step-desc {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.4;
}

/* Featured / Today's mystery */
.featured-section {
    background: var(--cream);
    padding: 2rem 0;
}
.featured-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}
.featured-tag {
    display: inline-block;
    background: var(--burgundy);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.35rem;
}
.featured-meta {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-bottom: 0.75rem;
}
.featured-intro {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--body-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.featured-cta {
    display: inline-block;
    background: var(--burgundy);
    color: var(--cream);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.featured-cta:hover {
    background: var(--espresso);
    transform: translateY(-1px);
}

/* Past mysteries grid */
.mystery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}
.mystery-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}
.mystery-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 24, 16, 0.1);
    border-color: var(--gold);
}
.mystery-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.mystery-card-img-placeholder {
    width: 100%;
    height: 140px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-gray-pale);
    font-size: 0.85rem;
    font-style: italic;
}
.mystery-card-body {
    padding: 0.75rem 1rem;
}
.mystery-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.mystery-card-num {
    background: var(--burgundy);
    color: var(--cream);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.mystery-card-diff {
    font-size: 0.8rem;
    color: var(--warm-gray);
}
.mystery-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.25rem;
}
.mystery-card-teaser {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.4;
}

/* ===== MYSTERY POST PAGE ===== */
.post-intro {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    line-height: 1.7;
    color: var(--espresso);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

/* --- Widget Card --- */
.mm-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
    margin-bottom: 2.5rem;
}
.mm-head {
    background: var(--espresso);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mm-tag {
    background: var(--burgundy);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}
.mm-head-title {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: 1.3rem;
    font-weight: 700;
}
.mm-body {
    padding: 2rem 1.75rem;
}

/* Clues */
.mm-clues-h {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--burgundy);
}
.mm-clues {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}
.mm-clue {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.2rem;
    background: var(--warm-white);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--espresso);
    opacity: 0;
    transform: translateX(-12px);
    animation: clueIn 0.4s ease forwards;
}
.mm-clue:nth-child(1) { animation-delay: 0.1s; }
.mm-clue:nth-child(2) { animation-delay: 0.25s; }
.mm-clue:nth-child(3) { animation-delay: 0.4s; }
.mm-clue:nth-child(4) { animation-delay: 0.55s; }
.mm-clue:nth-child(5) { animation-delay: 0.7s; }
@keyframes clueIn { to { opacity: 1; transform: translateX(0); } }

.mm-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--gold);
    color: var(--espresso);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Guess */
.mm-guess-wrap { margin: 1.25rem 0; }
.mm-guess {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    background: var(--warm-white);
    color: var(--espresso);
    outline: none;
    transition: border-color 0.2s;
}
.mm-guess:focus { border-color: var(--gold); }
.mm-guess::placeholder { color: var(--warm-gray-light); font-style: italic; }
.mm-feedback {
    padding: 0.6rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 2rem;
}
.mm-feedback.yes { color: #4a6741; }
.mm-feedback.no { color: var(--burgundy); }

/* Reveal */
.mm-reveal {
    display: block;
    width: 100%;
    padding: 1.15rem;
    background: var(--burgundy);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.mm-reveal:hover {
    background: var(--espresso);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.2);
}
.mm-reveal::after { content: ' \2192'; }
.mm-reveal.hidden { display: none; }

/* Answer */
.mm-answer { display: none; margin-top: 1.75rem; animation: fadeUp 0.6s ease; }
.mm-answer.show { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.mm-dish {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}
.mm-origin {
    font-size: 1.05rem;
    color: var(--warm-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.mm-hr { height: 1px; background: var(--border); margin: 1.5rem 0; border: none; }
.mm-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.mm-story {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--body-text);
}

/* Ingredients */
.mm-ingredients { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.mm-ingredients li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--body-text);
}
.mm-ingredients li:last-child { border-bottom: none; }

/* Steps */
.mm-steps { counter-reset: step; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.mm-steps li {
    counter-increment: step;
    padding-left: 2.75rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--body-text);
}
.mm-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #4a6741;
    color: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Share */
.mm-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.mm-share-btn {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--warm-white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--espresso);
    cursor: pointer;
    transition: all 0.2s;
}
.mm-share-btn:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* Card footer */
.mm-foot {
    background: var(--espresso);
    padding: 0.8rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mm-foot-brand {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
}
.mm-foot-link {
    color: var(--warm-gray-light);
    font-size: 0.85rem;
    text-decoration: none;
}
.mm-foot-link:hover { color: var(--cream); }

/* --- DID YOU KNOW --- */
.post-dyk {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.post-dyk h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1rem;
}
.post-dyk p {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--body-text);
}

/* --- CTA / SUBSCRIBE --- */
.post-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--espresso);
    border-radius: 10px;
    text-align: center;
}
.post-cta p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.post-cta-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}
.post-cta-email {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--espresso-light);
    border-radius: 8px;
    background: transparent;
    color: var(--cream);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    outline: none;
}
.post-cta-email::placeholder { color: var(--warm-gray-light); }
.post-cta-email:focus { border-color: var(--gold); }
.post-cta-submit {
    padding: 0.75rem 1.25rem;
    background: var(--burnt-orange);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.post-cta-submit:hover { background: var(--gold); color: var(--espresso); }

/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--espresso);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}
.site-footer p {
    color: var(--warm-gray-light);
    font-size: 0.85rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .site-header { padding: 1rem; }
    .site-logo { font-size: 1.25rem; }
    .site-main { padding: 1.5rem 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-image, .hero-image-placeholder { height: 200px; }
    .steps-row { flex-direction: column; gap: 0.75rem; }
    .mystery-grid { grid-template-columns: 1fr; }
    .post-intro { font-size: 1.3rem; }
    .mm-body { padding: 1.25rem; }
    .mm-dish { font-size: 1.6rem; }
    .mm-clue { font-size: 1.05rem; }
    .post-cta-form { flex-direction: column; }
    .mm-head { flex-wrap: wrap; }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}
.contact-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}
.contact-info a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
}
.contact-info a:hover { color: var(--espresso); }
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--body-text);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--body-text);
    background: var(--warm-white);
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--warm-gray-pale); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
    padding: 0.75rem 2rem;
    background: var(--burgundy);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.contact-form button:hover { background: var(--espresso); transform: translateY(-1px); }
.contact-form-result { padding: 0.5rem 0; font-weight: 600; min-height: 1.5rem; }
.contact-form-result.success { color: #4a6741; }
.contact-form-result.error { color: var(--burgundy); }
@media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
}
