:root {
  color-scheme: dark;
  --background: #10120f;
  --surface: #1a1c18;
  --text: #f2efe6;
  --muted: #a9aca2;
  --gold: #B08D3E;
  --line: #34372f;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(ellipse 680px 520px at 50% -80px, #2b2c24 0, rgba(21, 23, 19, .82) 42%, transparent 76%),
    var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--background); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; transform: translateY(-180%); padding: 11px 16px; border-radius: 8px; background: var(--gold); color: var(--background); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100%, 520px); margin: 0 auto; padding: 34px 20px max(30px, env(safe-area-inset-bottom)); }
.brand-header { display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; }
.brand img { display: block; width: 230px; height: auto; }
.brand-rule { width: 32px; height: 1px; margin-top: 17px; background: var(--gold); opacity: .78; }

.welcome { padding: 24px 0 34px; text-align: center; }
.welcome-kicker { display: block; margin-bottom: 10px; color: #888b82; font-size: 7px; letter-spacing: .2em; }
.welcome h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 9vw, 42px); font-weight: 400; letter-spacing: -.035em; line-height: 1.14; }
.welcome h1 em { color: var(--gold); font-weight: 400; }
.welcome p { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-heading h2 { margin: 0; color: #c2c4ba; font-size: 10px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.section-heading > span { color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.collection-list { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.collection-card { display: block; overflow: hidden; border: 1px solid #45473c; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 42px rgba(0,0,0,.2); text-decoration: none; transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease; }
.collection-card__visual { position: relative; aspect-ratio: 1.7; overflow: hidden; background: #f2efe7; }
.collection-card__image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.collection-card__badge { position: absolute; top: 13px; left: 13px; z-index: 3; padding: 5px 10px; border: 1px solid rgba(24,26,22,.07); border-radius: 999px; background: rgba(249,249,245,.93); color: #40433a; font-size: 9px; font-weight: 500; letter-spacing: .02em; }

.book-stage { position: relative; height: 274px; overflow: hidden; background: linear-gradient(145deg, #f2f0e8, #e5e2d8); perspective: 900px; }
.book-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 18%, #fff 0, transparent 52%); opacity: .7; }
.book-stage::after { content: ""; position: absolute; right: 11%; bottom: 18px; left: 11%; height: 22px; border-radius: 50%; background: rgba(49, 43, 35, .23); filter: blur(12px); }
.card-badge { position: absolute; z-index: 8; top: 13px; left: 13px; padding: 5px 10px; border: 1px solid rgba(24, 26, 22, .07); border-radius: 999px; background: rgba(249, 249, 245, .93); color: #40433a; font-size: 9px; font-weight: 500; letter-spacing: .02em; }
.book-row { position: absolute; z-index: 2; right: 17px; bottom: 20px; left: 17px; display: flex; align-items: flex-end; justify-content: center; }
.book { position: relative; display: flex; width: 25%; height: 202px; flex-direction: column; padding: 22px 9px 14px; border-radius: 2px 4px 4px 2px; box-shadow: 0 13px 20px rgba(23, 28, 23, .22), inset -3px 0 rgba(255,255,255,.14); color: #f6f1e7; transform: rotateY(-4deg); transform-origin: right center; }
.book:nth-child(2), .book:nth-child(4) { height: 214px; transform: translateY(-2px) rotateY(-2deg); }
.book i, .single-book__cover i { font-size: 7px; font-style: normal; letter-spacing: .18em; }
.book b { margin: auto 0 3px; font-family: var(--serif); font-size: clamp(12px, 3.5vw, 17px); font-weight: 400; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); }
.book small { font-size: 5.5px; letter-spacing: .03em; line-height: 1.25; }
.stage-sage .book-1 { background: #42604f; }
.stage-sage .book-2 { background: #6c7560; }
.stage-sage .book-3 { background: #b17753; }
.stage-sage .book-4 { background: #81605b; }
.stage-blue .book-1 { background: #526a7a; }
.stage-blue .book-2 { background: #657a82; }
.stage-blue .book-3 { background: #786b74; }
.stage-terracotta .book-1 { background: #a2644c; }
.stage-terracotta .book-2 { background: #bc8767; }
.stage-terracotta .book-3 { background: #7a5f5a; }
.stage-terracotta .book-4 { background: #5d5d4f; }
.book-row--three .book { width: 29%; max-width: 118px; }

.single-book { position: absolute; z-index: 2; top: 46px; left: 50%; display: flex; height: 205px; transform: translateX(-50%) rotate(-2deg); filter: drop-shadow(0 18px 12px rgba(32,28,22,.24)); }
.single-book__spine { display: flex; width: 25px; align-items: center; justify-content: center; border-radius: 3px 0 0 3px; background: #9b7951; color: #f7f2e7; font-size: 5px; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.single-book__cover { display: flex; width: 155px; flex-direction: column; padding: 27px 18px 18px; border-radius: 0 4px 4px 0; background: #d8c18e; color: #263029; box-shadow: inset 3px 0 rgba(255,255,255,.23); }
.single-book__cover b { margin: 25px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.12; }
.single-book__cover small { margin-top: auto; font-size: 7px; line-height: 1.4; }
.stage-night { background: linear-gradient(145deg, #e8e8e0, #d9dad3); }
.stage-night .single-book { transform: translateX(-43%) rotate(2deg); }
.stage-night .single-book__spine { background: #2f3f4d; }
.stage-night .single-book__cover { background: #405765; color: #eff0e8; }
.notebook { position: absolute; top: 25px; right: 132px; width: 120px; height: 170px; padding: 25px 14px; border-radius: 3px; background: #aeb8b0; color: #283029; font-family: var(--serif); font-size: 12px; line-height: 1.25; transform: rotate(-8deg); }

.collection-card__body { padding: 22px; }
.collection-card__category { margin: 0 0 8px; color: var(--gold); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.collection-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 7vw, 32px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.collection-card__description { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.collection-card__offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.collection-card__offer-label { color: #a9aa9f; font-size: 10px; }
.collection-card__prices { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.collection-card__prices del { color: #9fa095; font-size: 10px; }
.collection-card__prices strong { font-size: 21px; font-weight: 500; letter-spacing: -.045em; }
.collection-card__action { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-radius: 10px; background: var(--gold); color: #191a15; font-size: 12px; font-weight: 600; transition: background .2s ease; }

.help-link { display: flex; min-height: 82px; align-items: center; gap: 12px; margin-top: 17px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .2s ease; }
.help-link__icon { display: grid; width: 32px; height: 32px; flex-shrink: 0; place-items: center; color: var(--gold); }
.help-link__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.help-link__copy strong { color: #d8d8cf; font-size: 11px; font-weight: 500; }
.help-link__copy > span { color: #a5a69b; font-size: 10px; }
.help-link > svg { width: 17px; color: var(--gold); }

.home-footer { padding-top: 28px; color: #9d9e92; }
.support-menu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support-menu summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; color: #c0c1b5; font-size: 11px; list-style: none; cursor: pointer; }
.support-menu summary::-webkit-details-marker { display: none; }
.support-menu summary svg { width: 16px; color: var(--gold); transition: transform .2s ease; }
.support-menu[open] summary svg { transform: rotate(180deg); }
.support-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; padding: 0 2px 18px; }
.support-menu nav a { display: flex; min-height: 42px; align-items: center; padding: 8px 0; color: var(--muted); font-size: 11px; text-decoration: none; }
.home-footer__identity { padding: 25px 6px 0; text-align: center; font-size: 10px; line-height: 1.8; }
.home-footer__identity p { margin: 0; }
.home-footer__identity .home-footer__name { margin-bottom: 5px; color: #c2c2b6; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.home-footer__email { display: inline-flex; min-height: 44px; align-items: center; color: #b7b8ac; text-underline-offset: 4px; text-decoration-color: #595b4f; }
.home-footer__identity .home-footer__copyright { margin-top: 9px; font-size: 9px; }

@media (hover: hover) {
  .collection-card:hover { border-color: var(--gold); box-shadow: 0 20px 52px rgba(0,0,0,.36); transform: translateY(-2px); }
  .collection-card:hover .collection-card__action { background: #d5bd8b; }
  .help-link:hover { border-color: #777761; }
  .home-footer a:hover { color: var(--text); }
}
@media (min-width: 520px) {
  .page-shell { padding: 52px 24px 36px; }
  .welcome { padding-top: 30px; padding-bottom: 38px; }
  .collection-card__body { padding: 25px; }
}
@media (max-width: 380px) {
  .page-shell { padding-inline: 16px; }
  .book-stage { height: 238px; }
  .book { height: 176px; padding-inline: 7px; }
  .book:nth-child(2), .book:nth-child(4) { height: 187px; }
  .single-book { top: 38px; height: 185px; }
  .single-book__cover { width: 140px; }
  .collection-card__body { padding: 18px; }
  .collection-card__offer-label { flex-basis: 100%; }
  .support-menu nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
