:root {
    --paper: #fffdf9;
    --paper-warm: #fbf5ea;
    --paper-deep: #f5ead9;
    --ink: #132447;
    --ink-soft: #536078;
    --maroon: #951f38;
    --maroon-dark: #7f162e;
    --gold: #b88b43;
    --line: #dfc7a5;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(50, 35, 24, .16);
    --display: "Libre Caslon Display", Georgia, serif;
    --serif: "Libre Caslon Text", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
body.checkout-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    padding: 14px clamp(24px, 4.8vw, 74px);
    display: grid;
    grid-template-columns: 180px 1fr 190px;
    align-items: center;
    gap: 32px;
}
.brand { display: inline-flex; width: max-content; align-items: center; text-decoration: none; }
.brand img { width: 285px; height: auto; object-fit: contain; }
.site-header > .brand img { width: 112px; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: 48px; }
.main-nav a {
    position: relative;
    padding: 12px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--maroon);
    transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { right: 0; }

.button {
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid var(--maroon);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #a72643, #8b1b34);
    box-shadow: 0 10px 24px rgba(149, 31, 56, .18);
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(149, 31, 56, .24); }
.button:active { transform: translateY(0); }
.button:focus-visible, .menu-button:focus-visible, .checkout-close:focus-visible, input:focus-visible {
    outline: 3px solid rgba(149, 31, 56, .24);
    outline-offset: 3px;
}
.button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button del { --strike-color: #f0c779; opacity: .84; font-size: .82em; font-weight: 500; }
del { position: relative; display: inline-block; text-decoration: none; }
del::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 67%;
    height: 1px;
    border-radius: 999px;
    background: var(--strike-color, currentColor);
    opacity: .9;
    transform: rotate(-3deg);
    transform-origin: center;
    pointer-events: none;
}
.button-small { min-height: 44px; padding: 0 24px; border-radius: 999px; justify-self: end; font-size: 14px; }
.button-outline { color: var(--ink); background: rgba(255,255,255,.58); border-color: rgba(149, 31, 56, .5); box-shadow: none; }
.button-outline:hover { background: white; box-shadow: 0 10px 24px rgba(50,35,24,.08); }
.menu-button { display: none; border: 0; background: none; color: var(--ink); padding: 10px; }
.menu-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.hero {
    position: relative;
    min-height: 573px;
    padding: 130px clamp(28px, 5.3vw, 82px) 28px;
    display: grid;
    grid-template-columns: minmax(560px, 1.03fr) minmax(520px, .97fr);
    gap: 20px;
    overflow: hidden;
    background: #fffaf2 url("hero-full-desktop-v1.png") center center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255,253,249,.94) 0%, rgba(255,253,249,.75) 30%, rgba(255,253,249,.18) 52%, transparent 66%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(184,139,67,.12), rgba(184,139,67,.55), rgba(184,139,67,.1));
}
.hero-watercolor {
    display: none;
}
.hero-copy { position: relative; z-index: 2; padding-top: 9px; }
.hero h1 {
    max-width: 740px;
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(54px, 5vw, 78px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.02em;
    transform: scaleX(1.17);
    transform-origin: left center;
}
.hero h1 em { color: var(--maroon); font-style: normal; }
.hero-copy > p:not(.hand-note) {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: clamp(18px, 1.5vw, 23px);
    line-height: 1.42;
}
.hero-actions { display: flex; gap: 14px; margin-top: 18px; }
.hero-actions .button:first-child { min-width: 305px; }
.hero-actions .button-outline { min-width: 182px; }
.hand-note {
    margin: 30px 0 0 -18px;
    color: #8a5c45;
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.25;
    transform: rotate(-4deg);
}
.hand-note::after { content: ""; display: inline-block; width: 150px; height: 1px; margin: 0 0 7px 24px; background: var(--gold); }

.hero-art { position: relative; z-index: 3; min-height: 412px; }
.hero-arch {
    display: none;
}
.vertical-verse {
    position: absolute;
    right: 18px;
    top: 35px;
    width: 112px;
    color: #88785f;
    font-family: var(--serif);
    font-size: 12px;
    line-height: 2;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vertical-verse::after { content: ""; display: block; width: 54px; height: 2px; margin-top: 16px; background: var(--gold); }

.product {
    position: relative;
    min-height: 440px;
    padding: 44px clamp(40px, 5.3vw, 82px);
    display: grid;
    grid-template-columns: minmax(330px, 1.05fr) minmax(390px, 1.15fr) minmax(280px, .82fr);
    gap: clamp(28px, 3.2vw, 52px);
    align-items: center;
    background: linear-gradient(90deg, #fffdf9, #fff 58%, #fffaf2);
    overflow: hidden;
}
.product::before {
    content: "";
    position: absolute;
    left: -8%;
    bottom: -160px;
    width: 650px;
    height: 390px;
    opacity: .14;
    background: url("hero-landscape.png") center 76% / cover no-repeat;
    mask-image: linear-gradient(90deg, black, transparent 88%);
}
.product-visual { position: relative; height: 350px; display: grid; place-items: end center; }
.product-florals {
    position: absolute;
    z-index: 1;
    left: calc(-1 * clamp(28px, 5.3vw, 82px));
    right: -20px;
    bottom: -24px;
    height: 338px;
    background: url("product-florals-v2.png") left bottom / auto 100% no-repeat;
    pointer-events: none;
}
.book-standing {
    position: relative;
    z-index: 2;
    width: clamp(230px, 20.5vw, 300px);
    filter: drop-shadow(0 17px 19px rgba(50,37,25,.13));
}
.book-standing img { width: 100%; height: auto; object-fit: contain; }
.product-main { position: relative; z-index: 2; padding: 0; }
.product-main h2 {
    margin: 0;
    white-space: normal;
}
.product-title-lockup {
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: baseline;
    gap: .18em;
    color: var(--ink);
    font-family: var(--serif);
    line-height: .95;
    letter-spacing: -.035em;
}
.product-title-lockup span { font-size: clamp(38px, 3.25vw, 52px); font-weight: 700; }
.product-title-lockup em { color: var(--maroon); font-size: clamp(27px, 2.45vw, 39px); font-weight: 400; }
.product-title-lockup strong { color: var(--maroon); font-size: clamp(40px, 3.45vw, 55px); font-weight: 700; letter-spacing: -.045em; }
.cover-style-title {
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--ink);
    font-family: var(--serif);
    line-height: .78;
    letter-spacing: -.025em;
}
.cover-style-title span { font-size: clamp(33px, 2.8vw, 43px); font-weight: 700; letter-spacing: -.035em; }
.cover-style-title em { margin: 5px 0 2px 2px; color: var(--maroon); font-size: clamp(18px, 1.55vw, 24px); font-weight: 400; }
.cover-style-title strong { color: var(--maroon); font-size: clamp(45px, 3.65vw, 56px); font-weight: 700; letter-spacing: -.045em; }
.cover-style-title-small { margin: 12px 0 16px; line-height: .8; }
.cover-style-title-small span { font-size: 22px; }
.cover-style-title-small em { margin-top: 4px; font-size: 15px; }
.cover-style-title-small strong { font-size: 31px; }
.product-subtitle { max-width: 520px; margin: 13px 0 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.written-by { margin: 0 0 5px; color: var(--ink-soft); font-size: 13px; }
.authors { margin: 0; font-weight: 700; font-size: 15px; }
.price { margin: 20px 0 16px; display: flex; align-items: baseline; gap: 13px; color: var(--maroon); font-family: var(--display); line-height: 1; }
.price del { --strike-color: #9b2943; color: #7b686b; font-family: var(--sans); font-size: 18px; font-weight: 500; }
.price strong { font-size: 42px; font-weight: 400; }
.product-button { min-width: 308px; }
.product-description { position: relative; z-index: 2; padding: 6px 0 6px 42px; border-left: 1px solid var(--line); }
.product-description > p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 14px; line-height: 1.56; }
.product-description blockquote { margin: 22px 0 0; padding-top: 18px; color: #9a6c6c; border-top: 1px solid var(--gold); font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.45; }

.journey {
    padding: 92px clamp(28px, 8vw, 124px);
    display: grid;
    grid-template-columns: .8fr 1.4fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
    background: var(--ink);
    color: white;
}
.journey h2, .writers h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 4vw, 58px); font-weight: 400; line-height: 1.04; }
.journey > div > p { max-width: 520px; margin: 18px 0 0; color: #c9cfda; line-height: 1.7; }
.journey-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.journey-list li { min-height: 82px; display: grid; grid-template-columns: 55px 145px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); }
.journey-list span { color: #d0ad75; font-family: var(--serif); font-size: 13px; }
.journey-list strong { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.journey-list small { color: #c9cfda; font-size: 14px; }

.writers {
    padding: 64px clamp(28px, 8vw, 124px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    align-items: center;
    background: var(--paper-warm);
}
.writers-copy > p { max-width: 650px; color: var(--ink-soft); line-height: 1.75; }
.writers-quote { display: grid; grid-template-columns: 90px 1fr; gap: 28px; align-items: center; padding: 32px 36px; border-left: 1px solid var(--gold); }
.writers-quote img { width: 82px; height: auto; }
.writers-quote p { margin: 0; color: var(--maroon); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-style: italic; line-height: 1.45; }

.checkout-secure svg { width: 20px; height: 20px; fill: none; stroke: var(--maroon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { padding: 48px clamp(28px, 8vw, 124px); display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 40px; background: #fff; }
.brand-footer { width: max-content; }
.brand-footer img { width: 126px; }
.site-footer p { color: var(--ink-soft); }
.site-footer small { color: #777f8d; font-size: 12px; }

.checkout[hidden] { display: none; }
.checkout { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(16, 18, 21, .69); backdrop-filter: blur(3px); }
.checkout-panel {
    position: relative;
    width: min(948px, calc(100vw - 40px));
    height: min(802px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro summary" "form summary";
    overflow: auto;
    border: 1px solid rgba(184,139,67,.35);
    border-radius: 18px;
    background: linear-gradient(145deg, #fffdf9, #fffaf4);
    box-shadow: 0 36px 90px rgba(0,0,0,.3);
}
.checkout-panel::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 340px;
    height: 320px;
    opacity: .7;
    background: url("product-florals-v2.png") left -100px bottom -10px / 470px auto no-repeat;
    mask-image: linear-gradient(125deg, black 0 38%, transparent 78%);
    pointer-events: none;
}
.checkout-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 360px;
    opacity: .17;
    background: url("hero-landscape.png") center 70% / cover no-repeat;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.35) 32%, black 78%);
    pointer-events: none;
}
.checkout-close { position: absolute; z-index: 4; top: 16px; right: 16px; padding: 6px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.checkout-close svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.checkout-intro, .checkout-form-column, .checkout-summary { position: relative; z-index: 2; }
.checkout-intro { grid-area: intro; padding: 32px 38px 0 56px; border-right: 1px solid var(--line); }
.checkout-form-column { grid-area: form; padding: 0 38px 42px 56px; border-right: 1px solid var(--line); }
.checkout-summary { grid-area: summary; }
.checkout-logo { height: 70px; margin-bottom: 15px; display: inline-flex; align-items: center; }
.checkout-logo img { width: 104px; height: auto; object-fit: contain; }
.checkout-intro h2, .checkout-summary h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 41px;
    font-weight: 400;
    line-height: 1.1;
}
.checkout-intro > p { margin: 9px 0 20px; color: var(--ink-soft); font-size: 13px; }
.checkout-form-column label { display: block; margin: 27px 0 8px; font-size: 14px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; z-index: 2; left: 16px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 50px;
    border: 1px solid #aeb4bf;
    border-radius: 9px;
    background: rgba(255,255,255,.76);
    color: var(--ink);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.input-wrap input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(149,31,56,.12); outline: none; }
.input-wrap input::placeholder { color: #9297a3; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-message { min-height: 20px; margin: 10px 0 -4px !important; color: #a91532 !important; font-size: 12px !important; }
.checkout-submit, .checkout-back { width: 100%; margin-top: 14px; }
.checkout-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.checkout-back { min-height: 48px; }
.checkout-secure { display: flex; align-items: center; gap: 10px; margin: 24px 0 0 !important; font-size: 12px !important; }
.checkout-summary { display: flex; flex-direction: column; align-items: center; padding: 64px 54px 42px 48px; }
.checkout-summary h3 { align-self: stretch; font-size: 30px; }
.summary-cover { width: 285px; height: 376px; margin: 15px auto 17px; object-fit: contain; filter: drop-shadow(0 15px 16px rgba(51,38,25,.14)); }
.summary-product-title { align-self: stretch; margin: 0 0 17px; gap: .14em; }
.summary-product-title span { font-size: 25px; }
.summary-product-title em { font-size: 20px; }
.summary-product-title strong { font-size: 27px; }
.summary-row, .summary-total { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.summary-row { padding-bottom: 17px; border-bottom: 1px solid var(--gold); color: var(--ink-soft); font-size: 14px; }
.summary-row strong { font-weight: 500; }
.summary-line-price { display: inline-flex; align-items: baseline; gap: 10px; }
.summary-line-price del { --strike-color: #9b2943; color: #7b686b; font-size: 12px; }
.summary-line-price del::after { top: 56%; height: 1px; }
.summary-total { padding-top: 16px; font-size: 14px; font-weight: 700; }
.summary-total strong { color: var(--maroon); font-family: var(--display); font-size: 28px; font-weight: 400; }

.payment-page {
    min-height: 100vh;
    padding: 34px 18px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(255,253,249,.78), rgba(255,250,242,.9)),
        url("ebook-cover.png") center 76% / cover no-repeat;
}
.payment-card {
    width: min(560px, 100%);
    padding: 42px 48px;
    border: 1px solid rgba(184,139,67,.4);
    border-radius: 20px;
    background: rgba(255,253,249,.96);
    box-shadow: var(--shadow);
    text-align: center;
}
.payment-logo { margin: 0 auto 24px; }
.payment-logo img { width: 124px; }
.payment-icon { width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #f5eadb; color: var(--maroon); font-family: var(--serif); font-size: 30px; }
.payment-icon-paid { background: #e3f2e9; color: #1f7043; }
.payment-card h1 { margin: 0; font-family: var(--display); font-size: 42px; font-weight: 400; line-height: 1.1; }
.payment-card > p { color: var(--ink-soft); line-height: 1.6; }
.payment-details { margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payment-details div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; }
.payment-details div + div { border-top: 1px solid #eee2d1; }
.payment-details dt { color: var(--ink-soft); }
.payment-details dd { margin: 0; font-weight: 700; text-align: right; }
.payment-actions { display: grid; gap: 10px; }
.payment-help { margin: 22px 0 0; font-size: 12px; }

.admin-page { min-height: 100vh; background: #f7f3ed; }
.admin-login {
    width: min(430px, calc(100% - 32px));
    margin: 7vh auto;
    padding: 38px 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}
.admin-brand { margin-bottom: 28px; }
.admin-brand img { width: 112px; }
.admin-login h1 { margin: 0; font-family: var(--display); font-size: 37px; font-weight: 400; }
.admin-login > p { color: var(--ink-soft); }
.admin-login label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 700; }
.admin-login input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #b8bec8; border-radius: 8px; color: var(--ink); }
.admin-login .button { width: 100%; margin: 22px 0 16px; }
.admin-login > a { display: block; color: var(--maroon); font-size: 13px; text-align: center; }
.admin-error { padding: 10px 12px; border-radius: 7px; background: #fff0f2; color: #a51e38 !important; font-size: 13px; }
.admin-header { min-height: 78px; padding: 10px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4d8c8; background: white; }
.admin-header .admin-brand { margin-bottom: 0; }
.admin-header > div { display: flex; gap: 24px; align-items: center; }
.admin-header a, .admin-header button { color: var(--maroon); font: 600 13px var(--sans); }
.admin-header form { margin: 0; }
.admin-header button { padding: 8px 14px; border: 1px solid #cfb2b8; border-radius: 8px; background: white; cursor: pointer; }
.admin-shell { padding: 42px clamp(22px, 5vw, 76px) 70px; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.admin-title h1 { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 400; }
.admin-title p { margin: 8px 0 0; color: var(--ink-soft); }
.admin-title > span { color: var(--ink-soft); font-size: 12px; }
.admin-stats { margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-stats article { min-height: 120px; padding: 22px; border: 1px solid #e5d9ca; border-radius: 13px; background: white; }
.admin-stats span { display: block; margin-bottom: 14px; color: var(--ink-soft); font-size: 12px; }
.admin-stats strong { color: var(--maroon); font-family: var(--display); font-size: 31px; font-weight: 400; }
.orders-panel { border: 1px solid #e5d9ca; border-radius: 14px; background: white; overflow: hidden; }
.orders-heading { padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee4d7; }
.orders-heading h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.orders-heading span { color: var(--ink-soft); font-size: 11px; }
.orders-table-wrap { overflow-x: auto; }
.orders-panel table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.orders-panel th, .orders-panel td { padding: 14px 16px; border-bottom: 1px solid #f0e7db; text-align: left; vertical-align: top; }
.orders-panel th { background: #fcfaf7; color: var(--ink-soft); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.orders-panel td small { display: block; margin-top: 5px; color: var(--ink-soft); line-height: 1.45; }
.status { padding: 5px 9px; border-radius: 999px; background: #f2eee7; color: #635d55; font-weight: 700; font-size: 10px; }
.status-paid { background: #e4f4ea; color: #1d7041; }
.status-pending { background: #fff3d9; color: #8b641e; }
.status-failed, .status-cancelled, .status-expired { background: #fbe8eb; color: #99233b; }
.empty-orders { padding: 45px !important; color: var(--ink-soft); text-align: center !important; }

@media (max-width: 1150px) {
    .site-header { grid-template-columns: 155px 1fr 165px; gap: 18px; }
    .site-header > .brand img { width: 102px; }
    .main-nav { gap: 30px; }
    .hero { grid-template-columns: minmax(0, .9fr) minmax(360px, .6fr); background-image: url("hero-full-tablet-v1.png"); background-position: center center; }
    .hero h1 { font-size: 54px; transform: none; }
    .hero-arch { right: 90px; }
    .vertical-verse { display: none; }
    .product {
        min-height: auto;
        padding: 48px clamp(28px, 6vw, 64px);
        grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
        gap: 38px clamp(34px, 6vw, 64px);
        align-items: center;
    }
    .product-visual { height: 340px; }
    .book-standing { width: 230px; transform: translateY(10px); }
    .product-main { padding: 0; }
    .product-title-lockup span { font-size: clamp(35px, 4.5vw, 47px); }
    .product-title-lockup em { font-size: clamp(25px, 3.2vw, 34px); }
    .product-title-lockup strong { font-size: clamp(37px, 4.8vw, 50px); }
    .product-description {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
        gap: 36px;
        margin-top: 0;
        padding: 30px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .product-description blockquote { margin: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid var(--gold); }
}

@media (max-width: 860px) {
    .site-header { position: absolute; height: 78px; grid-template-columns: 1fr auto; padding: 10px 22px; }
    .site-header > .brand img { width: 92px; }
    .main-nav { position: absolute; top: 70px; right: 18px; display: none; min-width: 190px; padding: 16px 20px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .button-small { display: none; }
    .menu-button { display: block; }
    .hero {
        min-height: auto;
        padding: 104px 22px 42px;
        grid-template-columns: 1fr;
        background: #fffaf2 url("hero-full-mobile-v1.png") center bottom / 100% auto no-repeat;
    }
    .hero::before { background: linear-gradient(to bottom, rgba(255,253,249,.98) 0%, rgba(255,253,249,.94) 42%, rgba(255,253,249,.25) 66%, transparent 82%); }
    .hero h1 { font-size: clamp(45px, 12vw, 64px); letter-spacing: -.025em; transform: none; }
    .hero-copy > p:not(.hand-note) { font-size: 18px; }
    .desktop-only { display: none; }
    .hand-note { display: none; }
    .hero-art { min-height: 450px; margin-top: 5px; }
    .hero-arch { width: 320px; height: 420px; right: 8%; top: 0; }
    .product { padding: 50px 28px; grid-template-columns: minmax(240px, .84fr) minmax(0, 1.16fr); gap: 34px; }
    .product-visual { height: 315px; transform: none; }
    .book-standing { width: 215px; }
    .product-main { padding: 0; }
    .product-main, .product-description { transform: none; }
    .product-main h2 { white-space: normal; }
    .product-title-lockup { flex-wrap: wrap; row-gap: 0; }
    .product-description { grid-column: 1 / -1; margin-top: 0; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .journey { grid-template-columns: 1fr; }
    .writers { grid-template-columns: 1fr; gap: 45px; }
    .site-footer { grid-template-columns: 1fr; gap: 8px; text-align: center; }
    .brand-footer { margin: auto; }
    .brand-footer img { width: 118px; }
    .checkout { padding: 12px; }
    .checkout-panel { width: 100%; grid-template-columns: 1.08fr .92fr; }
    .checkout-intro { padding: 32px 34px 0; }
    .checkout-form-column { padding: 0 34px 38px; }
    .checkout-summary { padding: 60px 32px 38px; }
    .checkout-logo { height: 62px; margin-bottom: 13px; }
    .checkout-logo img { width: 96px; height: auto; }
    .checkout-intro h2 { font-size: 34px; }
    .checkout-summary h3 { font-size: 27px; }
    .summary-cover { width: 220px; height: 306px; margin-top: 18px; }
    .summary-product-title span { font-size: 22px; }
    .summary-product-title em { font-size: 17px; }
    .summary-product-title strong { font-size: 23px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .checkout-panel {
        height: auto;
        max-height: calc(100vh - 20px);
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: "intro" "summary" "form";
    }
    .checkout-intro { padding: 28px 22px 0; border-right: 0; }
    .checkout-form-column { padding: 2px 22px 34px; border-right: 0; }
    .checkout-summary {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 7px 17px;
        padding: 18px 22px 22px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .checkout-summary h3 { grid-column: 1 / -1; margin-bottom: 5px; font-size: 26px; }
    .summary-cover { grid-row: 2 / 5; width: 76px; height: 106px; margin: 0; filter: drop-shadow(0 6px 7px rgba(51,38,25,.13)); }
    .summary-product-title { width: 100%; max-width: 100%; align-self: end; justify-content: flex-start; flex-wrap: nowrap; margin: 0; line-height: 1; }
    .checkout-summary .summary-product-title span { font-size: 20px; }
    .checkout-summary .summary-product-title em { font-size: 15px; }
    .checkout-summary .summary-product-title strong { font-size: 21px; }
    .summary-row { padding: 3px 0 8px; font-size: 13px; }
    .summary-total { padding-top: 7px; font-size: 13px; }
    .summary-total strong { font-size: 25px; }
    .checkout-panel::before { width: 190px; height: 120px; opacity: .34; background-size: 250px auto; background-position: left -55px bottom -62px; }
    .checkout-panel::after { height: 150px; }
}

@media (max-width: 560px) {
    .site-header > .brand img { width: 92px; }
    .hero-actions .button:first-child { padding-inline: 18px; gap: 10px; }
    .hero-actions .button:first-child span { font-size: 14px; white-space: nowrap; }
    .hero-actions .button:first-child del { font-size: .76em; }
    .hero h1 br { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-art { min-height: 390px; }
    .hero-arch { width: 275px; height: 365px; right: -8px; }
    .product { padding: 42px 22px 46px; grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .product-visual { height: 285px; }
    .product-florals { left: -38px; right: -38px; bottom: -12px; height: 292px; background-position: center bottom; }
    .book-standing { width: 190px; transform: translateY(4px); }
    .product-main { display: flex; flex-direction: column; align-items: center; }
    .product-title-lockup { justify-content: center; flex-wrap: nowrap; }
    .product-title-lockup span { font-size: clamp(30px, 9vw, 38px); }
    .product-title-lockup em { font-size: clamp(22px, 6.7vw, 28px); }
    .product-title-lockup strong { font-size: clamp(32px, 9.4vw, 40px); }
    .product-subtitle { margin-bottom: 18px; }
    .price { justify-content: center; }
    .product-button { min-width: min(100%, 310px); }
    .product-description { display: block; padding-top: 26px; text-align: left; }
    .product-description blockquote { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--gold); border-left: 0; }
    .journey, .writers { padding: 66px 22px; }
    .journey-list li { grid-template-columns: 44px 1fr; padding: 16px 0; }
    .journey-list small { grid-column: 2; margin-top: 4px; }
    .writers-quote { grid-template-columns: 58px 1fr; padding: 24px 0 24px 20px; }
    .writers-quote img { width: 52px; }
    .checkout { padding: 10px; }
    .checkout-panel { width: 100%; max-height: calc(100vh - 20px); border-radius: 15px; }
    .checkout-intro { padding: 25px 20px 0; }
    .checkout-form-column { padding: 2px 20px 32px; }
    .checkout-logo { height: 58px; margin-bottom: 12px; }
    .checkout-logo img { width: 92px; height: auto; }
    .checkout-intro h2 { font-size: 32px; padding-right: 20px; }
    .checkout-intro > p { margin-bottom: 20px; }
    .checkout-form-column label { margin-top: 14px; }
    .input-wrap input { height: 50px; }
    .payment-card { padding: 32px 22px; }
    .payment-card h1 { font-size: 34px; }
    .admin-login { padding: 30px 24px; }
    .admin-title { align-items: start; flex-direction: column; }
    .admin-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
