/* ==========================================================================
   Mom Tips with Anchal — design tokens
   Palette: Ink Plum (headlines) / Marigold (accent) / Blush Petal (soft bg)
            Sage (secondary accent) / Cream Muslin (background) / Charcoal (text)
   Type: "Fraunces" (display, warm/characterful serif) + "Poppins" (body/utility)
   Signature: tip cards styled like pinned index cards with washi tape,
              as if pinned to Anchal's kitchen corkboard.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --ink-plum: #4a2545;
    --plum-soft: #7a4a71;
    --marigold: #e8a33d;
    --marigold-deep: #c97f1f;
    --blush: #f7dce0;
    --sage: #8fa888;
    --sage-deep: #5f7a5a;
    --cream: #fbf6ee;
    --cream-deep: #f3ead9;
    --charcoal: #2b2320;
    --tape: #f0e4c9;
    --radius: 14px;
    --shadow-card: 0 10px 24px -12px rgba(74, 37, 69, 0.28);
    --shadow-tape: 0 2px 4px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    color: var(--ink-plum);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--plum-soft); text-decoration: none; }
a:hover { color: var(--marigold-deep); }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 2px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1120px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink-plum);
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--marigold);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Fraunces', serif; font-weight: 700;
    transform: rotate(-6deg);
}
nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.98rem;
}
nav.main-nav a.active { color: var(--marigold-deep); font-weight: 600; }

.social-row { display: flex; gap: 12px; align-items: center; }
.social-row a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--blush);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-plum);
    transition: transform .15s ease, background .15s ease;
}
.social-row a:hover { background: var(--marigold); color: #fff; transform: translateY(-2px) rotate(-4deg); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle-input { display: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink-plum);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--sage-deep);
    background: rgba(143,168,136,0.14);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: #4a3f38; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--marigold); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(201,127,31,0.6); }
.btn-outline { border-color: var(--ink-plum); color: var(--ink-plum); background: transparent; }
.btn-outline:hover { background: var(--ink-plum); color: #fff; }

.hero-art {
    position: relative;
    background: var(--blush);
    border-radius: 28px;
    aspect-ratio: 4/5;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-art .photo-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--plum-soft);
    text-align: center;
    padding: 24px;
    font-family: 'Fraunces', serif;
}
.hero-art .photo-placeholder small { font-family: 'Poppins', sans-serif; color: var(--ink-plum); opacity: .7; margin-top: 8px; }
.hero-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 10px;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }

/* ---------------- Section shells ---------------- */
section { padding: 64px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}
.section-head p { color: #6b5d54; max-width: 50ch; margin: 8px 0 0; }

/* ---------------- Pinned tip cards (signature element) ---------------- */
.corkboard {
    background: var(--cream-deep);
    border-radius: 24px;
    padding: 48px 32px 56px;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 26px;
}
.tip-card {
    background: #fffdf9;
    border-radius: 4px;
    padding: 26px 22px 22px;
    position: relative;
    box-shadow: var(--shadow-card);
    transform: rotate(var(--tilt, -1.5deg));
    transition: transform .2s ease, box-shadow .2s ease;
}
.tip-card:nth-child(2n) { --tilt: 1.5deg; }
.tip-card:nth-child(3n) { --tilt: -0.8deg; }
.tip-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 30px -14px rgba(74,37,69,0.35); }
.tip-card .tape {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 70px; height: 26px;
    background: var(--tape);
    opacity: 0.9;
    box-shadow: var(--shadow-tape);
}
.tip-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
}
.tip-card .cat-label {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage-deep);
    font-weight: 600;
    margin-bottom: 10px;
}
.tip-card h3 { margin-bottom: 8px; font-size: 1.18rem; }
.tip-card p.excerpt { color: #5c5049; font-size: 0.94rem; margin-bottom: 14px; }
.tip-card .read-more { font-weight: 600; font-size: 0.9rem; color: var(--marigold-deep); }
.tip-card .meta { font-size: 0.78rem; color: #9c8f84; margin-top: 10px; }

/* ---------------- About split ---------------- */
.about-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    align-items: center;
}
.about-photo {
    background: var(--sage);
    border-radius: 24px;
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Fraunces', serif; text-align: center; padding: 24px;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pillar { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--cream-deep); }
.pillar .num { font-family: 'Fraunces', serif; color: var(--marigold); font-size: 1.4rem; font-weight: 700; }

/* ---------------- Instagram section ---------------- */
.insta-head-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--marigold), var(--ink-plum));
    display: flex; align-items: center; justify-content: center; color: #fff;
    margin-bottom: 14px;
}
.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.insta-tile {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--blush);
    display: flex; align-items: center; justify-content: center;
    color: var(--plum-soft);
}
.insta-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.insta-tile .overlay {
    position: absolute; inset: 0;
    background: rgba(74,37,69,0.72);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s ease;
    font-size: 0.85rem; text-align: center; padding: 10px;
}
.insta-tile:hover .overlay { opacity: 1; }
.insta-cta { text-align: center; margin-top: 30px; }

/* ---------------- Newsletter ---------------- */
.newsletter {
    background: var(--ink-plum);
    border-radius: 28px;
    padding: 52px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.78); }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] {
    flex: 1; min-width: 200px;
    padding: 14px 18px;
    border-radius: 999px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}
.newsletter .btn-primary { background: var(--marigold); }

/* ---------------- Footer ---------------- */
footer.site-footer {
    background: var(--cream-deep);
    padding: 48px 0 24px;
    margin-top: 40px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(74,37,69,0.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.85rem; color: #7a6d63;
}

/* ---------------- Blog list / post ---------------- */
.blog-header { padding: 56px 0 30px; text-align: center; }
.category-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.category-filter a {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--cream-deep);
    font-size: 0.88rem; color: var(--charcoal); background: #fff;
}
.category-filter a.active, .category-filter a:hover { background: var(--ink-plum); color: #fff; border-color: var(--ink-plum); }

.post-hero { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; text-align: center; }
.post-body { max-width: 720px; margin: 0 auto; padding: 20px 24px 60px; }
.post-body h2 { margin-top: 1.6em; }
.post-cover { max-width: 900px; margin: 24px auto 0; padding: 0 24px; }
.post-cover .cover-block {
    aspect-ratio: 16/8; background: var(--blush); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; color: var(--plum-soft); font-family: 'Fraunces', serif;
}
.post-cover img {
    width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 20px;
}
.post-meta { color: #9c8f84; font-size: 0.9rem; margin: 10px 0 20px; }
.back-link { display: inline-block; margin: 30px 24px 0; font-weight: 600; }

/* ---------------- Forms (contact / admin) ---------------- */
.form-shell { max-width: 520px; margin: 0 auto; background: #fff; padding: 36px; border-radius: 20px; box-shadow: var(--shadow-card); }
.form-shell label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-shell input, .form-shell textarea, .form-shell select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd2c4;
    font-family: 'Poppins', sans-serif; margin-bottom: 18px; font-size: 0.95rem;
}
.form-shell button { width: 100%; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e7f0e5; color: var(--sage-deep); }
.alert-error { background: #fbe3e3; color: #a13a3a; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .hero-inner, .about-split, .newsletter { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: repeat(2, 1fr); }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .pillars { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--cream);
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--cream-deep);
        box-shadow: 0 14px 24px rgba(0,0,0,0.08);
    }
    .nav-toggle-input:checked ~ nav.main-nav { display: flex; }
    nav.main-nav a { width: 100%; padding: 10px 0; }
    nav.main-nav a.btn { width: auto; margin-top: 8px; }
}
@media (max-width: 560px) {
    .tips-grid { grid-template-columns: 1fr; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------------- Rich text editor (admin blog content field) ---------------- */
.rte-wrap {
    border: 1px solid var(--cream-deep);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
}
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--cream-deep);
    border-bottom: 1px solid #e5d9c3;
}
.rte-toolbar button.rte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 34px;
    padding: 6px 9px;
    margin: 0 0 0 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-plum);
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
}
.rte-toolbar button.rte-btn:hover {
    background: #fff;
    border-color: #e5d9c3;
}
.rte-sep {
    width: 1px;
    height: 20px;
    background: #d8caae;
    margin: 0 4px;
}
.rte-editor {
    min-height: 260px;
    max-height: 520px;
    overflow-y: auto;
    padding: 16px 18px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal);
}
.rte-editor:focus { outline: none; }
.rte-editor h2 { font-size: 1.3rem; margin: 0.6em 0 0.3em; }
.rte-editor h3 { font-size: 1.1rem; margin: 0.6em 0 0.3em; }
.rte-editor p { margin: 0 0 0.8em; }
.rte-editor ul, .rte-editor ol { margin: 0 0 0.8em 1.4em; }
.rte-editor blockquote {
    margin: 0 0 0.8em;
    padding: 8px 16px;
    border-left: 3px solid var(--marigold);
    color: #6b5d54;
    font-style: italic;
}
.rte-editor a { color: var(--plum-soft); text-decoration: underline; }
