/* Curio Party. Colours and type follow the Big Cartel theme: cream paper, deep green ink. */
:root {
  --paper: #f8f1e6;
  --paper-2: #efe5d4;
  --ink: #203127;
  --ink-soft: #4d5c52;
  --accent: #b9472f;
  --line: rgba(32, 49, 39, 0.18);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Space Grotesk', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1400px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.4em; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
.label, .announce, .button, .chips a, .card-price, .sort, .count, .price, .site-nav a, .cart-link, .menu-toggle {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.label { color: var(--ink-soft); margin: 0 0 12px; }
.label a { text-decoration: none; }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 42em; color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.button {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 14px 22px; text-decoration: none; cursor: pointer; border-radius: 0; margin: 0 8px 8px 0;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { color: var(--paper); }
.button:disabled { opacity: 0.5; cursor: wait; }

/* ---------- header ---------- */
.announce { background: var(--ink); color: var(--paper); text-align: center; padding: 9px var(--gutter); font-size: 11px; }
.site-header {
  display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.logo img { width: 56px; height: 56px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a, .cart-link { text-decoration: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--paper); font-size: 11px; margin-left: 4px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 12px 0; font-size: 14px; }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; }

/* ---------- home ---------- */
.hero { display: grid; gap: 32px; padding: 40px 0 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 5fr 6fr; padding: 64px 0 80px; } }

/* hero gallery: crossfade with a slow zoom */
.hero-gallery { position: relative; }
.hg-stage { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: var(--paper-2); box-shadow: 0 10px 40px rgba(32, 49, 39, 0.18); touch-action: pan-y; }
@media (min-width: 600px) and (max-width: 899px) { .hg-stage { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) { .hg-stage { aspect-ratio: 5 / 6; max-height: 78vh; } }
.hg-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hg-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hg-slide.is-active { opacity: 1; z-index: 1; }
.hg-slide.is-active img { animation: hg-zoom 9s ease-out forwards; }
@keyframes hg-zoom { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hg-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.hg-dots { display: flex; gap: 6px; }
.hg-dot { width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hg-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.hg-dot.is-active::after { background: var(--ink); animation: hg-fill 5.5s linear forwards; transform-origin: left; }
.hero-gallery.is-paused .hg-dot.is-active::after, .hero-gallery.is-still .hg-dot.is-active::after { animation: none; }
@keyframes hg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* page-load entrance */
.hero-text > * { opacity: 0; transform: translateY(16px); animation: rise 0.8s ease forwards; }
.hero-text > :nth-child(2) { animation-delay: 0.1s; }
.hero-text > :nth-child(3) { animation-delay: 0.2s; }
.hero-text > :nth-child(4) { animation-delay: 0.3s; }
.hero-gallery { opacity: 0; animation: rise 1s 0.15s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* cards fade up as they scroll into view */
.js .card, .js .trust li, .js .cat-tiles li { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .in-view { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hg-slide { transition: none; }
  .hg-slide.is-active img, .hg-dot.is-active::after { animation: none; }
  .hero-text > *, .hero-gallery { opacity: 1; transform: none; animation: none; }
  .js .card, .js .trust li, .js .cat-tiles li { opacity: 1; transform: none; transition: none; }
}
.home-section { padding: 32px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tiles a { display: block; text-decoration: none; }
.cat-tiles img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--paper-2); }
.cat-tiles span { display: block; font-family: var(--serif); font-size: 20px; margin-top: 8px; }

/* ---------- shop ---------- */
.shop-head { padding: 40px 0 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.chips a { flex: none; border: 1px solid var(--line); padding: 9px 14px; text-decoration: none; border-radius: 999px; white-space: nowrap; }
.chips a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; margin-bottom: 16px; }
.count { margin: 0; color: var(--ink-soft); }
.sort select { font: inherit; text-transform: none; background: transparent; border: 1px solid var(--line); padding: 6px 8px; color: var(--ink); margin-left: 6px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card a { display: block; text-decoration: none; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; object-fit: cover; }
@media (hover: hover) { .card a:hover .alt { opacity: 1; } }
.card-title { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.25; margin-top: 10px; }
.card-price { display: block; margin-top: 4px; color: var(--ink-soft); }
.card.is-sold .card-img img { opacity: 0.75; }
.more-wrap { text-align: center; margin-top: 40px; }
.empty { color: var(--ink-soft); }

/* ---------- product ---------- */
.product { display: grid; gap: 28px; padding: 24px 0 48px; }
@media (min-width: 900px) { .product { grid-template-columns: 7fr 5fr; gap: 56px; padding-top: 40px; } .product-info { position: sticky; top: 110px; align-self: start; } }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper-2); }
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: grid; place-items: center; aspect-ratio: 4 / 5; }
.slides img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid transparent; background: var(--paper-2); cursor: pointer; }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(28px, 4vw, 44px); }
.product-info .price { font-size: 16px; margin: 0 0 20px; }
.buy { width: 100%; text-align: center; padding: 18px; font-size: 13px; margin: 0; }
.one-only { font-size: 13px; color: var(--ink-soft); margin: 8px 0 24px; }
.sold-note { border: 1px solid var(--line); padding: 14px; }
.product-links { list-style: none; padding: 16px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.product-links li { margin: 6px 0; }

/* ---------- content pages ---------- */
.page-head { padding: 48px 0 32px; max-width: 900px; }
.block { display: grid; gap: 12px 48px; padding: 32px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .block { grid-template-columns: 5fr 7fr; } }
.prose { max-width: 40em; }
.prose p:first-child { margin-top: 0; }
.prose table { border-collapse: collapse; margin: 16px 0; width: 100%; max-width: 420px; }
.prose caption { text-align: left; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.prose th, .prose td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.prose th { color: var(--ink-soft); padding-right: 24px; }
.prose .date { font-family: var(--mono); font-size: 13px; }
.links { margin-top: 20px; }

/* ---------- cart & forms ---------- */
.cart { max-width: 720px; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; background: var(--paper-2); }
.cart-line a { text-decoration: none; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.cart-line .price { margin: 4px 0 0; }
.remove { background: none; border: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.subtotal { display: flex; justify-content: space-between; font-size: 18px; margin-top: 24px; }
.note, .cart-msg { color: var(--ink-soft); font-size: 14px; }
.contact-form { display: grid; gap: 16px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-form input, .contact-form textarea { font: 16px var(--sans); padding: 12px; border: 1px solid var(--line); background: #fffaf2; color: var(--ink); }
.contact-form .hp { display: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper); padding: 48px var(--gutter); display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer .label { color: rgba(248, 241, 230, 0.6); }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer li, .site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #f2b9a5; }
.copyright { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; opacity: 0.6; }

/* ---------- trust, size filter, details, newsletter ---------- */
.controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.trust strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.trust span { color: var(--ink-soft); font-size: 15px; display: block; }
.details { border-collapse: collapse; margin: 20px 0; width: 100%; }
.details th, .details td { text-align: left; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 400; }
.details th { color: var(--ink-soft); width: 90px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ship-note { margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.ship-note summary { cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ship-note p { font-size: 15px; color: var(--ink-soft); }
.newsletter .nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; font: 16px var(--sans); padding: 13px; border: 1px solid var(--line); background: #fffaf2; color: var(--ink); }
.newsletter .button { margin: 0; }
.newsletter .hp { display: none; }
.signup { max-width: 640px; }
.site-footer .newsletter p { margin-bottom: 10px; }
.site-footer .newsletter input[type=email] { background: transparent; color: var(--paper); border-color: rgba(248, 241, 230, 0.4); }
.site-footer .newsletter .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer ul.one-col { columns: 1; }
.footer-signup { grid-column: span 2; }

.poster { width: 100%; max-width: 480px; height: auto; margin: 0 0 20px; box-shadow: 0 6px 24px rgba(32, 49, 39, 0.18); }

.press-line { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink-soft); }

/* Section with a portrait photo: heading and text together, a modest photo beside them */
.block.has-photo { display: grid; gap: 24px 56px; align-items: center; }
.block.has-photo .block-text { display: grid; gap: 12px; }
.block.has-photo .block-photo { margin: 0; }
.block-photo img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; box-shadow: 0 6px 24px rgba(32, 49, 39, 0.18); }
@media (min-width: 640px) {
  .block.has-photo { grid-template-columns: 1fr 260px; }
  .block.has-photo .block-photo { justify-self: end; }
  .block-photo img { max-width: 260px; }
}
@media (min-width: 900px) {
  .block.has-photo { grid-template-columns: 1fr 300px; }
  .block-photo img { max-width: 300px; }
}
