/* The Junk Box - launch site. Look carried over from the October 2026 prototype. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light dark;
  /* Brand constants */
  --ink: #171817;
  --paper: #f2f0e8;
  --lime: #bdff44;
  --lime-hover: #d0ff79;
  --caution: #f5ff00;
  --on-lime: #171817;
  /* Theme tokens (light) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5f6157;
  --line: #c9c8be;
  --line-strong: #8f8f84;
  --surface: #e2dfd4;
  --surface-line: #d3d0c4;
  --header-bg: var(--paper);
  --header-shadow: 0 2px 7px #17181712;
  --hero-bg: #171817;
  --hero-fg: #f2f0e8;
  --hero-muted: #c6c6bc;
  --hero-dim: #a6a99b;
  --hero-dot: #ffffff0d;
  --link: var(--ink);
  --focus: #6a4fe0; /* >= 3:1 against paper, the grey surfaces, lime and the dark hero */
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --font-display: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif-condensed, Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121312;
    --fg: #ecebe3;
    --muted: #a8aa9d;
    --line: #34362f;
    --line-strong: #6b6d63;
    --surface: #1e1f1c;
    --surface-line: #30322c;
    --header-bg: #121312;
    --header-shadow: 0 2px 12px #00000080;
    --hero-bg: #0b0c0b;
    --link: #ecebe3;
    --focus: #a996ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
/* Footer sits at the bottom of short pages (404, contact) instead of leaving a gap under it */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, .wordmark, .button, .eyebrow, .announcement, .site-nav, .ticker, .advisory, .stamp, .filters, .cart-trigger, .chip, .card-badge, .catalog-status, .footer-nav, .text-link {
  font-family: var(--font-display);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -200px; z-index: 50; background: var(--lime); color: var(--on-lime); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Announcement bar ---------- */
.announcement { background: var(--lime); color: var(--on-lime); border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
@media (min-width: 640px) { .announcement { font-size: 13px; letter-spacing: 1.2px; } }
.announcement .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.announcement .wrap > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-right { display: none; font-family: var(--font-body); font-size: 13px; font-weight: 500; font-style: italic; letter-spacing: .1px; }
@media (min-width: 640px) { .announcement-right { display: inline; } }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); box-shadow: var(--header-shadow); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 10px; flex-wrap: wrap; }
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; line-height: 1; }
.brand-logo img { width: 64px; height: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.wordmark { font-size: 28px; font-weight: 900; letter-spacing: -.8px; line-height: 1; white-space: nowrap; }
.brand-tagline { font-size: 11px; font-weight: 600; line-height: 1.35; max-width: 170px; color: var(--muted); }
.site-nav { order: 3; width: 100%; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .7px; }
.site-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: currentColor; }
.cart-trigger { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; font-weight: 700; font-size: 14px; letter-spacing: .6px; }
.cart-trigger svg { width: 20px; height: 20px; }
#cart-count { background: var(--fg); color: var(--lime); border-radius: 50%; min-width: 22px; height: 22px; display: grid; place-items: center; font-family: var(--font-body); font-size: 11px; }

@media (min-width: 720px) {
  .site-header { position: sticky; top: 0; z-index: 20; }
  html { scroll-padding-top: 150px; }
  .site-header .wrap { flex-wrap: nowrap; padding-block: 12px; min-height: 128px; }
  .brand-logo { gap: 14px; }
  .brand-logo img { width: 104px; }
  .wordmark { font-size: 37px; letter-spacing: -1px; }
  .brand-tagline { font-size: 12px; max-width: none; white-space: nowrap; }
  .site-nav { order: 0; width: auto; border: 0; padding: 0; gap: 26px; justify-content: flex-end; }
}

/* ---------- Buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 12px 20px; background: var(--lime); color: var(--on-lime); border: 1px solid var(--ink); font-size: 17px; font-weight: 800; letter-spacing: .7px; line-height: 1.1; text-align: left; }
.button:hover { background: var(--lime-hover); transform: translateY(-1px); }
.button:disabled { cursor: default; opacity: .55; transform: none; }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 800; letter-spacing: 1px; padding: 4px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background-color: var(--hero-bg); background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px); background-size: 5px 5px; color: var(--hero-fg); }
.hero-inner { position: relative; display: grid; gap: 28px; padding-block: 32px 0; }
.hero-copy { container-type: inline-size; min-width: 0; }
.hero .eyebrow { color: #d1d3c7; font-size: 12px; }
.hero h1 { font-size: clamp(36px, 12vw, 60px); font-size: clamp(34px, 16cqi, 64px); font-weight: 900; line-height: .95; letter-spacing: -1px; margin: 16px 0 14px; overflow-wrap: normal; text-wrap: balance; }
.hero h1 span { color: var(--lime); display: block; }
.hero-lede { color: var(--hero-muted); font-size: 15px; line-height: 1.6; max-width: 34em; }
.soon-note { margin-top: 22px; padding: 16px 18px; border: 1px dashed #6e7364; max-width: 34em; }
.soon-note .chip { display: inline-block; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 14px; letter-spacing: 1.2px; padding: 3px 10px; margin-bottom: 10px; }
.soon-note p { color: var(--hero-muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.hero-actions .text-link { color: var(--lime); }
.hero-art { position: relative; display: grid; place-items: center; padding-bottom: 24px; }
.hero-art picture { display: block; width: min(62vw, 230px); transform: rotate(6deg); filter: drop-shadow(10px 12px 0 #00000059); }
.hero-art img { display: block; width: 100%; height: auto; }
.stamp { position: absolute; left: max(0px, calc(50% - 170px)); bottom: 18px; transform: rotate(-8deg); width: max-content; max-width: 100%; white-space: nowrap; overflow-wrap: normal; border: 3px solid var(--lime); color: var(--lime); background: var(--hero-bg); padding: 8px 10px; text-align: center; box-shadow: 0 0 0 3px var(--hero-bg), 0 0 0 4px var(--lime); }
.stamp span { display: block; font-size: 11px; letter-spacing: 2.4px; font-weight: 700; }
.stamp strong { display: block; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.3px; border-block: 1px solid var(--lime); margin: 5px 0; padding: 2px 0; }
.caution { position: relative; z-index: 1; margin: 0 -24px 22px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 28px; white-space: nowrap; overflow: hidden; transform: rotate(-2.5deg); background-color: var(--caution); background-image: repeating-linear-gradient(135deg, #171817 0 10px, transparent 10px 21px), repeating-linear-gradient(135deg, #171817 0 10px, transparent 10px 21px); background-size: 100% 6px, 100% 6px; background-position: top, bottom; background-repeat: no-repeat; color: #111; font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 3px 8px #0006; pointer-events: none; }

@media (min-width: 480px) {
  .hero h1 { font-size: clamp(30px, 6.6vw, 66px); font-size: clamp(30px, 9.4cqi, 76px); }
  .hero h1 span { display: inline; }
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 44px; padding-right: 120px; }
  .hero-art { padding-bottom: 0; }
  .hero-art picture { width: clamp(220px, 22vw, 300px); }
  .stamp { bottom: -18px; padding: 10px 14px; }
  .stamp strong { font-size: 34px; }
  .caution { position: absolute; top: 50%; right: -150px; margin: 0; width: 520px; height: 58px; font-size: 22px; transform: translateY(-50%) rotate(62deg); }
}

/* Shop-mode spotlight (only visible when the shop is on) */
.spotlight-window { position: relative; overflow: hidden; min-height: 280px; }
.spotlight-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.22, .75, .22, 1); }
.spotlight-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; padding: 8px 4px 52px; }
.spotlight-copy .eyebrow { font-size: 11px; color: #d1d3c7; }
.spotlight-copy h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1; margin: 10px 0; color: var(--hero-fg); }
.spotlight-price { color: var(--lime); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.spotlight-price span { font-size: 11px; letter-spacing: 1px; color: var(--hero-dim); font-weight: 500; }
.spotlight-shop { margin-top: 12px; background: none; border: 0; border-bottom: 1px solid var(--lime); color: var(--lime); padding: 4px 0; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.spotlight-art { border: 0; padding: 0; background: radial-gradient(ellipse at center, #dbe0cd 0 48%, transparent 49%); transform: rotate(-5deg); aspect-ratio: 1; }
.spotlight-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(8px 10px 5px #0005); }
.spotlight-controls { position: absolute; right: 0; bottom: 6px; display: flex; align-items: center; gap: 8px; }
.spotlight-controls > button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: #dedfd5; padding: 8px; }
.spotlight-controls > button:hover { color: var(--lime); }
.spotlight-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spotlight-controls .play-icon { fill: currentColor; stroke: none; }
.slide-dots { display: flex; gap: 4px; }
.slide-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.slide-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6f7467; }
.slide-dots button[aria-current="true"]::before { background: var(--lime); }
#slide-count { font-size: 11px; color: var(--hero-dim); letter-spacing: 1px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--lime); color: var(--on-lime); border-block: 1px solid var(--ink); overflow: hidden; font-size: 20px; font-weight: 800; letter-spacing: 1px; padding: 10px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { white-space: nowrap; padding-right: 32px; }
.ticker-track span::after { content: '✳'; padding-left: 32px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.section { padding-block: 44px 56px; }
.section-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.section h2 { font-size: clamp(36px, 7vw, 50px); font-weight: 900; letter-spacing: -.6px; line-height: 1; margin-top: 8px; }
.section h2 .arrow { font-weight: 600; margin-left: 12px; }
.catalog-status { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }

/* ---------- What's going in the box ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.card-art { position: relative; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--surface-line); overflow: hidden; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.card:hover .card-art img { transform: scale(1.04) rotate(-2deg); }
.card-badge { position: absolute; top: 8px; left: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 3px 6px; font-size: 11px; font-weight: 800; letter-spacing: .8px; line-height: 1.3; }
@media (min-width: 600px) { .card-badge { top: 12px; left: 12px; padding: 4px 8px; font-size: 12px; letter-spacing: 1px; } }
.card-badge.lime { background: var(--lime); }
.card h3 { font-size: 22px; font-weight: 800; line-height: 1.05; margin-top: 12px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (min-width: 600px) { .card h3 { font-size: 26px; margin-top: 14px; } .card p { font-size: 15px; } }
.cards-note { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 46em; }

/* ---------- Shop grid (shop mode) ---------- */
.shop-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { background: transparent; border: 1px solid var(--line-strong); min-height: 44px; padding: 8px 14px; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.filters button.active, .filters button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sort-label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 1px; font-weight: 700; }
.sort-label select { background: var(--bg); border: 1px solid var(--line-strong); min-height: 44px; padding: 6px 10px; font-size: 14px; }
#catalog-error { padding: 14px; border: 1px solid; margin-bottom: 20px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.product { min-width: 0; }
.product-image { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; background: var(--surface); border: 1px solid var(--surface-line); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.product-image:hover img { transform: scale(1.045) rotate(-2deg); }
.product-image .plus { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); display: grid; place-items: center; font-size: 20px; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
.product-meta h3 { font-size: 21px; font-weight: 800; line-height: 1.1; }
.product-meta strong { font-size: 14px; white-space: nowrap; }
.product-type { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .5px; }
.more { display: flex; margin: 30px auto 0; }
.empty { padding: 30px 0; color: var(--muted); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; } }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--lime); color: var(--on-lime); border-block: 1px solid var(--ink); }
.manifesto .wrap { display: grid; gap: 36px; padding-block: 48px; align-items: center; }
.advisory { width: 190px; background: var(--ink); color: var(--paper); padding: 12px 10px; text-align: center; transform: rotate(-8deg); font-size: 20px; font-weight: 700; line-height: 1.1; border: 5px solid var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; margin-left: 10px; }
.advisory b { display: block; background: var(--paper); color: var(--ink); font-size: 34px; margin: 6px -5px; padding: 2px 0; }
.manifesto h2 { font-size: clamp(42px, 10vw, 66px); font-weight: 900; line-height: .98; letter-spacing: -.6px; margin: 12px 0 18px; }
.manifesto p { line-height: 1.75; max-width: 36em; }
.manifesto .text-link { margin-top: 20px; }
@media (min-width: 860px) {
  .manifesto .wrap { grid-template-columns: 1fr 2fr; gap: 60px; padding-block: 64px; }
  .advisory { width: 240px; font-size: 24px; justify-self: center; }
  .advisory b { font-size: 44px; }
}

/* ---------- Signup (mailto) ---------- */
.signup-box { position: relative; border: 2px dashed var(--line-strong); padding: 32px 22px; display: grid; gap: 18px; background: var(--bg); }
.signup-box::before { content: 'FRAGILE: CONTAINS GOOD IDEAS'; position: absolute; top: -13px; left: 18px; background: var(--fg); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 1.4px; padding: 3px 10px; }
.signup-box h2 { margin: 6px 0 12px; }
.signup-box p { color: var(--muted); max-width: 40em; }
.signup-box .fine { font-size: 14px; margin-top: 12px; }
.signup-box .fine a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 860px) {
  .signup-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px; gap: 30px 50px; }
  .signup-actions { justify-self: end; text-align: right; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: grid; gap: 18px; padding-block: 36px; }
.site-footer .wordmark { font-size: 30px; }
.footer-tag { font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; font-size: 14px; color: #c6c6bc; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 700; letter-spacing: .8px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { display: inline-block; padding: 6px 0; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-color: currentColor; }
.footer-legal { display: grid; gap: 4px; font-size: 13px; color: #b6b7ab; line-height: 1.6; }
.site-footer :focus-visible { outline-color: #a996ff; }
/* Focus ring stays >= 3:1 on the dark hero bands and on lime, in both colour schemes */
.hero, .page-hero { --focus: #a996ff; }
.manifesto { --focus: #4a2fbd; }
@media (min-width: 860px) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; }
  .footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid #34362f; padding-top: 18px; }
}

/* ---------- Inner pages ---------- */
.page-hero { background-color: var(--hero-bg); background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px); background-size: 5px 5px; color: var(--hero-fg); }
.page-hero .wrap { padding-block: 40px 36px; }
.page-hero .eyebrow { color: #d1d3c7; font-size: 12px; }
.page-hero h1 { font-size: clamp(40px, 9vw, 72px); font-weight: 900; line-height: .98; letter-spacing: -.8px; margin-top: 12px; }
.page-hero h1 span { color: var(--lime); }
.page-hero p { color: var(--hero-muted); margin-top: 14px; max-width: 40em; }
.prose { max-width: 46em; padding-block: 40px 64px; }
.prose h2 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; line-height: 1.1; margin: 38px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 800; margin: 22px 0 6px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose a:not(.button) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.notice { border: 2px solid var(--fg); background: var(--surface); padding: 16px 18px; margin: 0 0 30px; }
.notice strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .6px; }
.summary { border-left: 4px solid var(--lime); background: var(--surface); padding: 14px 18px; margin: 0 0 30px; }
.summary ul { margin: 8px 0 0; }
.mail-big { display: inline-flex; margin: 6px 0 18px; font-size: clamp(18px, 4.8vw, 24px); word-break: break-all; }
.prose .contact-list { display: grid; gap: 18px; padding: 0; list-style: none; margin: 26px 0 0; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.prose .contact-list h2 { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 28px; padding-block: 48px 72px; align-items: center; }
.lost picture { display: block; width: min(60vw, 240px); transform: rotate(-8deg); filter: drop-shadow(8px 10px 0 #00000033); }
.lost img { display: block; width: 100%; height: auto; }
.lost h1 { font-size: clamp(44px, 11vw, 88px); font-weight: 900; line-height: .95; letter-spacing: -1px; }
.lost p { color: var(--muted); margin: 14px 0 22px; max-width: 32em; }
.lost .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
@media (min-width: 760px) { .lost { grid-template-columns: auto 1fr; gap: 56px; } }

/* ---------- Dialogs, cart and toast (shop mode) ---------- */
dialog { border: 1px solid var(--fg); padding: 0; background: var(--bg); color: var(--fg); max-height: 90dvh; max-width: 900px; width: calc(100% - 32px); overscroll-behavior: contain; }
dialog::backdrop { background: #000a; }
body:has(dialog[open]) { overflow: hidden; }
.close { border: 0; background: var(--bg); width: 44px; height: 44px; font-size: 20px; z-index: 2; }
#product-dialog > .close { position: absolute; right: 4px; top: 4px; }
#product-details { display: grid; }
#product-details .detail-art { background: var(--surface); display: flex; align-items: center; max-height: 280px; }
#product-details .detail-art img { width: 100%; max-height: 280px; object-fit: contain; }
.detail-info { padding: 24px; }
.detail-info h2 { margin: 10px 0 14px; font-size: 34px; font-weight: 900; line-height: 1; }
.detail-info p { line-height: 1.7; margin: 16px 0; color: var(--muted); }
.detail-info label { display: block; margin: 18px 0; font-size: 13px; font-weight: 700; letter-spacing: .8px; }
.detail-info select { display: block; width: 100%; margin-top: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line-strong); }
.detail-info .button { width: 100%; }
@media (min-width: 760px) {
  #product-details { grid-template-columns: 1fr 1fr; }
  #product-details .detail-art, #product-details .detail-art img { max-height: 520px; }
  .detail-info { padding: 50px 30px 30px; }
  .detail-info h2 { font-size: 42px; }
}
.cart-dialog { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; max-width: 460px; width: 100%; padding: 20px; position: fixed; top: 0; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top h2 { font-size: 40px; font-weight: 900; }
.cart-caption { font-size: 12px; letter-spacing: 1px; margin: 8px 0 22px; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 70px; height: 70px; background: var(--surface); object-fit: contain; }
.cart-line h3 { font-size: 21px; font-weight: 800; }
.cart-line p { font-size: 13px; margin: 4px 0; }
.quantity { display: flex; align-items: center; gap: 10px; }
.quantity button { background: none; border: 1px solid var(--line-strong); width: 36px; height: 36px; }
.cart-line .remove { border: 0; background: none; padding: 6px 0; text-decoration: underline; font-size: 13px; }
.cart-bottom { margin-top: 28px; }
.subtotal { display: flex; justify-content: space-between; }
.cart-bottom p { font-size: 13px; color: var(--muted); margin: 12px 0; }
.cart-bottom .button { width: 100%; }
.plain-button { display: block; background: none; border: 0; text-decoration: underline; font-size: 14px; margin: 14px auto; padding: 10px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--lime); padding: 14px 22px; z-index: 60; opacity: 0; pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker-track .dup { display: none; }
}
