:root {
    color-scheme: light;
    --paper: #fffdf8;
    --ink: #27203b;
    --muted: #5f566e;
    --accent: #463071;
    --accent-hover: #38245e;
    --line: #e9e2eb;
    --sans: "Instrument Sans", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #7053a5; outline-offset: 4px; }
.shell { width: min(1116px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-bar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { letter-spacing: -.055em; font-size: 23px; font-weight: 760; text-decoration: none; }
.wordmark span { margin-left: 4px; color: #7254a2; }
.support, .footer a { text-decoration: none; color: var(--muted); }
.support:hover, .footer a:hover { text-decoration: underline; }

.product {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6.4vw, 100px);
    padding-block: clamp(44px, 8vh, 86px);
}
.hero-art {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 1.09;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(ellipse at 54% 28%, #eee6ff 0%, #e8dafa 62%, #decef4 100%);
}
.hero-art::before, .hero-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #f9f2ff;
}
.hero-art::after { width: 83%; }
.cover-image {
    display: block;
    width: 85%;
    height: 86%;
    object-fit: contain;
    filter: drop-shadow(12px 24px 23px #32204a38);
}
.book {
    position: relative;
    width: 45%;
    max-width: 236px;
    aspect-ratio: .72;
    transform: rotate(-8deg);
    border-radius: 5px 11px 10px 5px;
    background: #faf4df;
    box-shadow: 12px 12px 0 -3px #ad8fc6, 18px 26px 38px #36225159;
    container-type: inline-size;
}
.book-face {
    position: absolute;
    inset: 0 6px 5px 0;
    overflow: hidden;
    background: #433466;
    color: #fff8e9;
    border-radius: 4px 7px 7px 3px;
    padding: 10% 10% 0;
    box-shadow: inset 6px 0 #ffffff12;
}
.book-imprint { display: block; font: 650 5.6cqw/1.4 var(--sans); padding-bottom: 8%; }
.book strong { display: block; position: relative; z-index: 1; font: 400 21cqw/.93 var(--serif); letter-spacing: -.035em; }
.book strong i { color: #f7ce88; font-weight: 400; }
.book-landscape { position: absolute; inset: auto -7% 0; height: 40%; overflow: hidden; }
.book-landscape span { position: absolute; width: 23%; aspect-ratio: 1; border-radius: 50%; background: #f9cf85; right: 16%; top: 3%; }
.book-landscape i, .book-landscape b { position: absolute; border-radius: 45% 55% 0 0; width: 104%; height: 84%; top: 33%; background: #9e84c1; transform: rotate(-12deg); right: -24%; }
.book-landscape b { background: #c4aedc; transform: rotate(13deg); top: 55%; left: -15%; }

h1, .checkout h2 { font: 400 clamp(45px, 5.35vw, 75px)/.99 var(--serif); letter-spacing: -.038em; margin: 0; }
.description { margin: 18px 0 0; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.2rem); max-width: 35ch; }
.preview-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 630; text-underline-offset: 3px; }
.offer form { margin-top: 28px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.price-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.price-option { cursor: pointer; position: relative; }
.price-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.price-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border: 1px solid #e1d8e7;
    border-radius: 12px;
    background: #fff;
    color: var(--accent);
    line-height: 1.14;
}
.price-face strong { font-size: 1.28rem; }
.price-face small { font-size: .71rem; margin-top: 3px; font-weight: 630; }
.price-option input:checked + .price-face { color: #38235d; border-color: #7655a6; box-shadow: inset 0 0 0 1px #7655a6; background: #f1e9fb; }
.price-option:hover .price-face { border-color: #8f76b5; }
.price-option input:focus-visible + .price-face { outline: 3px solid #7053a5; outline-offset: 3px; }
fieldset:disabled .price-option { cursor: default; }

.primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 55px;
    width: 100%;
    margin-top: 13px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 720;
    text-decoration: none;
    text-align: center;
}
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { background: #675782; }
.purchase-note { text-align: center; margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.form-message { margin: 10px 0 0; text-align: center; color: #823f4a; font-size: .85rem; }
.checkout {
    width: min(100%, 720px);
    margin: 0 auto 50px;
    padding: clamp(16px, 4vw, 32px);
    border-radius: 20px;
    background: white;
    border: 1px solid var(--line);
    scroll-margin-top: 12px;
}
.checkout-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.checkout h2 { font-size: 40px; }
.checkout-message { margin: 0 0 14px; color: var(--muted); }
.text-button { border: 0; padding: 6px 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); padding-block: 18px; font-size: .85rem; }
.policy { max-width: 650px; padding-block: 40px 70px; }
.policy h2 { margin-top: 28px; }
.policy p { color: var(--muted); }
@media (max-width: 700px) {
    .shell { width: calc(100% - 36px); max-width: 520px; }
    .top-bar { min-height: 51px; }
    .wordmark { font-size: 20px; }
    .product { grid-template-columns: 1fr; padding: 18px 0 29px; gap: 22px; }
    .hero-art { aspect-ratio: 1.45; max-height: 285px; border-radius: 18px; }
    .hero-art::before { width: 54%; }
    .hero-art::after { width: 68%; }
    .book { width: 35%; max-width: min(40%, 145px); }
    .offer form { margin-top: 21px; }
    h1 { font-size: clamp(39px, 8.5vw, 53px); max-width: 14ch; }
    .description { margin-top: 11px; max-width: 42ch; }
    .price-face { min-height: 52px; }
    .primary { min-height: 50px; margin-top: 10px; }
    .checkout { margin-bottom: 30px; }
}
@media (max-width: 340px) {
    .shell { width: calc(100% - 28px); }
    h1 { font-size: 35px; }
}
