:root {
  --paper: #fffcf7;
  --ink: #292723;
  --muted: #625c52;
  --rose: #87485a;
  --line: #e5dace;
  --sage: #4d6254;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Caveat", cursive;
}

body { font-size: 16px; }
.container { width: min(1210px, calc(100% - 64px)); }
section[id] { scroll-margin-top: 105px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.navwrap { background: #fffcf7f2; }
.nav { height: 76px; }
.nav .brand { color: var(--ink); font: 700 30px/1 var(--script); }
.navlinks a.login-link:not(.button) { display: inline-flex; align-items: center; min-height: 40px; }
.nav-admin { line-height: 1.1; text-align: right; padding-bottom: 10px; font-size: 12px; color: var(--muted); }
.nav-admin a:hover { color: var(--rose); }
.button { background: var(--rose); border-color: var(--rose); padding: 15px 24px; box-shadow: 0 8px 23px #87485a25; }
.button:hover { background: #693444; border-color: #693444; }
.button.ghost { color: var(--rose); background: #fffcf7; }
.eyebrow { color: #7b4553; letter-spacing: .16em; font-size: 11px; }
.hero {
  background: radial-gradient(ellipse at 86% 26%, #eae9dd 0%, transparent 50%),
              radial-gradient(ellipse at 10% 10%, #f4e2dc 0%, transparent 51%), var(--paper);
}
.hero > .container { gap: 55px; min-height: 660px; padding: 52px 0 70px; }
.hero h1 { font: 600 clamp(57px, 6vw, 98px)/.9 var(--display); letter-spacing: -.048em; margin: 19px 0 25px; }
.hero h1 em { color: var(--ink); margin-top: .08em; }
.hero h1 .hand { font: 700 1.04em/.9 var(--script); color: var(--rose); }
.hero .lead { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 46ch; }
.hero-points { gap: 12px 16px; font-size: 12px; color: #554f47; }
.hero-art { height: clamp(410px, 46vw, 570px); isolation: isolate; }
.photo.primary { inset: 3% 3% auto auto; width: 77%; height: 88%; border-radius: 49% 49% 18px 18px; transform: rotate(0); box-shadow: 0 22px 54px #3b2a252d; }
.photo.detail { left: 0; bottom: 5%; width: 39%; height: 41%; transform: rotate(-6deg); border: 7px solid #fffdf8; border-radius: 12px; }
.hero-art .label-float { right: 0; bottom: 0; transform: rotate(3deg); background: #f7f2e8; border: 1px solid #e2d7c7; }
.label-float strong, .script-note, .handwritten-small { font-family: var(--script); color: var(--rose); }
.label-float small { color: var(--muted); }
.floral { color: #87576a; }
.strip { background: #eef0e7; }
.strip span { color: #3d5145; }
.section { padding: clamp(66px, 8vw, 112px) 0; }
.section h2, .section-heading h2, .final h2 { font: 600 clamp(42px, 5.3vw, 75px)/.94 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.section-heading p, .section-desc { font-size: 16px; }
.preview { background: #eee9df; }
.book-grid { align-items: center; gap: clamp(13px, 3vw, 35px); }
.page-card { display: block; border: 6px solid #fffdf9; box-shadow: 0 13px 38px #54443525; border-radius: 9px; }
.page-card .page-title { font-family: var(--script); }
.page-card .page-caption { font-family: "DM Sans", sans-serif; }
.style-option { border: 1px solid var(--line); background: #fffdfa; box-shadow: 0 8px 24px #513f2c0c; }
.style-option:first-child { border: 1px solid #c3949d; }
.style-info h3, .feature h3, .step h3, .offer h3 { font-family: var(--display); font-size: 30px; line-height: 1.02; }
.style-info p, .feature p, .step p { font-size: 14px; }
.quote { background: #eef0e7; }
.final { background: linear-gradient(120deg, #f2ddd9, #fbf2e7 55%, #e7ece1); }
.fade { opacity: 1; transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-card, .style-option, .photo { transition: transform .32s ease, box-shadow .32s ease; }
  .page-card:hover, .style-option:hover { transform: translateY(-6px); box-shadow: 0 21px 44px #513f2c27; }
  .photo.primary:hover { transform: translateY(-4px); }
  .photo.detail:hover { transform: translateY(-5px) rotate(-3deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: appear .65s ease-out both; }
  .hero-art { animation: appear .8s .1s ease-out both; }
  @keyframes appear { from { opacity: 0; transform: translateY(12px); } }
}
@media (max-width: 950px) {
  .hero > .container { grid-template-columns: 1fr; gap: 20px; padding: 48px 0 37px; }
  .hero-art { width: min(510px, 100%); height: clamp(320px, 82vw, 500px); }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 34px); }
  .nav { height: 60px; gap: 7px; }
  .nav .brand { font-size: clamp(17px, 5vw, 24px); }
  .navlinks { gap: 8px; }
  .navlinks .button.small { padding: 8px 10px; }
  .hero h1 { font-size: clamp(43px, 11vw, 67px); }
  .hero .lead { font-size: 15px; }
  .hero .cta { justify-content: center; margin: 16px 0 20px; }
  .hero .label-float { padding: 8px 11px; }
  .hero .label-float strong { font-size: 23px; }
  .hero .floral { font-size: 44px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-grid .page-card:last-child { grid-column: 1 / -1; width: calc((100% - 13px) / 2); justify-self: center; }
}
@media (max-width: 365px) {
  .navlinks .button.small { display: none; }
}
