/* PawTrait Studios
   Fonts: Libre Caslon Text (headings) and Libre Franklin (text), both SIL Open Font License,
   self-hosted in /fonts so no third party sees visitors. */
@font-face { font-family: 'Libre Franklin'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/libre-franklin-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/libre-franklin-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/libre-franklin-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/libre-caslon-text-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/libre-caslon-text-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
/* The site is designed light and is never a dark theme. Without this, phones that are set to
   dark mode repaint the cream paper, the buttons and the color swatches near-black. */
:root { color-scheme: light; }
:root {
  /* A gallery wall: linen paper, a sand wall behind the hero, the paintings hung on a deep
     evergreen museum wall in gilt frames. Everyday accent: evergreen; Christmas: cranberry. */
  --paper: #f7f0e4;
  --paper-2: #eedfc8;
  --card: #fffbf4;
  --sand: #efe1cb;
  --wall: #1f3b31;
  --wall-2: #2a4a3e;
  --wall-ink: #f7efe1;
  --wall-muted: #d3cbb8;
  --gilt: #d2ad62;
  --gilt-deep: #8c6727;
  --gilt-frame: linear-gradient(135deg, #e6c983 0%, #a57b33 28%, #f0d896 50%, #9a7029 74%, #d9b66c 100%);
  --band: #e9efe8;
  --band-line: #cfdccf;
  --cta-bg: #2f5d50;
  --cta-ink: #f7efe1;
  --ink: #2a2522;
  --muted: #5e554c;
  --line: #e6ddcf;
  /* Dark enough to be seen: form fields and buttons outlined in the old value (#cbbfa9) measured
     1.8:1 against white, so older visitors could not find the inputs. 4.2:1 on white. */
  --line-strong: #8a7a63;
  --primary: #2f5d50;
  --primary-hover: #234a3f;
  --primary-soft: #e7efe9;
  --price: #9a3f22;
  --star: #a8781c;
  --bar-bg: #1f3b31;
  --bar-ink: #f7efe1;
  --frame: #4a3626;
  --danger-bg: #fbeceb;
  --danger-ink: #8a2420;
  --ok-ink: #2c6a45;
  --focus: #1d5fbf;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(42, 37, 34, .06), 0 8px 24px -12px rgba(42, 37, 34, .22);
  --wrap: 1140px;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
}
/* Christmas: cranberry and evergreen */
html[data-season="christmas"] {
  --primary: #8e1f24;
  --primary-hover: #74181c;
  --primary-soft: #f6e6e4;
  --price: #8e1f24;
  --bar-bg: #1f3b31;
  --bar-ink: #f7efe1;
  /* The gifts band: a soft cranberry, like wrapping paper */
  --band: #f5e2dc;
  --band-line: #e8c6bd;
  --cta-bg: #8e1f24;
}
html[data-season="christmas"] [data-season-only="everyday"],
html[data-season="everyday"] [data-season-only="christmas"] { display: none !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); margin: 0 0 var(--s4); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); margin: 0 0 var(--s3); }
h3 { font-size: 1.45rem; margin: 0 0 var(--s4); }
h4 { font-size: 1.25rem; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s4); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
.center { text-align: center; }
.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; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: var(--s3); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button, a, label, input, select { -webkit-tap-highlight-color: rgba(47, 93, 80, 0.15); }

/* ---------- Image slots with a quiet fallback ---------- */
.ph { display: block; position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ---------- Season bar and header ---------- */
.season-bar { background: var(--bar-bg); color: var(--bar-ink); text-align: center; padding: var(--s2) var(--s4); font-size: 1rem; }
.season-bar p { margin: 0; }
.season-bar b { font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; margin: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; fill: var(--primary); flex: 0 0 auto; }
.main-nav { display: none; gap: var(--s5); }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--primary); color: var(--ink); }
@media (min-width: 760px) { .main-nav { display: flex; } .site-header { padding: var(--s3) var(--s5); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; min-height: 58px; padding: var(--s3) var(--s5);
  border: 2px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 700; font-size: 1.15rem; text-align: center; text-decoration: none; line-height: 1.25;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-big { max-width: 420px; }
.btn-small { width: auto; min-height: 46px; padding: var(--s2) var(--s4); font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn:disabled { background: #d9d2c6; color: #5e554c; border-color: transparent; cursor: not-allowed; }
.link-btn {
  background: none; border: none; color: var(--muted); font: inherit; font-size: 1rem;
  text-decoration: underline; cursor: pointer; padding: var(--s2);
}
.link-btn:hover { color: var(--ink); }
.text-link { font-weight: 700; font-size: 1.1rem; }
.text-link::after { content: ' \2192'; }

/* ---------- Sections ---------- */
main { display: block; }
.section-head { max-width: 680px; margin: 0 auto var(--s6); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Hero ---------- */
/* Full-width colored bands on a section that keeps its content width: the color is painted
   past both edges and clipped to the band (body hides horizontal overflow). */
.hero, .styles-show, .gifts { --band-bg: transparent; background: var(--band-bg); box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(0 -100vmax); }

.hero {
  --band-bg: var(--sand);
  display: grid; gap: var(--s6); align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: var(--s6) var(--s4) var(--s7);
}
.hero-copy { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto var(--s5); }
.hero-ctas { display: grid; gap: var(--s3); max-width: 420px; margin: 0 auto; }
.hero-trust { margin: var(--s4) 0 0; color: var(--muted); font-size: 1rem; font-weight: 600; }

.mixer { display: grid; grid-template-columns: 1fr; justify-items: center; gap: var(--s3); }
.mixer-inputs { display: flex; align-items: center; gap: var(--s3); }
.mixer-photo { width: clamp(120px, 34vw, 160px); aspect-ratio: 1; border-radius: var(--r); border: 4px solid var(--card); box-shadow: var(--shadow); }
.mixer-photo figcaption {
  position: absolute; left: 50%; bottom: var(--s2); transform: translateX(-50%);
  white-space: nowrap; background: rgba(42, 37, 34, .85); color: #fff;
  font-weight: 600; font-size: .9rem; padding: 2px var(--s3); border-radius: 999px;
}
.mixer-plus { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--muted); }
.mixer-arrow { width: 72px; transform: rotate(90deg); }
.mixer-arrow svg { width: 100%; display: block; stroke: var(--muted); }

.mixer-result {
  position: relative; width: min(100%, 440px); aspect-ratio: 1;
  padding: 12px; background: var(--gilt-frame);
  box-shadow: 0 2px 3px rgba(42, 37, 34, .18), 0 22px 40px -18px rgba(42, 37, 34, .55), inset 0 0 0 1px rgba(90, 62, 20, .45);
}
.mixer-slides { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--paper-2); border: 6px solid #f7f1e6; }
.mixer-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.mixer-slide.active { opacity: 1; }
.mixer-chip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  white-space: nowrap; background: var(--card); color: var(--ink); font-weight: 700;
  padding: var(--s1) var(--s4); border-radius: 999px; font-size: 1rem; border: 1px solid var(--line-strong);
}
.mixer-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s6); }
.mixer-thumbs button {
  width: 56px; height: 56px; padding: 0; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); background: var(--paper-2);
}
.mixer-thumbs button.active { border-color: var(--primary); }
.mixer-thumbs .ph { width: 100%; height: 100%; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; padding: var(--s7) var(--s5) var(--s8); gap: var(--s7); }
  .hero-copy { text-align: left; }
  .lede { margin-left: 0; }
  .hero-ctas { grid-template-columns: 1fr 1fr; max-width: 520px; margin: 0; }
  .mixer { grid-template-columns: auto auto 1fr; align-items: center; gap: var(--s4); }
  .mixer-inputs { flex-direction: column; gap: var(--s2); }
  .mixer-photo { width: 140px; }
  .mixer-arrow { transform: none; width: 64px; }
  .mixer-thumbs { grid-column: 1 / -1; }
}

/* ---------- Assurances ---------- */
.assurances {
  list-style: none; margin: 0; padding: var(--s5) var(--s4);
  display: grid; gap: var(--s3) var(--s5); grid-template-columns: 1fr;
  background: var(--card); border-top: 3px solid var(--gilt); border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.assurances li { max-width: var(--wrap); position: relative; padding-left: 34px; }
.assurances li::before {
  content: '\2713'; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; line-height: 24px; text-align: center;
}
.assurances strong { font-weight: 700; }
@media (min-width: 640px) { .assurances { grid-template-columns: 1fr 1fr; padding-inline: var(--s6); } }
@media (min-width: 1000px) { .assurances { grid-template-columns: repeat(4, auto); justify-content: center; gap: var(--s6); } }

/* ---------- Style showcase ---------- */
/* The paintings hang on a deep evergreen museum wall, each in a gilt frame. */
.styles-show {
  --band-bg: var(--wall); --focus: #f0d896;
  max-width: var(--wrap); margin: 0 auto; padding: var(--s8) var(--s4); color: var(--wall-ink);
}
.styles-show h2 { color: var(--wall-ink); }
.styles-show .section-head p { color: var(--wall-muted); }
.styles-show .style-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--wall-ink); overflow: visible; }
.styles-show .style-card .ph {
  padding: 10px; background: var(--gilt-frame); border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 24px 36px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(90, 62, 20, .5);
}
.styles-show .style-card .ph img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.styles-show .style-card-label { padding: var(--s4) 2px 0; }
.styles-show .style-card-try { color: var(--gilt); }
.styles-show .style-card:hover .style-card-try { text-decoration: underline; }
.styles-show .style-card-from { padding: var(--s2) 2px 0; }
.styles-show .from-label, .styles-show .from-pics b { color: var(--wall-muted); }
.styles-show .from-pics img { border-color: var(--wall-2); }
.style-show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.style-card {
  display: block; padding: 0; border: 1px solid var(--line); cursor: pointer; text-align: left;
  border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow);
  font: inherit; color: var(--ink); transition: border-color .15s;
}
.style-card:hover { border-color: var(--line-strong); }
.style-card .ph { aspect-ratio: 4 / 5; }
.style-card-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: var(--s3) var(--s4) 0; }
.style-card-label strong { font-family: var(--serif); font-size: 1.15rem; }
.style-card-try { font-size: .95rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.style-card-from { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2) var(--s4) var(--s4); }
.from-label { font-size: .92rem; color: var(--muted); }
.from-pics { display: flex; align-items: center; gap: var(--s2); }
.from-pics img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.from-pics b { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }
@media (max-width: 520px) { .style-card-label { flex-direction: column; } .from-pics img { width: 46px; height: 46px; } }
/* Cards that cycle through a style's examples fade between them. */
.style-card img { transition: opacity .3s ease; }
.style-card img.swapping { opacity: 0; }
@media (min-width: 760px) { .style-show-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

/* ---------- Story (nostalgia / remembrance) ---------- */
.story {
  max-width: var(--wrap); margin: var(--s6) auto; padding: 0 var(--s4);
  display: grid; gap: var(--s5); align-items: center;
}
.story-art {
  aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center;
  padding: 12px; background: var(--gilt-frame); border-radius: 2px;
  box-shadow: 0 2px 3px rgba(42, 37, 34, .18), 0 22px 40px -18px rgba(42, 37, 34, .55), inset 0 0 0 1px rgba(90, 62, 20, .45);
}
.story-copy p { font-size: 1.12rem; }
.story-art img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
@media (min-width: 860px) {
  .story { grid-template-columns: 5fr 6fr; gap: var(--s7); padding: 0 var(--s5); }
  .story-copy { max-width: 540px; }
}

/* ---------- About (the person behind the store) ---------- */
.about {
  max-width: var(--wrap); margin: var(--s6) auto; padding: 0 var(--s4);
  display: grid; gap: var(--s5); align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5; max-width: 300px; width: 100%; justify-self: center;
  border-radius: 16px;
  box-shadow: 0 2px 3px rgba(42, 37, 34, .14), 0 26px 46px -22px rgba(42, 37, 34, .5);
}
.about-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
  font-weight: 700; color: var(--muted); margin: 0 0 var(--s3);
}
.about-copy h2 { margin-top: 0; }
.about-copy p { font-size: 1.12rem; }
@media (min-width: 860px) {
  .about { grid-template-columns: 6fr 5fr; gap: var(--s7); padding: 0 var(--s5); }
  .about-copy { max-width: 540px; }
}

/* ---------- Gift showcase ---------- */
.gifts { --band-bg: var(--band); max-width: var(--wrap); margin: var(--s7) auto 0; padding: var(--s8) var(--s4); }
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.gift-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: var(--s3) var(--s3) var(--s4); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.gift-card:hover { border-color: var(--line-strong); color: var(--ink); }
.gift-card strong { font-size: 1.12rem; margin-top: var(--s2); }
.gift-price { font-size: 1.02rem; }
.gift-price s { color: var(--muted); }
.gift-price b { color: var(--price); font-size: 1.2rem; }
.gift-sub { color: var(--muted); font-size: .92rem; }
.gift-ribbon {
  position: absolute; top: var(--s3); left: var(--s3); z-index: 2;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; padding: 2px var(--s2); border-radius: var(--r-sm);
}
.gift-visual { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.gift-visual .ph { width: 100%; height: 100%; }
.gv-hd .ph { width: 80%; height: 80%; border: 6px solid #fff; box-shadow: var(--shadow); }
.gv-dl .ph { width: 52%; height: 86%; border-radius: 16px; border: 6px solid #1d1d1f; }
.gv-poster { background: #ece4d6; }
.poster-frame { width: 62%; height: 78%; padding: 6px; background: var(--frame); box-shadow: var(--shadow); }
.poster-frame .ph { border: 8px solid #fff; height: 100%; }
.hd-chip {
  position: absolute; top: var(--s2); right: var(--s2); z-index: 2;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .05em; padding: 2px var(--s2); border-radius: 6px;
}
@media (min-width: 640px) { .gift-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gift-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Studio ---------- */
/* minmax(0, 1fr): a long row of photo thumbnails scrolls inside its box instead of widening the page. */
.studio { max-width: 780px; margin: 0 auto; padding: var(--s8) var(--s4) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.studio > .section-head { margin-bottom: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.step { display: flex; align-items: center; gap: var(--s3); }
.center .step { justify-content: center; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 1.1rem;
}

.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.style-tile {
  position: relative; display: block; padding: 0; overflow: hidden;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--card);
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer; transition: border-color .15s;
}
.style-tile .ph { aspect-ratio: 1; }
.style-tile-name { display: block; padding: var(--s2) var(--s2) var(--s3); text-align: center; line-height: 1.3; }
.style-tile:hover { border-color: var(--line-strong); }
.style-tile.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); background: var(--primary-soft); }
.style-tile.selected::after {
  content: '\2713'; position: absolute; top: var(--s2); right: var(--s2); width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700;
}
@media (min-width: 600px) { .style-grid { grid-template-columns: repeat(3, 1fr); } }

.outfit-pick { margin-top: var(--s5); }
.outfit-pick h4 span { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--muted); }
.outfit-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.outfit-chip, .chip, .view-chips button {
  font: inherit; font-size: 1rem; font-weight: 600; min-height: 46px; padding: var(--s2) var(--s4); border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.outfit-chip:hover, .chip:hover, .view-chips button:hover { border-color: var(--line-strong); }
.outfit-chip.selected, .chip.selected { border-color: var(--primary); background: var(--primary-soft); }
.view-chips button.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.chosen-style { margin: 0 0 var(--s2); font-weight: 700; color: var(--ok-ink); }

.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.drop {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 210px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--paper);
  cursor: pointer; padding: var(--s3); text-align: center; transition: border-color .15s, background-color .15s;
}
.drop:hover { border-color: var(--primary); }
.drop:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(29, 95, 191, .3); }
.drop.filled { border-style: solid; border-color: var(--primary); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.drop-sample { width: 84px; height: 84px; border-radius: 50%; opacity: .6; filter: grayscale(.5); border: 3px solid #fff; }
.drop-title { font-weight: 700; font-size: 1.2rem; }
.drop-hint { color: #fff; background: var(--primary); font-weight: 600; font-size: .95rem; padding: 2px var(--s3); border-radius: 999px; }
.thumb { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--r); }
.tip { color: var(--muted); font-size: 1rem; margin: var(--s4) 0 0; }

.alert { margin-top: var(--s4); background: var(--danger-bg); color: var(--danger-ink); border: 1px solid #efc7c3; border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 1.05rem; }
.pick-summary { font-size: 1.1rem; margin: 0 0 var(--s4); }
.pick-summary a { font-weight: 700; margin-left: var(--s2); }
.note { color: var(--muted); font-size: 1rem; }
.fine { color: var(--muted); font-size: .95rem; margin: var(--s3) 0 0; }
.center .btn-big { margin: 0 auto; }

/* Gentle highlight on the next step */
.nudge { animation: nudge 1.4s ease-out; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(47, 93, 80, .45); } 100% { box-shadow: 0 0 0 14px rgba(47, 93, 80, 0); } }

/* Working */
/* Working: a big, plain progress bar with the percent and the seconds so far, so nobody
   wonders whether anything is happening. */
.working {
  max-width: 460px; margin: var(--s4) auto 0; padding: var(--s4) var(--s5) var(--s5);
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: left;
}
.progress-label { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin: 0 0 var(--s3); text-align: center; }
.progress {
  position: relative; height: 22px; border-radius: 999px; overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line-strong);
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px;
  background: var(--primary); transition: width .25s linear;
}
/* A slow sheen across the fill: the bar is alive even when the percent barely moves. */
.progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .28) 50%, transparent 100%);
  background-size: 200% 100%; animation: sheen 1.8s linear infinite;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin: var(--s2) 0 0; font-size: 1rem; color: var(--muted); }
.progress-pct { font-size: 1.5rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.progress-time { text-align: right; font-variant-numeric: tabular-nums; }
.progress-note { margin: var(--s3) 0 0; font-size: 1rem; color: var(--ink); }
.progress-note:empty { display: none; }
.tweak .working { background: var(--card); }
.btn-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { text-align: center; }
.frame { display: inline-block; padding: 12px; background: var(--gilt-frame); box-shadow: 0 2px 3px rgba(42, 37, 34, .18), 0 22px 40px -18px rgba(42, 37, 34, .55), inset 0 0 0 1px rgba(90, 62, 20, .45); max-width: 100%; }
.frame canvas { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; margin: 0 auto; border: 6px solid #f7f1e6; }
.protect, .protect img, .protect canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }

.tweak { margin: var(--s5) 0 var(--s2); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color-scheme: light; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: var(--s3) 0; }
#editInput {
  width: 100%; font: inherit; font-size: 1.1rem; padding: var(--s3) var(--s4); margin-bottom: var(--s3);
  border: 2px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink);
  color-scheme: light;
}
#editInput:focus { outline: none; border-color: var(--focus); }
.tweak-row { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s3); }
@media (min-width: 720px) { .tweak-row { grid-template-columns: 1fr 1fr; } }
.pick-title { margin-top: var(--s6); }

.product-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: var(--s4) 0; text-align: left; }
.product-card {
  display: flex; align-items: center; gap: var(--s4); padding: var(--s4);
  border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  font: inherit; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background-color .15s;
}
.product-card:hover { border-color: var(--line-strong); }
.product-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.pc-media { position: relative; flex: 0 0 92px; }
.pc-media .hd-chip { top: -6px; right: -6px; }
.pc-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r); background: var(--paper-2); pointer-events: none; display: block; }
.pc-body { display: flex; flex-direction: column; gap: 2px; }
.pc-tag { align-self: flex-start; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 1px var(--s2); border-radius: 6px; }
.pc-title { font-weight: 700; font-size: 1.25rem; }
.pc-price { font-size: 1.08rem; }
.pc-price s { color: var(--muted); }
.pc-price b { color: var(--price); font-size: 1.3rem; }
.pc-price small { color: var(--muted); font-size: .9rem; }
.pc-desc { color: var(--muted); font-size: 1rem; line-height: 1.45; }
@media (min-width: 720px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.size-row { display: flex; flex-direction: column; gap: var(--s2); align-items: center; margin: var(--s4) 0; font-weight: 700; }
.size-row select { font: inherit; font-size: 1.15rem; padding: var(--s3) var(--s4); border-radius: var(--r); border: 2px solid var(--line-strong); min-width: 180px; background: #fff; color: var(--ink); color-scheme: light; }

/* Product photos: view buttons, zoom, 360 spin */
.mockup { margin: var(--s3) auto var(--s4); max-width: 440px; }
.view-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-bottom: var(--s3); }
.mockup-stage { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); aspect-ratio: 1; cursor: zoom-in; }
.mockup-stage.zoomed img { transform: scale(2); cursor: zoom-out; }
/* contain, not cover: a framed poster is taller than it is wide and must not be cropped */
.mockup-stage img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .3s ease; }
.mockup-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: ew-resize; touch-action: pan-y; -webkit-user-drag: none; }
.mockup-stage.spin { cursor: default; }
.spin-hint, .zoom-hint {
  position: absolute; left: 50%; bottom: var(--s3); transform: translateX(-50%); z-index: 2;
  background: rgba(42, 37, 34, .82); color: #fff; font-size: .88rem; font-weight: 600;
  padding: 2px var(--s3); border-radius: 999px; pointer-events: none; white-space: nowrap;
}
.mockup-gallery { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s3) 2px var(--s1); }
.mockup-gallery button { position: relative; flex: 0 0 72px; height: 72px; padding: 0; border: 3px solid transparent; border-radius: var(--r-sm); background: var(--paper-2); cursor: pointer; overflow: hidden; }
.mockup-gallery button.selected { border-color: var(--primary); }
.mockup-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mockup-gallery .g-spin { position: relative; border-color: var(--line); }
.mockup-gallery .g-spin span { position: absolute; inset: auto 0 0 0; padding: 2px 0; font-weight: 700; font-size: .8rem; text-align: center; color: #fff; background: rgba(42, 37, 34, .72); }
.mockup-gallery .g-spin.selected { border-color: var(--primary); }

.color-row { margin: var(--s2) 0 var(--s1); }
.color-label { margin: 0 0 var(--s2); font-size: 1.1rem; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.swatch { width: 50px; height: 50px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line-strong); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(42,37,34,.28); }
.swatch.selected { border: 3px solid var(--ink); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--ink); }

.checkout-pay { margin-top: var(--s2); }
.checkout-pay .fine { margin-bottom: var(--s2); }

/* Thanks */
#thanks p { font-size: 1.12rem; }
#thanks .btn { margin-top: var(--s4); }
.thanks-art { margin: var(--s3) auto; max-width: 420px; padding: 12px; background: var(--gilt-frame); box-shadow: var(--shadow); }
.thanks-art img { display: block; width: 100%; height: auto; border: 6px solid #f7f1e6; }

/* ---------- Payment badges ---------- */
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; min-width: 56px; padding: 0 10px; border-radius: 6px;
  background: #fff; border: 1px solid #d9d2c6; font-family: Arial, Helvetica, sans-serif;
  font-weight: 800; font-size: .82rem; line-height: 1; white-space: nowrap; color: #1a1a1a;
}
.pay-visa { color: #1a1f71; font-style: italic; font-size: 1rem; letter-spacing: .02em; }
.pay-mastercard i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #eb001b; }
.pay-mastercard i + i { background: #f79e1b; margin-left: -10px; mix-blend-mode: multiply; }
.pay-amex { background: #2e77bb; color: #fff; border-color: #2e77bb; letter-spacing: .04em; }
.pay-discover { color: #231f20; }
.pay-discover b { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #f48120; margin: 0 1px; }
.pay-applepay, .pay-googlepay { font-family: -apple-system, 'Segoe UI', Arial, sans-serif; font-weight: 600; font-size: .9rem; }
.pay-applepay { background: #000; color: #fff; border-color: #000; }
.pay-googlepay .g { font-weight: 800; color: #4285f4; }
.pay-cashapp { background: #00d632; color: #fff; border-color: #00d632; }
.pay-klarna { background: #ffb3c7; color: #0b051d; border-color: #ffb3c7; }
.pay-affirm { color: #4a4af4; font-weight: 800; }
.pay-afterpay { background: #b2fce4; color: #000; border-color: #b2fce4; }
.pay-amazonpay { color: #232f3e; }
.pay-amazonpay b { color: #ff9900; }
.pay-link { background: #00d66f; color: #011e0f; border-color: #00d66f; }
.pay-paypal { color: #009cde; font-style: italic; font-size: .95rem; }
.pay-paypal b { color: #003087; }

/* ---------- Lower sections ---------- */
.examples { max-width: 960px; margin: 0 auto; padding: var(--s7) var(--s4) var(--s2); }
.examples h2 { text-align: center; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.example-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); }
.example-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.example-grid figcaption { text-align: center; color: var(--muted); font-size: .95rem; padding-top: var(--s2); }

.reviews { max-width: 780px; margin: var(--s7) auto 0; padding: 0 var(--s4); }
.reviews h2 { text-align: center; }
.review-list { display: grid; gap: var(--s3); }
.review { display: flex; gap: var(--s4); align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin: 0; }
.review blockquote { margin: 0; }
.review-photo { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; }
.review .stars { color: var(--star); font-size: 1.2rem; letter-spacing: 2px; }
.review p { margin: var(--s2) 0 var(--s1); }
.review .who { color: var(--muted); font-size: 1rem; }
.trustpilot-box { margin-top: var(--s4); }

.final-cta {
  max-width: 900px; margin: var(--s8) auto 0; padding: var(--s7) var(--s5); text-align: center;
  border-radius: var(--r-lg); background: var(--cta-bg); color: var(--cta-ink); --focus: #f0d896;
  /* A thin gilt line inside the edge, like a gift card */
  box-shadow: inset 0 0 0 8px var(--cta-bg), inset 0 0 0 9px var(--gilt), 0 22px 40px -24px rgba(42, 37, 34, .6);
}
.final-cta h2 { color: var(--cta-ink); }
.final-cta p { font-size: 1.12rem; color: var(--cta-ink); opacity: .9; margin: 0 auto var(--s5); max-width: 580px; }
.final-cta .btn { margin: 0 auto; }
.final-cta .btn-primary { background: var(--card); color: var(--cta-bg); }
.final-cta .btn-primary:hover:not(:disabled) { background: #fff; color: var(--cta-bg); }
@media (max-width: 940px) { .final-cta { margin-inline: var(--s4); } }

.faq { max-width: 780px; margin: var(--s8) auto 0; padding: 0 var(--s4); }
.faq h2 { text-align: center; margin-bottom: var(--s5); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); margin-bottom: var(--s3); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.1rem; }
.faq p { color: var(--muted); margin: var(--s3) 0 0; }
.faq .pay-badges { justify-content: flex-start; margin-top: var(--s3); }

/* Forms on the small pages (policies contact form, review, delete my data) */
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; min-height: 56px; padding: var(--s3) var(--s4);
  border: 2px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink);
  color-scheme: light;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); }

/* Footer */
.site-footer {
  --focus: #f0d896;
  color: var(--wall-muted); padding: var(--s7) var(--s5) calc(110px + env(safe-area-inset-bottom)); margin-top: var(--s8);
  border-top: 3px solid var(--gilt); background: var(--wall); font-size: 1rem;
}
.site-footer .fine { color: var(--wall-muted); }
.footer-top { max-width: var(--wrap); margin: 0 auto var(--s5); display: grid; gap: var(--s5); }
.footer-brand .brand, .footer-brand .brand:hover { font-size: 1.25rem; color: var(--wall-ink); }
.site-footer .brand-mark { fill: var(--gilt); }
.slogan { margin: var(--s1) 0 0; font-family: var(--serif); color: var(--gilt); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.footer-links a { color: var(--wall-ink); text-decoration: underline; text-decoration-color: var(--gilt-deep); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--wall-ink); text-decoration-color: var(--gilt); }
.footer-pay { max-width: var(--wrap); margin: 0 auto; }
.footer-pay .pay-badges { justify-content: flex-start; }
.site-footer > .fine { max-width: var(--wrap); margin: var(--s4) auto 0; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: var(--s7); }
  .footer-top { grid-template-columns: 1fr 2fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}

/* Sticky "make my preview" button on phones */
.sticky-cta {
  position: fixed; left: calc(16px + env(safe-area-inset-left)); right: calc(16px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; width: auto; min-height: 56px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
}
@media (min-width: 760px) { .sticky-cta { display: none !important; } }

/* Offer popup */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: var(--s5); background: rgba(42, 37, 34, .55); }
.modal-card { width: 100%; max-width: 440px; background: var(--card); border-radius: var(--r-lg); padding: var(--s6) var(--s5) var(--s4); text-align: center; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); }
.modal-card h2 { font-size: 1.7rem; margin-bottom: var(--s3); }
.modal-card p { font-size: 1.1rem; margin: 0 0 var(--s5); }
.modal-card .link-btn { margin-top: var(--s2); }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Simple pages (policies, review, unsubscribe, delete data) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); }
.page h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.page h2 { margin-top: var(--s7); font-size: 1.6rem; scroll-margin-top: 90px; }
.page h3 { margin-top: var(--s5); font-size: 1.2rem; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: var(--s2); }
.page .updated { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding: var(--s4) var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); margin-top: var(--s5); }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 700; margin-bottom: var(--s2); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s4); font-size: 1.05rem; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--primary); }
.star-pick { display: flex; flex-wrap: wrap; gap: var(--s2); border: none; padding: 0; margin: 0 0 var(--s4); }
.star-pick legend { font-weight: 700; margin-bottom: var(--s2); padding: 0; }
.star-pick label {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 52px; padding: var(--s2) var(--s4);
  border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 600; background: #fff;
}
.star-pick label span { color: var(--star); letter-spacing: 1px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.star-pick input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.notice { padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--primary-soft); border: 1px solid var(--line); }
.notice.err { background: var(--danger-bg); color: var(--danger-ink); }

/* Respect people who turn animations off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Motion that respects an older, less steady hand ----------
   Small, useful animation only: nothing loops or bounces, every transition is a short ease,
   and all of it disappears under prefers-reduced-motion above. The rule we follow is the one
   the reel put last: the more often something happens, the less it animates. So color
   swatches, the size menu and the order button change instantly; only first-time, one-off
   moments move (your painting arriving, the next step opening up).

   The timing follows the classic animation principles, in their useful form:
   - Anticipation: the step you're about to reach rises slightly into place.
   - Slow in / slow out: every ease is a curve, never a linear snap.
   - Exaggerated, but brief: the entrance is 14px and under half a second.
   - Secondary action: the frame settles while the painting appears. */

/* Entrances: one-off, played once when JS adds the class. */
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Ease-out: quick to start, gentle to arrive (slow out). */
.rise { animation: rise-in .45s cubic-bezier(.22, .61, .36, 1) both; }

/* The painting arrives: the frame settles, like a picture hung on a wall. */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}
.frame.pop { animation: pop-in .45s cubic-bezier(.22, .61, .36, 1) both; }

/* The style name under the hero painting, when it changes. */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mixer-chip.swap { animation: fade-in .3s ease-out both; }
.fade { animation: fade-in .5s ease-out both; }

/* Instant, no-motion feedback for things people tap over and over. */
.btn, .swatch, .outfit-chip, .chip, .view-chips button, .style-tile, .product-card, .gift-card {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:not(:disabled):active, .swatch:active, .outfit-chip:active, .chip:active,
.view-chips button:active, .style-tile:active, .product-card:active { transform: scale(.98); }

/* Hover lift only where a mouse exists. Never on the order button: it must feel solid. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:not(:disabled):hover { box-shadow: 0 10px 24px -14px rgba(42, 37, 34, .7); }
  .style-card:hover, .gift-card:hover, .product-card:hover, .style-tile:hover { transform: translateY(-2px); }
}

/* The next step: one quiet pulse around the panel, then it stops. */
.nudge { animation: nudge 1.4s ease-out; }

/* Prices: an instant swap, no animation. Numbers must never appear to drift. */
.pc-price b, .gift-price b { font-variant-numeric: tabular-nums; }

/* Focus stays clearly visible for anyone using a keyboard. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Bigger tap targets on small screens */
@media (max-width: 480px) {
  body { font-size: 18px; }
  .mixer-thumbs button { width: 50px; height: 50px; }
  .panel { padding: var(--s4); }
}

/* A picture that failed to load: hide it (keep its space) rather than show its alt text. */
img.img-broken { visibility: hidden; }
