/* Golem Craftworks — storefront styles
   Black and white by brand. One memorable thing: the golem in the hero.
   Everything else stays quiet so the wood and dice photos carry the color. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --graphite: #4f4f4f;   /* secondary text, passes AA on white */
  --rule: #d6d6d6;       /* hairlines, input borders */
  --wash: #f1f1f0;       /* photo backdrops, quiet panels */
  --danger: #8a1c1c;     /* form errors only */
  --faint: #9a9a9a;      /* disabled options */
  /* The hero, commission band and footer are black in both themes. */
  --panel: #000000;
  --on-panel: #ffffff;
  color-scheme: light;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale (perfect fourth from 17px) */
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.4rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 6.2vw, 4.4rem);

  --gutter: 16px;
  --max: 1240px;
  --radius: 3px;
  --header-h: 64px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* Dark theme: ink and paper trade places. Set on <html> by js/theme.js. */
:root[data-theme="dark"] {
  --ink: #f2f2f0;
  --paper: #121212;
  --graphite: #b0b0b0;
  --rule: #3a3a3a;
  --wash: #1e1e1e;
  --danger: #ff8a80;
  --faint: #6e6e6e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: var(--on-panel); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--font-display);
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 650;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--invert { background: var(--on-panel); color: var(--panel); border-color: var(--on-panel); }
.btn--invert:hover { background: transparent; color: var(--on-panel); }
.btn--ghost-invert { background: transparent; color: var(--on-panel); border-color: var(--on-panel); }
.btn--ghost-invert:hover { background: var(--on-panel); color: var(--panel); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--wash); color: var(--graphite); border-color: var(--rule); cursor: not-allowed;
}

.text-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand img { width: 40px; height: auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; line-height: 1;
}
@media (min-width: 720px) { .brand img { width: 50px; } .brand__name { font-size: 1.3rem; } }

.nav { display: none; gap: 26px; font-family: var(--font-display); font-weight: 550; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (min-width: 820px) { .nav { display: flex; } }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--paper); color: var(--ink);
  font-size: 0.8rem; line-height: 22px; text-align: center;
}
.cart-btn__count[data-empty="true"] { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 2px solid var(--ink);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 820px) { .menu-btn { display: none; } }

/* Theme switch: a moon in the light theme, a sun in the dark one. Lives in the menu on small screens. */
.site-header .theme-btn { display: none; }
@media (min-width: 820px) { .site-header .theme-btn { display: inline-flex; } }
.when-dark, :root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: block; }

.mobile-nav {
  display: none; border-top: 1px solid var(--rule);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 650;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a, .mobile-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px var(--gutter);
  font: inherit; color: inherit; text-align: left; text-decoration: none;
  background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.mobile-nav svg { width: 22px; height: 22px; }
@media (min-width: 820px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--panel); color: var(--on-panel);
}
.hero__inner {
  position: relative; z-index: 1;
  min-height: min(78vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 56px; padding-bottom: 210px;
}
.hero h1 { max-width: 13ch; margin-bottom: 0.4em; }
.hero p { font-size: var(--step-1); line-height: 1.4; max-width: 30ch; color: #e6e6e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* The golem rises from the bottom edge, cropped at the waist. */
.hero__golem {
  position: absolute; z-index: 0; pointer-events: none;
  height: auto;
  right: 12px; bottom: -96px;
  width: min(62vw, 250px);
  animation: golem-rise 1.1s cubic-bezier(.2,.7,.2,1) both .1s;
}
@media (min-width: 720px) {
  .hero__inner { padding-bottom: 72px; }
  .hero__golem { right: 3vw; bottom: -140px; width: min(42vw, 520px); }
}
@media (min-width: 1300px) {
  .hero__golem { right: calc((100vw - var(--max)) / 2 + 24px); }
}
@keyframes golem-rise {
  from { transform: translateY(18%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Shop ---------- */

.shop { padding: 48px 0 80px; }
.shop__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px;
  margin-bottom: 24px;
}
.shop__head h2 { margin: 0; font-size: var(--step-3); }

.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 28px; padding: 2px var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 20px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.toggle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.95rem; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }

.grid {
  display: grid; gap: 28px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; }
.card a { text-decoration: none; display: block; }
.card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--wash); overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card a:hover .card__media img { transform: scale(1.03); }
.card__name {
  font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; line-height: 1.25;
  margin: 12px 0 2px;
}
.card a:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.95rem; }
.card__price { font-family: var(--font-display); font-weight: 500; }
.card__stock { color: var(--graphite); font-size: 0.875rem; }
.card--sold .card__media img { filter: grayscale(1); opacity: .55; }

/* One-of-a-kind mark: a small hexagon, echoing the logo. */
.hexmark {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 650; font-size: 0.78rem; line-height: 1;
  border-radius: 2px;
}
.hexmark::before {
  content: ""; width: 14px; height: 16px; background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.soldmark {
  position: absolute; top: 10px; left: 10px;
  padding: 5px 10px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 650; font-size: 0.78rem; line-height: 1;
  border-radius: 2px;
}

/* Placeholder used when a product has no photo yet */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; background: var(--wash);
}
.ph img { width: 26%; height: auto; opacity: .16; object-fit: contain; transform: none !important; }

.empty, .notice {
  padding: 28px; background: var(--wash); border-radius: var(--radius);
  font-family: var(--font-display);
}
.notice { margin-bottom: 28px; font-size: 0.95rem; }
.notice p { margin: 0; }

.skeleton { background: var(--wash); aspect-ratio: 1/1; }
.skeleton + .skeleton-line { height: 14px; background: var(--wash); margin-top: 12px; width: 70%; }

/* ---------- Commission band (home) ---------- */

.band {
  background: var(--panel); color: var(--on-panel); padding: 64px 0;
}
.band__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .band__inner { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.band h2 { font-size: var(--step-3); margin-bottom: 0.3em; }
.band p { color: #e0e0e0; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 820px) { .band__actions { justify-content: flex-end; } }

/* ---------- Product page ---------- */

.crumbs { padding: 20px 0 0; font-family: var(--font-display); font-size: 0.92rem; }
.crumbs a { color: var(--graphite); }

.product {
  display: grid; gap: 28px; padding: 20px 0 72px;
}
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-top: 28px; }
  .product__info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.gallery__main { position: relative; aspect-ratio: 1/1; background: var(--wash); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin;
}
.gallery__thumbs button {
  flex: none; width: 72px; height: 72px; padding: 0; background: var(--wash);
  border: 2px solid transparent; cursor: pointer; border-radius: 2px; overflow: hidden;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__info h1 { font-size: var(--step-3); margin-bottom: 8px; }
.product__price { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; margin: 0 0 4px; }
.product__stock { color: var(--graphite); font-family: var(--font-display); margin: 0 0 24px; }
.product__stock--unique { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.product__stock--unique::before {
  content: ""; width: 14px; height: 16px; background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.picker { border: 0; padding: 0; margin: 0 0 24px; }
.picker legend { font-family: var(--font-display); font-weight: 650; margin-bottom: 10px; padding: 0; }
.picker__hint { color: var(--graphite); font-weight: 400; font-size: 0.85rem; margin-left: 6px; }
.picker__options { display: flex; flex-wrap: wrap; gap: 8px; }
.picker__option input { position: absolute; opacity: 0; pointer-events: none; }
.picker__option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-family: var(--font-display); font-weight: 550;
  border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.picker__option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.picker__option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.picker__option input:disabled + span { color: var(--faint); text-decoration: line-through; cursor: not-allowed; }

.product__buy { display: grid; gap: 12px; margin-bottom: 28px; }
.product__desc { border-top: 1px solid var(--rule); padding-top: 24px; }
.product__desc p { white-space: pre-line; }
.product__aside {
  margin-top: 24px; padding: 18px 20px; background: var(--wash); border-radius: var(--radius);
  font-size: 0.97rem;
}
.product__aside p { margin: 0 0 6px; }
.product__aside p:last-child { margin: 0; }

/* ---------- Cart drawer ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(100vw, 440px); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.7,.2,1);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--rule);
}
.drawer__head h2 { margin: 0; font-size: var(--step-1); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink); border-radius: var(--radius);
}
.icon-btn svg { width: 22px; height: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 24px; }
.drawer__foot { border-top: 1px solid var(--rule); padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }

.line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.line__img { width: 76px; height: 76px; background: var(--wash); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-display); font-weight: 650; line-height: 1.25; margin: 0; }
.line__variant { color: var(--graphite); font-size: 0.9rem; margin: 2px 0 8px; }
.line__price { font-family: var(--font-display); text-align: right; }
.line__note { font-size: 0.85rem; color: var(--graphite); margin: 6px 0 0; }
.line__note--warn { color: var(--danger); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: var(--radius); }
.qty button { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:disabled { color: var(--faint); cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-family: var(--font-display); }

.fulfil { border: 0; padding: 0; margin: 0 0 14px; }
.fulfil legend { font-family: var(--font-display); font-weight: 650; padding: 0; margin-bottom: 8px; }
.fulfil label {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 6px;
  border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-size: 0.95rem;
}
.fulfil label:has(input:checked) { border-color: var(--ink); }
.fulfil input { accent-color: var(--ink); width: 18px; height: 18px; margin: 3px 0 0; }
.fulfil strong { font-family: var(--font-display); font-weight: 650; display: block; }
.fulfil small { color: var(--graphite); font-size: 0.85rem; }

.totals { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 4px; }
.totals-note { font-size: 0.85rem; color: var(--graphite); margin: 0 0 14px; }
.form-error { color: var(--danger); font-size: 0.92rem; margin: 10px 0 0; }

.drawer__empty { padding: 40px 0; text-align: center; }
.drawer__empty img { width: 64px; margin: 0 auto 16px; opacity: .9; }

/* ---------- Content pages (about, commissions) ---------- */

.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 16ch; margin-bottom: 0.3em; }
.page-head p { font-size: var(--step-1); line-height: 1.45; color: var(--graphite); max-width: 38ch; }

.prose { padding: 48px 0 24px; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { max-width: 64ch; }
.placeholder-copy { background: #fff8c4; color: #000; padding: 0 3px; }

.split { display: grid; gap: 36px; padding: 48px 0 80px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

.portrait { aspect-ratio: 1; background: var(--wash); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Commission steps are a real sequence, so they are numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 58px; border-left: 2px solid var(--ink); margin-left: 19px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -20px; top: -4px;
  width: 38px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 750;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { font-size: 1.2rem; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--graphite); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 650; }
.field .hint { font-size: 0.88rem; color: var(--graphite); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid #8c8c8c; border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-panel { background: var(--wash); padding: 24px; border-radius: var(--radius); }
@media (min-width: 720px) { .form-panel { padding: 32px; } }
.form-panel h2 { font-size: var(--step-2); }
.form-status { font-family: var(--font-display); margin: 0; }

/* ---------- Thanks ---------- */
.thanks { padding: 80px 0 100px; text-align: center; }
.thanks img { width: 120px; margin: 0 auto 28px; }
.thanks p { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--panel); color: var(--on-panel); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 28px; }
@media (min-width: 820px) { .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand img { width: 52px; }
.site-footer p { color: #cfcfcf; font-size: 0.95rem; }
.site-footer h3 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-panel); }
.site-footer__legal { max-width: none; margin-top: 36px; padding-top: 18px; border-top: 1px solid #333; font-size: 0.85rem; color: #a8a8a8; }

/* ---------- Toast ---------- */
.toast {
  pointer-events: none;
  position: fixed; z-index: 70; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.95rem; transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Placeholder mark stays small wherever it appears */
.card__media .ph img, .gallery__main .ph img, .line__img .ph img {
  width: 26%; height: auto; object-fit: contain; opacity: .16;
}
.drawer.is-open ~ .toast { display: none; }
