/* Hallmark · theme: custom · idea: "An artist alley in a storefront" · vibe: "Playful merchandise, black poster, hot pink" · hero: product still life · posture: bold · axes: light/grotesk-heavy/chromatic-pink */
/* Critique: Keep the poster bold and let the shop photography provide the texture. */
/* Waiver 24b: Compact marketplace controls and thumbnail gutters use denser spacing to follow the supplied storefront layout. */
:root {
  --ink: #191619;
  --poster: #040304;
  --paper: #fffdfd;
  --pink: #ff389c;
  --pink-ink: #a90755;
  --pink-soft: #fff0f8;
  --muted: #625960;
  --line: #e6dfe3;
  --panel: #f2eff1;
  --quiet: #faf7f9;
  --gold: #ffd736;
  --shade: #2e15245c;
  --focus: #9a0b57;
  --font: 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --display: 'Arial Black', 'Avenir Next', system-ui, sans-serif;
  --wrap: 1376px;
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow-y: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { background: var(--panel); color: var(--muted); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { inline-size: 20px; block-size: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: clamp(10px, 1.3vw, 20px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.07em; white-space: nowrap; }
.brand img { flex: none; }
.brand-pink { color: var(--pink-ink); }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); padding: 0; }
.icon-button:hover { background: var(--pink-soft); }
.menu-toggle { border-color: var(--paper); }
.account { border: 0; background: var(--pink); }
.account:hover { background: var(--pink-soft); }
.search { display: flex; border: 1px solid var(--pink-ink); border-radius: 100px; height: 40px; align-items: center; min-width: 0; }
.search button { background: none; border: 0; border-radius: 100px; display: grid; place-items: center; width: 40px; height: 38px; color: var(--pink-ink); flex-shrink: 0; }
.search input { background: none; border: 0; min-width: 0; width: 100%; padding: 3px 12px 3px 0; font-size: 14px; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.menu { position: absolute; left: var(--gutter); top: calc(100% + 6px); width: min(245px, calc(100% - 2 * var(--gutter))); padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 25px var(--shade); }
.menu a { display: block; border-radius: 6px; padding: 10px 14px; font-weight: 700; }
.menu a:hover { background: var(--pink-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; padding: 9px 13px; text-align: center; font-weight: 800; font-size: 14px; min-height: 40px; }
.button svg { width: 17px; height: 17px; }
.button:active, .icon-button:active, .filter:active { translate: 0 1px; }
.pink { background: var(--pink); color: var(--ink); }
.outline { background: var(--paper); color: var(--pink-ink); border-color: var(--line); }
.outline:hover, .outline-ink:hover { background: var(--pink-soft); border-color: var(--pink-ink); }
.dark { background: var(--ink); color: var(--paper); }
.white { background: var(--paper); color: var(--ink); }
.white:hover, .dark:hover, .pink:hover { background: var(--pink-soft); color: var(--ink); }
.outline-ink { background: var(--paper); border-color: var(--ink); }

.hero { overflow: clip; background: var(--poster); color: var(--paper); }
.hero-inner { min-height: clamp(390px, 31.25vw, 590px); display: grid; align-items: center; position: relative; isolation: isolate; }
.hero-image { position: absolute; inset: 0 0 0 auto; height: 100%; width: 64%; object-fit: cover; object-position: 47% 50%; z-index: -2; }
.hero-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--poster) 32%, transparent 63%); z-index: -1; }
.hero-copy { padding-block: 26px; }
.hero h1 { font-family: var(--display); font-size: clamp(54px, 6.1vw, 116px); line-height: .99; font-weight: 900; letter-spacing: -.078em; }
.hero p { font-size: clamp(15px, 1.55vw, 22px); margin: 21px 0 24px; }
.hero .button, .seller-cta .button, .discord-strip .button { border-radius: 100px; padding-inline: 17px; }
.hero :focus-visible, .discord-strip :focus-visible, .seller-cta :focus-visible { outline-color: var(--paper); }
.discord-strip, .seller-cta { background: var(--pink); }
.discord-inner { min-height: clamp(92px, 7.2vw, 140px); display: flex; align-items: center; gap: 17px; padding-block: 14px; }
.discord-icon { display: grid; place-items: center; width: 51px; height: 51px; flex: none; background: var(--ink); color: var(--paper); border-radius: 50%; }
.discord-icon svg { width: 29px; height: 29px; }
.discord-inner h2 { font-size: clamp(23px, 2.5vw, 38px); letter-spacing: -.055em; line-height: 1; }
.discord-inner p { font-size: 14px; margin-top: 6px; }
.discord-inner .button { margin-left: auto; flex: none; }

.featured { margin-block: clamp(24px, 3vw, 48px) 0; }
.featured-panel { padding: clamp(12px, 2vw, 26px); background: var(--panel); border-radius: 16px; }
.featured-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 60px); padding: 3px 6px 21px; }
.featured-nav a { font-size: clamp(13px, 1.45vw, 22px); white-space: nowrap; font-weight: 900; display: flex; align-items: center; gap: 7px; }
.featured-nav a:hover { color: var(--pink-ink); }
.featured-nav svg { inline-size: 23px; block-size: 23px; fill: var(--gold); stroke: var(--gold); }
.feature-lane { padding: 13px 14px 15px; background: var(--paper); border-radius: 8px; }
.feature-lane + .feature-lane { margin-top: 12px; }
.lane-head, .shop-toolbar, .wall-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lane-head h2 { font-size: clamp(15px, 1.55vw, 23px); font-weight: 900; letter-spacing: -.035em; }
.lane-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lane-head a, .text-button { border: 0; padding: 0; background: none; display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 800; color: var(--pink-ink); flex: none; }
.lane-head a:hover, .text-button:hover { text-decoration: underline; }
.lane-head svg, .text-button svg { width: 15px; height: 15px; }
.sample-label { font-size: 10px; font-weight: 800; letter-spacing: 0; background: var(--pink-soft); color: var(--pink-ink); padding: 3px 6px; border-radius: 4px; vertical-align: middle; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(13px, 2vw, 24px); }
.product-grid.dialog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.product { min-width: 0; position: relative; }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.product-open:hover .product-title { color: var(--pink-ink); }
.product-open img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel); border-radius: 5px; }
.product-title { display: block; margin-top: 8px; font-size: 15px; line-height: 1.25; font-weight: 800; }
.compact .product-title { font-size: 13px; }
.product-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.save-item { position: absolute; right: 8px; top: 8px; width: 33px; height: 33px; }
.save-item svg { width: 16px; height: 16px; }
.save-item[aria-pressed='true'] { color: var(--pink-ink); }
.save-item[aria-pressed='true'] svg { fill: currentColor; }
.progress { height: 5px; width: 100%; border: 0; border-radius: 8px; display: block; margin-top: 9px; background: var(--line); overflow: clip; accent-color: var(--pink-ink); }
.progress::-webkit-progress-bar { background: var(--line); }
.progress::-webkit-progress-value { background: var(--pink); border-radius: 8px; }
.progress::-moz-progress-bar { background: var(--pink); border-radius: 8px; }
.campaign-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.request { background: var(--gold); border: 0; border-radius: 30px; padding: 5px 9px; font-weight: 800; font-size: 11px; }
.request:hover { background: var(--pink-soft); }

.section { margin-block: clamp(44px, 6vw, 84px); }
.section-head { text-align: center; margin-bottom: clamp(16px, 2.5vw, 28px); }
.section-head h2, .seller-cta h2 { font-family: var(--display); font-size: clamp(29px, 3vw, 48px); line-height: 1.12; letter-spacing: -.065em; font-weight: 900; }
.section-head p, .seller-cta p { margin-top: 8px; font-size: 15px; }
.section-head p { color: var(--muted); }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 15px; }
.filter { min-height: 36px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); padding: 6px 14px; font-size: 13px; font-weight: 700; }
.filter:hover { background: var(--pink-soft); }
.filter[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results { font-size: 13px; color: var(--muted); margin-bottom: 10px; min-height: 18px; }
.regular { row-gap: 29px; }
.load-row { text-align: center; margin-top: 24px; }
.load-row:has([hidden]) { display: none; }
.empty-state { grid-column: 1 / -1; padding: 26px 15px; text-align: center; color: var(--muted); background: var(--quiet); border-radius: 8px; }

.shop-toolbar { font-size: 13px; font-weight: 800; }
.shop-toolbar > div { display: flex; gap: 8px; }
.prev svg { transform: rotate(180deg); }
.shop-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3.25); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 12px; }
.shop-card { min-width: 0; scroll-snap-align: start; padding: 0; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: var(--quiet); overflow: clip; }
.shop-card:hover { border-color: var(--pink-ink); }
.shop-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-images img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shop-name { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 13px; font-weight: 900; font-size: clamp(13px, 1.4vw, 18px); }
.wall-panel { border-radius: 13px; background: var(--panel); padding: clamp(14px, 2vw, 26px); }
.wall-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.wall-grid article { padding: 19px; background: var(--paper); border-radius: 8px; }
.wall-grid svg { color: var(--pink-ink); }
.wall-grid h3 { margin-top: 7px; font-size: 16px; }
.wall-grid p, .wall-note { color: var(--muted); margin-top: 5px; font-size: 13px; line-height: 1.45; }
.wall-note { margin-top: 13px; }
.faq { max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding-block: 17px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; width: 23px; height: 23px; flex: none; place-items: center; border-radius: 50%; background: var(--panel); }
.faq details[open] summary { color: var(--pink-ink); }
.faq details[open] summary::after { content: '−'; background: var(--pink-soft); }
.faq details p { max-width: 72ch; color: var(--muted); padding: 0 15px 17px 0; font-size: 15px; line-height: 1.55; }
.seller-cta { text-align: center; padding: clamp(35px, 5vw, 68px) var(--gutter); }
.seller-cta .button { margin-top: 15px; }
.footer { padding-block: 20px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.footer .brand { color: var(--ink); font-size: 21px; }

dialog { width: min(calc(100% - 32px), 500px); max-height: calc(100% - 32px); border: 0; padding: 0; border-radius: 14px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: var(--shade); }
.modal-inner { position: relative; padding: 24px; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
#modal-title { margin: 0 40px 9px 0; font-size: 24px; line-height: 1.16; letter-spacing: -.045em; }
.modal-inner p { color: var(--muted); margin: 8px 0 12px; line-height: 1.5; }
.detail-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 7px; margin-bottom: 15px; }
.dialog-list { padding: 0; list-style: none; margin: 0; }
.dialog-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 880px) {
  .hero-image { width: 76%; object-position: 45% 50%; }
  .hero-inner::before { background: linear-gradient(90deg, var(--poster) 22%, transparent 75%); }
  .product-grid.compact { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(142px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; }
  .compact .product { scroll-snap-align: start; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 116px; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 6px; padding-block: 8px; }
  .header-inner .button { width: 36px; min-height: 36px; padding: 6px; }
  .header-inner .button span { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); }
  .header-inner .icon-button { width: 33px; height: 33px; }
  .search { grid-column: 1 / -1; grid-row: 2; height: 36px; }
  .search button { height: 34px; }
  .brand { font-size: 22px; gap: 5px; }
  .brand img { width: 27px; height: 27px; }
  .hero-inner { min-height: 475px; align-items: end; }
  .hero-image { width: 100%; height: 68%; object-position: 54% 45%; }
  .hero-inner::before { background: linear-gradient(0deg, var(--poster) 23%, transparent 76%); }
  .hero h1 { font-size: clamp(42px, 10vw, 60px); }
  .hero p { margin-block: 9px 13px; font-size: 14px; }
  .discord-inner { gap: 9px; }
  .discord-icon { width: 35px; height: 35px; }
  .discord-icon svg { width: 22px; }
  .discord-inner p { font-size: 11px; }
  .discord-inner .button { font-size: 11px; padding: 6px 9px; min-height: 35px; }
  .discord-inner .button svg { display: none; }
  .featured-nav { justify-content: flex-start; flex-wrap: wrap; gap: 8px 15px; padding-bottom: 12px; }
  .featured-nav svg { width: 16px; height: 16px; }
  .feature-lane { padding: 10px; }
  .lane-head a { font-size: 11px; }
  .product-grid.regular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-track { grid-auto-columns: 76%; }
  .wall-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .wall-grid article { padding: 12px; }
}

@media (max-width: 360px) {
  .header-inner .brand { font-size: 19px; }
  .header-inner .brand img { display: none; }
  .header-inner { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
