:root {
    --uid-blue: #1E36B5;
    --uid-magenta: #DA1A98;
    --uid-yellow: #ECA218;
    --uid-red: #DB2B22;
    --uid-green: #1E8A38;
    --uid-blue-deep: #142680;
    --uid-red-deep: #9A1A14;
    --ink: #1A1815;
    --ink-soft: #36332D;
    --warm-700: #4A4740;
    --warm-600: #6B665B;
    --warm-500: #8A8578;
    --warm-400: #A9A295;
    --warm-300: #C5C0B8;
    --warm-200: #E4DFD7;
    --warm-100: #EFECE4;
    --cream: #F5F2EB;
    --paper: #FBF9F4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--uid-blue); color: var(--cream); }
body { background: #F5F2EB; color: #1A1815; font-family: 'DM Sans', system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.uid-defs { position: absolute; }

.display,
.hero-heading,
.section-display,
.contact-name,
.bundle-h,
.method-step-title,
.nav-logo-text,
.footer-logo,
.author-quote { font-family: 'Instrument Serif', Georgia, serif; }

em { font-style: italic; }
strong { font-weight: 700; }

.uid-stripe { position: fixed; top: 0; left: 0; right: 0; display: flex; height: 4px; z-index: 200; }
.uid-stripe span { flex: 1; }
.uid-stripe-1 { background: var(--uid-blue); }
.uid-stripe-2 { background: var(--uid-magenta); }
.uid-stripe-3 { background: var(--uid-yellow); }
.uid-stripe-4 { background: var(--uid-red); }
.uid-stripe-5 { background: var(--uid-green); }
.uid-stripe--bottom { position: relative; top: auto; left: auto; right: auto; z-index: auto; height: 4px; }

.ps { display: block; height: 100%; }
.ps-blue { background: var(--uid-blue); }
.ps-magenta { background: var(--uid-magenta); }
.ps-yellow { background: var(--uid-yellow); }
.ps-red { background: var(--uid-red); }
.ps-green { background: var(--uid-green); }

#nav { position: fixed; top: 4px; left: 0; right: 0; z-index: 100; transition: background 0.4s, box-shadow 0.4s; }
#nav.scrolled { background: rgba(245,242,235,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; font-size: 1.1rem; font-weight: 500; text-decoration: none; color: inherit; letter-spacing: -0.01em; }
.nav-logo-mark { width: 30px; height: 24px; flex-shrink: 0; }
.nav-logo-text { line-height: 1; }
.nav-links { display: none; align-items: center; gap: 2rem; }
#nav .nav-links > a { font-size: 0.78rem; font-weight: 500; text-decoration: none; color: var(--warm-600); transition: color 0.3s; }
#nav .nav-links > a:hover { color: var(--ink); }
nav#nav a.nav-cta,
#mobile-menu a.nav-cta,
nav#nav a.nav-cta:link,
nav#nav a.nav-cta:visited,
nav#nav a.nav-cta:hover,
nav#nav a.nav-cta:active,
#mobile-menu a.nav-cta:link,
#mobile-menu a.nav-cta:visited,
#mobile-menu a.nav-cta:hover,
#mobile-menu a.nav-cta:active { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; text-decoration: none; color: #ffffff; background: #1A1815; padding: 0.65rem 1.25rem; border-radius: 999px; transition: background 0.2s; }
nav#nav a.nav-cta:hover, #mobile-menu a.nav-cta:hover { background: #36332D; color: #ffffff; }

.lang-dropdown { position: relative; }
.lang-dropdown-trigger { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--warm-200); border-radius: 999px; padding: 5px 10px 5px 8px; cursor: pointer; transition: border-color 0.3s; color: var(--warm-500); }
.lang-dropdown-trigger:hover { border-color: var(--warm-400); }
.lang-chevron { transition: transform 0.3s; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--cream); border: 1px solid var(--warm-200); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; min-width: 140px; overflow: hidden; }
.lang-dropdown.open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px; text-decoration: none; color: var(--ink); font-size: 0.8rem; font-weight: 500; transition: background 0.15s; }
.lang-option:hover { background: var(--warm-100); }
.lang-option.active { font-weight: 600; }
.lang-dropdown--mobile { margin-top: 0.5rem; }
.lang-dropdown--mobile .lang-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 1px solid var(--warm-200); margin-top: 6px; }
.lang-dropdown--mobile.open .lang-dropdown-menu { display: block; }
.lang-dropdown--mobile .lang-dropdown-trigger { padding: 8px 14px; }

.nav-burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav-burger.active span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(245,242,235,0.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu > a { font-size: 1.6rem; font-weight: 600; text-decoration: none; color: var(--ink); }
@media (min-width: 920px) { .nav-links { display: flex; } .nav-burger { display: none; } }

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
button.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1.1rem 2.2rem; font-size: 0.92rem; font-weight: 600; text-decoration: none; background: #1A1815; color: #ffffff; border: 0; border-radius: 999px; transition: background 0.2s; cursor: pointer; font-family: inherit; }
a.btn-primary:hover, button.btn-primary:hover { background: #36332D; color: #ffffff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1.1rem 2rem; font-size: 0.92rem; font-weight: 500; text-decoration: none; background: transparent; color: var(--ink); border: 1.5px solid var(--warm-300); border-radius: 999px; transition: border-color 0.2s; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { border-color: var(--ink); }

.hero { position: relative; padding: 8rem 2rem 5rem; overflow: clip; background: #fff; }
.hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 7fr 5fr; gap: 5rem; align-items: center; }
.hero-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--uid-blue); padding: 0.4rem 0.9rem; background: rgba(30,54,181,0.08); border-radius: 999px; margin-bottom: 1.8rem; }
.hero-heading { font-weight: 400; font-size: clamp(3.2rem, 8.5vw, 7.8rem); line-height: 0.92; letter-spacing: -0.035em; margin-bottom: 1.8rem; color: var(--ink); }
.hero-line { display: block; }
.hero-heading em { font-style: italic; color: var(--warm-300); }
.clarity { position: relative; white-space: nowrap; color: var(--ink); }
.clarity::after { content: ''; position: absolute; left: 0; bottom: 0.06em; width: 100%; height: 0.07em; background: linear-gradient(90deg, var(--uid-blue) 0%, var(--uid-blue) 20%, var(--uid-magenta) 20%, var(--uid-magenta) 40%, var(--uid-yellow) 40%, var(--uid-yellow) 60%, var(--uid-red) 60%, var(--uid-red) 80%, var(--uid-green) 80%, var(--uid-green) 100%); border-radius: 1px; }
.hero-sub { max-width: 520px; }
.hero-sub p { font-size: 1.1rem; line-height: 1.7; color: var(--warm-700); }
.hero-actions { display: flex; gap: 0.85rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-credits { list-style: none; display: flex; gap: 2.5rem; margin-top: 3rem; padding: 0; flex-wrap: wrap; }
.hero-credits li { font-size: 0.85rem; color: var(--warm-600); display: flex; flex-direction: column; gap: 0.25rem; }
.hero-credits strong { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.7rem; font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.hero-aside { margin: 0; padding: 2.4rem 2.4rem 2rem; background: #fff; border-radius: 14px; border: 1px solid var(--warm-200); width: 100%; }
.hero-aside-h { font-size: 0.72rem; font-weight: 700; color: var(--uid-red); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.4rem; }
.hero-aside-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.hero-aside-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.9rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--warm-200); }
.hero-aside-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-aside-brand { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.65rem; font-weight: 400; color: var(--ink); letter-spacing: -0.015em; }
.hero-aside-arrow { font-size: 1.1rem; color: var(--warm-400); font-family: 'Instrument Serif', Georgia, serif; }
.hero-aside-value { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.65rem; font-style: italic; color: var(--uid-red); text-align: right; letter-spacing: -0.015em; }
.hero-aside-foot { font-size: 0.85rem; color: var(--warm-600); line-height: 1.5; padding-top: 1.1rem; border-top: 1px solid var(--warm-200); margin: 0; }

.kicker { font-size: 0.78rem; font-weight: 600; color: var(--uid-blue); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.kicker--light { color: var(--uid-yellow); }
.kicker--quiet { color: var(--warm-500); }
.display, .section-display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 1.5rem; color: var(--ink); }
.display em, .display-accent { font-style: italic; color: var(--uid-blue); }
.display--light { color: var(--cream); }
.display--light .display-accent--light { color: var(--uid-yellow); }
.lede { font-size: 1.1rem; line-height: 1.65; color: var(--warm-700); max-width: 60ch; }

.dimensions { padding: 7rem 2rem 6rem; background: var(--paper); }
.dimensions-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 35fr 65fr; gap: 5rem; align-items: center; }
.dim-text { max-width: 480px; }
.dim-text .lede { font-size: 1.08rem; line-height: 1.7; color: var(--warm-700); margin-bottom: 2rem; }
.dim-foot { font-size: 1rem; line-height: 1.65; color: var(--warm-700); padding-top: 1.5rem; border-top: 1px solid var(--warm-200); margin: 0; max-width: 440px; }
.dim-foot strong { color: var(--ink); }
.dim-diagram { width: 100%; margin: 0; }
.dim-diagram svg { width: 100%; height: auto; transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.dim-diagram:hover svg { transform: scale(1.015); }

.method { padding: 6rem 2rem 6rem; background: var(--cream); }
.method-inner { max-width: 1400px; margin: 0 auto; }
.method-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch; }
.method-text-col { display: flex; flex-direction: column; justify-content: center; }
.method-text-col .display { color: var(--ink); margin-bottom: 1.6rem; }
.method-text-col .display-accent { color: var(--uid-red); }
.method-text { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 56ch; }
.method-text em { font-style: italic; color: var(--ink); }
.method-steps { list-style: none; display: grid; grid-template-rows: repeat(3, 1fr); gap: 1rem; padding: 0; height: 100%; }
.method-step { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.6rem 1.7rem; background: #fff; border-radius: 14px; border: 1px solid var(--warm-200); transition: border-color 0.2s; }
.method-step--blue { --c: var(--uid-blue); }
.method-step--magenta { --c: var(--uid-magenta); }
.method-step--red { --c: var(--uid-red); }
.method-step:hover { border-color: var(--c); }
.method-step-mark { width: 56px; height: auto; color: var(--c); flex-shrink: 0; display: block; }
.method-step-body { flex: 1; }
.method-step-title { font-size: 1.55rem; font-weight: 400; line-height: 1.05; margin-bottom: 0.45rem; color: var(--ink); letter-spacing: -0.015em; }
.method-step p { font-size: 0.92rem; line-height: 1.55; color: var(--warm-600); }

.books { background: var(--ink); color: var(--cream); padding: 7rem 2rem 7rem; }
.books-inner { max-width: 1360px; margin: 0 auto; text-align: center; }
.books .display { color: var(--cream); margin-bottom: 4rem; }

.bundle { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.2fr; gap: 5rem; align-items: center; padding: 2rem 0; margin: 0 auto; max-width: 1080px; text-align: left; }
.bundle-stack { position: relative; height: 420px; display: flex; justify-content: center; align-items: center; }
.vol { position: absolute; width: 230px; height: 340px; border-radius: 6px; box-shadow: 18px 18px 50px -10px rgba(0,0,0,0.55), 4px 4px 16px rgba(0,0,0,0.35); transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); object-fit: cover; }
.vol--i { transform: rotate(-5deg) translateX(-100px) translateY(-2px); z-index: 2; }
.vol--ii { transform: rotate(5deg) translateX(110px) translateY(10px); z-index: 1; }
.bundle-stack:hover .vol--i { transform: rotate(-7deg) translateX(-115px) translateY(-10px); }
.bundle-stack:hover .vol--ii { transform: rotate(7deg) translateX(125px) translateY(2px); }

.bundle-info { text-align: left; }
.bundle-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--uid-yellow); padding: 0.35rem 0.85rem; background: rgba(236,162,24,0.12); border-radius: 999px; margin-bottom: 1.25rem; }
.bundle-h { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: #fff; }
.bundle-p { font-size: 0.98rem; line-height: 1.7; color: #C9C5BD; margin-bottom: 0.85rem; }
.bundle-p strong { color: #fff; font-weight: 600; }
.buy-btn { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; font-weight: 600; text-decoration: none; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,0.3); padding: 1rem 2rem; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; font-family: inherit; }
.buy-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--cream); }
.buy-btn--accent { background: #fff; border-color: #fff; color: var(--ink); padding: 1.05rem 2.4rem; }
.buy-btn--accent:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.buy-btn svg { transition: transform 0.2s; }
.buy-btn:hover svg { transform: translateX(3px); }
.store-page { background: var(--ink); }
.store-books { min-height: 100vh; padding-top: 2rem; }
.store-topnav { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 0 auto 4rem; }
.store-topnav a { color: var(--warm-300); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.store-topnav a:hover { color: #fff; }
.store-cart-link { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.62rem 1rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; }
.store-cart-link span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 0.3rem; border-radius: 999px; background: var(--uid-red); color: #fff; font-size: 0.76rem; }
.shop-catnav--dark a { background: transparent; border-color: rgba(255,255,255,0.22); color: #fff; }
.shop-catnav--dark a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ink); }
.store-products { margin-top: 4rem; }
.checkout-books { display: flex; align-items: center; }
.checkout-inner { width: min(980px, 100%); }
.checkout-panel { margin: 3rem auto 0; text-align: left; }
.checkout-card { padding: clamp(1rem, 3vw, 2rem); background: var(--paper); border-color: rgba(255,255,255,0.14); box-shadow: 0 30px 90px rgba(0,0,0,0.35); }
.checkout-card .ms-shop-cart-row { background: #fff; }
.checkout-card .shop-actions { display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr); gap: 0.9rem; }
.checkout-card .buy-btn { justify-content: center; color: var(--ink); border-color: var(--warm-300); }
.checkout-card .buy-btn:hover { background: #fff; border-color: var(--ink); }
.checkout-card .ms-shop-checkout { min-height: 54px; margin-top: 0; background: var(--uid-red); font-size: 0.98rem; }

.author-section { padding: 7rem 2rem 6rem; background: var(--paper); }
.author-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 4fr 7fr; gap: 5rem; align-items: start; }
.author-portrait { position: relative; }
.author-photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 8px 8px 0 0; box-shadow: 0 30px 70px -20px rgba(26,24,21,0.28); }
.author-portrait-stripe { display: flex; height: 6px; max-width: 420px; }
.author-portrait-stripe span { flex: 1; }
.author-portrait-cap { font-size: 0.78rem; color: var(--warm-500); margin-top: 0.85rem; max-width: 420px; }
.author-role { font-size: 0.92rem; color: var(--warm-500); margin-bottom: 1.5rem; }
.author-bio { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1rem; }
.author-bio em { font-style: italic; }
.author-quote { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-style: italic; padding: 1.6rem 1.8rem; margin: 2rem 0; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(26,24,21,0.16); position: relative; }
.author-quote::before { content: '\201C'; position: absolute; top: 0.4rem; left: 1.1rem; font-family: 'Instrument Serif', Georgia, serif; font-size: 4rem; line-height: 1; color: var(--uid-blue); opacity: 0.22; pointer-events: none; }
.author-quote p { padding-left: 0.5rem; }
.author-quote cite { display: block; margin-top: 1rem; padding-left: 0.5rem; font-size: 0.78rem; font-style: normal; font-weight: 500; color: var(--warm-500); }
.author-meta { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--warm-200); }
.author-meta-row { display: flex; gap: 1rem; align-items: baseline; font-size: 0.92rem; }
.author-meta-key { flex: 0 0 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-500); padding-top: 2px; }
.author-meta-val { color: var(--ink-soft); line-height: 1.55; }

.contact-section { padding: 6rem 2rem; background: var(--warm-100); }
.contact-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-card { background: var(--cream); padding: 2.5rem; border-radius: 14px; box-shadow: 0 2px 8px rgba(26,24,21,0.04), 0 16px 50px -20px rgba(26,24,21,0.12); transition: box-shadow 0.4s, transform 0.4s; }
.contact-card:hover { box-shadow: 0 4px 12px rgba(26,24,21,0.06), 0 24px 60px -20px rgba(26,24,21,0.18); transform: translateY(-2px); }
.contact-card--about { display: flex; flex-direction: column; }
.contact-logo { width: 130px; height: auto; margin-top: auto; padding-top: 2rem; align-self: center; }
.contact-name { font-size: 2.4rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.contact-role { font-size: 0.95rem; color: var(--warm-500); margin-bottom: 1.5rem; line-height: 1.6; }
.contact-bio { font-size: 0.95rem; line-height: 1.75; color: var(--warm-700); margin-bottom: 2rem; }
.vcard { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--warm-200); }
.vcard-row { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; color: var(--ink-soft); }
.vcard-row a { color: var(--ink); text-decoration: none; transition: color 0.3s; }
.vcard-row a:hover { color: var(--uid-blue); }
.vcard-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--warm-400); }
.contact-form-intro { font-size: 0.95rem; color: var(--warm-600); margin-bottom: 1.5rem; line-height: 1.6; }
#contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 100%; overflow: hidden; }
#contact-form div { display: flex; flex-direction: column; gap: 0.4rem; }
#contact-form label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-500); }
#contact-form input,
#contact-form textarea { width: 100%; padding: 0.9rem 1rem; font-family: inherit; font-size: 0.92rem; background: #fff; border: 1px solid var(--warm-200); border-radius: 8px; color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s; outline: none; resize: vertical; }
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: #B5AFA5; }
#contact-form input:focus,
#contact-form textarea:focus { border-color: var(--uid-blue); box-shadow: 0 0 0 3px rgba(30,54,181,0.12); }
.contact-submit { background: var(--ink); color: #fff; border: 0; padding: 1rem 2.2rem; font-size: 0.92rem; font-weight: 600; border-radius: 999px; cursor: pointer; font-family: inherit; align-self: flex-start; margin-top: 0.5rem; transition: background 0.2s; }
.contact-submit:hover { background: var(--uid-blue); }
#contact-form .g-recaptcha { transform-origin: left center; max-width: 100%; }

.footer { background: var(--ink); color: var(--warm-500); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-logo { font-size: 1.2rem; color: var(--cream); font-weight: 400; }
.footer-tagline { font-size: 0.8rem; color: var(--warm-500); font-style: italic; font-family: 'Instrument Serif', Georgia, serif; }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; text-decoration: none; color: var(--warm-500); transition: color 0.3s; }
.footer-links a:hover { color: var(--cream); }
.footer-meta { display: flex; flex-direction: column; gap: 0.3rem; text-align: right; }
.footer-copy { font-size: 0.8rem; color: var(--warm-500); }
.footer-tm { font-size: 0.7rem; color: #5A5650; letter-spacing: 0.04em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.method-step:nth-child(1) { transition-delay: 0.05s; }
.method-step:nth-child(2) { transition-delay: 0.15s; }
.method-step:nth-child(3) { transition-delay: 0.25s; }
.hero-heading .hero-line:nth-child(1) { transition-delay: 0.15s; }
.hero-heading .hero-line:nth-child(2) { transition-delay: 0.3s; }
.hero-heading .hero-line:nth-child(3) { transition-delay: 0.45s; }

@media (min-width: 768px) { .contact-inner { grid-template-columns: 5fr 6fr; gap: 1.5rem; } }

@media (max-width: 1024px) {
    .author-inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 620px; }
    .author-portrait { max-width: 380px; margin: 0 auto; }
    .author-photo { max-width: 380px; }
    .author-portrait-stripe { max-width: 380px; }
    .dimensions-inner { grid-template-columns: 40fr 60fr; gap: 3rem; }
    .dim-text { max-width: none; }
    .dim-foot { max-width: none; }
    .method-flow { grid-template-columns: 1fr; gap: 3rem; }
    .method-steps { grid-template-rows: none; height: auto; }
}

@media (max-width: 919px) {
    .nav-inner { padding: 1rem 1.5rem; }
    .bundle { grid-template-columns: 1fr; gap: 2rem; padding: 1rem 0 2.5rem; text-align: center; }
    .bundle-info { text-align: center; }
    .bundle-stack { height: 380px; }
}

@media (max-width: 767px) {
    .hero { padding: 7rem 1.5rem 4rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-tag { margin-left: auto; margin-right: auto; }
    .hero-sub { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-credits { justify-content: center; gap: 1.5rem; }
    .hero-credits li { align-items: center; text-align: center; }
    .hero-aside { padding: 1.8rem 1.4rem; }
    .hero-aside-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.7rem; }
    .hero-aside-brand, .hero-aside-value { font-size: 1.2rem; }
    .method { padding: 5rem 1.5rem; }
    .method-step { padding: 1.4rem 1.4rem; }
    .method-step-mark { width: 44px; }
    .method-step-title { font-size: 1.4rem; }
    .dimensions { padding: 5rem 1.5rem; }
    .dimensions-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .dim-text { max-width: none; }
    .dim-foot { max-width: none; }
    .books { padding: 3.5rem 1.5rem 4rem; }
    .books .display { margin-bottom: 0; }
    .bundle { padding: 0; margin-top: 0; gap: 1rem; }
    .bundle-stack { margin-top: 0; }
    .author-section { padding: 5rem 1.5rem; }
    .author-quote { font-size: 1.05rem; padding: 1.4rem 1.4rem; }
    .author-quote::before { font-size: 3rem; left: 0.8rem; }
    .author-meta-key { flex: 0 0 86px; }
    .contact-section { padding: 4rem 1.5rem; }
    .contact-logo { display: none; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; padding: 2.5rem 1.5rem 1.5rem; }
    .footer-meta { text-align: center; }
    .footer-links { justify-content: center; gap: 1.25rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 639px) {
    section, section > div, section > div > div, section > div > div > div { max-width: 100%; box-sizing: border-box; }
    .vol { width: 170px; height: 250px; }
    .vol--i { transform: rotate(-4deg) translateX(-65px) translateY(0); }
    .vol--ii { transform: rotate(4deg) translateX(75px) translateY(8px); }
    .bundle-stack:hover .vol--i { transform: rotate(-6deg) translateX(-75px) translateY(-6px); }
    .bundle-stack:hover .vol--ii { transform: rotate(6deg) translateX(85px) translateY(2px); }
}

@media (max-width: 400px) { #contact-form .g-recaptcha { transform: scale(0.85); } }
@media (max-width: 340px) { #contact-form .g-recaptcha { transform: scale(0.75); } }

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

.btn-primary--hero { font-size: 14.72px; padding: 17.6px 32px; }
.shop-body { margin: 0; background: #f5f2eb; color: #1c1917; font-family: "DM Sans", system-ui, sans-serif; }
.shop-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.shop-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: rgba(245, 242, 235, 0.92); border-bottom: 1px solid rgba(28, 25, 23, 0.1); backdrop-filter: blur(18px); }
.shop-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #1c1917; font-weight: 800; text-decoration: none; letter-spacing: 0; }
.shop-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: #1e36b5; font-size: 0.75rem; font-weight: 800; }
.shop-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.shop-nav a, .shop-footer a { color: #6b665b; font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.shop-nav a:hover, .shop-footer a:hover { color: #1c1917; }
.cart-wrap { position: relative; }
.cart-pill { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 42px; padding: 0 1rem; border: 1px solid rgba(28, 25, 23, 0.15); border-radius: 999px; background: #fff; color: #1c1917; text-decoration: none; font-weight: 800; }
.cart-pill-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 0.3rem; border-radius: 999px; background: #db2b22; color: #fff; font-size: 0.78rem; }
.cart-peek { position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, calc(100vw - 32px)); padding: 1rem; border: 1px solid rgba(28, 25, 23, 0.12); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(28, 25, 23, 0.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.18s ease; }
.cart-wrap:hover .cart-peek, .cart-wrap-open .cart-peek, .cart-wrap-just-added .cart-peek { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-peek-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.cart-peek-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f5f2eb; cursor: pointer; }
.cart-peek-btn, .ms-shop-checkout { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; width: 100%; margin-top: 1rem; padding: 0 1rem; border: 0; border-radius: 999px; background: #1c1917; color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.shop-kicker { margin: 0 0 0.7rem; color: #1e36b5; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.shop-section h1, .shop-section h2, .legal-page h1 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.9; letter-spacing: 0; }
.legal-page p { max-width: 650px; color: #6b665b; font-size: 1.08rem; line-height: 1.8; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.4rem; }
.shop-section { padding: 3rem 0 5rem; }
.shop-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.shop-section h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.shop-catnav { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.shop-catnav a { padding: 0.72rem 1rem; border: 1px solid rgba(28, 25, 23, 0.14); border-radius: 999px; background: #fff; color: #1c1917; font-weight: 800; text-decoration: none; }
.shop-catnav a[aria-current="page"] { background: #1e36b5; color: #fff; border-color: #1e36b5; }
.ms-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ms-shop-product, .shop-card, .ms-shop-detail { border: 1px solid rgba(28, 25, 23, 0.12); border-radius: 8px; background: #fff; box-shadow: 0 12px 36px rgba(28, 25, 23, 0.08); overflow: hidden; }
.ms-shop-product { display: flex; flex-direction: column; cursor: pointer; }
.ms-shop-product-image { display: block; background: #e4dfd7; aspect-ratio: 4 / 5; overflow: hidden; }
.ms-shop-product-image img, .ms-shop-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-shop-product-image-empty, .ms-shop-detail-image-empty { display: grid; place-items: center; min-height: 260px; color: #fff; background: #1e36b5; font-size: 4rem; font-weight: 900; text-decoration: none; }
.ms-shop-product-body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 1.1rem; }
.ms-shop-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ms-shop-categories span { padding: 0.3rem 0.55rem; border-radius: 999px; background: #f5f2eb; color: #6b665b; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.ms-shop-product h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.ms-shop-product h3 a { color: #1c1917; text-decoration: none; }
.ms-shop-product p { margin: 0; color: #6b665b; line-height: 1.55; }
.ms-shop-product-foot, .ms-shop-detail-purchase { margin-top: auto; color: #1c1917; font-size: 1.3rem; font-weight: 900; }
.ms-shop-product-actions, .ms-shop-detail-actions { display: flex; gap: 0.65rem; align-items: center; margin-top: 0.9rem; }
.ms-shop-card-qty, .ms-shop-qty { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid rgba(28, 25, 23, 0.14); border-radius: 999px; overflow: hidden; background: #fff; }
.ms-shop-card-qty-btn, .ms-shop-qty-btn { width: 38px; min-height: 40px; border: 0; background: transparent; color: #1c1917; font-size: 1.1rem; cursor: pointer; }
.ms-shop-card-qty-input { width: 44px; border: 0; text-align: center; font-weight: 800; background: transparent; }
.ms-shop-add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; flex: 1; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: #db2b22; color: #fff; font-weight: 900; cursor: pointer; }
.ms-shop-add-btn-lg { min-height: 52px; }
.shop-skeleton { min-height: 360px; border-radius: 8px; background: linear-gradient(90deg, #e4dfd7, #fff, #e4dfd7); animation: shopPulse 1.2s infinite; }
@keyframes shopPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.ms-shop-empty { padding: 1.2rem; border-radius: 8px; background: #fff; color: #6b665b; }
.ms-shop-detail { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr); margin: 3rem 0 5rem; }
.ms-shop-detail-image { background: #e4dfd7; min-height: 520px; }
.ms-shop-detail-body { padding: clamp(1.5rem, 4vw, 3rem); }
.ms-shop-detail h1 { margin: 0.7rem 0 1rem; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 0.95; }
.ms-shop-detail-description { color: #6b665b; line-height: 1.75; }
.ms-shop-detail-description h2 { margin: 1.2rem 0 0.6rem; color: #1c1917; font-size: 1rem; }
.ms-shop-cart-list { display: grid; gap: 0.75rem; }
.ms-shop-cart-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto auto; gap: 0.75rem; align-items: center; padding: 0.75rem; border: 1px solid rgba(28, 25, 23, 0.1); border-radius: 8px; }
.ms-shop-cart-thumb { width: 58px; height: 72px; border-radius: 6px; object-fit: cover; background: #e4dfd7; }
.ms-shop-cart-title-link { color: #1c1917; text-decoration: none; }
.ms-shop-cart-unit { display: block; margin-top: 0.2rem; color: #8a8578; font-size: 0.85rem; }
.ms-shop-qty-value { min-width: 28px; text-align: center; font-weight: 900; }
.ms-shop-cart-remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f5f2eb; color: #6b665b; cursor: pointer; }
.ms-shop-cart-total-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(28, 25, 23, 0.1); }
.ms-shop-cart-total-total { font-size: 1.2rem; border-bottom: 0; }
.checkout-layout { min-height: 70vh; padding: 4rem 0; }
.shop-card { padding: 1.2rem; margin-top: 1.2rem; }
.shop-error { margin-top: 1rem; color: #db2b22; font-weight: 800; }
.ms-shop-embedded-checkout { margin-top: 1rem; min-height: 560px; border-radius: 8px; background: #fff; }
.legal-page { min-height: 70vh; padding: 4rem 0; }
.legal-page h2 { margin-top: 2rem; }
.shop-contact-form { display: grid; gap: 1rem; max-width: 680px; margin-top: 1.5rem; }
.shop-contact-form div { display: grid; gap: 0.4rem; }
.shop-contact-form input, .shop-contact-form textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(28, 25, 23, 0.15); border-radius: 8px; padding: 0.95rem 1rem; font: inherit; background: #fff; }
.shop-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem 1.5rem; border-top: 1px solid rgba(28, 25, 23, 0.1); color: #6b665b; }
.shop-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
    .shop-header { align-items: flex-start; flex-wrap: wrap; }
    .shop-nav { order: 3; width: 100%; justify-content: flex-start; }
    .ms-shop-detail { grid-template-columns: 1fr; }
    .ms-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-shop-detail-image { min-height: 360px; }
}

@media (max-width: 620px) {
    .shop-wrap { width: min(100% - 28px, 1160px); }
    .shop-header { padding: 0.85rem 1rem; }
    .ms-shop-product-actions, .ms-shop-detail-actions, .shop-actions { flex-direction: column; align-items: stretch; }
    .ms-shop-card-qty { width: 100%; justify-content: space-between; }
    .ms-shop-cart-row { grid-template-columns: 52px minmax(0, 1fr); }
    .ms-shop-qty, .ms-shop-cart-line, .ms-shop-cart-remove { grid-column: 2; justify-self: start; }
    .cart-peek { right: auto; left: 50%; transform: translate(-50%, 8px); }
    .cart-wrap:hover .cart-peek, .cart-wrap-open .cart-peek, .cart-wrap-just-added .cart-peek { transform: translate(-50%, 0); }
}

.subpage { background: var(--cream); color: var(--ink); }
.nav-cart span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 0.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--uid-red); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1; }

.page { padding: 8rem 2rem 5.5rem; min-height: 72vh; }
.page-inner { max-width: 1280px; margin: 0 auto; }
.page-inner--narrow { max-width: 880px; }
.page-inner--prose { max-width: 760px; }

.crumbs { margin-bottom: 1.5rem; }
.crumbs a { color: var(--warm-600); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }

.store-head { max-width: 760px; margin-bottom: 2.75rem; }
.store-head .display { margin-bottom: 1.1rem; }
.store-head .lede { margin-bottom: 1.75rem; }
.store-head .shop-catnav { margin-bottom: 0; }

.page-inner--prose h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.65rem; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 2.1rem 0 0.55rem; }
.page-inner--prose p { color: var(--warm-700); font-size: 1.06rem; line-height: 1.8; max-width: 65ch; margin-bottom: 0.95rem; }
.page-inner--prose .btn-primary { margin-top: 1.75rem; }

.page .shop-card,
.page .checkout-card { background: #fff; border: 1px solid var(--warm-200); border-radius: 14px; box-shadow: 0 24px 64px -28px rgba(26,24,21,0.22); padding: clamp(1.25rem, 3vw, 2.1rem); margin-top: 0; }
.page .checkout-card .ms-shop-cart-row { background: #fff; }
.page .shop-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.page .checkout-card .shop-actions { display: flex; grid-template-columns: none; }
.page .checkout-card .shop-actions .btn-ghost,
.page .checkout-card .shop-actions .ms-shop-checkout { flex: 1 1 200px; width: auto; justify-content: center; margin-top: 0; }
.page .shop-thanks { color: var(--ink-soft); line-height: 1.7; }
.page .order-actions { margin-top: 1.6rem; }

.contact-section--page { padding-top: 8.5rem; background: var(--cream); }

.contact-card { min-width: 0; }
.vcard-row { min-width: 0; }
.vcard-row a { overflow-wrap: anywhere; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
@media (max-width: 919px) { .nav-right { gap: 0.75rem; } }

html { background: var(--ink); }
body.subpage { display: flex; flex-direction: column; min-height: 100vh; }
body.subpage > main { flex: 1 0 auto; }
body.subpage > .footer { flex-shrink: 0; }

.cart-wrap { position: relative; }
.cart-pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0 0.95rem; border: 1px solid var(--warm-200); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: border-color 0.2s, box-shadow 0.2s; }
.cart-pill:hover { border-color: var(--warm-400); }
.cart-pill svg { color: var(--warm-600); }
.cart-pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 0.32rem; border-radius: 999px; background: var(--warm-300); color: var(--ink); font-size: 0.72rem; font-weight: 700; transition: background 0.2s, color 0.2s; }
.cart-pill.has-items .cart-pill-count { background: var(--uid-red); color: #fff; }
.cart-peek { position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, 90vw); padding: 1.1rem; background: var(--paper); border: 1px solid var(--warm-200); border-radius: 14px; box-shadow: 0 24px 70px -24px rgba(26,24,21,0.32); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity 0.22s, transform 0.22s, visibility 0s linear 0.22s; z-index: 60; text-align: left; }
.cart-wrap:hover .cart-peek, .cart-wrap:focus-within .cart-peek, .cart-wrap-just-added .cart-peek, .cart-wrap-open .cart-peek { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.cart-peek-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.cart-peek-head strong { font-size: 0.95rem; color: var(--ink); }
.cart-peek-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--warm-100); color: var(--warm-600); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.cart-peek-close:hover { background: var(--warm-200); }
.cart-peek-body .ms-shop-empty { padding: 0.75rem 0.4rem; background: transparent; color: var(--warm-600); }
.cart-peek-body .ms-shop-cart-row { border: 0; border-bottom: 1px solid var(--warm-200); border-radius: 0; padding: 0.6rem 0.2rem; }
.cart-peek-foot { margin-top: 0.6rem; }
.cart-peek-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 46px; margin-top: 0.9rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: background 0.2s; }
.cart-peek-btn:hover { background: var(--uid-blue); }
.cart-peek-note { margin: 0.65rem 0 0; text-align: center; font-size: 0.72rem; color: var(--warm-500); }

@media (max-width: 619px) {
    .cart-peek { position: fixed; left: 12px; right: 12px; top: auto; bottom: 14px; width: auto; max-width: 480px; margin-inline: auto; }
    .cart-wrap-just-added .cart-peek, .cart-wrap:hover .cart-peek, .cart-wrap:focus-within .cart-peek { opacity: 0; visibility: hidden; pointer-events: none; }
    .cart-wrap-open .cart-peek { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
}

.ms-shop-card-qty { display: none; }
.ms-shop-qty-btn { display: none; }
.ms-shop-qty { border: 0; background: transparent; min-height: 0; }
.ms-shop-qty-value { color: var(--ink); }
.ms-shop-add-btn { flex: 1; }
.ms-shop-card-qty-input { color: var(--ink); }

.ms-shop-add-btn.ms-shop-go-checkout { background: var(--ink); color: #fff; }
.ms-shop-add-btn.ms-shop-go-checkout:hover { background: var(--ink-soft); }
.ms-shop-add-btn.ms-shop-go-checkout svg { display: none; }
.ms-shop-add-btn.ms-shop-go-checkout span { display: inline-flex; align-items: center; gap: 0.5em; }
.ms-shop-add-btn.ms-shop-go-checkout span::before { content: ""; display: inline-block; width: 0.42em; height: 0.7em; border: solid var(--uid-green); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 0.14em; }
.ms-shop-add-btn.ms-shop-go-checkout span::after { content: "→"; font-size: 1.05em; line-height: 1; }

.ms-shop-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 290px)); justify-content: center; gap: 1.75rem; max-width: 980px; margin-left: auto; margin-right: auto; }

.ms-shop-product-image, .ms-shop-detail-image { aspect-ratio: 3 / 4; background: var(--warm-100); display: grid; place-items: center; padding: 1rem; }
.ms-shop-product-image img, .ms-shop-detail-image img { width: 100%; height: 100%; object-fit: contain; }
.ms-shop-detail-image { aspect-ratio: auto; min-height: 420px; }

.store-assurance { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 2.5rem; max-width: 980px; margin: 3rem auto 0; padding: 1.9rem 1.5rem 0; border-top: 1px solid var(--warm-200); }
.store-assurance li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--warm-700); }
.store-assurance svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--uid-blue); }

.note { margin: 1.6rem 0; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--warm-200); border-radius: 14px; box-shadow: 0 16px 44px -26px rgba(26,24,21,0.18); }
.note--accent { border-color: rgba(219,43,34,0.35); background: rgba(219,43,34,0.04); }
.note-h { margin: 0 0 0.4rem; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.4rem; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.note p { margin: 0; color: var(--warm-700); font-size: 1rem; line-height: 1.7; }
.note a { color: var(--uid-red); }
.page-inner--prose .lede { margin-bottom: 1.4rem; }

.page .ms-shop-checkout { min-height: 54px; padding: 1rem 1.9rem; border-radius: 999px; font-size: 0.98rem; font-weight: 600; line-height: 1; background: var(--uid-red); color: #fff; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s, transform 0.2s; }
.page .ms-shop-checkout:hover { background: var(--uid-red-deep); transform: translateY(-1px); }
.page .ms-shop-checkout[disabled] { background: var(--warm-300); color: var(--warm-600); cursor: not-allowed; transform: none; }
.checkout-card { position: relative; }
.ms-shop-embedded-checkout { position: relative; margin-top: 1.2rem; min-height: 0; border-radius: 12px; background: transparent; }
.ms-shop-embedded-checkout:not(:empty) { min-height: 560px; background: #fff; }
.ms-shop-checkout-loading, .ms-shop-checkout-stale { display: grid; gap: 0.3rem; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--warm-200); border-radius: 12px; background: var(--paper); color: var(--warm-600); font-size: 0.9rem; }
.ms-shop-checkout-loading { grid-template-columns: auto 1fr; align-items: center; gap: 0.2rem 0.8rem; max-width: 520px; margin-inline: auto; }
.ms-shop-checkout-loading strong { color: var(--ink); font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.ms-shop-checkout-loading span { grid-column: 2; font-size: 0.82rem; }
.ms-shop-checkout-pulse { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--warm-200); border-top-color: var(--uid-red); animation: ms-shop-spin 0.8s linear infinite; }
.ms-shop-checkout-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 1rem; background: rgba(251,249,244,0.84); backdrop-filter: blur(2px); border-radius: 14px; }
.ms-shop-checkout-overlay .ms-shop-checkout-loading { width: min(100%, 420px); margin-top: 0; box-shadow: 0 24px 60px -28px rgba(26,24,21,0.3); }
@keyframes ms-shop-spin { to { transform: rotate(360deg); } }

.shop-error { display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(219,43,34,0.4); border-radius: 12px; background: rgba(219,43,34,0.06); color: var(--uid-red-deep); font-size: 0.9rem; font-weight: 600; }
.shop-error:not(:empty) { display: block; }

@media (max-width: 620px) {
    .ms-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; max-width: 440px; }
    .ms-shop-product-image { padding: 0.55rem; }
    .ms-shop-product-body { padding: 0.7rem 0.7rem 0.8rem; gap: 0.45rem; }
    .ms-shop-categories span { font-size: 0.58rem; padding: 0.22rem 0.45rem; }
    .ms-shop-product h3 { font-size: 0.9rem; line-height: 1.2; }
    .ms-shop-product p { font-size: 0.76rem; }
    .ms-shop-product-foot { font-size: 1.02rem; }
    .ms-shop-product-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: 0.75rem; }
    .ms-shop-add-btn { min-height: 42px; padding: 0 0.6rem; font-size: 0.76rem; font-weight: 800; gap: 0.3rem; border-radius: 999px; }
    .ms-shop-add-btn svg { width: 14px; height: 14px; }
    .store-assurance { gap: 0.65rem 1.2rem; margin-top: 2.2rem; padding-top: 1.5rem; }
    .store-assurance li { font-size: 0.8rem; }
}
@media (max-width: 360px) {
    .ms-shop-add-btn { font-size: 0.7rem; letter-spacing: -0.01em; }
    .ms-shop-product h3 { font-size: 0.84rem; }
}

.ms-shop-detail-facts { display: none; }
.ms-shop-detail-lead { margin: 0 0 0.4rem; color: var(--warm-600); font-size: 1.05rem; line-height: 1.7; }
.ms-shop-detail-purchase { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(28, 25, 23, 0.1); }
.ms-shop-detail-info { margin: 2.4rem 0 0; }
.ms-shop-info-section { border-top: 1px solid rgba(28, 25, 23, 0.12); }
.ms-shop-info-section:last-of-type { border-bottom: 1px solid rgba(28, 25, 23, 0.12); }
.ms-shop-info-section summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; list-style: none; cursor: pointer; color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.ms-shop-info-section summary::-webkit-details-marker { display: none; }
.ms-shop-info-section summary svg { flex-shrink: 0; color: var(--warm-500); transition: transform 0.2s ease; }
.ms-shop-info-section[open] summary svg { transform: rotate(180deg); }
.ms-shop-info-content { padding: 0 0 1.2rem; color: var(--warm-600); line-height: 1.7; }
.ms-shop-related { margin: 4rem 0 1rem; }
.ms-shop-related > h2 { margin: 0 0 1.6rem; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1; }

.ms-shop-related .ms-shop-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 290px)); justify-content: center; max-width: 620px; margin-inline: auto; }
@media (max-width: 620px) {
    .ms-shop-detail-purchase { margin-top: 1.2rem; padding-top: 1.1rem; }
    .ms-shop-related { margin-top: 2.8rem; }
    .ms-shop-related .ms-shop-grid { grid-template-columns: minmax(0, 300px); max-width: 300px; }
}

@media (max-width: 620px) {
    .page .checkout-card .shop-actions { flex-direction: column; }
    .page .checkout-card .shop-actions .btn-ghost,
    .page .checkout-card .shop-actions .ms-shop-checkout { flex: 0 0 auto; width: 100%; max-width: none; min-height: 50px; }
}
