/* Layout: a light, airy shop window — pale Taos sky (matches her photo backdrop),
   indigo bead ink, gold from the ear wires; one beaded-fringe flourish under the hero. */
:root {
  --bg: #edf2f6;
  --surface: #f8fafc;
  --ink: #1e2342;
  --muted: #59617d;
  --line: #d3dbe4;
  --accent: #2b3170;
  --accent-ink: #f8fafc;
  --gold: #a5813a;
  --sold: #8a90a3;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
  --radius: 3px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12152a;
    --surface: #1a1e37;
    --ink: #eceffa;
    --muted: #a4abc6;
    --line: #2d3253;
    --accent: #c9cdf5;
    --accent-ink: #12152a;
    --gold: #d6b46c;
    --sold: #767c96;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12152a;
  --surface: #1a1e37;
  --ink: #eceffa;
  --muted: #a4abc6;
  --line: #2d3253;
  --accent: #c9cdf5;
  --accent-ink: #12152a;
  --gold: #d6b46c;
  --sold: #767c96;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo {
  font: 500 26px/1 var(--serif); letter-spacing: 0.04em; text-decoration: none;
}
.logo small {
  display: block; font: 400 10px/1 var(--sans); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}
.nav { display: flex; gap: 20px; font-size: 14px; letter-spacing: 0.06em; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* hero */
.hero { padding-block: 64px 0; text-align: center; }
.hero h1 {
  font: 400 clamp(34px, 6vw, 60px)/1.08 var(--serif);
  margin: 0 auto 16px; max-width: 16ch; text-wrap: balance;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 46ch; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}

/* section heads */
.section { padding-block: 40px 56px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.section-head h2 { font: 500 30px/1.2 var(--serif); margin: 0; }
.section-head span { color: var(--muted); font-size: 14px; }

/* grid */
.grid {
  display: grid; gap: 28px 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }
.card { text-decoration: none; display: block; }
.card .photo {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--line); border-radius: var(--radius);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
/* Name + price sit on the photo's pale-blue backdrop, so they use fixed
   photo-safe colors rather than theme tokens. */
.card .label {
  position: absolute; inset: 0 0 auto 0; padding: 14px 14px 40px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: linear-gradient(to bottom, rgba(237, 242, 246, 0.92) 0%, rgba(237, 242, 246, 0.6) 55%, rgba(237, 242, 246, 0) 100%);
  color: #1e2342;
}
.card h3 { font: 500 20px/1.15 var(--serif); margin: 0; min-width: 0; text-wrap: balance; }
.card .price { font-size: 14px; letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .card .label { flex-direction: column; gap: 2px; padding: 10px 10px 32px; }
  .card h3 { font-size: 17px; }
  .card .price { font-size: 13px; }
}
.badge {
  position: absolute; bottom: 10px; left: 10px; background: var(--surface); color: var(--ink);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 9px;
  border-radius: 2px;
}
.card.is-sold img { filter: grayscale(0.6); opacity: 0.75; }

.empty, .loading { color: var(--muted); padding: 32px 0; text-align: center; }

/* about / custom */
.split { display: grid; gap: 40px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.prose h2 { font: 500 32px/1.2 var(--serif); margin: 0 0 12px; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 500; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.where { list-style: none; padding: 0; margin: 0; }
.where li { padding: 10px 0; border-top: 1px solid var(--line); }
.where li:first-child { border-top: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 1px solid var(--accent); border-radius: 2px;
  background: var(--accent); color: var(--accent-ink); font: 500 14px/1 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { background: transparent; color: var(--sold); border-color: var(--line); cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

/* piece page */
.piece { display: grid; gap: 32px; padding: 32px 0 64px; }
@media (min-width: 860px) { .piece { grid-template-columns: minmax(0, 520px) 1fr; gap: 56px; padding-top: 48px; } }
.piece .main-photo { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.piece .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; cursor: pointer; background: none;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.piece h1 { font: 400 clamp(34px, 5vw, 48px)/1.1 var(--serif); margin: 0 0 8px; }
.piece .price { font-size: 20px; margin: 0 0 24px; }
.piece .price small { color: var(--muted); font-size: 14px; margin-left: 6px; }
.piece .desc p { margin: 0 0 14px; }
.piece .desc p + p { color: var(--muted); font-size: 15px; }
.buy { margin: 28px 0 12px; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.error { color: var(--accent); font-size: 14px; margin: 0; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--muted); }

.demo-banner {
  background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 8px 16px;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* beaded fringe under the hero: strands in a V, like her chevron earrings */
.fringe {
  display: flex; justify-content: center; align-items: flex-start; gap: 3px;
  height: 96px; margin: 36px auto 8px; max-width: 100%; overflow: hidden;
}
.fringe span {
  width: 4px; border-radius: 2px; flex: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 1px, var(--c) 1px 6px);
  transform-origin: top; animation: sway 6s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .fringe span { animation: none; } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.where a, .note a, .empty a { color: var(--accent); }

/* related pieces on the piece page */
#related { border-top: 1px solid var(--line); padding-top: 48px; }
.section-head .see-all { color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.section-head .see-all:hover { color: var(--ink); }
@media (min-width: 860px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 859px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* about pop-up */
.meet { margin-top: 14px !important; }
.meet a { color: var(--accent); font-size: 15px; letter-spacing: 0.04em; }
.about-dialog {
  width: min(960px, calc(100vw - 40px)); max-height: calc(100dvh - 40px);
  padding: 0; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); overflow: auto;
}
.about-dialog::backdrop { background: rgba(18, 21, 42, 0.55); backdrop-filter: blur(3px); }
.about-dialog[open] { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .about-dialog[open] { animation: none; } }
.about-dialog .about { display: grid; gap: 24px; padding: 24px; }
@media (min-width: 760px) {
  .about-dialog .about { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 32px; align-items: center; }
}
.about-dialog .prose { min-width: 0; }
.dialog-close {
  position: sticky; top: 8px; float: right; margin: 8px 8px -48px 0; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.portrait { margin: 0; }
/* Whole photo, never cropped; size is capped so it doesn't fill the screen. */
.portrait img {
  display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain;
  border-radius: var(--radius);
}
@media (max-width: 759px) {
  .portrait { text-align: center; }
  .portrait img { width: auto; max-width: 100%; max-height: 34vh; margin: 0 auto; }
}
.portrait figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; }

/* shops that carry her work: name as a title, then kind and link */
.where li { display: grid; gap: 2px; padding: 14px 0; }
.where .shop-name { font: 500 20px/1.25 var(--serif); color: var(--ink); }
.where .shop-kind { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.where a { font-size: 14px; justify-self: start; }

/* tag filter chips */
.tag-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.chip span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--muted); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-current="true"] span { color: inherit; opacity: 0.75; }
.piece-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.piece-tags .chip { min-height: 30px; font-size: 13px; padding: 0 12px; }

/* card video: sits over the photo, fades in once it's actually playing */
.card-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card-video.is-playing { opacity: 1; }
.card .label, .card .badge { z-index: 1; }

/* piece page carousel */
.carousel { position: relative; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); background: var(--line); scrollbar-width: none;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; aspect-ratio: 3 / 4; scroll-snap-align: start; max-width: 100%; }
.carousel .slide img, .carousel .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(248, 250, 252, 0.85); color: #1e2342; font-size: 26px; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px;
}
.carousel .nav.prev { left: 10px; }
.carousel .nav.next { right: 10px; }
.carousel .nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .carousel .nav { display: none; } }
.carousel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel .dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--line);
}
.carousel .dots button[aria-current="true"] { background: var(--ink); }

/* cart link in the header */
.nav { align-items: center; }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink) !important; padding: 4px; }
.cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}

/* cart drawer */
.cart-dialog {
  margin: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--surface); color: var(--ink); overflow: auto;
}
.cart-dialog::backdrop { background: rgba(18, 21, 42, 0.45); }
.cart-dialog[open] { animation: slide-in .25s ease-out; }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cart-dialog[open] { animation: none; } }
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.cart-head h2 { font: 500 26px/1.2 var(--serif); margin: 0; }
.cart-head .dialog-close { position: static; float: none; margin: 0; }
.cart-body { padding: 24px; display: grid; gap: 18px; }
.cart-empty { color: var(--muted); margin: 0; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cart-items img { width: 64px; height: 85px; object-fit: cover; border-radius: 2px; background: var(--line); }
.cart-name { display: block; font: 500 18px/1.25 var(--serif); text-decoration: none; }
.cart-price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-remove { background: none; border: 0; padding: 6px 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-totals { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; font-size: 15px; }
.cart-totals div { display: flex; justify-content: space-between; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-totals .total { font-size: 17px; padding-top: 6px; }
.cart-totals .total dt { color: var(--ink); }
.cart-body .btn { width: 100%; }

/* play button for phones that won't autoplay */
.carousel .slide { position: relative; }
.tap-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30, 35, 66, 0.7); color: #fff; font-size: 24px; padding-left: 5px;
}

/* the video's dot is a small play triangle so people know to swipe to it */
.carousel .dots { align-items: center; }
.carousel .dots .dot-video {
  width: auto; height: auto; background: none; border-radius: 0;
  color: var(--muted); font-size: 11px; line-height: 1; padding: 0 1px;
}
.carousel .dots .dot-video[aria-current="true"] { background: none; color: var(--ink); }
