:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --white: #fffcf6;
  --ink: #26212a;
  --muted: #625860;
  --line: #dcd2c5;
  --plum: #251f2d;
  --gold: #eac889;
  --gold-dark: #76501d;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.has-sticky-header { scroll-padding-top: var(--site-header-height); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.035em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid #936221; outline-offset: 5px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }

.skip-link {
  position: fixed; inset: 1rem auto auto 1rem; z-index: 5;
  padding: .75rem 1rem; background: var(--white); transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.has-sticky-header .site-header {
  position: sticky; top: 0; z-index: 4;
  transition: transform 450ms ease-out;
}
.has-sticky-header .site-header.is-hidden { transform: translateY(-100%); }
.has-sticky-header .site-header:has(:focus-visible) { transform: none; transition: none; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 5.5rem; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.wordmark-text { font: 400 1.9rem/.9 var(--display); letter-spacing: -.045em; }
.wordmark-text span { display: block; margin-top: .25rem; font-size: .72em; }
.brand-mark {
  width: 3rem; height: 3rem; display: block; object-fit: cover; border-radius: 50%;
}
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.45rem); font-size: .875rem; }
.main-nav a { padding-block: .45rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] {
  color: var(--gold-dark); text-decoration: underline; text-underline-offset: .45rem;
}

.hero {
  overflow: hidden; color: var(--white);
  background: radial-gradient(ellipse at 75% 38%, #4a3747, transparent 47%), linear-gradient(120deg, #211d29, #2e2433);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 36.5rem; }
.hero-copy { padding-block: 4rem; position: relative; z-index: 1; }
.eyebrow {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.45rem;
  color: var(--gold); font-size: .72rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 2rem; height: 1px; background: currentColor; opacity: .65; }
.hero h1 { font-size: clamp(4rem, 7.2vw, 7.15rem); line-height: .91; letter-spacing: -.065em; }
.hero-intro { max-width: 30rem; margin-top: 1.75rem; color: #e4dbe1; font-size: 1.025rem; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem;
  min-height: 3.1rem; padding: .65rem 1.1rem; font-size: .9rem; font-weight: 650; text-decoration: none;
}
.button-gold { margin-top: 1.9rem; color: #2b231e; background: var(--gold); }
.button-gold:hover { background: #f6dba7; }
.button-dark { color: var(--white); background: var(--plum); border: 1px solid transparent; cursor: pointer; }
.button-dark:hover { background: #45384a; }
.button-dark:disabled { opacity: .6; cursor: default; }
.button span, .text-link span { font-size: 1.1em; }
.hero-visual { display: grid; position: relative; isolation: isolate; place-items: center; min-height: 30rem; }
.orbit, .row-orbit {
  position: absolute; inset: 50% auto auto 50%; width: 86%; max-width: 27.5rem; aspect-ratio: 1;
  border: 1px solid #eac88939; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.orbit-inner { width: 75%; max-width: 24.5rem; border-color: #eac88922; }
.hero-star { position: absolute; color: var(--gold); font-size: 1.55rem; line-height: 1; }
.hero-star-top { top: 14%; right: 19%; }
.hero-star-bottom { bottom: 15%; left: 17%; font-size: 1.3rem; }

.hero-cover, .row-cover {
  display: block; position: relative; height: auto; border: 1px solid #eac88970;
  transform: rotate(-6deg); box-shadow: .7rem 1.1rem 2rem #140d1b60;
}
.hero-cover { width: clamp(11rem, 25vw, 19rem); }

.section { padding-block: clamp(3.25rem, 6vw, 5rem); }
.book-list > h2 { margin-bottom: 1.55rem; }
.book-row { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 16.5rem; border: 1px solid var(--line); background: var(--white); }
.book-row-art {
  position: relative; display: grid; isolation: isolate; overflow: hidden; place-items: center;
  min-height: 15rem; background: radial-gradient(ellipse at 45% 43%, #e9d9d8, #d7c3c9);
}
.row-cover { width: 7.6rem; }
.row-orbit { width: 13rem; border-color: #94697755; }
.book-row-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.25rem); }
.book-row h3 { max-width: 27rem; font-size: clamp(1.9rem, 3.5vw, 3.15rem); letter-spacing: -.04em; }
.book-row h3 a { text-decoration: none; }
.book-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.book-row p { margin-top: .7rem; color: var(--muted); }
.text-link {
  display: inline-flex; gap: .75rem; align-items: center; color: var(--gold-dark);
  margin-top: 1.1rem; font-size: .875rem; font-weight: 650; text-underline-offset: .3em;
}
.text-link:hover { color: var(--ink); }
.info-section {
  display: grid; grid-template-columns: .72fr 1.28fr; gap: 2rem 4rem; align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line);
}
.info-section h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.about-copy { max-width: 42rem; color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }
.contact-section { padding-bottom: clamp(3.25rem, 7vw, 5.5rem); }
.contact-direct { margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem 1rem; }
.contact-form label { display: block; min-width: 0; font-size: .875rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem;
  border: 1px solid #a39890; border-radius: 0; background: var(--white); color: var(--ink); font: inherit;
  font-weight: 400;
}
.contact-form input { min-height: 2.8rem; }
.contact-form textarea { min-height: 7rem; resize: vertical; }
.wide-field { grid-column: 1 / -1; }
.contact-actions p { margin-top: .55rem; color: var(--muted); font-size: .85rem; }
.contact-actions [role="status"]:empty { margin: 0; }
.contact-actions [role="status"] { font-weight: 650; }
.withdrawal-form { grid-template-columns: 1fr; max-width: 38rem; margin-block: 1.15rem; }
.withdrawal-review {
  max-width: 38rem; padding: clamp(1rem, 4vw, 1.6rem); margin-block: 1.15rem;
  border: 1px solid var(--line); background: var(--white); overflow-wrap: anywhere;
}
.withdrawal-review h2 { margin-top: 0; }
.withdrawal-review dl { margin-block: 1rem; }
.withdrawal-review dt { font-weight: 650; }
.withdrawal-review dd { margin: 0 0 .7rem; white-space: pre-wrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.form-text-button { border: 0; padding: .45rem 0; color: var(--gold-dark); background: transparent; text-decoration: underline; cursor: pointer; }
.form-error { color: #8b252d; font-weight: 650; }
.footer-nav .withdrawal-link { color: var(--gold); font-weight: 700; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: center;
  margin-block: 1.6rem 2.2rem; color: var(--muted); font-size: .84rem;
}
.breadcrumb a { text-underline-offset: .25em; }
.breadcrumb a:hover { color: var(--gold-dark); }
.book-page { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.book-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "gallery heading" "gallery details"; gap: 2rem clamp(2rem, 6vw, 5.75rem); align-items: start;
}
.book-heading { grid-area: heading; padding-top: 1rem; }
.book-details { grid-area: details; }
.book-detail h1 { font-size: clamp(3.2rem, 5.4vw, 5.4rem); letter-spacing: -.055em; }
.detail-intro { margin-top: 1.05rem; font-size: 1.07rem; color: var(--muted); }
.description { padding-top: 1.55rem; border-top: 1px solid var(--line); }
.description h2, .order h2 { font-size: clamp(1.75rem, 2.5vw, 2.15rem); letter-spacing: -.025em; }
.description p, .order p { margin-top: .5rem; color: var(--muted); }
.book-specs { margin: 1.1rem 0 0; font-size: .9rem; }
.book-specs div { display: grid; grid-template-columns: 6rem 1fr; gap: .45rem 1rem; padding: .38rem 0; }
.book-specs dt { font-weight: 650; }
.book-specs dd { margin: 0; color: var(--muted); }
.order { margin-top: 1.5rem; padding: 1.25rem 1.35rem; background: #eee6da; border-left: 2px solid #ab8045; }
.order .book-price { color: var(--ink); font-size: 1.65rem; font-weight: 700; }
.order .button { margin-top: 1rem; }
.gallery { grid-area: gallery; }
.gallery-stage { position: relative; }
.gallery-photo { margin: 0; aspect-ratio: 5 / 6; background: #fff; }
.gallery.is-interactive .gallery-photo { touch-action: pan-y pinch-zoom; user-select: none; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-arrows {
  position: absolute; inset: 50% .65rem auto; display: flex; justify-content: space-between;
  transform: translateY(-50%); pointer-events: none;
}
.gallery-arrows button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid #fff4e5; border-radius: 50%; background: #251f2de8; color: var(--white);
  cursor: pointer; pointer-events: auto;
}
.gallery-arrows button::before {
  content: ""; width: .8rem; height: .875rem; background: currentColor;
  clip-path: polygon(27% 0, 85% 50%, 27% 100%, 15% 86%, 57% 50%, 15% 14%);
}
.gallery-arrows button[data-direction="-1"]::before { transform: scaleX(-1); }
.gallery-arrows button:hover { background: var(--white); color: var(--plum); }
.gallery-arrows button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-top: .65rem; }
.gallery-thumbs button { padding: .19rem; border: 2px solid transparent; background: var(--white); cursor: pointer; }
.gallery-thumbs button:hover, .gallery-thumbs button[aria-pressed="true"] { border-color: var(--gold-dark); }
.gallery-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.document-page, .checkout-page { padding-block: clamp(2rem, 5vw, 4.5rem); }
.document-page { max-width: 48rem; overflow-wrap: anywhere; }
.document-page h1, .checkout-page h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); margin: .75rem 0 1.45rem; }
.document-page .agb-title { font-size: clamp(1.875rem, 5vw, 3.75rem); }
.agb-title span { display: inline-block; max-width: 100%; }
.document-page h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); margin: 1.75rem 0 .7rem; }
.document-page p { margin-bottom: .9rem; }
.document-note { padding: .8rem 1rem; border-left: 2px solid #ab8045; background: #eee6da; }
.document-page .book-specs { margin-bottom: .7rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.75rem, 6vw, 5rem); align-items: start; }
.guarantee { max-width: 30rem; }
.guarantee img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.checkout-summary { padding: clamp(1.15rem, 4vw, 2.25rem); border: 1px solid var(--line); background: var(--white); }
.checkout-summary h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
.checkout-product { display: flex; gap: 1rem; align-items: center; margin-block: 1.15rem; }
.checkout-product img { width: 3.5rem; height: auto; }
.checkout-product p { color: var(--muted); font-size: .9rem; }
.shipping-choice { display: block; font-weight: 650; }
.shipping-choice select { display: block; width: 100%; margin-top: .4rem; padding: .65rem .75rem; font: inherit; border: 1px solid #a39890; background: var(--white); color: var(--ink); }
.checkout-totals { margin-block: 1.3rem; }
.checkout-totals div { display: flex; gap: 1rem; justify-content: space-between; margin-top: .25rem; }
.checkout-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.checkout-totals .checkout-total { border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .55rem; font-weight: 700; }
.checkout-terms { margin-bottom: .8rem; font-size: .9rem; }

.site-footer { background: #241f2a; color: #e8dce6; }
.footer-inner { padding-block: 1.65rem 1.9rem; }
.footer-inner > p { color: #fff6e8; font: 400 1.25rem/1.25 var(--display); }
.social-links { display: flex; gap: .65rem; margin-bottom: .95rem; }
.social-links a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid #e8dce66b; border-radius: 50%;
}
.social-links a:hover { color: var(--gold); border-color: var(--gold); }
.social-links svg { width: 1.2rem; height: 1.2rem; }
.footer-nav {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem 1.4rem;
  margin-top: .8rem; font-size: .8rem;
}
.footer-nav a, .footer-nav summary, .footer-action {
  display: block; padding-block: .25rem; text-decoration: underline; text-underline-offset: .27em;
}
.footer-action { border: 0; padding-inline: 0; background: none; color: inherit; cursor: pointer; }
.footer-nav summary { cursor: pointer; list-style: none; }
.footer-nav summary::-webkit-details-marker { display: none; }
.footer-nav a:hover, .footer-nav summary:hover, .footer-nav details[open] summary, .footer-action:hover { color: var(--gold); }
.footer-nav details p { max-width: 14rem; margin-top: .2rem; color: #d5c9d4; }
.cookie-dialog {
  width: min(100% - 2rem, 29rem); padding: clamp(1.3rem, 5vw, 2rem);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.cookie-dialog::backdrop { background: #211d29a6; }
.cookie-dialog h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.cookie-dialog p { margin-block: .8rem 1.35rem; color: var(--muted); }

@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.75rem); }
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: .65rem; padding-block: 1.1rem .65rem; }
  .main-nav { flex-wrap: wrap; column-gap: clamp(.65rem, 3vw, 1.35rem); row-gap: 0; font-size: .8rem; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding-block: 3.25rem; }
  .hero h1 { font-size: clamp(3.15rem, 8vw, 4.9rem); }
  .hero-visual { min-height: 20rem; }
  .hero-cover { width: clamp(8.5rem, 25vw, 14rem); }
  .book-detail { gap: 1.65rem; }
  .title-break { display: none; }
  .book-detail h1 { font-size: clamp(2.65rem, 7vw, 4rem); }
}

@media (max-width: 37rem) {
  .hero-inner, .book-detail, .info-section, .checkout-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 2.85rem .65rem; }
  .hero-visual { min-height: 17rem; margin-block: .35rem .9rem; }
  .hero-cover { width: 10rem; }
  .orbit-outer { width: 14.5rem; }
  .orbit-inner { width: 12.75rem; }
  .hero-star-top { top: 16%; right: 18%; }
  .hero-star-bottom { bottom: 15%; left: 18%; }
  .book-row { grid-template-columns: 1fr; }
  .book-row-art { min-height: 12rem; }
  .row-cover { width: 6.65rem; }
  .row-orbit { width: 10.5rem; }
  .info-section { gap: 1.15rem; }
  .book-detail { grid-template-areas: "heading" "gallery" "details"; grid-template-rows: auto; }
  .breadcrumb { margin-block: 1.25rem .6rem; }
  .book-heading { padding-top: .45rem; }
  .description { padding-top: 1rem; }
  .order { margin-top: 1.05rem; }
}

@media (max-width: 28rem) {
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-sticky-header .site-header { transition: none; }
}
