/* Sea Flamingo — Journal stylesheet.
   Loaded by pages under /journal/ AFTER assets/style.css (tokens + reset + fonts).
   Top half = brand shell lifted verbatim from the site; bottom half = editorial layout. */

        body {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.7;
            color: var(--text-primary);
            background: var(--cream);
            /* overflow-x handled in assets/style.css with `clip` so sticky positioning still works on iOS */
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, .display-font {
            font-family: 'Bebas Neue', sans-serif;
            font-weight: 400;
            letter-spacing: 2px;
            line-height: 1.1;
        }

        p { color: var(--text-secondary); }
        a { color: inherit; text-decoration: none; }

        /* Background Shapes */
        .bg-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }

        .blob {
            position: absolute;
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            opacity: 1;
        }

        .blob-1 {
            width: 450px;
            height: 380px;
            background: var(--coral);
            top: -80px;
            right: -50px;
            animation: blobMove1 25s ease-in-out infinite;
        }

        .blob-2 {
            width: 400px;
            height: 320px;
            background: var(--navy);
            top: 40%;
            left: -100px;
            animation: blobMove2 30s ease-in-out infinite;
        }

        .blob-3 {
            width: 380px;
            height: 300px;
            background: var(--teal);
            bottom: -50px;
            right: 20%;
            animation: blobMove3 28s ease-in-out infinite;
        }

        .blob-4 {
            width: 320px;
            height: 260px;
            background: var(--orange);
            top: 15%;
            left: 30%;
            animation: blobMove4 32s ease-in-out infinite;
        }

        .blob-5 {
            width: 280px;
            height: 240px;
            background: var(--pink);
            top: 55%;
            right: -60px;
            border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
            animation: blobMove5 27s ease-in-out infinite;
        }

        .blob-6 {
            width: 350px;
            height: 280px;
            background: var(--teal-light);
            bottom: 25%;
            left: 15%;
            border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
            animation: blobMove6 35s ease-in-out infinite;
        }

        .blob-7 {
            width: 300px;
            height: 250px;
            background: var(--navy-light);
            top: 75%;
            right: 25%;
            border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
            animation: blobMove7 30s ease-in-out infinite;
        }

        @keyframes blobMove1 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(30px, 20px) rotate(5deg); }
            66% { transform: translate(-20px, 10px) rotate(-3deg); }
        }

        @keyframes blobMove2 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(-40px, 30px) rotate(-5deg); }
            66% { transform: translate(20px, -20px) rotate(3deg); }
        }

        @keyframes blobMove3 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(25px, -15px) rotate(4deg); }
            66% { transform: translate(-15px, 25px) rotate(-2deg); }
        }

        @keyframes blobMove4 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(-35px, 15px) rotate(-4deg); }
            66% { transform: translate(15px, 30px) rotate(2deg); }
        }

        @keyframes blobMove5 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(20px, -25px) rotate(3deg); }
            66% { transform: translate(-30px, 15px) rotate(-4deg); }
        }

        @keyframes blobMove6 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(-25px, -20px) rotate(-3deg); }
            66% { transform: translate(35px, 10px) rotate(5deg); }
        }

        @keyframes blobMove7 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(30px, 25px) rotate(4deg); }
            66% { transform: translate(-20px, -15px) rotate(-3deg); }
        }

        /* Extra journal blobs — more motion across the page */
        .blob-8 {
            width: 360px;
            height: 300px;
            background: var(--orange-bright);
            top: 5%;
            left: 6%;
            border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
            animation: blobMove8 33s ease-in-out infinite;
        }

        .blob-9 {
            width: 300px;
            height: 270px;
            background: var(--coral-light);
            bottom: -40px;
            left: 38%;
            border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
            animation: blobMove9 26s ease-in-out infinite;
        }

        .blob-10 {
            width: 260px;
            height: 230px;
            background: var(--teal);
            top: 30%;
            left: 48%;
            border-radius: 50% 50% 35% 65% / 60% 40% 60% 40%;
            animation: blobMove10 38s ease-in-out infinite;
        }

        .blob-11 {
            width: 330px;
            height: 280px;
            background: var(--pink);
            bottom: 6%;
            right: -80px;
            border-radius: 60% 40% 45% 55% / 50% 50% 50% 50%;
            animation: blobMove11 29s ease-in-out infinite;
        }

        .blob-12 {
            width: 240px;
            height: 210px;
            background: var(--orange);
            top: 50%;
            left: 24%;
            border-radius: 35% 65% 55% 45% / 55% 45% 55% 45%;
            animation: blobMove12 31s ease-in-out infinite;
        }

        @keyframes blobMove8 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(35px, 18px) rotate(4deg); }
            66% { transform: translate(-18px, -22px) rotate(-3deg); }
        }

        @keyframes blobMove9 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(-28px, -20px) rotate(-4deg); }
            66% { transform: translate(22px, 18px) rotate(3deg); }
        }

        @keyframes blobMove10 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(24px, 28px) rotate(3deg); }
            66% { transform: translate(-30px, -12px) rotate(-5deg); }
        }

        @keyframes blobMove11 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(-32px, 22px) rotate(-3deg); }
            66% { transform: translate(18px, -26px) rotate(4deg); }
        }

        @keyframes blobMove12 {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(28px, -18px) rotate(5deg); }
            66% { transform: translate(-22px, 24px) rotate(-2deg); }
        }

        /* Second wave — fill the margins with more color */
        .blob-13 { width: 300px; height: 260px; background: var(--teal); top: 8%; left: 62%; border-radius: 55% 45% 55% 45% / 50% 50% 50% 50%; animation: blobMove3 34s ease-in-out infinite; animation-delay: -6s; }
        .blob-14 { width: 340px; height: 290px; background: var(--coral); top: -60px; right: 30%; border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; animation: blobMove6 30s ease-in-out infinite; animation-delay: -12s; }
        .blob-15 { width: 280px; height: 250px; background: var(--orange-bright); top: 22%; right: -70px; border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%; animation: blobMove5 28s ease-in-out infinite; animation-delay: -3s; }
        .blob-16 { width: 320px; height: 280px; background: var(--pink); bottom: 40%; left: -90px; border-radius: 50% 50% 40% 60% / 60% 40% 55% 45%; animation: blobMove2 36s ease-in-out infinite; animation-delay: -9s; }
        .blob-17 { width: 260px; height: 230px; background: var(--navy-light); top: 62%; left: 60%; border-radius: 40% 60% 55% 45% / 50% 50% 50% 50%; animation: blobMove7 32s ease-in-out infinite; animation-delay: -15s; }
        .blob-18 { width: 360px; height: 300px; background: var(--teal-light); bottom: -60px; left: 5%; border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; animation: blobMove4 38s ease-in-out infinite; animation-delay: -5s; }
        .blob-19 { width: 240px; height: 220px; background: var(--coral-light); top: 40%; left: 12%; border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; animation: blobMove1 26s ease-in-out infinite; animation-delay: -11s; }
        .blob-20 { width: 300px; height: 260px; background: var(--orange); bottom: 15%; right: 40%; border-radius: 45% 55% 60% 40% / 50% 50% 50% 50%; animation: blobMove8 33s ease-in-out infinite; animation-delay: -7s; }

        /* Floating rings */
        .ring {
            position: absolute;
            border-radius: 50%;
            border: 3px solid var(--orange-bright);
            opacity: 0.6;
        }

        .ring-1 { width: 150px; height: 150px; top: 15%; right: 20%; animation: floatRing 30s ease-in-out infinite; }
        .ring-2 { width: 100px; height: 100px; bottom: 25%; left: 10%; border-color: var(--cream); animation: floatRing 35s ease-in-out infinite reverse; }
        .ring-3 { width: 80px; height: 80px; top: 55%; right: 8%; border-color: var(--coral-light); animation: floatRing 25s ease-in-out infinite; }

        @keyframes floatRing {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(60px, -40px); }
            50% { transform: translate(100px, 30px); }
            75% { transform: translate(40px, 70px); }
        }

        /* Floating dots */
        .dot {
            position: absolute;
            border-radius: 50%;
            animation: floatDot 15s ease-in-out infinite;
        }

        .dot-1 { width: 20px; height: 20px; background: var(--teal-light); top: 20%; left: 15%; }
        .dot-2 { width: 25px; height: 25px; background: var(--navy-light); bottom: 30%; right: 15%; animation-delay: -5s; }
        .dot-3 { width: 18px; height: 18px; background: var(--coral-light); top: 60%; left: 55%; animation-delay: -10s; }

        @keyframes floatDot {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(20px, -30px); }
        }

        @media (prefers-reduced-motion: reduce) {
            .blob, .ring, .dot { animation: none; }
        }

        /* Navigation */
        .nav {
            position: fixed;
            top: 0.9rem;
            left: 3%;
            right: 3%;
            max-width: 1200px;
            margin-inline: auto;
            z-index: 1000;
            padding: 1.1rem 2.2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* Glass on a pseudo-element — animations scale the glass, never
           the logo or links. No transform on .nav itself: a transformed
           nav would re-root the mobile menu's fixed overlay.
           Material: cream tint under a vertical light gradient, hairline
           edge, inner top highlight + soft inner glow for thickness. */
        .nav::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background:
                linear-gradient(180deg,
                    rgba(255, 255, 255, 0.19) 0%,
                    rgba(255, 255, 255, 0.05) 42%,
                    rgba(255, 255, 255, 0.01) 58%,
                    rgba(255, 255, 255, 0.07) 100%),
                rgba(254, 250, 224, 0.16); /* --cream */
            border: 1px solid rgba(255, 255, 255, 0.55);
            box-shadow:
                0 24px 60px rgba(38, 70, 83, 0.14),
                0 4px 14px rgba(38, 70, 83, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.70),
                inset 0 -1px 0 rgba(255, 255, 255, 0.22),
                inset 0 0 24px rgba(255, 255, 255, 0.12);
            -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.04);
            backdrop-filter: blur(26px) saturate(170%) brightness(1.04);
            opacity: 0;
            transition: opacity 0.45s ease;
            pointer-events: none;
            z-index: -1;
        }

        .nav.scrolled {
            padding: 1.1rem 2.2rem;
        }

        /* Tight glass chip hugging the logo + wordmark — painted on a
           pseudo-element so a page can fade it in and out. */
        .nav-logo {
            padding: 0.25rem 1rem;
            white-space: nowrap;
        }
        .nav-logo::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background:
                linear-gradient(180deg,
                    rgba(255, 255, 255, 0.11) 0%,
                    rgba(255, 255, 255, 0.03) 50%,
                    rgba(255, 255, 255, 0.05) 100%),
                rgba(254, 250, 224, 0.10); /* --cream */
            border: 1px solid rgba(255, 255, 255, 0.45);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40);
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            backdrop-filter: blur(12px) saturate(150%);
            opacity: 1;
            transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
            pointer-events: none;
            z-index: -1;
        }

        /* Desktop: the pill is part of the header, not a scroll state.
           First view per session (html.nav-intro, set in <head>): a beat
           of empty stage, the glass expands, then the logo and menu pop
           and wobble in one at a time. */
        @media (min-width: 769px) {
            /* Desktop: no glass chip behind the logo + wordmark */
            .nav-logo::before { display: none; }
            .nav::before { opacity: 1; }

            /* Logo + wordmark dead-center; menu splits 3 / 3 around it */
            .nav-logo {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
            /* Constant logo size so the chip always fits inside the pill */
            .nav .nav-logo img,
            .nav.nav.scrolled .nav-logo img { width: 36px; height: 36px; }
            .nav-links { width: 100%; }
            .nav-links a:nth-child(4) { margin-left: auto; }

            html.nav-intro .nav::before {
                animation: navPillExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
            }

            html.nav-intro .nav-logo,
            html.nav-intro .nav-links a,
            html.nav-intro .nav-icons > * {
                animation: navItemPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
            }

            html.nav-intro .nav-logo { animation-name: navLogoPop; animation-delay: 2.15s; }
            html.nav-intro .nav-links a { animation-delay: 2.35s; }
            html.nav-intro .nav-links a:nth-child(2) { animation-delay: 2.47s; }
            html.nav-intro .nav-links a:nth-child(3) { animation-delay: 2.59s; }
            html.nav-intro .nav-links a:nth-child(4) { animation-delay: 2.71s; }
            html.nav-intro .nav-links a:nth-child(5) { animation-delay: 2.83s; }
            html.nav-intro .nav-links a:nth-child(6) { animation-delay: 2.95s; }
            html.nav-intro .nav-links a:nth-child(7) { animation-delay: 3.07s; }
        }

        @keyframes navPillExpand {
            0%   { opacity: 0; transform: scaleX(0.06) scaleY(0.62); }
            30%  { opacity: 1; }
            72%  { transform: scaleX(1.015) scaleY(1.02); }
            88%  { transform: scaleX(0.997) scaleY(0.995); }
            100% { opacity: 1; transform: none; }
        }

        @keyframes navItemPop {
            0%   { opacity: 0; transform: scale(0.4); }
            55%  { opacity: 1; transform: scale(1.14); }
            72%  { transform: scale(0.94); }
            86%  { transform: scale(1.04); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes navLogoPop {
            0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
            55%  { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
            72%  { transform: translate(-50%, -50%) scale(0.94); }
            86%  { transform: translate(-50%, -50%) scale(1.04); }
            100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        /* Mobile: no header bar at all — logo and icons float free */
        @media (max-width: 768px) {
            .nav {
                top: 0;
                left: 0;
                right: 0;
                max-width: none;
                padding: 0.9rem 5%;
            }
            .nav.scrolled { padding: 0.7rem 5%; }
            /* Logo centered and out of flow — keep the hamburger on the right */
            .nav { justify-content: flex-end; }
            .nav-logo {
                position: absolute;
                top: 0.45rem;
                left: 50%;
                transform: translateX(-50%);
            }
            .nav::before { display: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            html.nav-intro .nav::before,
            html.nav-intro .nav-logo,
            html.nav-intro .nav-links a,
            html.nav-intro .nav-icons > * { animation: none; }
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .nav-logo img {
            width: 50px;
            height: 50px;
            transition: width var(--transition-smooth), height var(--transition-smooth);
        }

        .nav.scrolled .nav-logo img { width: 40px; height: 40px; }

        .nav-logo span {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.5rem;
            letter-spacing: 1.125px;
            color: var(--navy);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.1rem;
        }

        .nav-links a {
            font-size: 0.84rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: var(--navy);
            position: relative;
            transition: var(--transition-smooth);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            transition: var(--transition-smooth);
        }

        .nav-links a:nth-child(1)::after { background: var(--teal); }
        .nav-links a:nth-child(2)::after { background: var(--orange); }
        .nav-links a:nth-child(3)::after { background: var(--pink); }
        .nav-links a:nth-child(4)::after { background: var(--navy-light); }
        .nav-links a:nth-child(5)::after { background: var(--teal-light); }
        .nav-links a:nth-child(6)::after { background: var(--orange-bright); }
        .nav-links a:nth-child(7)::after { background: var(--coral); }
        /* Narrow desktop: the wordmark + 7 menu items can't share the row.
           Show the mark only here; the wordmark returns when there's room. */
        @media (min-width: 769px) and (max-width: 1023px) {
            .nav-logo span { display: none; }
        }

        .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

        .nav-icons {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .nav-subscribe {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            cursor: pointer;
        }

        .nav-subscribe svg {
            width: 24px;
            height: 24px;
            stroke: var(--teal);
            fill: none;
            transition: 0.3s ease;
        }

        .nav-subscribe:hover svg {
            stroke: var(--coral);
            transform: scale(1.1);
        }

        .nav-cart {
            position: relative;
            cursor: pointer;
            padding: 0.5rem;
        }

        .nav-cart svg {
            width: 24px;
            height: 24px;
            stroke: var(--navy);
            fill: none;
            stroke-width: 2;
        }

        .cart-count {
            position: absolute;
            top: -2px;
            right: -2px;
            background: var(--coral);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: cartPulse 2s ease-in-out infinite;
        }

        @keyframes cartPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.6); }
            50% { box-shadow: 0 0 12px 4px rgba(231, 111, 81, 0.8), 0 0 20px 8px rgba(231, 111, 81, 0.4); }
        }

        .nav-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 0.5rem;
        }

        .nav-toggle span {
            width: 24px;
            height: 2px;
            background: var(--navy);
            transition: var(--transition-smooth);
        }

        /* Email Signup Modal */
        .email-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(38, 70, 83, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
        .email-modal-overlay.active { opacity: 1; visibility: visible; }
        .email-modal { background: linear-gradient(145deg, #FFFDF7 0%, #F9F5EC 50%, #F4EDE4 100%); border-radius: 30px; padding: 3rem 2.5rem; max-width: 420px; width: 100%; position: relative; box-shadow: 0 25px 80px rgba(38, 70, 83, 0.25), 0 10px 30px rgba(212, 135, 156, 0.15), inset 0 3px 6px rgba(255, 255, 255, 0.95); border: 2px solid rgba(212, 135, 156, 0.2); transform: translateY(30px) scale(0.95); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .email-modal-overlay.active .email-modal { transform: translateY(0) scale(1); }
        .email-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 30px; background: radial-gradient(ellipse at 30% 10%, rgba(255, 255, 255, 0.7) 0%, transparent 50%); pointer-events: none; }
        .email-modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: none; background: rgba(38, 70, 83, 0.08); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
        .email-modal-close:hover { background: rgba(231, 111, 81, 0.15); transform: scale(1.1); }
        .email-modal-close svg { width: 18px; height: 18px; stroke: var(--navy); stroke-width: 2.5; }
        .email-modal h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; letter-spacing: 2px; color: var(--navy); text-align: center; margin-bottom: 0.25rem; }
        .email-modal .modal-tagline { text-align: center; color: #666; font-size: 1rem; margin-bottom: 2rem; }
        .email-modal form { display: flex; flex-direction: column; gap: 1rem; }
        .email-modal .modal-input-wrapper { position: relative; }
        .email-modal .modal-input-wrapper svg { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--teal); fill: none; pointer-events: none; opacity: 0.7; }
        .email-modal input[type="email"] { width: 100%; padding: 1.1rem 1.25rem 1.1rem 3.25rem; font-size: 1rem; font-family: inherit; border: 2px solid rgba(42, 157, 143, 0.2); border-radius: 50px; outline: none; background: white; transition: all 0.3s ease; }
        .email-modal input[type="email"]:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1); }
        .email-modal button[type="submit"] { padding: 1.1rem 2rem; font-size: 1rem; font-weight: 700; font-family: inherit; background: linear-gradient(145deg, var(--navy) 0%, #1d3a47 100%); color: white; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 20px rgba(38, 70, 83, 0.3); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .email-modal button[type="submit"]:hover { transform: translateY(-3px) scale(1.02); background: linear-gradient(145deg, var(--teal) 0%, #239385 100%); }
        .email-modal .modal-privacy { text-align: center; font-size: 0.8rem; color: #666; margin-top: 0.5rem; }
        .email-modal .modal-privacy a { color: var(--teal); text-decoration: underline; }
        @media (max-width: 480px) { .email-modal { padding: 2.5rem 1.75rem; border-radius: 24px; } .email-modal h2 { font-size: 2rem; } }

        /* Cookie Consent Banner */
        .cookie-banner { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(150%); z-index: 10001; padding: 1.25rem 2rem; background: linear-gradient(145deg, #264653 0%, #1d3a47 100%); box-shadow: 0 10px 40px rgba(38, 70, 83, 0.4), 0 0 0 1px rgba(255,255,255,0.1); border-radius: 20px; opacity: 0; max-width: 95%; width: auto; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease; }
        .cookie-backdrop { position: fixed; inset: 0; background: rgba(38, 70, 83, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
        .cookie-backdrop.active { opacity: 1; visibility: visible; }
        .cookie-banner.active { transform: translateX(-50%) translateY(0); opacity: 1; }
        .cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
        .cookie-text { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 280px; }
        .cookie-icon { font-size: 1.75rem; flex-shrink: 0; }
        .cookie-text p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; line-height: 1.5; margin: 0; }
        .cookie-text a { color: #5CBCB0; text-decoration: underline; }
        .cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }
        .cookie-btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; font-weight: 600; font-family: inherit; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; border: none; }
        .cookie-btn-accept { background: linear-gradient(145deg, #2A9D8F 0%, #239385 100%); color: white; box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3); }
        .cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4); }
        .cookie-btn-decline { background: transparent; color: rgba(255, 255, 255, 0.8); border: 1.5px solid rgba(255, 255, 255, 0.3); }
        .cookie-btn-decline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
        @media (max-width: 600px) { .cookie-banner { padding: 1.25rem 1rem; } .cookie-content { flex-direction: column; text-align: center; } .cookie-text { flex-direction: column; gap: 0.5rem; } .cookie-buttons { width: 100%; justify-content: center; } }

        @media (max-width: 768px) {
            /* Mobile menu: compact vertical glass card that wobbles in
               under the pill and pops away on outside tap. */
            .nav-links {
                position: fixed;
                top: 5.6rem;
                right: 4%;
                width: min(12.5rem, 62vw);
                padding: 0.6rem 0.4rem;
                border-radius: 24px;
                background:
                    linear-gradient(180deg,
                        rgba(255, 255, 255, 0.08) 0%,
                        rgba(255, 255, 255, 0.025) 45%,
                        rgba(255, 255, 255, 0.01) 60%,
                        rgba(255, 255, 255, 0.03) 100%),
                    rgba(254, 250, 224, 0.10); /* --cream */
                border: 1px solid rgba(255, 255, 255, 0.6);
                box-shadow:
                    0 18px 44px rgba(38, 70, 83, 0.16),
                    inset 0 1px 0 rgba(255, 255, 255, 0.60),
                    inset 0 0 20px rgba(255, 255, 255, 0.10);
                -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
                backdrop-filter: blur(28px) saturate(170%) brightness(1.05);
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 0;
                opacity: 0;
                pointer-events: none;
                transform: scale(0.55) translateY(-12px);
                transform-origin: top right;
                /* ease-in-back: a small anticipation squeeze on the way out */
                transition: transform 0.32s cubic-bezier(0.36, 0, 0.66, -0.56),
                            opacity 0.26s ease;
            }

            /* Open uses a transition (not a keyframe animation) so re-taps
               or double-fired tap events can never restart it from zero.
               The back-out bezier gives one playful overshoot. */
            .nav-links.open {
                opacity: 1;
                pointer-events: auto;
                transform: none;
                transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                            opacity 0.3s ease;
            }

            .nav-links a {
                font-size: 1.05rem;
                font-weight: 600;
                letter-spacing: 0.5px;
                padding: 0.7rem 1rem;
                opacity: 0;
                transform: translateX(-16px) scale(0.7);
                transition: opacity 0.35s ease,
                            transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                            color 0.3s ease;
            }

            /* The desktop hover underline doesn't belong in the card */
            .nav-links a::after { display: none; }

            /* Brand-color bullets, one per item */
            .nav-links a::before {
                content: '';
                display: inline-block;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                margin-right: 0.85rem;
                vertical-align: middle;
                transform: translateY(-1px);
                background: var(--teal);
                animation: menuDotBreathe 3.8s ease-in-out infinite;
            }
            .nav-links a:nth-child(2)::before { animation-duration: 5.1s; animation-delay: 0.6s; }
            .nav-links a:nth-child(3)::before { animation-duration: 4.4s; animation-delay: 1.3s; }
            .nav-links a:nth-child(4)::before { animation-duration: 5.6s; animation-delay: 0.3s; }
            .nav-links a:nth-child(5)::before { animation-duration: 4.1s; animation-delay: 1.8s; }
            .nav-links a:nth-child(6)::before { animation-duration: 4.8s; animation-delay: 0.9s; }
            .nav-links a:nth-child(7)::before { animation-duration: 4.5s; animation-delay: 1.4s; }

            @keyframes menuDotBreathe {
                0%, 100% { transform: translateY(-1px) scale(0.75); opacity: 0.65; }
                50%      { transform: translateY(-1px) scale(1.15); opacity: 1; }
            }
            .nav-links a:nth-child(2)::before { background: var(--coral); }
            .nav-links a:nth-child(3)::before { background: var(--orange); }
            .nav-links a:nth-child(4)::before { background: var(--pink); }
            .nav-links a:nth-child(5)::before { background: var(--navy); }
            .nav-links a:nth-child(6)::before { background: var(--orange-bright); }
            .nav-links a:nth-child(7)::before { background: var(--coral); }

            /* Items pop in one by one, top to bottom */
            .nav-links.open a {
                opacity: 1;
                transform: none;
            }

            .nav-links.open a:nth-child(1) { transition-delay: 0.18s; }
            .nav-links.open a:nth-child(2) { transition-delay: 0.30s; }
            .nav-links.open a:nth-child(3) { transition-delay: 0.42s; }
            .nav-links.open a:nth-child(4) { transition-delay: 0.54s; }
            .nav-links.open a:nth-child(5) { transition-delay: 0.66s; }
            .nav-links.open a:nth-child(6) { transition-delay: 0.78s; }
            .nav-links.open a:nth-child(7) { transition-delay: 0.90s; }

            .nav-links a:hover {
                color: var(--teal);
            }
            .nav-toggle { display: flex; }
        }


/* ============================================================
   JOURNAL — editorial index + article reading layout.
   Everything above this banner is lifted verbatim from the site
   (body base + nav + blobs + email modal + cookie banner) so the
   journal matches exactly. Everything below is new and references
   only the brand tokens in style.css — no hardcoded hex.
   ============================================================ */

.journal-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--coral);
}

/* dialed-down fade-up reveal (the chapter reveal, lighter). Hidden state is
   gated on html.js so no-JS users and crawlers always see the content. */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Staggered text reveal — a .reveal.stagger container stays in place while its
   children (headline, dek, byline, each paragraph) fade up one at a time. */
html.js .reveal.stagger { opacity: 1; transform: none; transition: none; }
html.js .reveal.stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}
html.js .reveal.stagger.visible > * { opacity: 1; transform: none; }
html.js .reveal.stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
html.js .reveal.stagger.visible > *:nth-child(2) { transition-delay: 0.11s; }
html.js .reveal.stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
html.js .reveal.stagger.visible > *:nth-child(4) { transition-delay: 0.25s; }
html.js .reveal.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
html.js .reveal.stagger.visible > *:nth-child(6) { transition-delay: 0.39s; }
html.js .reveal.stagger.visible > *:nth-child(7) { transition-delay: 0.45s; }
html.js .reveal.stagger.visible > *:nth-child(8) { transition-delay: 0.51s; }
html.js .reveal.stagger.visible > *:nth-child(9) { transition-delay: 0.56s; }
html.js .reveal.stagger.visible > *:nth-child(10) { transition-delay: 0.61s; }
html.js .reveal.stagger.visible > *:nth-child(n+11) { transition-delay: 0.66s; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal.stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Article body loads quicker than the hero — shorter fade, tighter cascade,
   still a visible fade-in so it doesn't just snap in. */
html.js .article-body.reveal.stagger > * {
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .article-body.reveal.stagger.visible > *:nth-child(1) { transition-delay: 0.02s; }
html.js .article-body.reveal.stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
html.js .article-body.reveal.stagger.visible > *:nth-child(3) { transition-delay: 0.09s; }
html.js .article-body.reveal.stagger.visible > *:nth-child(4) { transition-delay: 0.12s; }
html.js .article-body.reveal.stagger.visible > *:nth-child(5) { transition-delay: 0.15s; }
html.js .article-body.reveal.stagger.visible > *:nth-child(n+6) { transition-delay: 0.18s; }

/* ---------- INDEX ---------- */
.journal-index { max-width: 1100px; margin: 0 auto; padding: 9rem 5% 5rem; }
.journal-index-hero { text-align: center; max-width: 720px; margin: 0 auto 4.5rem; background: var(--cream); border-radius: 24px; padding: 2.75rem 2.5rem; box-shadow: var(--shadow-medium); border: 1px solid rgba(38, 70, 83, 0.06); }
.journal-index-hero h1 { font-size: clamp(3rem, 9vw, 6rem); color: var(--navy); margin: 0.6rem 0 1rem; }
.journal-index-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-secondary); line-height: 1.7; max-width: 38ch; margin: 0 auto; }

.journal-cluster { margin-bottom: 4rem; }
.journal-cluster-head { margin-bottom: 1.75rem; max-width: 620px; }
.journal-cluster-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); margin: 0.35rem 0 0.4rem; }
.journal-cluster-head p { color: var(--text-light); font-size: 0.98rem; line-height: 1.55; }

.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 720px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card {
    display: block;
    background: var(--ivory);
    border-radius: 20px;
    padding: 1.9rem 1.9rem 1.7rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(38, 70, 83, 0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.journal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.journal-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); color: var(--navy); margin: 0.55rem 0 0.5rem; letter-spacing: 1px; }
.journal-card p { font-size: 0.96rem; line-height: 1.6; color: var(--text-secondary); }
.journal-card .read { display: inline-block; margin-top: 1rem; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
/* photo card: hero image behind a navy scrim, text anchored at the bottom.
   The image is set per-card via a .ph-* modifier class below (hardcoded url). */
.journal-card.photo {
    position: relative;
    overflow: hidden;
    border-color: transparent;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.journal-card.photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform var(--transition-smooth);
    z-index: 0;
}
/* Per-card image, hardcoded so a missing CSS var can't blank the whole card.
   Navy scrim layered over the photo keeps the cream text legible. */
.journal-card.photo.ph-work::before {
    background-image: linear-gradient(180deg, rgba(38, 70, 83, 0.20) 0%, rgba(38, 70, 83, 0.40) 45%, rgba(38, 70, 83, 0.82) 100%), url('../og-share.jpg');
}
.journal-card.photo.ph-lather::before {
    background-image: linear-gradient(180deg, rgba(38, 70, 83, 0.20) 0%, rgba(38, 70, 83, 0.40) 45%, rgba(38, 70, 83, 0.82) 100%), url('../seaflamingoshampoobarlather1.jpg');
}
.journal-card.photo.ph-cond::before {
    background-image: linear-gradient(180deg, rgba(38, 70, 83, 0.20) 0%, rgba(38, 70, 83, 0.40) 45%, rgba(38, 70, 83, 0.82) 100%), url('../seaflamingoconditionerbarposter.jpg');
}
.journal-card.photo:hover::before { transform: scale(1.05); }
.journal-card.photo > * { position: relative; z-index: 1; }
.journal-card.photo h3, .journal-card.photo p { color: var(--cream); text-shadow: 0 1px 14px rgba(38, 70, 83, 0.55); }
.journal-card.photo p { opacity: 0.92; }
.journal-card.photo .journal-eyebrow, .journal-card.photo .read { color: var(--orange-bright); }

/* ---------- ARTICLE ---------- */
.article { padding: 9rem 5% 0; }
.article-hero { max-width: 44rem; margin: 0 auto; text-align: left; background: var(--cream); border-radius: 16px; padding: 3.25rem 3.5rem 2.6rem; box-shadow: 0 14px 44px rgba(38, 70, 83, 0.07); border: 1px solid rgba(38, 70, 83, 0.05); }
.breadcrumb { font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.5px; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-light); transition: color var(--transition-smooth); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--navy); }
.article-hero .journal-eyebrow { text-align: left; }
.article-hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.2rem); color: var(--navy); margin: 0.7rem 0 1.2rem; line-height: 1.03; }
.article-standfirst { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; color: var(--navy-light); max-width: 46ch; margin: 0; font-weight: 400; }
.article-meta { margin-top: 1.7rem; padding-top: 1.4rem; border-top: 1px solid rgba(38, 70, 83, 0.12); font-size: 0.76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); }
.article-meta strong { color: var(--navy); font-weight: 700; letter-spacing: 1.5px; }

.article-body { max-width: 44rem; margin: 1.25rem auto 0; font-size: 1.185rem; line-height: 1.8; color: var(--text-primary); background: var(--cream); border-radius: 16px; padding: 3.4rem 3.5rem; box-shadow: 0 14px 44px rgba(38, 70, 83, 0.07); border: 1px solid rgba(38, 70, 83, 0.05); }
.article-body > * + * { margin-top: 1.6rem; }
.article-body > p:first-of-type::first-letter { float: left; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 3.5em; line-height: 0.72; color: var(--coral); margin: 0.05em 0.14em 0 0; }
.article-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--navy); margin-top: 2.9rem; letter-spacing: 0.5px; }
.article-body h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--navy); margin-top: 2.2rem; letter-spacing: 0.5px; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-top: 0.6rem; }
.article-body li::marker { color: var(--coral); }
.article-body .section-break { text-align: center; margin: 2.9rem 0; color: var(--coral); font-size: 1.15rem; letter-spacing: 0.7em; text-indent: 0.7em; }

.pull-quote {
    margin: 2.8rem 0;
    padding-left: 1.4rem;
    border-left: 3px solid var(--coral);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    line-height: 1.4;
    font-style: italic;
    font-weight: 600;
    color: var(--teal);
}

.article-callout {
    margin: 2.4rem 0;
    background: var(--ivory);
    border-left: 4px solid var(--coral);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
}
.article-callout .callout-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); margin-bottom: 0.5rem; }
.article-callout p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin: 0; }

/* keep reading */
.keep-reading { max-width: 44rem; margin: 4rem auto 0; }
.keep-reading h2 { font-size: 1.4rem; color: var(--navy); letter-spacing: 1.5px; margin-bottom: 1.25rem; }
.keep-reading-list { display: grid; gap: 0.9rem; }
.keep-reading-list a { display: flex; align-items: baseline; gap: 0.7rem; padding: 1rem 1.2rem; background: var(--ivory); border-radius: 14px; transition: transform var(--transition-smooth), background var(--transition-smooth); }
.keep-reading-list a:hover { transform: translateX(4px); background: var(--cream); }
.keep-reading-list .arrow { color: var(--coral); font-weight: 700; }
.keep-reading-list .kr-title { color: var(--navy); font-weight: 600; font-size: 0.98rem; }

/* terminal CTA */
.article-cta { max-width: 44rem; margin: 4.5rem auto 0; text-align: center; background: linear-gradient(160deg, var(--ivory), var(--cream)); border-radius: 28px; padding: 3rem 2rem; box-shadow: var(--shadow-soft); }
.article-cta h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--navy); letter-spacing: 1px; }
.article-cta p { margin: 0.7rem auto 1.6rem; color: var(--text-secondary); max-width: 34ch; }
.journal-btn { display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.5px; padding: 1.05rem 2.6rem; border-radius: 50px; color: var(--cream); background: var(--coral); box-shadow: var(--shadow-soft); cursor: pointer; transition: transform var(--transition-bounce), box-shadow var(--transition-bounce), background var(--transition-smooth); }
.journal-btn:hover { transform: translateY(-3px) scale(1.02); background: var(--coral-light); box-shadow: var(--shadow-medium); }

/* breathing room before footer */
.article-foot-space { height: 5rem; }

/* Footer — canonical site footer (matches faq/index/about) */
footer {
    background: var(--navy);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer a { color: var(--teal-light); }
footer a:hover { text-decoration: underline; }

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover { color: white; }
