/* ==========================================================================
   The Love Forecast
   Brand tokens sampled from the sunset and heart cloud reference images.
   All theme classes are prefixed lf- so they never collide with Ghost cards.
   ========================================================================== */

:root {
    /* sky, top to horizon */
    --lf-indigo: #566FAB;
    --lf-periwinkle: #7B89B3;
    --lf-mauve: #9D6992;
    --lf-rose: #E4849D;
    --lf-pink: #F2A2B4;
    --lf-coral: #F89CA0;
    --lf-gold: #F7C87E;

    /* surfaces */
    --lf-cream: #FFF7F4;
    --lf-cream-2: #FCEAE6;
    --lf-white: #FFFFFF;
    --lf-plum: #3B2E4F;
    --lf-plum-deep: #2A2039;

    /* text and action */
    --lf-ink: #2B2240;
    --lf-ink-soft: #55496B;
    --lf-orchid: #7A4E78;
    --lf-orchid-dark: #653F63;
    --lf-line: rgba(122, 78, 120, 0.16);
    --lf-line-strong: rgba(122, 78, 120, 0.3);

    /* gradients */
    --lf-sky: linear-gradient(180deg, #566FAB 0%, #7B89B3 26%, #9D6992 52%, #E4849D 74%, #F7C87E 100%);
    --lf-sky-soft: linear-gradient(140deg, #EDE7F4 0%, #FBE3E6 45%, #FDEFE2 100%);
    --lf-warm: linear-gradient(120deg, var(--lf-gold) 0%, var(--lf-rose) 48%, var(--lf-periwinkle) 100%);

    /* type
       Falls back to the brand fonts, but honours the heading and body fonts
       chosen in Ghost admin under Settings, Design, Brand when they are set. */
    --lf-display: var(--gh-font-heading, 'Fraunces', Georgia, 'Times New Roman', serif);
    --lf-body: var(--gh-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);

    /* shape */
    --lf-r-sm: 10px;
    --lf-r: 18px;
    --lf-r-lg: 28px;
    --lf-shadow: 0 18px 44px rgba(59, 46, 79, 0.1);
    --lf-shadow-lg: 0 28px 70px rgba(59, 46, 79, 0.16);

    /* layout */
    --lf-max: 1200px;
    --lf-max-narrow: 820px;
    --lf-text-max: 850px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.lf-body {
    margin: 0;
    background: var(--lf-cream);
    color: var(--lf-ink);
    font-family: var(--lf-body);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lf-orchid); text-decoration: none; }
a:hover { color: var(--lf-orchid-dark); }

:focus-visible {
    outline: 3px solid var(--lf-orchid);
    outline-offset: 3px;
    border-radius: 4px;
}

.lf-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.lf-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--lf-plum);
    color: var(--lf-cream);
    padding: 12px 18px;
    border-radius: 0 0 var(--lf-r-sm) 0;
    font-size: 14px;
}
.lf-skip:focus { left: 0; color: var(--lf-cream); }

.lf-wrap {
    width: 100%;
    max-width: var(--lf-max);
    margin: 0 auto;
    padding: 0 24px;
}
.lf-wrap-narrow { max-width: var(--lf-max-narrow); }

.lf-main { display: block; }

.lf-sec { padding: 78px 0; position: relative; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.lf-h1, .lf-h2, .lf-h3 { font-family: var(--lf-display); font-weight: 600; margin: 0; }

.lf-h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.02em;
}
.lf-h1 > span { color: var(--lf-ink); }

.lf-h2 {
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.015em;
}
.lf-h2 > span { color: var(--lf-ink); }

.lf-h3 {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.2;
}
.lf-h3 > span { color: var(--lf-ink); }

.lf-lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--lf-ink-soft);
    max-width: var(--lf-text-max);
    margin: 18px 0 0;
}
.lf-lead-center { margin-left: auto; margin-right: auto; }

.lf-pill {
    display: inline-block;
    margin: 0 0 16px;
    padding: 7px 15px;
    background: var(--lf-cream-2);
    border: 1px solid var(--lf-line);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lf-orchid);
}

.lf-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lf-ink-soft);
}
.lf-meta-center { justify-content: center; }
.lf-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lf-rose); display: inline-block; }

.lf-fineprint { margin: 14px 0 0; font-size: 13px; color: var(--lf-ink-soft); }
.lf-fineprint-lg { margin: 26px 0 16px; font-size: 16px; }

.lf-headwrap { text-align: center; max-width: var(--lf-text-max); margin: 0 auto 46px; }
.lf-headwrap-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    max-width: none;
}
.lf-headwrap-row .lf-pill { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Buttons and forms
   -------------------------------------------------------------------------- */

.lf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    background: var(--lf-orchid);
    color: var(--lf-white);
    border: 1px solid var(--lf-orchid);
    border-radius: 100px;
    font-family: var(--lf-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.lf-btn:hover {
    background: var(--lf-orchid-dark);
    border-color: var(--lf-orchid-dark);
    color: var(--lf-white);
    transform: translateY(-1px);
    box-shadow: var(--lf-shadow);
}
.lf-btn-sm { padding: 11px 20px; font-size: 14px; }
.lf-btn-ghost {
    background: transparent;
    color: var(--lf-orchid);
    border-color: var(--lf-line-strong);
}
.lf-btn-ghost:hover {
    background: var(--lf-cream-2);
    color: var(--lf-orchid-dark);
    border-color: var(--lf-orchid);
}

.lf-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    max-width: 520px;
}
.lf-form-lg { max-width: 540px; }
.lf-cta-in .lf-form { margin-left: auto; margin-right: auto; }

.lf-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 15px 20px;
    background: var(--lf-white);
    border: 1px solid var(--lf-line-strong);
    border-radius: 100px;
    font-family: var(--lf-body);
    font-size: 15px;
    color: var(--lf-ink);
}
.lf-input::placeholder { color: #6F6480; }
.lf-input:focus { border-color: var(--lf-orchid); outline: none; box-shadow: 0 0 0 3px rgba(122, 78, 120, 0.16); }

.lf-msg {
    flex: 1 0 100%;
    margin: 4px 0 0;
    font-size: 14px;
    display: none;
}
.lf-success { color: #2F6B4F; }
.lf-error { color: #9B2C3F; }

form[data-members-form].success .lf-success { display: block; }
form[data-members-form].error .lf-error { display: block; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.lf-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 247, 244, 0.9);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--lf-line);
}
.lf-header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}
.lf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--lf-ink); }
.lf-brand:hover { color: var(--lf-orchid); }
.lf-brand-logo { max-height: 34px; width: auto; }
.lf-brand-mark { display: inline-flex; }
.lf-brand-text {
    font-family: var(--lf-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lf-nav { display: flex; align-items: center; gap: 26px; }
.lf-nav-list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.lf-nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--lf-ink-soft);
}
.lf-nav-link:hover { color: var(--lf-orchid); }

.lf-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--lf-line);
    border-radius: 10px;
    cursor: pointer;
}
.lf-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--lf-ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.lf-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.lf-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.lf-hero { position: relative; padding: 70px 0 84px; overflow: hidden; }
.lf-hero-sky {
    position: absolute;
    inset: 0;
    background: var(--lf-sky-soft);
    z-index: 0;
}
.lf-hero-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 46% at 12% 8%, rgba(247, 200, 126, 0.42) 0%, rgba(247, 200, 126, 0) 70%),
        radial-gradient(52% 42% at 88% 22%, rgba(228, 132, 157, 0.36) 0%, rgba(228, 132, 157, 0) 72%);
}
.lf-hero-in {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 54px;
}
.lf-hero-text { max-width: 620px; }
.lf-hero-text .lf-lead { font-size: 18px; }

.lf-hero-art { position: relative; }
.lf-hero-art img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center 38%;
    border-radius: var(--lf-r-lg);
    box-shadow: var(--lf-shadow-lg);
}
.lf-hero-art-glow {
    position: absolute;
    inset: auto -8% -10% -8%;
    height: 62%;
    background: radial-gradient(50% 60% at 50% 100%, rgba(228, 132, 157, 0.36) 0%, rgba(228, 132, 157, 0) 72%);
    z-index: -1;
}

/* --------------------------------------------------------------------------
   Week tabs
   -------------------------------------------------------------------------- */

.lf-week { background: var(--lf-white); }

/* Hidden until JavaScript wires the tabs up. With scripting off there are no
   dead buttons, and all five panels stack and read in order instead. */
.lf-tablist { display: none; }
.lf-tabs-js .lf-tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 30px;
}
.lf-tab {
    padding: 11px 20px;
    background: var(--lf-cream);
    border: 1px solid var(--lf-line);
    border-radius: 100px;
    font-family: var(--lf-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--lf-ink-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lf-tab:hover { border-color: var(--lf-orchid); color: var(--lf-orchid); }
.lf-tab.is-active {
    background: var(--lf-orchid);
    border-color: var(--lf-orchid);
    color: var(--lf-white);
}

.lf-tabs { max-width: var(--lf-text-max); margin: 0 auto; }
.lf-panels { max-width: var(--lf-text-max); margin: 0 auto; }
.lf-panel {
    padding: 34px;
    background: var(--lf-cream);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-r);
    margin: 0 0 14px;
}
.lf-panel:last-child { margin-bottom: 0; }
.lf-panel p:last-child { margin-bottom: 0; }
.lf-panel-day {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lf-orchid);
}
.lf-panel .lf-h3 { margin-bottom: 12px; }
.lf-panel p { font-size: 16px; line-height: 1.55; color: var(--lf-ink-soft); margin: 0; }

/* Only once the tabs are wired up do the panels behave as tab panels. */
.lf-tabs-js .lf-panel[aria-hidden="true"] { display: none; }
.lf-tabs-js .lf-panel { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Split section
   -------------------------------------------------------------------------- */

.lf-split-sec { background: var(--lf-cream); }
.lf-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 54px;
}
.lf-split-art img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--lf-r-lg);
    box-shadow: var(--lf-shadow);
}
.lf-split-text p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--lf-ink-soft);
    margin: 18px 0 0;
    max-width: var(--lf-text-max);
}
.lf-ticks { list-style: none; margin: 26px 0 0; padding: 0; }
.lf-ticks li {
    position: relative;
    padding: 0 0 0 30px;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lf-ink-soft);
}
.lf-ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lf-warm);
}

/* --------------------------------------------------------------------------
   Cards (latest issues)
   -------------------------------------------------------------------------- */

.lf-latest { background: var(--lf-white); }

.lf-grid { display: grid; gap: 26px; }
.lf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lf-card {
    background: var(--lf-cream);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-r);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lf-card:hover { transform: translateY(-3px); box-shadow: var(--lf-shadow); }
.lf-card-link { display: block; color: inherit; height: 100%; }
.lf-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lf-cream-2); }
.lf-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lf-card-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--lf-sky) url("../images/heart-field.jpg") center / cover no-repeat;
}
.lf-card-body { padding: 24px; }
.lf-card-title {
    font-family: var(--lf-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.22;
    margin: 0 0 10px;
    color: var(--lf-ink);
}
.lf-card-ex { font-size: 15px; line-height: 1.5; color: var(--lf-ink-soft); margin: 0 0 16px; }
.lf-card-more { font-size: 14px; font-weight: 600; color: var(--lf-orchid); }
.lf-card:hover .lf-card-more { color: var(--lf-orchid-dark); }

.lf-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    background: var(--lf-cream-2);
    border: 1px dashed var(--lf-line-strong);
    border-radius: var(--lf-r);
    font-size: 16px;
    color: var(--lf-ink-soft);
    text-align: center;
}
.lf-empty-lg { padding: 48px 28px; }
.lf-empty-title {
    margin: 0 0 8px;
    font-family: var(--lf-display);
    font-size: 22px;
    color: var(--lf-ink);
}
.lf-empty p { margin: 0; }
.lf-empty-actions { margin-top: 18px !important; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.lf-about-hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.lf-about-sky {
    position: absolute;
    inset: 0;
    background: var(--lf-sky-soft);
    z-index: 0;
}
.lf-about-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(56% 46% at 14% 6%, rgba(247, 200, 126, 0.38) 0%, rgba(247, 200, 126, 0) 70%),
        radial-gradient(52% 44% at 86% 24%, rgba(228, 132, 157, 0.34) 0%, rgba(228, 132, 157, 0) 72%);
}
.lf-about-in { position: relative; z-index: 1; }
.lf-about-in .lf-headwrap { margin-bottom: 0; }

.lf-about-quote { background: var(--lf-white); text-align: center; }
.lf-quote {
    max-width: var(--lf-text-max);
    margin: 0 auto;
    padding: 0;
    border: 0;
}
.lf-quote p {
    margin: 0;
    font-family: var(--lf-display);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: -0.01em;
    color: var(--lf-ink);
}
.lf-quote-after { margin-top: 26px; }
.lf-about-body { padding-top: 0; background: var(--lf-cream); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.lf-error { padding: 96px 0 60px; background: var(--lf-cream); }
.lf-error .lf-pill { font-size: 13px; letter-spacing: 0.18em; }
.lf-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 0;
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.lf-archive-head { padding: 64px 0 0; background: var(--lf-cream); }
.lf-archive-head .lf-headwrap { margin-bottom: 0; }
.lf-archive-intro { max-width: var(--lf-text-max); margin: 30px auto 0; }
.lf-archive { padding: 44px 0 78px; background: var(--lf-cream); }

.lf-issues {
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid var(--lf-line);
}
.lf-issue { border-bottom: 1px solid var(--lf-line); }
.lf-issue-link {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: start;
    gap: 26px;
    padding: 26px 18px;
    color: inherit;
    border-radius: var(--lf-r-sm);
    transition: background 0.18s ease;
}
.lf-issue-link:hover { background: var(--lf-white); color: inherit; }
.lf-issue-date {
    margin: 4px 0 0;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lf-ink-soft);
}
.lf-issue-title {
    font-family: var(--lf-display);
    font-size: clamp(20px, 2.1vw, 25px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--lf-ink);
}
.lf-issue-link:hover .lf-issue-title { color: var(--lf-orchid); }
.lf-issue-main { min-width: 0; }
.lf-issue-ex { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lf-ink-soft); }
.lf-issue-read {
    margin: 4px 0 0;
    font-size: 13px;
    white-space: nowrap;
    color: var(--lf-ink-soft);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 960px;
    margin: 40px auto 0;
    font-size: 15px;
    color: var(--lf-ink-soft);
}
.pagination a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.lf-article { background: var(--lf-cream); }
.lf-page .lf-article-body .lf-wrap-narrow { padding-top: 54px; }
.lf-article-head { padding: 64px 0 0; text-align: center; }
.lf-article-title {
    font-family: var(--lf-display);
    font-size: clamp(31px, 4.6vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.018em;
    margin: 0;
}
.lf-article-title > span { color: var(--lf-ink); }
.lf-article-sub {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--lf-ink-soft);
}

.lf-article-image { margin: 36px 0 0; }
.lf-article-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--lf-r);
    box-shadow: var(--lf-shadow);
    /* gap after the feature image, web only */
    margin-bottom: 30px;
}
.lf-article-image figcaption {
    margin: -18px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--lf-ink-soft);
}

/* post body: no top padding, 30px sides on desktop */
.lf-article-body { padding: 0; }
.lf-article-body .lf-wrap-narrow { padding-top: 0; padding-left: 30px; padding-right: 30px; }
.lf-article-head + .lf-article-body .lf-wrap-narrow { padding-top: 34px; }

.lf-content { font-size: 18px; line-height: 1.62; color: var(--lf-ink); }
.lf-content > * { max-width: var(--lf-text-max); margin-left: auto; margin-right: auto; }
.lf-content p { margin: 0 0 22px; }
.lf-content h2, .lf-content h3, .lf-content h4 {
    font-family: var(--lf-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--lf-ink);
    margin: 40px 0 14px;
}
.lf-content h2 { font-size: clamp(25px, 3vw, 32px); }
.lf-content h3 { font-size: clamp(21px, 2.4vw, 25px); }
.lf-content h4 { font-size: 19px; }
.lf-content a { text-decoration: underline; text-underline-offset: 2px; }
.lf-content ul, .lf-content ol { margin: 0 0 22px; padding-left: 24px; }
.lf-content li { margin: 0 0 9px; }
.lf-content blockquote {
    margin: 30px 0;
    padding: 20px 26px;
    background: var(--lf-cream-2);
    border-left: 4px solid var(--lf-rose);
    border-radius: 0 var(--lf-r-sm) var(--lf-r-sm) 0;
    font-family: var(--lf-display);
    font-size: 20px;
    line-height: 1.42;
    color: var(--lf-ink);
}
.lf-content blockquote p:last-child { margin-bottom: 0; }
.lf-content hr {
    max-width: 120px;
    margin: 42px auto;
    border: 0;
    border-top: 2px solid var(--lf-line-strong);
}
.lf-content img { border-radius: var(--lf-r-sm); }
.lf-content figcaption { margin-top: 10px; font-size: 13px; text-align: center; color: var(--lf-ink-soft); }

/* Ghost wide and full cards stay wider than the text column */
.lf-content .kg-width-wide { max-width: 1040px; }
.lf-content .kg-width-full { max-width: 100%; }

/* The daily issue is pasted as one HTML card that also has to work in email,
   so let it own its own background and spacing. */
.lf-content .kg-card.kg-html-card { max-width: 100%; margin: 0; }
.lf-content .kg-html-card table { margin: 0 auto; }

.lf-article-foot {
    display: flex;
    justify-content: center;
    padding: 46px 0 78px;
    border-top: 1px solid var(--lf-line);
    margin-top: 52px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.lf-cta-sec { padding: 0 0 78px; background: var(--lf-cream); }
.lf-cta-card {
    position: relative;
    overflow: hidden;
    padding: 62px 30px;
    background: var(--lf-plum);
    border-radius: var(--lf-r-lg);
    text-align: center;
}
.lf-cta-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(48% 62% at 16% 4%, rgba(247, 200, 126, 0.3) 0%, rgba(247, 200, 126, 0) 68%),
        radial-gradient(52% 64% at 86% 92%, rgba(228, 132, 157, 0.34) 0%, rgba(228, 132, 157, 0) 70%);
}
.lf-cta-in { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.lf-cta-card .lf-pill {
    background: rgba(255, 247, 244, 0.14);
    border-color: rgba(255, 247, 244, 0.26);
    color: var(--lf-cream);
}
.lf-cta-title > span { color: var(--lf-cream); }
.lf-cta-lead { color: rgba(255, 247, 244, 0.84); margin-left: auto; margin-right: auto; }
.lf-cta-card .lf-input { border-color: rgba(255, 247, 244, 0.3); }
.lf-cta-card .lf-btn { background: var(--lf-cream); color: var(--lf-plum); border-color: var(--lf-cream); }
.lf-cta-card .lf-btn:hover { background: var(--lf-white); color: var(--lf-plum-deep); border-color: var(--lf-white); }
.lf-cta-card .lf-fineprint { color: rgba(255, 247, 244, 0.7); }
.lf-cta-card .lf-success { color: #BFE6CE; }
.lf-cta-card .lf-error { color: #F6BCC6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.lf-footer { background: var(--lf-plum-deep); color: rgba(255, 247, 244, 0.78); }
.lf-footer-in {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 62px;
    padding-bottom: 42px;
}
.lf-footer-brand { min-width: 0; }
.lf-brand-mark-sm { opacity: 0.9; }
.lf-footer-title {
    margin: 12px 0 0;
    font-family: var(--lf-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--lf-cream);
}
.lf-footer-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.5; max-width: 320px; }
.lf-footer-head {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lf-gold);
}
.lf-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.lf-footer-nav li { margin: 0 0 10px; }
.lf-footer-nav a { font-size: 15px; color: rgba(255, 247, 244, 0.78); }
.lf-footer-nav a:hover { color: var(--lf-cream); text-decoration: underline; }

.lf-footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 34px;
    border-top: 1px solid rgba(255, 247, 244, 0.14);
}
.lf-footer-base p { margin: 0; font-size: 13px; color: rgba(255, 247, 244, 0.62); }
.lf-footer-base p:first-child { font-family: var(--lf-display); font-size: 15px; color: var(--lf-cream); }

/* --------------------------------------------------------------------------
   Motion, progressive enhancement only

   Nothing in the markup carries .lf-rise. JavaScript adds that class at
   runtime and only after it has confirmed IntersectionObserver exists, then
   removes it again on a safety timer. So there is no code path in which a
   failed or blocked script leaves content stuck at opacity 0.
   -------------------------------------------------------------------------- */

.lf-rise {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.lf-rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lf-rise, .lf-rise.is-in { opacity: 1; transform: none; transition: none; }
    .lf-card, .lf-btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .lf-hero-in { grid-template-columns: minmax(0, 1fr); gap: 38px; }
    .lf-hero-art { order: -1; }
    .lf-hero-art img { max-height: 340px; }
    .lf-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lf-footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {

    /* DEFAULT, scripting off or not yet running.
       The burger needs JavaScript to do anything, so it stays hidden and the
       nav renders as a plain stacked list under the header. Every link,
       including Archive, is reachable with no script at all. The header is
       also not sticky here, so the taller nav scrolls away normally. */
    .lf-burger { display: none; }
    .lf-header { position: static; }
    .lf-header-in { flex-wrap: wrap; align-items: center; padding-bottom: 6px; }
    .lf-nav {
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 14px;
    }
    .lf-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .lf-nav-item { border-bottom: 1px solid var(--lf-line); }
    .lf-nav-link { display: block; padding: 14px 0; font-size: 16px; }
    .lf-nav-cta { margin: 16px 0 0; }

    /* ENHANCED, once the burger is wired up: collapse into a drawer. */
    .lf-nav-js .lf-burger { display: flex; }
    .lf-nav-js .lf-header { position: sticky; top: 0; }
    .lf-nav-js .lf-header-in { flex-wrap: nowrap; padding-bottom: 0; }
    .lf-nav-js .lf-nav {
        position: fixed;
        inset: 68px 0 auto;
        flex: 0 1 auto;
        padding: 18px 24px 26px;
        background: var(--lf-cream);
        border-bottom: 1px solid var(--lf-line);
        box-shadow: var(--lf-shadow);
        transform: translateY(-140%);
        transition: transform 0.26s ease;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    .lf-nav-js .lf-nav.is-open { transform: translateY(0); }

    .lf-sec { padding: 54px 0; }
    .lf-wrap { padding: 0 20px; }
    .lf-headwrap { margin-bottom: 32px; }
    .lf-headwrap-row { flex-direction: column; align-items: flex-start; }

    .lf-hero { padding: 44px 0 56px; }
    .lf-panel { padding: 24px; }

    .lf-grid-3 { grid-template-columns: minmax(0, 1fr); }

    .lf-issue-link {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 22px 12px;
    }
    .lf-issue-date { order: -1; margin: 0; }
    .lf-issue-read { margin: 0; }

    .lf-article-head { padding-top: 44px; }
    /* post body sides, 20px on mobile */
    .lf-article-body .lf-wrap-narrow { padding-left: 20px; padding-right: 20px; }
    .lf-content { font-size: 17px; }
    /* gap after the feature image, 20px on mobile */
    .lf-article-image img { max-height: 280px; margin-bottom: 20px; }

    .lf-cta-card { padding: 44px 22px; }
    .lf-footer-in { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 46px; }
    .lf-footer-base { justify-content: flex-start; }
}

@media (max-width: 420px) {
    body.lf-body { font-size: 15px; }
    .lf-form { flex-direction: column; align-items: stretch; }
    /* flex-basis applies to height once the container is a column, so the
       grow must be switched off or the input stretches to fill the row */
    .lf-input, .lf-btn { flex: 0 0 auto; width: 100%; }
}
