:root {
  --paper: #fffdf8;
  --white: #fff;
  --ink: #22203e;
  --muted: #5c5871;
  --purple: #5929a4;
  --purple-dark: #462080;
  --lavender: #f0e8fb;
  --line: #e8e1ec;
  --wash: #faf7fc;
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7541cf; outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 4; background: white; padding: 12px; }
.shell { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: block; width: max-content; margin-left: -3px; }
.wordmark img { width: 151px; height: auto; }
.main-nav, .header-actions, .hero-actions, .footer-links { display: flex; align-items: center; gap: 10px; }
.main-nav { gap: clamp(17px, 3vw, 40px); }
.main-nav a, .footer a { text-decoration: none; font-weight: 750; }
.main-nav a { font-size: .94rem; white-space: nowrap; }
.main-nav a:hover, .footer a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .25em; }
.header-actions { justify-content: end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 10px 17px; background: transparent; color: var(--ink); font-weight: 750; font-size: .92rem; line-height: 1.25; text-align: center; text-decoration: none; }
.button .icon { width: 18px; height: 18px; }
.button.compact { min-height: 40px; padding: 8px 12px; }
.button.primary { color: white; background: var(--purple); }
.button.primary:hover { background: var(--purple-dark); }
.button.outline { border-color: #d8cbe8; color: var(--purple-dark); background: var(--white); }
.button.outline:hover, .button.quiet:hover { background: var(--lavender); border-color: #d6bee9; }
.button.etsy-button { background: var(--lavender); color: var(--purple-dark); }
.button.etsy-button:hover { background: #e5d7f7; }
.count { min-width: 22px; min-height: 22px; padding-inline: 4px; border-radius: 50px; background: white; display: inline-grid; place-items: center; font-size: .78rem; }
.compare-count { background: #e9ddfa; color: var(--purple-dark); }
.button:disabled { cursor: default; opacity: .52; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.06; letter-spacing: -.042em; }
.hero { display: grid; grid-template-columns: .96fr 1.04fr; min-height: 474px; margin-top: 32px; overflow: hidden; border: 1px solid #e8d9f7; border-radius: 28px; background: #f1e9fc; }
.hero-copy { padding: clamp(35px, 5vw, 67px) 0 clamp(35px, 5vw, 65px) clamp(28px, 5vw, 64px); align-self: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; color: var(--purple-dark); font-size: .79rem; letter-spacing: .075em; font-weight: 850; text-transform: uppercase; }
.eyebrow .icon { fill: #f6ca51; stroke: #6f3eae; width: 18px; height: 18px; }
.hero h1 { max-width: 610px; font-size: clamp(2.7rem, 4.28vw, 4.35rem); letter-spacing: -.066em; line-height: .98; }
.hero h1 span { display: block; color: var(--purple); }
.hero-description { font-size: clamp(1rem, 1.5vw, 1.15rem); color: #504561; max-width: 28rem; margin: 22px 0 24px; }
.hero-actions { flex-wrap: wrap; gap: 10px; }
.hero-actions .button { padding: 13px 18px; min-height: 49px; }
.hero-actions .outline { background: #fbf7ff; }
.hero-visual { position: relative; min-height: 440px; isolation: isolate; overflow: hidden; }
.hero-orbit { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: #e2cff8; left: 6%; top: 49%; transform: translateY(-50%); z-index: -1; }
.hero-orbit::after { content: ""; position: absolute; inset: 17px; border: 1px solid #d3b5f0; border-radius: inherit; }
.dot-pattern { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(#bea0e7 1.5px, transparent 1.5px); background-size: 16px 16px; mask-image: radial-gradient(ellipse at 57% 51%, transparent 39%, black 73%, transparent 92%); }
.hero-book, .hero-sheet { position: absolute; height: auto; transform-origin: center; background: #fffdf9; }
.hero-book { width: 46%; max-width: 301px; left: 18%; top: 9%; border-radius: 6px 10px 10px 6px; transform: rotate(-9deg); box-shadow: 1px 3px 0 #62269e, 4px 5px 0 #fff4d8, 5px 8px 0 #ccb3dc, 12px 23px 35px #39205842; }
.hero-sheet { width: 33%; max-width: 205px; border-radius: 4px; border: 1px solid #e7e0eb; box-shadow: 2px 12px 23px #39205835; }
.sheet-front { left: 58%; top: 24%; transform: rotate(15deg); }
.sheet-back { left: 60%; top: 17%; transform: rotate(22deg); }
.hero-sticker { position: absolute; left: 72%; top: 72%; display: grid; justify-items: center; align-content: center; width: 91px; aspect-ratio: 1; transform: rotate(10deg); border-radius: 50%; background: #ffd561; color: #35214d; border: 3px solid #fff3ca; box-shadow: 0 5px 0 #b08ac866; font: 900 2.1rem/.98 var(--display); letter-spacing: -.07em; }
.hero-sticker span { font: 850 .66rem/1.15 var(--body); letter-spacing: 0; margin-top: 4px; }
.hero-spark { position: absolute; stroke: #7944ad; stroke-width: 1.25; fill: #ffd361; }
.spark-one { width: 31px; left: 9%; top: 25%; transform: rotate(10deg); }
.spark-two { width: 37px; left: 85%; top: 11%; transform: rotate(-12deg); }
.spark-three { width: 24px; left: 10%; top: 78%; fill: #f7aad0; }
.details-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(24px, 5.3vw, 72px); padding: 21px 10px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.details-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 750; color: #4d435e; }
.details-strip .icon { color: var(--purple); width: 21px; height: 21px; }
.shop { padding-top: 47px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2, .help h2 { font-size: clamp(2rem, 3.3vw, 3.05rem); }
.section-heading p, .help p { margin: 9px 0 0; color: var(--muted); }
.catalog-controls { display: flex; justify-content: space-between; gap: 16px; margin-top: 25px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filters button { min-height: 42px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; color: #473d57; background: #fff; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.filters button:hover { border-color: #aa85d7; }
.filters button[aria-pressed=true] { background: var(--purple); border-color: var(--purple); color: white; }
.search { width: min(282px, 100%); min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); }
.search:focus-within { border-color: #774caf; box-shadow: 0 0 0 2px #e5d6f4; }
.search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .91rem; }
.search input:focus-visible { outline: none; }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 15px 0 12px; }
.catalog-meta p { margin: 0; color: var(--muted); font-size: .875rem; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { min-height: 37px; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; appearance: none; padding: 6px 34px 6px 10px; background: white; font-size: .875rem; }
.select-wrap .icon { position: absolute; right: 9px; pointer-events: none; color: var(--purple); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: white; border-radius: 17px; border: 1px solid #e9e0ec; }
.product-visual { height: clamp(175px, 18.4vw, 245px); width: 100%; padding: 0; border: 0; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; background: var(--tile, #f1e6fc); }
.product-visual::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: #fff8; z-index: -1; }
.product-visual:focus-visible { outline-offset: -4px; }
.product-visual img { position: absolute; height: 84%; width: auto; max-width: 63%; object-fit: contain; border-radius: 4px; box-shadow: 3px 7px 18px #30213c2e; transition: transform .2s ease; }
.product-visual .cover-art { transform: rotate(-6deg); }
.product-visual:hover .cover-art { transform: rotate(-3deg) scale(1.045); }
.product-visual .secondary-art { height: 75%; transform: translateX(39%) rotate(13deg); opacity: .88; }
.product-visual .bundle-art { transform: translateX(-16%) rotate(-7deg); }
.product-visual:hover .bundle-art { transform: translateX(-16%) rotate(-3deg) scale(1.05); }
.product-visual .single-art { height: 76%; background: #fff; padding: 5px; }
.product-visual .art-spark { position: absolute; width: 17px; height: 17px; color: #753f9b; stroke-width: 1.3; top: 23%; left: 15%; opacity: .53; }
.product-visual .art-spark.right { left: auto; right: 13%; top: auto; bottom: 19%; width: 13px; height: 13px; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: 17px 17px 15px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-format { font-size: .82rem; color: var(--purple-dark); font-weight: 800; }
.product-price { font-size: 1.04rem; font-weight: 900; white-space: nowrap; }
.product h3 { margin-top: 5px; font-size: clamp(1.28rem, 2vw, 1.65rem); line-height: 1.1; }
.product p { color: var(--muted); font-size: .9rem; line-height: 1.42; margin: 8px 0 15px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .button { flex: 1; min-width: 0; padding-inline: 9px; min-height: 40px; font-size: .86rem; }
.product-actions .icon-button { flex: 0 0 41px; }
.icon-button { width: 41px; height: 41px; padding: 0 !important; }
.icon-button[aria-pressed=true] { background: var(--lavender); border-color: #ab80db; }
.empty { grid-column: 1/-1; text-align: center; padding: 45px 18px; background: #fff; border: 1px dashed #d7c8e1; border-radius: 16px; }
.empty p { margin: 8px 0 18px; color: var(--muted); }
.more-wrap { text-align: center; margin-top: 25px; }
.help { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; background: #f3ebfb; border: 1px solid #eadff5; border-radius: 21px; padding: clamp(22px, 4vw, 48px); margin: 57px auto 48px; }
.help h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.help-items { display: grid; gap: 8px; }
.help details { background: #fff; border: 1px solid #e5d9f1; border-radius: 10px; overflow: hidden; }
.help summary { list-style: none; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 760; }
.help summary::-webkit-details-marker { display: none; }
.help details[open] .icon { transform: rotate(180deg); }
.help details p { margin: 0; padding: 0 14px 14px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { width: 110px; height: auto; }
.footer-links { gap: 18px; font-size: .88rem; }
.dialog { width: min(900px, calc(100% - 32px)); max-height: min(90dvh, 880px); padding: 0; color: var(--ink); background: #fffefa; border: 1px solid #ddd0e7; border-radius: 20px; box-shadow: 0 25px 90px #2111305e; overflow: auto; overscroll-behavior: contain; }
.dialog::backdrop { background: #291e3f91; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #fffefa; padding: 16px 22px; }
.dialog-head h2 { font-size: clamp(1.42rem, 3vw, 2rem); }
.dialog-head .icon-button { flex: none; }
.dialog-body { padding: 22px; }
.preview-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.preview-stage { margin: 0; text-align: center; }
.preview-paper { display: grid; place-items: center; min-height: 315px; background: var(--lavender); border-radius: 13px; padding: 14px; }
.preview-paper img { display: block; max-height: min(49dvh, 450px); width: auto; box-shadow: 2px 6px 14px #47365a28; background: white; }
.preview-stage figcaption { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 9px; }
.gallery-controls span { color: var(--muted); font-size: .9rem; min-width: 54px; }
.preview-info > p { color: var(--muted); margin: 9px 0 16px; }
.preview-info .preview-price { color: var(--ink); font-size: 1.55rem; font-weight: 900; margin: 0; }
.preview-info h3 { font-size: 1.16rem; margin: 20px 0 8px; }
.word-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.word-list li { border-radius: 6px; background: var(--lavender); color: var(--purple-dark); padding: 3px 8px; font-size: .8rem; font-weight: 780; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.preview-info .small, .small { font-size: .88rem; color: var(--muted); }
.compare-dialog { width: min(1020px, calc(100% - 32px)); }
.compare-switch { margin-bottom: 14px; }
.compare-scroll { overflow: auto; padding: 2px; }
.compare-table { min-width: 470px; width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 11px 9px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .92rem; }
.compare-table th { font-weight: 820; }
.compare-table thead th { background: var(--lavender); }
.compare-table thead th:first-child { width: 22%; }
.compare-table tbody th { color: var(--purple-dark); }
.compare-table .button { margin: 4px 0; min-height: 36px; padding: 7px 10px; }
.compare-table .table-title { display: block; font-weight: 900; }
.compare-table .text-button { display: block; }
.compare-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-table .compare-actions .button { margin: 0; }
.toast { position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 9px 15px; border-radius: 9px; background: #30214a; color: white; box-shadow: 0 4px 18px #2d1e4160; text-align: center; font-size: .9rem; pointer-events: none; }
.toast:empty { display: none; }
.dialog-feedback { margin: 12px 0 0; color: var(--purple-dark); font-size: .9rem; }
.dialog-feedback:empty { margin: 0; }
@media (max-width: 1000px) {
  .shell { width: min(1216px, calc(100% - 52px)); }
  .hero { min-height: 405px; }
  .hero-visual { min-height: 385px; }
  .hero-book { top: 17%; width: 47%; }
  .sheet-front { top: 29%; }
  .sheet-back { top: 22%; }
  .hero-sticker { top: 69%; width: 74px; font-size: 1.75rem; }
  .hero-sticker span { font-size: .58rem; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: 3px 8px; padding-block: 5px 8px; min-height: 0; }
  .wordmark img { width: 118px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .main-nav { grid-row: 2; grid-column: 1/-1; justify-content: center; gap: clamp(22px, 8vw, 50px); }
  .main-nav a { padding: 6px 0 3px; font-size: .9rem; }
  .hero { grid-template-columns: 1fr; margin-top: 18px; }
  .hero-copy { padding: 28px 23px 6px; }
  .hero h1 { font-size: clamp(2.35rem, 7.6vw, 4.6rem); }
  .hero-description { margin: 15px 0 17px; }
  .hero-visual { width: min(100%, 480px); margin: auto; min-height: 0; aspect-ratio: 1.32; }
  .hero-book { left: 19%; top: 7%; width: 45%; }
  .sheet-front { top: 21%; }
  .sheet-back { top: 16%; }
  .hero-sticker { top: 71%; }
  .details-strip { justify-content: flex-start; gap: 8px 18px; padding: 14px 5px; }
  .details-strip span { font-size: .82rem; }
  .shop { padding-top: 30px; }
  .catalog-controls { flex-wrap: wrap; margin-top: 17px; }
  .search { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-content { padding: 12px; }
  .product-actions { gap: 5px; flex-wrap: wrap; }
  .product-actions .button { flex: 1 1 34%; }
  .product-actions .icon-button { flex: 0 0 38px; }
  .help { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .preview-layout { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 8px; gap: 5px; font-size: .84rem; }
  .hero-copy { padding-inline: 17px; }
  .hero h1 { font-size: clamp(1.85rem, 9.1vw, 2.4rem); }
  .hero-actions { gap: 7px; }
  .hero-actions .button { padding-inline: 9px; font-size: .81rem; }
  .hero-sticker { width: 64px; font-size: 1.47rem; }
  .hero-sticker span { font-size: .53rem; white-space: nowrap; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .compare-launch { min-height: 39px; }
  .filters button { font-size: .82rem; padding-inline: 9px; min-height: 39px; }
  .product-visual { height: 138px; }
  .product-content { padding: 10px; }
  .product-meta { gap: 4px; }
  .product-format, .product p { font-size: .81rem; }
  .product-price { font-size: .94rem; }
  .product-actions .button { font-size: .79rem; }
  .product-actions .icon-button { flex: 0 0 35px; }
  .footer-inner { flex-wrap: wrap; column-gap: 13px; row-gap: 0; padding-block: 12px; }
  .dialog-head, .dialog-body { padding: 14px; }
}
@media (max-width: 360px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 3px 4px; }
  .wordmark img { width: 88px; }
  .header-actions .button { padding-inline: 6px; font-size: .8rem; }
  .header-actions .button .icon { width: 15px; height: 15px; }
  .main-nav { gap: 19px; }
  .grid { grid-template-columns: 1fr; }
  .product-visual { height: 183px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
