/* self-hosted fonts (no third-party requests) */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/manrope.woff2) format("woff2");
}

:root {
  --paper: #f5efe4;
  --paper-2: #ede4d3;
  --card: #fbf8f2;
  --ink: #2b2420;
  --ink-soft: #564b43;
  --muted: #6e6258;
  --line: #ddd2bf;
  --sunset: #c8553d;
  --sunset-deep: #a8432e;
  --leaf: #4f6b4a;
  --on-accent: #fff;
  --tag-av-bg: #e3ecd9; --tag-av-fg: #36502f;
  --tag-sold-bg: #ece4d8; --tag-sold-fg: #6e6258;
  --dark-band: #2b2420;
  --grain: .35;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 10px 30px -12px rgba(43, 36, 32, .25);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

/* ---------- dark theme ---------- */
[data-theme="dark"] {
  --paper: #1b1714;
  --paper-2: #231e1a;
  --card: #26201c;
  --ink: #f1e9dc;
  --ink-soft: #d3c7b7;
  --muted: #a99a89;
  --line: #3b332c;
  --sunset: #e07a5f;
  --sunset-deep: #f0a77f;
  --leaf: #8fb08a;
  --tag-av-bg: #2f3d2b; --tag-av-fg: #c3dcb8;
  --tag-sold-bg: #3a322b; --tag-sold-fg: #c9bcab;
  --dark-band: #120f0d;
  --grain: .12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
[data-theme="dark"] .frame { background: #2e2723; outline-color: #3b332c; }
[data-theme="dark"] .card .thumb img, [data-theme="dark"] .collage img { filter: brightness(.94); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; } /* keeps anchored sections clear of the sticky header */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-variation-settings: "SOFT" 100, "opsz" 144; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-variation-settings: "SOFT" 100, "opsz" 96; }
h3 { font-size: 1.2rem; }
.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sunset-deep); font-weight: 700; margin: 0 0 .8rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 36rem; }

/* crayon-stroke underline */
.crayon {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 9 C 40 3, 80 12, 120 6 S 180 4, 198 8' fill='none' stroke='%23c8553d' stroke-width='5' stroke-linecap='round' opacity='.75'/><path d='M6 11 C 50 6, 100 13, 150 8 S 190 7, 196 10' fill='none' stroke='%23e08a5c' stroke-width='2.5' stroke-linecap='round' opacity='.6'/></svg>") no-repeat left 100% / 100% .35em;
  padding-bottom: .12em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); flex: none; }
.logo-text { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--body); font-style: normal; font-size: .74rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
[data-theme="dark"] .logo-text small { color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .95rem/1 var(--body);
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper) !important; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--sunset-deep); border-color: var(--sunset-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; }
.btn.ghost:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: .88rem; }
.btn.wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff !important; }
.btn.wa:hover { background: #18623d; border-color: #18623d; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; }
.frame {
  background: #fff; padding: clamp(12px, 2vw, 22px);
  border-radius: 4px; box-shadow: var(--shadow);
  outline: 1px solid var(--line);
}
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-art .frame { transform: rotate(1.2deg); }
.hero-art .caption {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; box-shadow: var(--shadow); font-size: .88rem; transform: rotate(-1.5deg);
}
.hero-art .caption strong { font-family: var(--display); font-size: 1.05rem; display: block; font-weight: 600; }
.stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.stats div { font-size: .88rem; color: var(--muted); }
.stats b { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); font-weight: 500; line-height: 1; margin-bottom: 4px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--ink-soft); max-width: 34rem; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.dark { background: var(--dark-band); color: #f1e9dc; }
.dark .eyebrow { color: #f0a77f; }
.dark p { color: #cfc3b3; }

/* ---------- painting cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; }
.card .thumb { position: relative; background: var(--paper-2); aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.15rem; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.price { font-weight: 800; font-size: 1.02rem; }
.tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag.available { background: var(--tag-av-bg); color: var(--tag-av-fg); }
.tag.sold { background: var(--tag-sold-bg); color: var(--tag-sold-fg); }
.card.is-sold .price { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.badge-on-img { position: absolute; top: 12px; left: 12px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.chip {
  font: 700 .9rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { margin-left: 5px; font-weight: 500; }
.filters .spacer { flex: 1; }
.filters select {
  font: 600 .9rem var(--body); padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background-color: var(--card); color: var(--ink);
}

/* ---------- medium / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.points { display: grid; gap: 22px; margin-top: 28px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.point .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); font-size: 1.3rem;
}
.point h3 { font-size: 1.05rem; margin-bottom: 2px; }
.point p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.collage img:nth-child(2) { transform: translateY(26px); }
.collage img:nth-child(4) { transform: translateY(26px); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 80%);
  gap: 22px; overflow-x: auto; scroll-behavior: smooth;
  padding: 6px 2px 18px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
/* snapping is switched on after load: snapping during load makes Chrome stop measuring page speed (LCP) */
.track.snap { scroll-snap-type: x mandatory; }
.slide { scroll-snap-align: start; }
.slide .art { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #3a312b; position: relative; }
.slide .art img, .slide .art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide h3 { margin-top: 14px; font-size: 1.15rem; }
.slide p { margin: 4px 0 0; font-size: .92rem; }
.ph-label {
  position: absolute; top: 10px; right: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(0,0,0,.45); color: #fff; padding: 4px 9px; border-radius: 999px;
}
.car-btns { display: flex; gap: 10px; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor;
  background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem;
}
.car-btn:hover { background: #f1e9dc; color: #2b2420; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.dots { gap: 2px; }
.dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a7d71; transition: width .2s; }
.dots button[aria-current="true"]::before { background: #f0a77f; width: 20px; border-radius: 4px; }

/* ---------- prints page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sunset); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.print-card .opts { list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; color: var(--ink-soft); }
.print-card .opts li { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding: 6px 0; }
.print-card .opts li:first-child { border-top: 0; }
.print-card .thumb svg { width: 100%; height: 100%; display: block; }

/* ---------- commission + contact ---------- */
.cta-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.contact-list { display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600;
}
.contact-list a:hover { border-color: var(--ink-soft); }
.contact-list small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.contact-list .ic { font-size: 1.3rem; width: 28px; text-align: center; }

/* ---------- lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; max-width: min(1120px, 94vw); width: 100%; max-height: 92vh;
  border-radius: 18px; background: var(--card); color: var(--ink); overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(28, 22, 18, .82); backdrop-filter: blur(4px); }
.lb { display: grid; grid-template-columns: 1.6fr 1fr; max-height: 92vh; }
.lb-img { background: #1e1915; display: grid; place-items: center; min-height: 300px; position: relative; }
.lb-img img { max-height: 92vh; width: 100%; object-fit: contain; }
.lb-info { padding: 34px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lb-info h2 { font-size: 1.9rem; }
.lb-info p { margin: 0; color: var(--ink-soft); }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 6px 0; font-size: .92rem; }
.lb-info dt { color: var(--muted); }
.lb-info dd { margin: 0; font-weight: 600; }
.lb-info .big-price { font-family: var(--display); font-size: 2rem; }
.lb-info .actions { display: grid; gap: 10px; margin-top: 6px; }
.lb-info .actions .btn { justify-content: center; }
.lb-info .note { font-size: .84rem; color: var(--muted); }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; background: rgba(255,255,255,.9); color: #2b2420;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center;
}
.lb-close { top: 14px; right: 14px; z-index: 2; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }

/* ---------- view in a room ---------- */
.lb-img { display: flex; flex-direction: column; }
.lb-stage-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
.lb-stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-height: calc(92vh - 96px); }
.lb-stage.is-room { background: #1e1915; padding: 0; }
.room-svg { width: 100%; height: auto; max-height: calc(92vh - 96px); display: block; }
.lb-bar {
  background: #17130f; color: #d9cfc1; padding: 10px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.lb-views { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lb-views button {
  font: 700 .82rem var(--body); padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid #4a4038; background: transparent; color: #d9cfc1;
}
.lb-views button:hover { border-color: #a89886; }
.lb-views button[aria-selected="true"] { background: #f1e9dc; color: #2b2420; border-color: #f1e9dc; }
.lb-opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.lb-opts .scale-note { color: #a89886; flex: 1 1 240px; min-width: 0; }  /* the caption wraps; the controls keep their line */
.lb-opt-row { display: flex; gap: 12px; align-items: center; flex: none; margin-left: auto; }
.lb-opts select {
  font: 600 .8rem var(--body); background-color: #2b2420; color: #f1e9dc;
  border: 1px solid #4a4038; border-radius: 999px; padding: 5px 10px;
}
.dims-toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: #d9cfc1; }
.lb-nav { top: 40%; }

/* photos include the frame & mat — zoom in a little on cards to show the artwork */
.card .thumb img { transform: scale(var(--zoom, 1)); }
.card:hover .thumb img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.room-pill {
  position: absolute; right: 12px; bottom: 12px; font-size: .75rem; font-weight: 800;
  background: rgba(251, 248, 242, .94); color: var(--ink); padding: 6px 11px; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.room-pill::before { content: "🛋  "; }
.card:hover .room-pill, .card:focus-visible .room-pill { opacity: 1; transform: none; }
.room-pill:hover { background: var(--ink); color: var(--paper); }
/* dark theme: --ink is cream there, so the pill turns dark to keep its text readable */
[data-theme="dark"] .room-pill { background: rgba(27, 23, 20, .9); box-shadow: 0 0 0 1px rgba(241, 233, 220, .18); }
[data-theme="dark"] .room-pill:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) { .room-pill { opacity: 1; transform: none; } }

.room-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.room-fig { margin: 0; }
.room-open { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-open:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; }
.room-fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .room-demo { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.foot-links { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.social { display: inline-flex; gap: 8px; }
@media (max-width: 760px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .social { align-self: flex-end; margin-top: 10px; }
}
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--ink); border-color: var(--ink-soft); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social svg .dot, .social svg .fill { fill: currentColor; stroke: none; }

/* ---------- page header ---------- */
.page-head { padding: clamp(40px, 6vw, 70px) 0 10px; }
.page-head .lede { margin-top: 14px; }
.page-head + section.ship { padding-top: clamp(20px, 3vw, 36px); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .track { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split, .cta-box { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-img img { max-height: 60vh; }
}
@media (max-width: 760px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; cursor: pointer;
  }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .hero-art .caption { left: 10px; }
}

/* ---------- additions: accessibility, header actions, painting pages ---------- */
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }
.muted { color: var(--muted); }
.h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.15; margin: 0; }
.card { text-decoration: none; }
.card h3, .card .h3, .print-card .h3 { font-size: 1.15rem; }

.header-actions { display: flex; gap: 8px; align-items: center; order: 3; }
.site-header .nav { order: 2; margin-left: auto; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--ink-soft); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { color: var(--ink); }

.hero-art { display: block; position: relative; text-decoration: none; color: inherit; }
.frame picture, .frame img { width: 100%; }
.collage-item { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.collage .collage-item:nth-child(2), .collage .collage-item:nth-child(4) { transform: translateY(26px); }
.collage img:nth-child(2), .collage img:nth-child(4) { transform: scale(var(--zoom, 1)); }
.btn.on-dark { color: #f1e9dc !important; border-color: #f1e9dc; }
.btn.on-dark:hover { background: #f1e9dc; color: #2b2420 !important; }
.car-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ph-art { width: 100%; height: 100%; }
.ph-art svg { width: 100%; height: 100%; display: block; }
.room-ph { aspect-ratio: 320 / 272; background: var(--paper-2); }
.steps { list-style: none; padding: 0; }

.crumbs { font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--ink-soft); }
.painting-page { padding: 22px 0 70px; }
.painting-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.viewer { border-radius: 16px; overflow: hidden; background: #1e1915; box-shadow: var(--shadow); }
.viewer-photo img, .viewer .lb-stage img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; margin: auto; }
.viewer .lb-stage { min-height: 260px; }
/* Painting and room views share one frame (the rooms' 320 × 272 shape), so switching
   between them doesn't resize the page; the painting sits centred on the dark backdrop. */
.viewer-photo, .lb-stage { aspect-ratio: 320 / 272; width: 100%; min-height: 0; flex: none; display: grid; place-items: center; }
.lightbox .lb-stage { max-height: calc(92vh - var(--bar-h, 96px)); }
.viewer-photo picture, .lb-stage picture { display: contents; }
.viewer-photo img, .lb-stage img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.lb-stage .room-svg { width: 100%; height: 100%; max-height: none; }
/* the bar under it is as tall as its tallest view (measured in app.js), so it doesn't jump either */
.lb-bar { box-sizing: border-box; min-height: var(--bar-h, 0); align-content: center; }
.painting-info { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.painting-info .tag { align-self: start; }
.painting-info h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.painting-info .lede { margin: 0; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.painting-info .big-price { font-family: var(--display); font-size: 2.2rem; }
.painting-info .big-price s { color: var(--muted); }
.sold-word { font-family: var(--body); font-size: 1rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }
.painting-info .actions { display: grid; gap: 10px; }
.painting-info .actions .btn { justify-content: center; }
.painting-info .note { font-size: .88rem; color: var(--muted); margin: 0; }
.lb-info .page-link { font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 900px) {
  .painting-layout { grid-template-columns: 1fr; }
  .painting-info { position: static; }
}
@media (max-width: 760px) {
  .site-header .nav { margin-left: 0; }
}

/* the hidden attribute always wins over display rules (gallery filters) */
[hidden] { display: none !important; }

/* keep the highlighted words together ("wax crayon" never splits) */
.crayon { white-space: nowrap; }

/* custom dropdown arrow with even spacing (filters + room frame picker) */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6258' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 10px 7px;
  cursor: pointer;
}
[data-theme="dark"] select, .lb-opts select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23d9cfc1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.lb-opts select { padding: 6px 12px; background-position: right 12px center; }

/* ---------- about / the artist ---------- */
.story-intro { padding-top: 30px; }
.story-intro .split { align-items: start; }
.story-fig, .timeline figure { margin: 0; }
.story-fig img, .timeline img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.story-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.prose { font-size: 1.05rem; color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }
.prose b { color: var(--ink); font-weight: 700; }
.prose h2 { margin: 1.4em 0 .4em; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--sunset); }
.fact h3 { font-size: 1.05rem; margin-bottom: 6px; }
.fact p, .facts-2 p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.facts-2 { margin-top: 36px; align-items: center; }
.facts-2 h3 { margin-bottom: 8px; }
.stat-card { background: var(--dark-band); color: #f1e9dc; border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 6px; }
.stat-card .big { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; color: #f0a77f; }
.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 44px; position: relative; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 50px); align-items: center; }
.timeline li:nth-child(even) figure { order: 2; }
.timeline h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.timeline p { margin: 0; color: var(--ink-soft); }
.pct { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--sunset-deep); border-radius: 999px; padding: 4px 12px; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.about-link { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--sunset-deep); }
[data-theme="dark"] .about-link { color: #f0a77f; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline li:nth-child(even) figure { order: 0; }
}

/* print cards: the artwork statement, folded away */
.statement { margin-top: 10px; font-size: .92rem; }
.statement summary { cursor: pointer; font-weight: 700; color: var(--sunset-deep); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.statement summary::-webkit-details-marker { display: none; }
.statement summary::after { content: "+"; font-weight: 800; }
.statement[open] summary::after { content: "−"; }
.statement p { margin: 8px 0 0; line-height: 1.6; color: var(--muted, inherit); }
[data-theme="dark"] .statement summary { color: #f0a77f; }

/* ---------- print shop checkout ---------- */
.print-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.print-card .opts .cur-note { font-size: .78rem; color: var(--muted); border-top: 0; padding-top: 2px; }
.buy-print[disabled] { opacity: .55; cursor: progress; }
dialog.shop-dialog { width: min(560px, 94vw); max-height: 92vh; overflow-y: auto; padding: 0; }
.shop-form { padding: 30px 28px 26px; display: grid; gap: 14px; }
.shop-form h2 { font-size: 1.7rem; margin: -6px 0 2px; padding-right: 40px; }
.shop-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.shop-form legend { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.shop-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 5px; font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.fld small { font-weight: 500; color: var(--muted); }
.fld input, .fld select {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); background-color: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box;
}
.fld select { padding-right: 36px; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--sunset); outline-offset: 1px; border-color: transparent; }
.shop-form .summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; padding: 14px 16px; background: var(--paper-2); border-radius: 12px; font-size: .92rem; }
.shop-form .summary dt { color: var(--ink-soft); }
.shop-form .summary dd { margin: 0; font-weight: 700; text-align: right; }
.shop-form .summary .tot { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.shop-form .err { margin: 0; color: #b3261e; font-weight: 600; font-size: .9rem; }
.shop-form .err:empty { display: none; }
[data-theme="dark"] .shop-form .err { color: #ffb4a9; }
.shop-form .actions { display: grid; }
.shop-form .actions .btn { justify-content: center; }
.shop-form .note { margin: 0; font-size: .8rem; color: var(--muted); }
.shop-done p { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .shop-form .two { grid-template-columns: 1fr; } .shop-form { padding: 26px 18px 20px; } }
.tag.soon { background: #f6e2c8; color: #8a4a1f; }
[data-theme="dark"] .tag.soon { background: #4a3322; color: #f5c99c; }
.soon-note { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* print cards: square pictures (Printful mockups are square) and a strip of mockup thumbnails */
.print-card .thumb { aspect-ratio: 1; background: #f4f2ef; }
.print-card .thumb .shot, .print-card .thumb .shot picture { display: contents; }
.print-card .thumb .shot[hidden] { display: none !important; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; padding: 10px 14px 0; }
.shots button { aspect-ratio: 1; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--paper-2); opacity: .75; transition: opacity .15s, border-color .15s; }
.shots button:hover { opacity: 1; }
.shots button[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steps-title { margin-bottom: 14px; }

/* ---------- print pop-up ---------- */
.print-card .thumb { cursor: zoom-in; }
.view-larger {
  position: absolute; right: 12px; bottom: 12px; border: 0; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 800;
  background: rgba(251, 248, 242, .94); color: #2b2420; padding: 6px 11px; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.view-larger::before { content: "⤢  "; }
.print-card:hover .view-larger, .view-larger:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .view-larger { opacity: 1; transform: none; } }
[data-theme="dark"] .view-larger { background: rgba(27, 23, 20, .9); color: #f1e9dc; box-shadow: 0 0 0 1px rgba(241, 233, 220, .18); }
.print-lb .print-stage { justify-content: center; padding-bottom: 14px; }
.print-lb .pshots { position: relative; width: min(100%, calc(92vh - 70px)); aspect-ratio: 1; margin: 0 auto; background: #f4f2ef; }
.print-lb .pshots .shot, .print-lb .pshots picture { display: contents; }
.print-lb .pshots .shot[hidden] { display: none !important; }
.print-lb .pshots img, .print-lb .pshots .ph-art { width: 100%; height: 100%; object-fit: contain; max-height: none; display: block; }
.print-lb .shots { width: min(100%, calc(92vh - 70px)); box-sizing: border-box; margin: 0 auto; padding: 10px 12px 0; }
.print-lb .shots button { background: #2e2723; }
.print-lb .shots button[aria-pressed="true"] { border-color: #f1e9dc; }
.print-lb .lb-info .h3 { font-size: 1.9rem; padding-right: 48px; }
.print-lb .lb-info .meta { font-size: .95rem; color: var(--ink-soft); }
.print-lb .statement summary { pointer-events: none; }
.print-lb .statement summary::after { content: none; }
.print-lb .pshots .ph-label { left: 12px; right: auto; }

/* print cards stay simple: the mockup strip and the full text live in the pop-up */
.card.print-card > .shots, .card.print-card .statement { display: none; }
.print-card .thumb { cursor: zoom-in; }

/* artwork can't be dragged out, selected, or saved with a long press on iPhone/iPad */
img, svg.room-svg { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- packing & shipping page ---------- */
.ship-steps figure { display: flex; justify-content: center; }
.ship-steps figure img { width: auto; max-width: 100%; max-height: min(560px, 78vh); }
.ship-steps figure.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.ship-steps figure.pair picture { display: block; min-width: 0; }
.ship-steps figure.pair img { width: 100%; max-height: none; }
.ship-steps .pct { white-space: nowrap; }
