/*
 * JustPeachy Landing — component styles.
 * Tokens mirror index.html :root so the marketing page and the app cannot drift.
 * Font paths are relative to this file (assets/css/ -> assets/fonts/).
 */

/* Self-hosted fonts — the SAME faces the app uses, so the click-through from here
   into index.html does not restyle mid-journey and nothing extra is downloaded
   (both files are already precached for the app). */
@font-face {
    font-family: 'Calistoga';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/calistoga-v18-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Albert Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/albert-sans-v4-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Albert Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/albert-sans-v4-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Albert Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/albert-sans-v4-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Albert Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/albert-sans-v4-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Spline Sans Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/spline-sans-mono-v13-latin-500.woff2') format('woff2');
}

/* Tokens lifted verbatim from index.html's :root so the two pages cannot drift. */
:root {
    --peach-50: #FEF3EC;
    --peach-100: #FCE4D4;
    --peach-200: #F8CBAE;
    --peach-400: #ED7B45;
    --peach-500: #E16B36;
    --peach-600: #C2552A;
    --peach-700: #97421F;
    --peach: var(--peach-400);
    --peach-rgb: 237, 123, 69;

    --ink-900: #2B2F3F;
    --ink-700: #4A4E5C;
    --ink-500: #7A7E8C;
    --line: #F1E7DF;
    --line-soft: #F6EEE7;

    --page: #FCEFE4;
    --card: #FFFDFB;
    --raised: #FFFFFF;

    --sage: #5B9A78;
    --sage-tint: #E4F0E9;
    --sage-ink: #2E5C43;

    --brass: #C49A52;
    --brass-tint: #F6ECD6;
    --brass-ink: #785818;

    --display: "Calistoga", Georgia, serif;
    --sans: "Albert Sans", -apple-system, system-ui, sans-serif;
    --mono: "Spline Sans Mono", ui-monospace, monospace;

    --shadow-sm: 0 1px 2px rgba(43, 47, 63, 0.05), 0 2px 8px rgba(43, 47, 63, 0.04);
    --shadow-md: 0 4px 12px rgba(43, 47, 63, 0.06), 0 12px 32px rgba(43, 47, 63, 0.06);
    --shadow-lg: 0 12px 28px rgba(43, 47, 63, 0.08), 0 32px 64px rgba(43, 47, 63, 0.08);

    --wrap: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    /* The app's exact page wash, so the hand-off is seamless. */
    background: radial-gradient(1100px 560px at 12% -8%, #FFE7D2 0%, transparent 55%),
        radial-gradient(900px 460px at 96% -4%, #FFF0CF 0%, transparent 52%),
        var(--page);
    font-family: var(--sans);
    color: var(--ink-900);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--peach-600);
}

/* ── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--raised);
    color: var(--ink-900);
    padding: 12px 20px;
    border-radius: 0 0 12px 0;
    font-weight: 700;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 239, 228, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.nav.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 26px;
    height: 28px;
    display: block;
}

/* Matches .logo in index.html — Calistoga, peach→brass gradient fill. */
.brand-word {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--peach), var(--brass));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.62em;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ink-500);
    -webkit-text-fill-color: var(--ink-500);
    background: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.nav-links a:hover {
    background: rgba(var(--peach-rgb), 0.10);
    color: var(--peach-700);
}

/* Theme toggle. Which glyph shows is decided in CSS by the same three-state logic as
   the palette, so the icon can never disagree with the theme — and it is already
   correct on first paint, before any JS runs. */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--ink-700);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.theme-toggle:hover {
    background: rgba(var(--peach-rgb), 0.10);
    color: var(--peach-700);
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
}

.theme-toggle .jpl-sun {
    display: none;
}

.nav-links .nav-cta {
    background: var(--peach);
    color: #fff;
    margin-left: 6px;
    box-shadow: 0 2px 10px rgba(var(--peach-rgb), 0.35);
}

.nav-links .nav-cta:hover {
    background: var(--peach-500);
    color: #fff;
}

@media (max-width: 640px) {
    .nav-links .nav-desktop-only {
        display: none;
    }

    /* The CTA is nowrap, so the lockup has to give way rather than push the row
       wider than the viewport. */
    .brand-word {
        font-size: 20px;
    }

    .nav-links .nav-cta {
        padding: 10px 15px;
    }
}

/* At 320px the mark + "JustPeachy invoicing" + a nowrap CTA overruns the row by
   ~34px. The sub-word is the cheapest thing to drop — the mark and "JustPeachy"
   still identify the page. */
@media (max-width: 400px) {
    .brand-sub {
        display: none;
    }

    /* The theme toggle adds a 44px block to the row, which overran 320px by 27px. The
       toggle keeps its 44px touch target — everything around it gives way instead. */
    .wrap {
        padding: 0 14px;
    }

    .brand-word {
        font-size: 17px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links .nav-cta {
        padding: 10px 12px;
        margin-left: 2px;
    }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    cursor: pointer;
    min-height: 52px;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.btn:active {
    transform: translateY(1px);
}

/* An unsized inline SVG fills its flex line and forces the label to wrap. The static
   page pinned this per-icon with a style attribute; stating it once here means every
   button icon is right regardless of which one a template drops in. */
.btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--peach);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--peach-rgb), 0.34);
}

.btn-primary:hover {
    background: var(--peach-500);
    box-shadow: 0 8px 22px rgba(var(--peach-rgb), 0.40);
}

.btn-secondary {
    background: var(--raised);
    color: var(--ink-900);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--peach-200);
}

:focus-visible {
    outline: 2px solid var(--peach);
    outline-offset: 2px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
    padding: 76px 0 84px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-tint);
    color: var(--sage-ink);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.eyebrow svg {
    width: 14px;
    height: 14px;
}

h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(38px, 5.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 0 0 20px;
    color: var(--ink-900);
}

h1 .accent {
    color: var(--peach-600);
}

.hero p.lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0 0 32px;
    max-width: 30em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 14px;
    color: var(--ink-500);
    margin: 0;
}

/* ── Hero visual: a real miniature of the app's invoice card ───────────── */
.shot {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 26px 26px 22px;
    transform: rotate(-1.1deg);
}

.shot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.shot-biz {
    font-family: var(--display);
    font-size: 19px;
    color: var(--peach-600);
    line-height: 1.2;
}

.shot-biz span {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-500);
    margin-top: 3px;
}

.shot-no {
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--ink-500);
}

.shot-no b {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0;
    color: var(--ink-900);
    margin-top: 3px;
}

.shot-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 14px;
}

.shot-meta div:last-child {
    text-align: right;
}

.shot-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: var(--ink-500);
    margin-bottom: 4px;
}

.shot-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
}

.shot-val.due {
    color: var(--brass-ink);
}

.shot-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: baseline;
    font-size: 13px;
    padding: 9px 0;
}

.shot-row .it {
    font-weight: 600;
    color: var(--ink-900);
}

.shot-row .it small {
    display: block;
    font-weight: 400;
    font-size: 11.5px;
    color: var(--ink-500);
    margin-top: 2px;
}

.shot-row .nm {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-500);
}

.shot-row .am {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--ink-900);
}

.shot-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--line-soft);
    margin-top: 12px;
    padding-top: 14px;
}

.shot-total .lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
}

.shot-total .amt {
    font-family: var(--display);
    font-size: 26px;
    color: var(--peach-600);
}

.shot-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 11px;
    color: var(--ink-500);
}

.shot-pill {
    margin-left: auto;
    background: var(--sage-tint);
    color: var(--sage-ink);
    font-weight: 700;
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 999px;
}

/* ── Section furniture ─────────────────────────────────────────────────── */
section {
    padding: 72px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
    color: var(--ink-900);
}

.section-head p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0;
}

/* ── Features ──────────────────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    background: rgba(var(--peach-rgb), 0.12);
    color: var(--peach-600);
}

.card-icon svg {
    width: 23px;
    height: 23px;
}

.card-icon.sage {
    background: var(--sage-tint);
    color: var(--sage-ink);
}

.card-icon.brass {
    background: var(--brass-tint);
    color: var(--brass-ink);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 9px;
    color: var(--ink-900);
}

.card p {
    font-size: 15px;
    line-height: 1.62;
    color: var(--ink-700);
    margin: 0;
}

.tag-pro {
    display: inline-block;
    background: rgba(var(--peach-rgb), 0.14);
    color: var(--peach-700);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: 2px;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    max-width: 780px;
    margin: 0 auto 42px;
}

.plan {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border: 2px solid var(--peach);
    box-shadow: var(--shadow-md);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 26px;
    background: var(--peach);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.plan-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.plan-name {
    font-family: var(--display);
    font-size: 23px;
    color: var(--ink-900);
}

.plan-price {
    font-size: 23px;
    font-weight: 800;
    color: var(--ink-900);
    white-space: nowrap;
}

.plan-price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-500);
}

.plan-blurb {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0 0 18px;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 11px;
}

.plan li {
    display: flex;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-700);
}

.plan li svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--sage);
}

.plan .btn {
    margin-top: auto;
    width: 100%;
}

.addons {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255, 253, 251, 0.7);
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 26px 28px;
}

.addons h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.addons > p {
    font-size: 14px;
    color: var(--ink-500);
    margin: 0 0 18px;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 10px;
}

.addon {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 14px;
}

.addon b {
    font-weight: 600;
    color: var(--ink-900);
}

.addon span {
    font-weight: 700;
    color: var(--peach-600);
    white-space: nowrap;
}

/* ── Local-first band ──────────────────────────────────────────────────── */
.band {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 44px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
}

.band-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--sage-tint);
    color: var(--sage-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-icon svg {
    width: 30px;
    height: 30px;
}

.band h2 {
    font-size: clamp(23px, 2.6vw, 29px);
    margin-bottom: 10px;
}

.band p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-700);
    margin: 0;
}

/* ── Final CTA ─────────────────────────────────────────────────────────── */
.cta {
    text-align: center;
    background: linear-gradient(150deg, #FFF4EA 0%, #FDE9DA 100%);
    border: 1px solid var(--peach-100);
    border-radius: 26px;
    padding: 60px 32px;
}

.cta p {
    font-size: 17px;
    color: var(--ink-700);
    margin: 0 0 28px;
    max-width: 44ch;
    margin-inline: auto;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--line);
    margin-top: 72px;
    padding: 36px 0 48px;
}

.foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.foot-links a {
    color: var(--ink-700);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
}

.foot-links a:hover {
    color: var(--peach-700);
    background: rgba(var(--peach-rgb), 0.08);
}

.foot-copy {
    font-size: 14px;
    color: var(--ink-500);
}

/* ── WordPress chrome ──────────────────────────────────────────────────── */
/* The admin bar is position:fixed at the top for logged-in users, so a sticky nav
   with top:0 slides underneath it. Core exposes no custom property for its height,
   and it changes at 782px, so both cases are stated. */
.admin-bar .nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nav {
        top: 46px;
    }
}

/* Alignment classes core emits for embeds/images inside page content. */
.alignwide {
    max-width: min(1240px, 100%);
    margin-inline: auto;
}

.alignfull {
    max-width: 100%;
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip-path: none;
    height: auto;
    width: auto;
    z-index: 100000;
}

/* ── Reveal-on-scroll ──────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 52px 0 64px;
    }

    .shot {
        transform: none;
        max-width: 460px;
    }

    .band {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 34px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 18px;
    }

    section {
        padding: 56px 0;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta {
        padding: 44px 22px;
    }

    .foot-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Dark ──────────────────────────────────────────────────────────────── */
/* Three states, not two:
     no attribute       → follow the operating system
     data-theme="light" → the visitor chose light, even on a dark system
     data-theme="dark"  → the visitor chose dark, even on a light system
   An explicit choice has to beat the system in BOTH directions, which is why the dark
   palette appears twice: CSS cannot share one block between a media query and an
   attribute selector. The two blocks must stay in step. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page: #0E0E13;
        --card: #191922;
        --raised: #191922;
        --ink-900: #F2EFEA;
        --ink-700: #C7C3BC;
        --ink-500: #9A968F;
        --line: rgba(255, 255, 255, 0.10);
        --line-soft: rgba(255, 255, 255, 0.06);
        --peach-600: #F3AC7E;
        --peach-700: #F8CBAE;
        --sage-tint: rgba(91, 154, 120, 0.18);
        --sage-ink: #9BD3B4;
        --brass-tint: rgba(196, 154, 82, 0.18);
        --brass-ink: #E3C489;
        --peach-100: rgba(255, 255, 255, 0.10);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
    }

    :root:not([data-theme="light"]) body {
        background: radial-gradient(1100px 560px at 12% -8%, rgba(237, 123, 69, 0.10) 0%, transparent 55%),
            radial-gradient(900px 460px at 96% -4%, rgba(196, 154, 82, 0.08) 0%, transparent 52%),
            var(--page);
    }

    :root:not([data-theme="light"]) .nav {
        background: rgba(14, 14, 19, 0.82);
    }

    :root:not([data-theme="light"]) .cta {
        background: linear-gradient(150deg, rgba(237, 123, 69, 0.12) 0%, rgba(196, 154, 82, 0.08) 100%);
    }

    :root:not([data-theme="light"]) .addons {
        background: rgba(25, 25, 34, 0.6);
    }

    :root:not([data-theme="light"]) .theme-toggle .jpl-sun {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-toggle .jpl-moon {
        display: none;
    }
}

/* The explicit dark choice. Mirror of the block above — keep them in step. */
:root[data-theme="dark"] {
    --page: #0E0E13;
    --card: #191922;
    --raised: #191922;
    --ink-900: #F2EFEA;
    --ink-700: #C7C3BC;
    --ink-500: #9A968F;
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(255, 255, 255, 0.06);
    --peach-600: #F3AC7E;
    --peach-700: #F8CBAE;
    --sage-tint: rgba(91, 154, 120, 0.18);
    --sage-ink: #9BD3B4;
    --brass-tint: rgba(196, 154, 82, 0.18);
    --brass-ink: #E3C489;
    --peach-100: rgba(255, 255, 255, 0.10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] body {
    background: radial-gradient(1100px 560px at 12% -8%, rgba(237, 123, 69, 0.10) 0%, transparent 55%),
        radial-gradient(900px 460px at 96% -4%, rgba(196, 154, 82, 0.08) 0%, transparent 52%),
        var(--page);
}

:root[data-theme="dark"] .nav {
    background: rgba(14, 14, 19, 0.82);
}

:root[data-theme="dark"] .cta {
    background: linear-gradient(150deg, rgba(237, 123, 69, 0.12) 0%, rgba(196, 154, 82, 0.08) 100%);
}

:root[data-theme="dark"] .addons {
    background: rgba(25, 25, 34, 0.6);
}

:root[data-theme="dark"] .theme-toggle .jpl-sun {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .jpl-moon {
    display: none;
}

/* ── Editor content, posts and pages ───────────────────────────────────── */
/* The landing sections are the theme's reason to exist, but a WordPress site still
   needs readable body copy for pages, posts and the block editor's output. */
.jpl-prose,
.jpl-page-content .wrap {
    max-width: 760px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-700);
}

.jpl-prose > * + *,
.jpl-page-content .wrap > * + * {
    margin-top: 1.1em;
}

.jpl-prose h2,
.jpl-prose h3,
.jpl-prose h4,
.jpl-page-content h2,
.jpl-page-content h3,
.jpl-page-content h4 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--ink-900);
    line-height: 1.2;
    margin-top: 1.6em;
}

.jpl-prose h2 { font-size: 30px; }
.jpl-prose h3 { font-size: 23px; }
.jpl-prose h4 { font-size: 19px; }

.jpl-prose a,
.jpl-page-content a {
    color: var(--peach-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jpl-prose img,
.jpl-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.jpl-prose blockquote {
    margin-inline: 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--peach-200);
    color: var(--ink-900);
}

.jpl-prose code,
.jpl-prose pre {
    font-family: var(--mono);
    font-size: 0.92em;
}

.jpl-prose pre {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    overflow-x: auto;
}

.jpl-prose table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.jpl-prose th,
.jpl-prose td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

/* Post cards reuse .card; their title link should not read as body-copy link. */
.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--peach-600);
}

/* Core pagination. */
.pagination,
.nav-links.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--peach);
    border-color: var(--peach);
    color: #fff;
}
