:root {
  color-scheme: light;
  --ink: #25103f;
  --muted: #5a486c;
  --purple: #6205e8;
  --aqua: #00e3cd;
  --tint: #efe6ff;
  --deep: #2b0953;
  --line: #e4d8f0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--purple); }
:focus-visible { outline: 3px solid #087d78; outline-offset: 4px; }
.shell { width: min(calc(100% - 80px), 1160px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; top: 12px; left: 12px; padding: .6rem; background: white; }
.header, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header { min-height: 72px; }
.header nav, .footer-inner div { display: flex; gap: clamp(12px, 3vw, 32px); flex-wrap: wrap; }
.header nav a { text-decoration: none; font-weight: 700; font-size: .94rem; }
.header nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.65rem; font-weight: 900; color: var(--purple); text-decoration: none; letter-spacing: -.06em; }
.brand img { border-radius: 50%; }
.preview { margin: 0; padding: 8px 16px; text-align: center; background: #e8faf6; color: #164f4a; font-size: .81rem; font-weight: 700; }
.intro { background: var(--tint); padding: clamp(32px, 5vw, 63px) 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 5.3vw, 5rem); line-height: 1.02; letter-spacing: -.07em; font-weight: 900; text-wrap: balance; margin-bottom: 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.043em; line-height: 1.13; margin-bottom: 6px; }
h3 { line-height: 1.22; letter-spacing: -.02em; }
.intro p { max-width: 42rem; font-size: clamp(1rem, 1.75vw, 1.18rem); line-height: 1.55; margin-bottom: 0; }
.inventory { padding-block: 20px 56px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 12px; margin-bottom: 28px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.categories { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.categories a { display: block; font-size: .9rem; text-decoration: none; font-weight: 740; border-radius: 6px; padding: 10px 9px; }
.categories a:hover, .categories a[aria-current] { background: var(--tint); color: #4901ab; }
form { display: flex; flex: 1 1 230px; max-width: 280px; gap: 6px; }
input, button { font: inherit; }
input { min-width: 0; flex: 1; border: 1px solid #aa98bb; padding: 9px 10px; border-radius: 6px; background: white; color: var(--ink); }
button, .button { border: 0; border-radius: 6px; background: var(--purple); color: white; font-weight: 750; padding: 10px 16px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #4800b6; }
.results-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.small { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.results-title p { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: white; min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: inherit; }
.card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; }
.card .image { aspect-ratio: 1.52; border-radius: 11px 11px 0 0; }
.image { display: grid; place-items: center; overflow: hidden; background: #f5effe; }
.image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; min-width: 0; display: block; }
.no-photo { color: var(--muted); padding: 25px; }
.card-text { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.card h3 { margin: 5px 0 14px; overflow-wrap: anywhere; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 12px; color: #4800a9; }
.footer { background: var(--deep); color: white; }
.footer-inner { padding-block: 26px; }
.footer h2 { margin: 0; }
.footer a { text-decoration-color: var(--aqua); text-decoration-thickness: 2px; font-weight: 650; }
.empty { border-radius: 10px; background: #faf6ff; padding: 24px; }
.empty h3 { margin-bottom: 8px; }
.detail { padding-block: 24px 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 5vw, 58px); align-items: start; }
.detail-grid .image { aspect-ratio: 1.18; border-radius: 14px; border: 1px solid var(--line); }
.detail h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); overflow-wrap: anywhere; }
.detail-price { font-size: 1.4rem; font-weight: 800; }
.condition-label { margin-bottom: .6rem; }
.condition-note, .description-text { color: var(--muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.gallery-frame { position: relative; }
.gallery-controls { position: absolute; inset: 0 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; padding: 0 0 4px; font-size: 1.85rem; line-height: 1; background: white; color: var(--deep); box-shadow: 0 2px 12px #25103f35; pointer-events: auto; }
.gallery-controls button:hover { background: var(--tint); }
.gallery-count { position: absolute; bottom: 12px; right: 12px; border-radius: 99px; padding: 4px 10px; background: var(--deep); color: white; font-size: .78rem; font-weight: 650; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 7px; padding: 5px; }
.gallery [hidden] { display: none; }
.gallery-thumb { flex: 0 0 auto; width: clamp(54px, 8vw, 70px); aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); padding: 3px; background: white; }
.gallery-thumb:hover { background: var(--tint); }
.gallery-thumb[aria-pressed="true"] { border: 2px solid var(--purple); padding: 2px; }
.gallery-thumb:focus-visible { outline-offset: 1px; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-original { display: inline-block; margin-top: 9px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 0 0 24px; padding: 13px 16px; border-radius: 8px; background: #faf6ff; }
.guide-links a { font-weight: 650; }
.detail .guide-links { margin: 28px 0 0; }
.guide-page { padding-block: 24px 52px; }
.guide-page header, .guide-content { max-width: 70ch; }
.guide-page h1 { font-size: clamp(2.3rem, 5vw, 4.15rem); text-wrap: initial; }
.guide-page header p { font-size: 1.16rem; }
.guide-content { border-top: 1px solid var(--line); padding-top: 24px; }
.guide-content section { margin-bottom: 26px; }
.guide-content h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 8px; }
.guide-page p { color: var(--muted); line-height: 1.65; }
.guide-comparison { width: 100%; border: 1px solid var(--line); border-spacing: 0; border-radius: 10px; margin-bottom: 30px; text-align: left; font-size: .92rem; }
.guide-comparison caption { text-align: left; color: var(--muted); margin-bottom: 9px; }
.guide-comparison th, .guide-comparison td { padding: 10px; vertical-align: top; }
.guide-comparison thead { background: var(--tint); }
.guide-comparison tbody tr + tr > * { border-top: 1px solid var(--line); }
.guide-stock, .guide-sources ul { padding-left: 1.25rem; line-height: 1.65; }
.guide-stock a { font-weight: 650; }
.guide-sources { color: var(--muted); font-size: .88rem; }
.guide-sources h2 { font-size: 1rem; letter-spacing: normal; }
.listing-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 58px); border-top: 1px solid var(--line); margin-top: 34px; padding-top: 28px; }
.listing-details > :only-child { grid-column: 1 / -1; max-width: 74ch; }
.listing-details h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 14px; }
.listing-specifics dl { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; overflow-wrap: anywhere; }
.listing-specifics dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; padding: 9px 12px; }
.listing-specifics dl > div:nth-child(odd) { background: #faf6ff; }
.listing-specifics dt { font-weight: 650; }
.listing-specifics dd { color: var(--muted); margin: 0; }
.button { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.status { padding-block: 48px 65px; }
@media (max-width: 840px) { .shell { width: calc(100% - 44px); } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 62px; }
  .header nav a { font-size: .85rem; }
  form { max-width: none; }
  .toolbar { gap: 12px; }
  .categories { gap: 3px 4px; }
  .categories a { padding: 7px 8px; }
  .grid, .detail-grid, .listing-details { grid-template-columns: minmax(0, 1fr); }
  .guide-comparison { font-size: .82rem; }
  .guide-comparison th, .guide-comparison td { padding-inline: 6px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
