/* ==========================================================================
   13e13e.com  -  storefront styles
   Mobile first. No framework, no web fonts (fast LCP, strict CSP).
   Two themes: dark (default) and light. Every color that changes between
   them is a custom property; colors that belong to the artwork itself (frames,
   mats, swatches) are fixed. Contrast meets WCAG AA in both themes.
   ========================================================================== */

:root {
  /* DARK is the default theme. Light values are in the block below. */
  color-scheme: dark;
  --ink: #f2efe8;
  --ink-soft: #b9b4aa;        /* 9:1 on the page background */
  --line: #35322d;
  --paper: #131211;           /* page background */
  --wash: #1c1a18;            /* gallery-wall panels */
  --surface: #211f1c;         /* inputs, menus, cards */
  --stage: #2b2927;           /* wall behind the product preview */
  --control: #8b877f;         /* input and control borders */
  --accent: #f0806f;          /* museum-label red, 7:1 on the page background */
  --accent-dark: #f7a99d;
  --on-ink: #141414;          /* text on an --ink colored button */
  --on-accent: #141414;
  --ok: #6fcf97;
  --ok-ink: #9be0b5;
  --ok-wash: #15301f;
  --err-wash: #3b1b17;
  --badge-bg: #302e2a;
  --shadow-rgb: 0, 0, 0;
  --tile-1: #1d2731; --tile-2: #1b2a27; --tile-3: #30231b; --tile-4: #2c2918; --tile-5: #272231; --tile-6: #262624;
  --footer-bg: #0b0b0a; --footer-ink: #e9e7e2; --footer-strong: #ffffff; --footer-soft: #bdbab3; --footer-line: #2a2826;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 78rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 2px;
}

/* LIGHT theme: chosen with the switch in the header (cookie "theme=light"). */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #141414;
  --ink-soft: #4a4a4a;        /* 8.9:1 on white */
  --line: #e4e2dd;
  --paper: #ffffff;
  --wash: #f6f4ef;
  --surface: #ffffff;
  --stage: #f6f4ef;
  --control: #8a8a8a;
  --accent: #a3271b;          /* 7.3:1 on white */
  --accent-dark: #7f1d13;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --ok: #1d6b3a;
  --ok-ink: #14522b;
  --ok-wash: #e9f5ec;
  --err-wash: #fbeceb;
  --badge-bg: #ececea;
  --shadow-rgb: 20, 20, 20;
  --tile-1: #e8eef4; --tile-2: #e6f0ee; --tile-3: #f6ebe4; --tile-4: #f3efdc; --tile-5: #eeeaf3; --tile-6: #eeeeec;
  --footer-bg: #141414; --footer-line: #3a3a3a;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

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

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

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 0.6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; color: var(--on-ink); }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem; font-weight: 600;
}

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.6rem 1.4rem;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.button--small { min-height: 2.25rem; padding: 0.3rem 1rem; }

/* ------------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }

.site-header__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 0.75rem 1rem; padding-block: 0.9rem;
}

.wordmark {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.04em;
  line-height: 1; text-decoration: none; color: var(--ink); justify-self: start;
}
.wordmark:hover { color: var(--ink); }
.wordmark--small { font-size: 1.3rem; margin-bottom: 0.6rem; }

.nav-toggle {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 1.15rem; height: 2px; background: var(--ink); content: ""; position: relative;
}
.nav-toggle__icon::before { position: absolute; top: -6px; }
.nav-toggle__icon::after { position: absolute; top: 6px; }

.search { grid-column: 1 / -1; display: flex; order: 3; }
.search__input {
  flex: 1; min-width: 0; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  border: 1px solid var(--control); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface);
}
.search__button {
  min-height: 2.75rem; padding: 0 1.1rem; background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; cursor: pointer;
}
.search__button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.utility { display: flex; align-items: center; gap: 0.9rem; justify-self: end; font-size: 0.95rem; }

/* Theme switch: Dark | Light, top right of every page. */
.theme-switch { display: inline-flex; border: 1px solid var(--control); border-radius: 2rem; overflow: hidden; }
.theme-switch__option {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0 0.7rem;
  color: var(--ink-soft); text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
}
.theme-switch__option:hover { color: var(--ink); }
.theme-switch__option[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.theme-switch__icon { font-size: 1rem; line-height: 1; }
.theme-switch__label { display: none; }
@media (min-width: 56rem) { .theme-switch__label { display: inline; } }
.utility__link { white-space: nowrap; }
@media (max-width: 30rem) {
  .site-header__bar { gap: 0.6rem 0.5rem; }
  .wordmark { font-size: 1.4rem; }
  .utility { gap: 0.55rem; font-size: 0.86rem; }
  .theme-switch__option { min-height: 2rem; padding: 0 0.45rem; }
  .cart-count { min-width: 1.3rem; padding: 0 0.3rem; }
}
/* Very narrow phones: theme switch, sign-in and cart get their own row. */
@media (max-width: 22.4rem) { .utility { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; } }
.utility__link { text-decoration: none; padding-block: 0.6rem; }
.cart-count {
  display: inline-block; min-width: 1.5rem; padding: 0 0.4rem; margin-left: 0.15rem;
  background: var(--ink); color: var(--on-ink); border-radius: 1rem; font-size: 0.78rem; font-weight: 700; text-align: center;
}

.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.site-nav__list { display: flex; flex-direction: column; padding-block: 0.5rem; }
.site-nav__list a {
  display: block; padding: 0.7rem 0; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.03em;
}

@media (min-width: 56rem) {
  .nav-toggle { display: none; }
  .site-header__bar { grid-template-columns: auto minmax(14rem, 30rem) auto; justify-content: space-between; padding-block: 1.1rem; }
  .search { grid-column: auto; order: 0; }
  .site-nav { display: block; }
  .site-nav__list { flex-direction: row; gap: 2.2rem; padding-block: 0; }
  .site-nav__list a { padding: 0.8rem 0; border-bottom: 2px solid transparent; }
  .site-nav__list a:hover { border-bottom-color: var(--accent); }
}

/* --------------------------------------------------------------------- hero */
.hero { background: var(--wash); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 14ch; margin-bottom: 0.35em; }
.hero__lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.hero__note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* Gallery wall: four featured works in frames. */
.hero__wall { position: relative; height: 15rem; }
.frame {
  position: absolute; display: block; padding: 0.5rem; background: var(--surface); border: 0.45rem solid var(--ink);
  box-shadow: 0.4rem 0.6rem 1.2rem rgba(var(--shadow-rgb), 0.2); transition: transform 0.2s;
}
.frame:hover { transform: translateY(-3px); }
.frame picture, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame--a { left: 2%; top: 8%; width: 34%; height: 78%; }
.frame--b { left: 41%; top: 0; width: 26%; height: 46%; border-color: #b08a5b; }
.frame--c { left: 41%; top: 54%; width: 26%; height: 40%; border-color: #f4f2ee; box-shadow: 0 0 0 1px #cfcac0, 0.4rem 0.6rem 1.2rem rgba(var(--shadow-rgb), 0.2); }
.frame--d { left: 72%; top: 14%; width: 26%; height: 66%; }

@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero__wall { height: 24rem; }
}

/* ----------------------------------------------------------------- sections */
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section--tint { background: var(--wash); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section__more { font-size: 0.9rem; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 9.5rem; padding: 1rem;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0.5rem 1.2rem rgba(var(--shadow-rgb), 0.1); }
.tile__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.tile__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }
.tile--1 { background: var(--tile-1); }
.tile--2 { background: var(--tile-2); }
.tile--3 { background: var(--tile-3); }
.tile--4 { background: var(--tile-4); }
.tile--5 { background: var(--tile-5); }
.tile--6 { background: var(--tile-6); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.3rem 1rem;
  border: 1px solid var(--ink); border-radius: 2rem; text-decoration: none; font-size: 0.92rem;
}
.chip:hover { background: var(--ink); color: var(--on-ink); }

.rooms { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.room {
  display: block; height: 100%; padding: 1.25rem 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-left: 3px solid var(--ink); text-decoration: none;
}
.room:hover { border-left-color: var(--accent); }
.room__name { display: block; font-family: var(--serif); font-size: 1.25rem; }
.room__meta { display: block; font-size: 0.86rem; color: var(--ink-soft); }

.promises { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 1px solid var(--line); padding-top: 2rem; }
.promises__title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.promises p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------------- prose */
.prose { max-width: 46rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-dark); }
.prose .button { color: var(--on-ink); }
.prose .button--ghost { color: var(--ink); }
.prose .button--ghost:hover { color: var(--on-ink); }
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: 0.8rem; }

.table-scroll { overflow-x: auto; margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; }
.faq p { color: var(--ink-soft); }

.error-page { text-align: left; }
.debug { overflow-x: auto; padding: 1rem; background: var(--wash); border: 1px solid var(--line); font-size: 0.8rem; white-space: pre-wrap; }

/* -------------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem; background: var(--surface);
  border: 1px solid var(--control); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.field__hint { font-size: 0.84rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.field__error { font-size: 0.88rem; color: var(--accent); font-weight: 600; margin: 0.3rem 0 0; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__send { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.field--sum { flex: 0 1 15rem; }
.field--sum input { max-width: 6rem; }

.notice { padding: 0.8rem 1rem; margin: 1rem 0; border-left: 4px solid var(--ink); background: var(--wash); }
.notice--success { border-left-color: var(--ok); background: var(--ok-wash); }
.notice--error { border-left-color: var(--accent); background: var(--err-wash); }

/* ------------------------------------------------------------------- footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--footer-line); background: var(--footer-bg); color: var(--footer-ink); font-size: 0.93rem; }
.site-footer a { color: var(--footer-strong); text-decoration: none; }
.site-footer a:hover { color: var(--footer-strong); text-decoration: underline; }
.site-footer .wordmark { color: var(--footer-strong); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); padding-block: 3rem 2rem; }
.site-footer__heading { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-soft); margin-bottom: 0.8rem; font-weight: 600; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer__note { color: var(--footer-soft); max-width: 22rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--footer-line); color: var(--footer-soft); font-size: 0.85rem; }
.site-footer__legal p { margin: 0; }

/* --------------------------------------------------------------- cookie bar */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 40rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--ink); box-shadow: 0 0.6rem 1.6rem rgba(var(--shadow-rgb), 0.2); font-size: 0.9rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }

/* -------------------------------------------------------------- breadcrumbs */
.crumbs { padding-top: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #9a9a9a; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------- search suggestions */
.search { position: relative; }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40; margin-top: 2px; max-height: 24rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--ink); box-shadow: 0 0.8rem 1.6rem rgba(var(--shadow-rgb), 0.16);
}
.suggest[hidden] { display: none; }
.suggest__item a { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0.9rem; text-decoration: none; color: var(--ink); }
.suggest__item.is-active a, .suggest__item a:hover { background: var(--wash); color: var(--ink); }
.suggest__type { flex: 0 0 5.2rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.suggest__detail { color: var(--ink-soft); font-size: 0.86rem; }

/* ------------------------------------------------------------ product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }
@media (min-width: 80rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 40rem) { .grid--shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card { font-size: 0.93rem; }
.card__link { display: block; text-decoration: none; color: var(--ink); }
.card__media {
  display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 9%; margin-bottom: 0.7rem;
  background: var(--wash); overflow: hidden;
}
.card__media picture { display: contents; }
.card__media img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0.25rem 0.4rem 0.9rem rgba(var(--shadow-rgb), 0.22); transition: transform 0.25s;
}
.card__link:hover img { transform: scale(1.03); }
.card__title { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.card__link:hover .card__title { text-decoration: underline; }
.card__artist { display: inline-block; color: var(--ink-soft); text-decoration: none; padding-block: 0.1rem; }
.card__artist:hover { text-decoration: underline; }
.card__price { margin: 0.1rem 0 0; font-weight: 600; }

/* ------------------------------------------------------------------ listing */
.listing__head { padding-block: 1.25rem 1.5rem; max-width: 50rem; }
.listing__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.3em; }
.listing__intro { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.listing__body { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 56rem) { .listing__body { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.section__title--rule { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-bottom: 1.25rem; }
.tile__count { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem; }

.filters__toggle { width: 100%; }
.filters__form { display: grid; gap: 1rem; }
.js .filters__form { display: none; }
.js .filters__form.is-open { display: grid; margin-top: 1rem; }
@media (min-width: 56rem) {
  .filters__toggle, .filters__toggle:not([hidden]) { display: none; }
  .js .filters__form, .js .filters__form.is-open { display: grid; margin-top: 0; }
}
.filters__field { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters__field label, .filters__field legend { display: block; padding: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.filters__field select, .filters__range input, .toolbar__sort select {
  width: 100%; min-height: 2.6rem; padding: 0.4rem 0.6rem; background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius);
}
.filters__range { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.filters__actions { display: flex; align-items: center; gap: 1rem; }
.filters__clear { font-size: 0.9rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.swatch { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.filters__field .swatch { margin-bottom: 0; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch__dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--control); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + .swatch__dot { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch--red .swatch__dot { background: #c0392b; }
.swatch--orange .swatch__dot { background: #e67e22; }
.swatch--yellow .swatch__dot { background: #f1c40f; }
.swatch--green .swatch__dot { background: #3f8f5f; }
.swatch--blue .swatch__dot { background: #2f6fb0; }
.swatch--purple .swatch__dot { background: #7d4fa3; }
.swatch--pink .swatch__dot { background: #e58fa8; }
.swatch--brown .swatch__dot { background: #8c5a34; }
.swatch--black .swatch__dot { background: #1a1a1a; }
.swatch--white .swatch__dot { background: #ffffff; }
.swatch--gray .swatch__dot { background: #9b9b9b; }
.swatch--multi .swatch__dot { background: conic-gradient(#c0392b, #f1c40f, #3f8f5f, #2f6fb0, #7d4fa3, #c0392b); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.toolbar__count { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.toolbar__sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.93rem; }
.toolbar__sort label { white-space: nowrap; }
.toolbar__sort select { width: auto; }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.active-filters__chip { display: inline-flex; gap: 0.4rem; align-items: center; min-height: 2.1rem; padding: 0.2rem 0.8rem; background: var(--wash); border: 1px solid var(--line); border-radius: 2rem; font-size: 0.86rem; text-decoration: none; }
.active-filters__chip:hover { border-color: var(--accent); }

.empty { padding: 3rem 1rem; text-align: center; background: var(--wash); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 2.5rem; }
.pagination ol { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pagination__page, .pagination__step {
  display: inline-grid; place-items: center; min-width: 2.6rem; min-height: 2.6rem; padding: 0 0.7rem;
  border: 1px solid var(--line); text-decoration: none; font-size: 0.93rem;
}
.pagination__page:hover, .pagination__step:hover { border-color: var(--ink); color: var(--ink); }
.pagination__page.is-current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.pagination__gap { align-self: center; padding: 0 0.3rem; color: var(--ink-soft); }

.artist-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); padding-bottom: 2rem; }
.artist { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); text-decoration: none; color: var(--ink); }
.artist:hover { border-top-color: var(--accent); color: var(--ink); }
.artist__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.artist__life { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--accent); margin: 0.2rem 0 0.6rem; font-weight: 600; }
.artist__bio { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.artist__count { font-size: 0.82rem; margin-top: 0.8rem; font-weight: 600; }

/* ------------------------------------------------------------- product page */
.product__layout { display: grid; gap: 2rem; padding-block: 1.25rem 2rem; }
@media (min-width: 56rem) { .product__layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } .product__visual { position: sticky; top: 1rem; } }

.stage { display: grid; place-items: center; padding: clamp(1.25rem, 5vw, 3.5rem); background: var(--stage); min-height: 20rem; }
.stage__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.75rem 0 0; }
.stage__note { font-size: 0.82rem; color: var(--ink-soft); }

/* Live preview of the chosen finish. Classes are switched by product.js. */
.preview { display: block; max-width: 100%; line-height: 0; transition: border-width 0.2s, padding 0.2s, box-shadow 0.2s; }
.preview__art { overflow: hidden; background: #fff; }
.preview__art img { max-height: 70vh; width: auto; max-width: 100%; transition: transform 0.2s ease-out; }
.preview__art.can-zoom { cursor: zoom-in; }
.preview__art.is-zoomed { cursor: zoom-out; touch-action: none; }
.preview__art.is-zoomed img { transform: scale(2.4); transition: none; }

.preview--paper { box-shadow: 0.3rem 0.5rem 1.2rem rgba(var(--shadow-rgb), 0.25); border: 1px solid #e8e6e1; }
.preview--canvas { box-shadow: 0.45rem 0.45rem 0 -1px #cdc7bb, 0.45rem 0.45rem 0 0 #b9b3a7, 0.9rem 1.2rem 1.8rem rgba(var(--shadow-rgb), 0.28); }
.preview--framed { border: clamp(0.6rem, 2.4vw, 1.1rem) solid #1b1b1b; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0.6rem 0.9rem 1.8rem rgba(var(--shadow-rgb), 0.3); }
.preview--framed.preview--frame-white { border-color: #f6f5f1; box-shadow: 0 0 0 1px #cfcac0, inset 0 0 0 1px #d9d5cc, 0.6rem 0.9rem 1.8rem rgba(var(--shadow-rgb), 0.25); }
.preview--framed.preview--frame-natural { border-color: #b98b5a; }
/* On the dark wall a black frame needs a hairline edge to stay visible. */
:root:not([data-theme="light"]) .preview--framed:not(.preview--frame-white):not(.preview--frame-natural) { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0.6rem 0.9rem 1.8rem rgba(0, 0, 0, 0.5); }
.preview--framed.preview--mat { padding: clamp(0.9rem, 5vw, 2.4rem); }
.preview--framed.preview--mat .preview__art { box-shadow: 0 0 0 1px #dedad2; }

.product__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.2em; }
.product__artist { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.product__price { font-size: 1.7rem; font-weight: 600; margin-bottom: 1.25rem; }
.product__price-prefix { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.product__price-prefix[hidden] { display: none; }

.options { display: grid; gap: 1.25rem; }
.options__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.options__group[hidden] { display: none; }
.options__group legend { padding: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.options__hint { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-size: 0.86rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices--stack { display: grid; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.95rem; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); }
.choices--stack .choice__box { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.choice__name { font-weight: 600; }
.choice__note { font-size: 0.86rem; color: var(--ink-soft); }
.choice input:checked + .choice__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:hover .choice__box { border-color: var(--ink); }
.frame-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid var(--control); }
.frame-dot--black { background: #1b1b1b; }
.frame-dot--white { background: #fff; }
.frame-dot--natural { background: #b98b5a; }
.check { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); }

.options__buy { display: flex; align-items: flex-end; gap: 0.75rem; }
.options__qty label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.options__qty select { min-height: 3.1rem; padding: 0.4rem 0.7rem; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); }
.button--buy { flex: 1; min-height: 3.1rem; font-size: 1.02rem; }
.button[disabled] { background: var(--control); border-color: var(--control); cursor: not-allowed; }
.options__summary { margin: 0; font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; }

.product__assurances { display: grid; gap: 0.35rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line); font-size: 0.92rem; }
.product__assurances li::before { content: "✓"; margin-right: 0.5rem; color: var(--ok); font-weight: 700; }
.product__about { margin-top: 1.75rem; }
.product__about h2 { font-size: 1.3rem; }
.product__about a { color: var(--accent); }
.product__artist-life { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.facts { margin: 1rem 0; font-size: 0.93rem; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.chips--small .chip { min-height: 2rem; font-size: 0.84rem; padding: 0.15rem 0.8rem; color: var(--ink); }
.product__about .chip:hover { color: var(--on-ink); }

/* ------------------------------------------------ cart, checkout and orders */
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1.5rem 0 1rem; }
.link-button { background: none; border: 0; padding: 0.4rem 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
.link-button:hover { color: var(--accent-dark); }

.cart__layout, .checkout__layout { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 60rem) { .cart__layout, .checkout__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; align-items: start; } }

.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.line__image { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; background: var(--wash); padding: 0.4rem; }
.line__image img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0.15rem 0.2rem 0.5rem rgba(var(--shadow-rgb), 0.2); }
.line__title { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
a.line__title:hover { text-decoration: underline; }
.line__meta { margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.line__actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.line__actions select { min-height: 2.5rem; padding: 0.3rem 0.6rem; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); }
.line__total { margin: 0; font-weight: 600; white-space: nowrap; }
.cart__update { margin-top: 1rem; }

.summary { padding: 1.4rem; background: var(--wash); border: 1px solid var(--line); }
.summary__title { font-size: 1.3rem; margin-bottom: 0.8rem; }
.summary__subtitle { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin: 1.2rem 0 0.4rem; }
.summary address { font-style: normal; font-size: 0.93rem; }
.summary__items { margin-bottom: 0.8rem; font-size: 0.92rem; }
.summary__items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.summary__opt { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.summary__cta { width: 100%; margin-top: 1.2rem; }
.summary__note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.8rem 0 0; text-align: center; }

.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; font-size: 0.95rem; }
.totals dd { margin: 0; white-space: nowrap; }
.totals__note { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.totals .totals__total { margin-top: 0.5rem; padding-top: 0.8rem; border-top: 2px solid var(--ink); font-size: 1.15rem; font-weight: 700; }
.totals__total .totals__note { display: inline; }

.coupon { margin-top: 1rem; font-size: 0.92rem; }
.coupon label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.coupon__row { display: flex; gap: 0.5rem; }
.coupon__row input { flex: 1; min-width: 0; min-height: 2.75rem; padding: 0.4rem 0.7rem; border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); text-transform: uppercase; }
.coupon p { margin: 0; }

.steps { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-top: 1.25rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step) ". "; }
.steps .is-current { color: var(--ink); font-weight: 700; }
.steps a { color: inherit; }
.checkout__hint { color: var(--ink-soft); }
.checkout__hint a, .review a, .account a:not(.card__link):not(.card__artist), .order a, .summary a:not(.button) { color: var(--accent); }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.field-row [hidden] { display: none; }
.field__optional { font-weight: 400; color: var(--ink-soft); }
.form--narrow, .auth { max-width: 34rem; }

.review { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; }
.review__head { display: flex; justify-content: space-between; align-items: baseline; }
.review h2, .pay h2 { font-size: 1.25rem; margin: 0; }
.review address { font-style: normal; }
.review__email { margin: 0; color: var(--ink-soft); }
.choice__box--split { flex-direction: row !important; align-items: center !important; justify-content: space-between; width: 100%; }
.choice__box--split .choice__name, .choice__box--split .choice__note { display: block; }
.pay { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.pay__total { font-size: 1.05rem; }
.pay__buttons { max-width: 28rem; min-height: 3rem; margin-top: 1rem; }
.pay__note { max-width: 28rem; font-size: 0.85rem; color: var(--ink-soft); }
.notice[hidden] { display: none; }

.order__status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; color: var(--ink-soft); }
.badge { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 2rem; font-size: 0.8rem; font-weight: 700; background: var(--badge-bg); color: var(--ink); white-space: nowrap; }
.badge--paid, .badge--processing, .badge--shipped, .badge--delivered { background: var(--ok-wash); color: var(--ok-ink); }
.badge--cancelled, .badge--refunded { background: var(--err-wash); color: var(--accent-dark); }

.account__email { color: var(--ink-soft); margin-top: -0.5rem; }
.account h2 { font-size: 1.4rem; margin-top: 1.5rem; }
.account-nav { border-block: 1px solid var(--line); margin-bottom: 1.5rem; }
.account-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }
.account-nav a { display: inline-block; padding: 0.8rem 0; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.account-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
.address-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin-bottom: 1.5rem; }
.address-card { padding: 1.1rem; border: 1px solid var(--line); }
.address-card address { font-style: normal; font-size: 0.95rem; }
.address-card__actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.6rem; }
.product__wish { margin-top: 0.75rem; }

/* ---------------------------------------------------------- SEO text blocks */
.seo-copy { border-top: 1px solid var(--line); }
.seo-copy p { color: var(--ink-soft); font-size: 0.97rem; max-width: 70ch; }
.seo-copy a { color: var(--ink); }
.seo-copy a:hover { color: var(--accent); }
.seo-copy__cols { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 56rem) { .seo-copy__cols { grid-template-columns: 1fr 1fr; } }
.seo-copy--listing { padding-block: 1.75rem 2.5rem; }
.seo-copy__title { font-size: 1.25rem; }

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

@media print {
  .site-header, .site-footer, .cookie-bar, .skip-link { display: none; }
}

/* ---- order progress (order page) ---------------------------------------- */
.progress { display: flex; flex-wrap: wrap; gap: 0.4rem 0; margin: 1.25rem 0 0.75rem; padding: 0; list-style: none; counter-reset: step; }
.progress li { flex: 1 1 8rem; padding-top: 0.6rem; border-top: 3px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.progress li.is-done { border-top-color: var(--ok); color: var(--ink); }
.progress li.is-current { border-top-color: var(--ok); color: var(--ink); font-weight: 700; }
.order__hint { margin: 0 0 1.25rem; color: var(--muted); }

/* ---- about page ---------------------------------------------------------- */
.about__figure { margin: 2rem 0; }
.about__figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.about__figure figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.about__facts { margin: 1rem 0 0; border-top: 1px solid var(--line); }
.about__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.about__facts dd { margin: 0; }
@media (max-width: 30rem) { .about__facts div { grid-template-columns: 1fr; gap: 0.15rem; } }
