/**
 * /blueprint and /blueprint/thank-you: the printed Garden Business Blueprint (2026-11-30).
 *
 * A letter, not a landing page. Everything is scoped under .sp-blueprint, so nothing here
 * can reach another page; the site's own header and footer are untouched.
 *
 * From the build spec (§4, §12):
 *   - Lime means action: Buy buttons, the price, a kicker. It never fills a section.
 *   - Oswald for headings, Sriracha for the standfirst and the P.S., Archivo for the long
 *     body (loaded on these two pages only, by BlueprintController).
 *   - Nothing of the page's own below 16px; body 18px; measure under ~65 characters.
 *   - The hero stacks from 820px down, mockup first and capped at 420px.
 */

.sp-blueprint {
    --bp-ink: #0b0f08;
    --bp-panel: #161e11;
    --bp-brand: #3B462E;
    --bp-mid: #577038;
    --bp-lime: #84F000;
    --bp-lime-ink: #1a2609;
    --bp-paper: #f3f5ee;
    --bp-card: #ffffff;
    --bp-muted: #575f50;
    --bp-rule: #e1e6d9;
    --bp-light: #f2f5ec;
    --bp-display: 'Oswald', 'Oswald Fallback Roboto', 'Oswald Fallback Arial', sans-serif;
    --bp-hand: 'Sriracha', 'Sriracha Fallback Roboto', 'Sriracha Fallback Arial', cursive;
    --bp-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    font-family: var(--bp-body);
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--bp-ink);
    background: var(--bp-paper);
    overflow-x: clip;
}

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

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

.sp-blueprint p {
    font-family: var(--bp-body);
    font-size: 1.125rem;
    line-height: 1.65;
    color: inherit;
    margin: 0 0 16px;
}

.sp-blueprint a { color: var(--bp-brand); text-decoration: underline; text-underline-offset: 2px; }
.sp-blueprint a:hover { color: var(--bp-mid); }
.sp-blueprint a:focus-visible,
.sp-blueprint summary:focus-visible {
    outline: 3px solid var(--bp-lime);
    outline-offset: 3px;
}

.sp-blueprint h1,
.sp-blueprint h2 {
    font-family: var(--bp-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 18px;
    text-wrap: balance;
}

.sp-blueprint h1 {
    font-size: clamp(2.05rem, 4.4vw, 3.35rem);
    color: #fff;
    text-transform: none;
}

.sp-blueprint h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    color: var(--bp-ink);
    text-transform: uppercase;
}

.sp-blueprint .bp-letter h2:not(:first-child) { margin-top: 44px; }

.sp-blueprint .bp-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-blueprint .bp-letter { max-width: 760px; }
.sp-blueprint .bp-wrap.bp-letter { max-width: 808px; } /* 760 + the gutters */

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

.sp-blueprint .bp-hero {
    background: var(--bp-ink);
    color: var(--bp-light);
    padding: 56px 0 64px;
    border-top: 6px solid var(--bp-lime);
}

.sp-blueprint .bp-hero--short { padding: 56px 0 48px; }

.sp-blueprint .bp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

/* The WebP carries its own soft shadow: no box behind it. */
.sp-blueprint .bp-hero__cover img { width: 100%; max-width: 520px; margin: 0 auto; }

.sp-blueprint .bp-eyebrow {
    font-family: var(--bp-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bp-lime);
    margin: 0 0 14px;
}

.sp-blueprint .bp-standfirst {
    font-family: var(--bp-hand);
    font-size: 1.3rem;
    line-height: 1.45;
    margin: 0 0 22px;
    max-width: 36rem;
}

.sp-blueprint .bp-hero .bp-standfirst { color: var(--bp-light); }

.sp-blueprint .bp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 18px;
    margin: 0 0 26px;
}

.sp-blueprint .bp-price__amount {
    font-family: var(--bp-display);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    color: var(--bp-lime);
}

.sp-blueprint .bp-price__note { font-size: 1.1rem; line-height: 1.45; color: rgba(242, 245, 236, .82); }

.sp-blueprint .bp-fine { font-size: 1rem; color: var(--bp-muted); margin: 18px 0 0; }
.sp-blueprint .bp-hero .bp-fine { color: rgba(242, 245, 236, .75); }

/* --- Buy -------------------------------------------------------------------
   2026-12-01: the flat lime block read as a label, not a button. Now it has an arrow, it
   lifts and glows under the pointer, a slow shine crosses it every few seconds, and a soft
   ring pulses out from it. All of that motion stops for anyone who has asked their system
   for reduced motion; the arrow, the shadow and the hover lift stay.
   --------------------------------------------------------------------------- */

.sp-blueprint .bp-buy { margin: 0; }
.sp-blueprint .bp-band .bp-buy { margin: 32px 0 0; }

.sp-blueprint a.bp-btn {
    --bp-shine: #f3ffe0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    color: var(--bp-lime-ink);
    background-color: var(--bp-lime);
    /* The shine: a pale band in a wide gradient, slid across by bp-shine. */
    background-image: linear-gradient(105deg,
        var(--bp-lime) 0%, var(--bp-lime) 42%, var(--bp-shine) 50%, var(--bp-lime) 58%, var(--bp-lime) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    font-family: var(--bp-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(26, 38, 9, .22) inset,
                0 12px 28px -12px rgba(132, 240, 0, .75);
    transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

/* The pulse: a ring that grows out of the button and fades, on its own layer. */
.sp-blueprint a.bp-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(132, 240, 0, .6);
}

.sp-blueprint .bp-btn__arrow {
    display: inline-block;
    font-size: 1.35em;
    line-height: 1;
    transition: transform .18s cubic-bezier(.2, .7, .2, 1);
}

.sp-blueprint a.bp-btn:hover,
.sp-blueprint a.bp-btn:focus-visible {
    color: var(--bp-lime-ink);
    transform: translateY(-3px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 0 rgba(26, 38, 9, .22) inset,
                0 18px 36px -12px rgba(132, 240, 0, .95);
}

.sp-blueprint a.bp-btn:hover .bp-btn__arrow,
.sp-blueprint a.bp-btn:focus-visible .bp-btn__arrow { transform: translateX(5px); }

.sp-blueprint a.bp-btn:active { transform: translateY(0) scale(.98); }

.sp-blueprint a.bp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.sp-blueprint .bp-band a.bp-btn:focus-visible { outline-color: var(--bp-ink); }

/* When the label has to wrap, two even lines rather than one word left over. */
.sp-blueprint a.bp-btn > span:first-child { text-wrap: balance; }

/* Where the click goes, under each in-page button. */
.sp-blueprint p.bp-buy__note { font-size: 1rem; line-height: 1.45; margin: 12px 0 0; color: var(--bp-muted); }
.sp-blueprint .bp-hero p.bp-buy__note { color: rgba(242, 245, 236, .72); }

.sp-blueprint .bp-buy--gone {
    font-family: var(--bp-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: no-preference) {
    .sp-blueprint a.bp-btn { animation: bp-shine 4.5s ease-in-out 1.2s infinite; }
    .sp-blueprint a.bp-btn::after { animation: bp-ring 2.6s cubic-bezier(.25, .6, .35, 1) .6s infinite; }
    /* Under the pointer it has the reader's attention already: hold still, glow instead. */
    .sp-blueprint a.bp-btn:hover,
    .sp-blueprint a.bp-btn:hover::after { animation-play-state: paused; }
}

@keyframes bp-shine {
    0%        { background-position: 100% 0; }
    32%, 100% { background-position: 0% 0; }
}

@keyframes bp-ring {
    0%        { box-shadow: 0 0 0 0 rgba(132, 240, 0, .55); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(132, 240, 0, 0); }
}

/* --- The bar that follows the reader --------------------------------------------
   Slides up once no in-page button, the hero or the footer is on screen (script in
   pages/blueprint.php), so there is always one clear way to order. Never rendered when
   the book is sold out.
   --------------------------------------------------------------------------- */

.sp-blueprint .bp-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 8, .9);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border-top: 1px solid rgba(132, 240, 0, .35);
    box-shadow: 0 -16px 32px -20px rgba(0, 0, 0, .6);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .4s;
}

.sp-blueprint .bp-bar.is-on {
    transform: none;
    visibility: visible;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

.sp-blueprint .bp-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.sp-blueprint p.bp-bar__title {
    margin: 0;
    font-family: var(--bp-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #fff;
}

.sp-blueprint .bp-bar__title span { display: block; font-family: var(--bp-body); font-weight: 400; font-size: 1rem; color: rgba(242, 245, 236, .72); }

.sp-blueprint a.bp-btn--bar { min-height: 48px; padding: 12px 22px; font-size: 1.05rem; flex: 0 0 auto; }

/* The theme's back-to-top button sits where the bar is; lift it clear, as the licence page does. */
.sp-blueprint-page.bp-bar-on .scroll-top.open { bottom: 96px; }

/* --- Bands ----------------------------------------------------------------- */

.sp-blueprint .bp-band { padding: 56px 0; background: var(--bp-paper); }
.sp-blueprint .bp-band--white { background: var(--bp-card); }
.sp-blueprint .bp-band--dark { background: var(--bp-panel); color: var(--bp-light); }
.sp-blueprint .bp-band--dark h2 { color: #fff; }
.sp-blueprint .bp-band--dark p { color: rgba(242, 245, 236, .88); }
.sp-blueprint .bp-band--dark a { color: var(--bp-lime); }
.sp-blueprint .bp-band--last { padding-bottom: 72px; }

.sp-blueprint .bp-strong { font-weight: 600; }

.sp-blueprint .bp-kicker {
    font-family: var(--bp-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-mid);
    margin: 0 0 10px;
}

/* --- What's inside ----------------------------------------------------------- */

.sp-blueprint .bp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 56px;
    margin: 12px 0 32px;
}

.sp-blueprint .bp-list { list-style: none; margin: 0; padding: 0; }

.sp-blueprint .bp-list li {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--bp-rule);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.sp-blueprint .bp-list li:last-child { border-bottom: 1px solid var(--bp-rule); }

.sp-blueprint .bp-list__pg {
    font-family: var(--bp-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bp-mid);
    letter-spacing: 0.04em;
}

.sp-blueprint .bp-list strong {
    display: block;
    font-family: var(--bp-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- Previews ---------------------------------------------------------------- */

.sp-blueprint .bp-previews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.sp-blueprint .bp-previews figure { margin: 0; background: var(--bp-card); border: 1px solid var(--bp-rule); }
.sp-blueprint .bp-previews img { width: 100%; }

.sp-blueprint .bp-previews figcaption {
    font-size: 1rem;
    line-height: 1.45;
    padding: 12px 14px 14px;
    color: var(--bp-muted);
}

/* --- The printed book -------------------------------------------------------- */

.sp-blueprint .bp-spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 24px 0 28px;
    background: var(--bp-card);
    border: 1px solid var(--bp-rule);
}

.sp-blueprint .bp-spec div { padding: 18px 22px; border-bottom: 1px solid var(--bp-rule); }
.sp-blueprint .bp-spec div:nth-child(odd) { border-right: 1px solid var(--bp-rule); }
.sp-blueprint .bp-spec div:nth-last-child(-n+2) { border-bottom: 0; }

.sp-blueprint .bp-spec dt {
    font-family: var(--bp-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bp-mid);
    margin: 0 0 4px;
}

.sp-blueprint .bp-spec dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }

.sp-blueprint .bp-address {
    font-style: normal;
    margin: 0 0 16px;
    padding: 16px 20px;
    background: var(--bp-card);
    border-left: 4px solid var(--bp-mid);
}

/* --- P.S., FAQ, legal ---------------------------------------------------------- */

.sp-blueprint p.bp-ps {
    font-family: var(--bp-hand);
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 36px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--bp-rule);
}

.sp-blueprint .bp-faq details { border-top: 1px solid var(--bp-rule); padding: 10px 0; }
.sp-blueprint .bp-faq details:last-child { border-bottom: 1px solid var(--bp-rule); }

.sp-blueprint .bp-faq summary {
    cursor: pointer;
    font-family: var(--bp-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 8px 0;
}

.sp-blueprint .bp-faq details p { margin: 8px 0 12px; }

.sp-blueprint p.bp-legal { font-size: 1rem; color: var(--bp-muted); margin: 32px 0 0; }

.sp-blueprint p.bp-links { font-family: var(--bp-display); font-weight: 600; letter-spacing: 0.04em; margin-top: 28px; }

/* --- Narrow screens ------------------------------------------------------------ */

@media (max-width: 820px) {
    .sp-blueprint .bp-hero__grid,
    .sp-blueprint .bp-cols,
    .sp-blueprint .bp-previews,
    .sp-blueprint .bp-spec { grid-template-columns: 1fr; }

    .sp-blueprint .bp-spec div:nth-child(odd) { border-right: 0; }
    .sp-blueprint .bp-spec div:nth-last-child(2) { border-bottom: 1px solid var(--bp-rule); }

    .sp-blueprint .bp-hero { padding: 36px 0 44px; }
    .sp-blueprint .bp-hero__grid { gap: 28px; }
    .sp-blueprint .bp-hero__cover img { max-width: 420px; }
    .sp-blueprint .bp-band { padding: 44px 0; }
    .sp-blueprint a.bp-btn { display: flex; width: 100%; text-align: center; }
    .sp-blueprint p.bp-bar__title { display: none; }
    .sp-blueprint .bp-bar a.bp-btn { width: 100%; }
    .sp-blueprint .bp-previews { max-width: 420px; }
}

/* On a phone the cover stays first but small, so the headline is on the first screen. */
@media (max-width: 480px) {
    .sp-blueprint .bp-wrap { padding: 0 16px; }
    .sp-blueprint .bp-hero { padding-top: 24px; }
    .sp-blueprint .bp-hero__grid { gap: 20px; }
    .sp-blueprint .bp-hero__cover img { max-width: 190px; }
    /* Two lines for the label on a phone, not three. */
    .sp-blueprint a.bp-btn { font-size: 1.1rem; letter-spacing: 0.04em; padding: 16px 18px; gap: 10px; }
    .sp-blueprint a.bp-btn--bar { font-size: 1rem; padding: 12px 16px; }
}


/* --- Motion (2026-12-01) -------------------------------------------------------
   Garnish, never a requirement: every rule below sits inside prefers-reduced-motion:
   no-preference, and the scroll-linked ones also inside @supports, so a browser without
   scroll timelines (Firefox today) simply shows the finished page. Nothing is hidden
   waiting for JavaScript.
   --------------------------------------------------------------------------- */

/* A soft lime glow behind the book, so it sits in light rather than on flat black. */
.sp-blueprint .bp-hero__cover { position: relative; }
.sp-blueprint .bp-hero__cover::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    background: radial-gradient(closest-side, rgba(132, 240, 0, .26), rgba(132, 240, 0, 0) 72%);
    filter: blur(24px);
    pointer-events: none;
}
.sp-blueprint .bp-hero__cover img { position: relative; }

/* Heading rules: a short lime line under each section heading. */
.sp-blueprint .bp-band h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--bp-lime);
    transform-origin: left center;
}

/* The page previews and the FAQ answer the pointer. */
.sp-blueprint .bp-previews figure {
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.sp-blueprint .bp-previews figure:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -24px rgba(11, 15, 8, .45);
}

.sp-blueprint .bp-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.sp-blueprint .bp-faq summary::-webkit-details-marker { display: none; }
.sp-blueprint .bp-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--bp-mid);
    transition: transform .2s ease;
}
.sp-blueprint .bp-faq details[open] > summary::after { transform: rotate(45deg); }
.sp-blueprint .bp-faq summary:hover { color: var(--bp-mid); }

/* The reading-progress line along the top of the window. */
.sp-blueprint .bp-progress { display: none; }

@media (prefers-reduced-motion: no-preference) {

    /* The hero arrives: the book rises and settles, then the copy follows it in. */
    .sp-blueprint .bp-hero__cover img {
        animation: bp-cover-in .9s cubic-bezier(.2, .7, .2, 1) both,
                   bp-float 7s ease-in-out 1.2s infinite;
    }
    .sp-blueprint .bp-hero__copy > * { animation: bp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .sp-blueprint .bp-hero__copy > :nth-child(1) { animation-delay: .15s; }
    .sp-blueprint .bp-hero__copy > :nth-child(2) { animation-delay: .25s; }
    .sp-blueprint .bp-hero__copy > :nth-child(3) { animation-delay: .35s; }
    .sp-blueprint .bp-hero__copy > :nth-child(4) { animation-delay: .45s; }
    .sp-blueprint .bp-hero__copy > :nth-child(5) { animation-delay: .55s; }
    .sp-blueprint .bp-hero__copy > :nth-child(6) { animation-delay: .65s; }
    .sp-blueprint .bp-hero--short .bp-letter > * { animation: bp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .sp-blueprint .bp-hero--short .bp-letter > :nth-child(2) { animation-delay: .12s; }
    .sp-blueprint .bp-hero--short .bp-letter > :nth-child(3) { animation-delay: .24s; }

    .sp-blueprint .bp-faq details[open] > p { animation: bp-rise .35s ease both; }

    /* Scroll-linked: each piece eases up as it comes into view, once, at the reader's pace. */
    @supports (animation-timeline: view()) {
        .sp-blueprint .bp-band h2,
        .sp-blueprint .bp-band .bp-letter > p,
        .sp-blueprint .bp-list li,
        .sp-blueprint .bp-previews figure,
        .sp-blueprint .bp-spec > div,
        .sp-blueprint .bp-faq details,
        .sp-blueprint .bp-band .bp-buy,
        .sp-blueprint .bp-address {
            animation: bp-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        .sp-blueprint .bp-band h2::after {
            animation: bp-draw linear both;
            animation-timeline: view();
            animation-range: entry 40% cover 35%;
        }

        /* The book in the hero drifts up a little as the page scrolls away from it. */
        .sp-blueprint .bp-hero__cover {
            animation: bp-drift linear both;
            animation-timeline: view();
            animation-range: exit 0% exit 100%;
        }

        .sp-blueprint .bp-progress {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 10000;
            background: linear-gradient(90deg, var(--bp-mid), var(--bp-lime));
            transform-origin: 0 50%;
            animation: bp-progress linear both;
            animation-timeline: scroll(root);
        }
    }
}

@keyframes bp-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

@keyframes bp-cover-in {
    from { opacity: 0; transform: translateY(32px) rotate(-3deg) scale(.96); }
    to   { opacity: 1; transform: none; }
}

@keyframes bp-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(.6deg); }
}

@keyframes bp-drift {
    to { transform: translateY(-40px); opacity: .6; }
}

@keyframes bp-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes bp-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
