/* ed.mcveigh shop — same brand as the links page.
   Light: forest green on cream. Dark: sky blue on maroon. Square corners, 2px ink borders,
   buttons that lift and fill with ink on hover. */
:root {
  --cream: #fcf8ec;              /* page background */
  --ink: #18602a;                /* lettering, borders, buttons */
  --ink-soft: #4f7a58;           /* secondary text */
  --line: #d9e3d2;               /* hairlines */
  --tint: #f1f1e0;               /* photo mats, quiet surfaces */
  --shadow: rgba(24, 96, 42, .16);
  --shadow-lift: rgba(24, 96, 42, .32);
  --error: #a3361f;

  --display: "Agbalumo", "Cooper Black", Georgia, serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --edge: clamp(16px, 4vw, 56px);
  --header-h: clamp(64px, 6vw, 76px);
  --btn-h: 44px;                              /* height of the cart, menu and mode buttons */
  --logo-f: calc(var(--btn-h) * 0.8 / 0.507); /* the e is 0.507em tall in Agbalumo, so this makes it 80% of the button height */
  --radius: 4px;
  color-scheme: light;
}
/* dark mode: maroon and sky blue */
:root[data-mode="dark"] {
  --cream: #2b0610;
  --ink: #86d8ef;
  --ink-soft: #79b3c7;
  --line: #4a2230;
  --tint: #3a0d19;
  --shadow: rgba(0, 0, 0, .35);
  --shadow-lift: rgba(0, 0, 0, .55);
  --error: #ffb4a3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  transition: background .2s ease, color .2s ease;
}
::selection { background: var(--ink); color: var(--cream); }
.intro:not(.show) body { overflow: hidden; }   /* locked only while the logo animation runs */
img { max-width: 100%; display: block; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius); }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--edge); }

/* ---------- Banner + header ---------- */
.banner {
  background: var(--ink); color: var(--cream);
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  padding: 7px 16px;
}
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  transition: background .2s ease, border-color .2s ease;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding-inline: var(--edge);
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
}

/* The "e." logo fills most of the bar. Its letter is drawn at --logo-f, sized so the e itself
   is ~82% of the bar's height and centred on it (the same spot the intro animation lands). */
.logo-slot {
  position: relative; display: block; flex: none;
  height: var(--header-h); width: calc(var(--logo-f) * 0.95);
  text-decoration: none;
}
.logo-static {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--display); font-size: var(--logo-f); line-height: 1; color: var(--ink);
  white-space: nowrap;
  /* the middle of the e's ink sits 0.708em below the top of its text box (measured from Agbalumo);
     pull that point onto the bar's centre */
  transform: translate(-50%, -0.708em);
}
.logo-static .e { display: inline-block; transform: rotate(-9deg); transform-origin: 10% 85%; }
.logo-static .d { display: inline-block; transform: translateY(-0.12em); }
.intro .logo-static { visibility: hidden; }
.logo-slot:focus-visible { outline-offset: 0; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Lifting buttons keep a strip under them that still counts as hovering, so a pointer
   resting on the bottom edge doesn't make them bounce up and down. */
.mode, .cart-btn, .menu-btn, .btn, .jump a { position: relative; }
.mode::after, .cart-btn::after, .menu-btn::after, .btn::after, .jump a::after { content: ""; position: absolute; left: -2px; right: -2px; top: 100%; height: 6px; }
.mode, .cart-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer; font-weight: 600;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, color .2s;
}
.mode, .menu-btn { width: var(--btn-h); padding: 0; }
.cart-btn { padding: 0 14px; }
.mode:hover, .mode:focus-visible, .cart-btn:hover, .cart-btn:focus-visible,
.menu-btn:hover, .menu-btn:focus-visible, .menu-btn[aria-expanded="true"] {
  transform: translateY(-2px); background: var(--ink); color: var(--cream); outline: none;
}
.mode svg, .menu-btn svg { width: 20px; height: 20px; }
.menu-btn path { transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.mode .sun { display: none; }
:root[data-mode="dark"] .mode .moon { display: none; }
:root[data-mode="dark"] .mode .sun { display: block; }
.cart-btn .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 2px;
  background: var(--ink); color: var(--cream);
  display: inline-grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums;
}
.cart-btn:hover .count, .cart-btn:focus-visible .count { background: var(--cream); color: var(--ink); }

/* Menu panel: drops down under the header on smaller screens */
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 2px solid var(--ink);
  box-shadow: 0 14px 24px -12px var(--shadow-lift);
  padding: 12px var(--edge) 20px;
  display: grid; gap: 10px;
}
.menu-panel a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 14px 18px; border: 2px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; background: var(--cream);
  box-shadow: 0 2px 4px var(--shadow);
  transition: background .18s, color .18s, transform .22s cubic-bezier(.2,.7,.2,1);
}
.menu-panel a:hover, .menu-panel a:focus-visible, .menu-panel a[aria-current="page"] { background: var(--ink); color: var(--cream); outline: none; }
.menu-panel .label { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.menu-panel .sub { grid-column: 1; font-size: 14px; opacity: .8; }
.menu-panel .arrow { grid-row: 1 / span 2; grid-column: 2; font-size: 22px; }

/* Wide screens: links sit in the bar and the menu button goes away.
   Smaller screens: links move into the menu panel. */
@media (min-width: 821px) {
  .menu-btn, .menu-panel { display: none !important; }
}
@media (max-width: 820px) {
  .nav { display: none; }
}
@media (max-width: 340px) {
  .cart-btn { padding: 0 10px; }
  .cart-btn .cart-word { display: none; }
}

/* ---------- Intro on the front page ---------- */
.hello { padding-block: 44px 4px; }
.hello h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 8.8vw, 76px); line-height: 1.05; margin: 0 0 18px; text-wrap: balance; }
.hello p { color: var(--ink-soft); max-width: 58ch; margin: 0; font-size: 17px; }

/* Section chips under the intro: jump down the front page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, color .2s;
}
.jump a:hover, .jump a:focus-visible { transform: translateY(-2px); background: var(--ink); color: var(--cream); outline: none; }

/* The feature: house portraits near the top of the front page. A real drawing laid on the mat
   like a print; it straightens when you point at it. */
.feature-sec { padding-block: 24px 0; }
.section, .feature-sec { scroll-margin-top: calc(var(--header-h) + 12px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  background: var(--cream); color: var(--ink); text-decoration: none;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1);
}
.feature:hover, .feature:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 18px -6px var(--shadow-lift); outline: none; }
.feature-mat {
  align-self: stretch; display: grid; place-items: center;
  background: var(--tint); border-right: 2px solid var(--ink);
  padding: clamp(20px, 3vw, 36px);
}
.feature-print {
  width: 100%; max-width: 380px; background: #fff; padding: 3.5%;
  transform: rotate(-2deg);
  box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 12px 28px rgb(0 0 0 / .14);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.feature .portrait-ph { transform: rotate(-2deg); }
.feature:hover .feature-print, .feature:focus-visible .feature-print { transform: rotate(0deg) scale(1.015); }
.feature-body { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 4vw, 48px); }
.feature-body h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; }
.feature-body p { margin: 0; max-width: 34ch; font-size: 17px; }
.feature-body .feature-price { font-weight: 700; font-variant-numeric: tabular-nums; }
/* the card lifts as a whole, so its button doesn't lift again on its own */
.feature-cta, .feature:hover .feature-cta, .feature:focus-visible .feature-cta { flex: none; min-width: 0; margin-top: 6px; transform: none; box-shadow: none; }
.feature-cta::after { content: none; }
/* Below tablet width the drawing sits on top, large, with the words under it */
@media (max-width: 767px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-mat { border-right: 0; border-bottom: 2px solid var(--ink); padding: 28px 24px 30px; }
  .feature-print { max-width: 420px; padding: 3%; }
  .feature-body { gap: 10px; padding: 18px 18px 20px; }
  .feature-body p { max-width: 46ch; }
  .feature-cta { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .hello { padding-top: 26px; }
  .hello h1 { font-size: 42px; margin-bottom: 12px; }
  .hello p { font-size: 16px; }
  .feature-mat { padding: 18px 18px 20px; }
  .feature-print { max-width: 290px; }
  .jump { margin-top: 18px; }
  .feature-sec { padding-top: 20px; }
  .feature-body h2 { font-size: 30px; }
  .feature-body p { font-size: 16px; line-height: 1.5; }
}

.section { padding-block: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
/* groups inside a section (stickers: Philly, then Cats), with chips to jump between them */
.jump-groups { margin: -4px 0 22px; }
.group { scroll-margin-top: calc(var(--header-h) + 12px); }
.group + .group { margin-top: 34px; }
.group-head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 26px 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.card .frame {
  position: relative; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1);
}
.card:hover .frame, .card:focus-visible .frame { transform: translateY(-4px); box-shadow: 0 10px 18px -6px var(--shadow-lift); }
.card:focus-visible { outline: none; }
.card-body { display: grid; gap: 1px; }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.card-meta { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.card-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--ink); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px;
}

/* The mat: a product photo, or a drawn placeholder until a photo exists */
.mat {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  background: var(--tint);
  display: grid; place-items: center;
}
/* the photo is laid over the square so a tall or wide photo can never stretch it */
.mat { overflow: hidden; }
.mat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Product pages show paintings whole; every grid and cart thumbnail is a square, filled and centred. */
.gallery .mat.natural { aspect-ratio: auto; display: block; background: none; }
.gallery .mat.natural img { position: static; width: 100%; height: auto; }
.mat img { object-position: 50% 50%; }
.sticker {
  width: 66%; aspect-ratio: var(--ratio, 1); max-height: 72%;
  background: var(--swatch, var(--ink)); color: #fffaf0;
  border: 6px solid #fff; border-radius: 22% / 28%;
  box-shadow: 0 2px 4px rgb(0 0 0 / .18), 0 10px 24px rgb(0 0 0 / .14);
  display: grid; place-items: center; text-align: center; padding: 8px;
  font-family: var(--display); font-size: clamp(15px, 2vw, 21px); line-height: 1.1;
  transform: rotate(-4deg);
}
.portrait-ph { width: 62%; aspect-ratio: 4 / 5; background: #fff; padding: 9%; box-shadow: 0 2px 4px rgb(0 0 0 / .16), 0 12px 28px rgb(0 0 0 / .14); display: grid; }
.portrait-ph span { border: 2px solid var(--swatch, var(--ink)); display: grid; place-items: center; text-align: center; font-family: var(--display); color: var(--swatch, var(--ink)); font-size: clamp(14px, 2vw, 19px); padding: 6px; }
.ph-note { position: absolute; bottom: 8px; right: 10px; font-size: 11px; color: var(--ink); letter-spacing: .05em; text-transform: uppercase; }
.sold-out .mat { filter: grayscale(.85); opacity: .6; }

/* ---------- Product page ---------- */
.back { display: inline-block; margin-top: 26px; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.back.back-all { margin: 0 0 6px; }
.back:hover { color: var(--ink); }
.product { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-block: 18px 56px; align-items: start; }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 10px; min-width: 0; }
/* Stacked layout: the option questions and buy button sit a little in from the page edges */
@media (max-width: 640px) { .buy { padding-inline: clamp(0px, 5vw - 12px, 36px); } }
/* Computers: the photos stay in view while you read, when they fit on the screen (set by shop.js) */
@media (min-width: 641px) { .gallery.pinned { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery .frame { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
/* Photo stage: swipe on phones, left/right keys. Arrows sit at the ends of the thumbnail row
   (computers only), so nothing covers the photo itself. */
.stage { position: relative; touch-action: pan-y; }
.stage:focus-visible { outline-offset: 4px; }
.thumb-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.thumb-row .thumbs { flex: 1; min-width: 0; }
.pic-arrow {
  flex: none; width: 30px; height: 64px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: var(--radius); background: none; color: var(--ink-soft); transition: color .15s, background .15s;
}
.pic-arrow svg { width: 18px; height: 18px; }
.pic-arrow:hover, .pic-arrow:focus-visible { color: var(--ink); background: var(--tint); outline: none; }
@media (hover: none) { .pic-arrow { display: none; } }
/* one row of thumbnails that scrolls sideways, so a long photo set never pushes the price down */
.thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: none; scroll-snap-align: start; width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--tint); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { display: grid; gap: 16px; min-width: 0; }
.info h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; text-wrap: balance; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.deposit-note { color: var(--ink-soft); font-size: 14px; }
.size { font-size: 14px; color: var(--ink-soft); }
.size b { color: var(--ink); font-weight: 600; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.select { position: relative; display: block; max-width: 100%; }
.field select {
  font: inherit; font-weight: 500; padding: 11px 44px 11px 14px; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--cream); color: var(--ink); width: 100%; max-width: 100%;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
/* the arrow sits as far in from the right edge as the text does from the left */
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
/* focus: the border thickens instead of a second ring around it */
.field select:focus { outline: none; }
.field select:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.buy { display: grid; gap: 16px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Option questions as buttons (house portrait: style, then finish). The chosen one fills with ink. */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.choice-need { display: none; color: var(--error); }
.choice.needs .opt { border-color: var(--error); }
.opt-add { font-weight: 500; opacity: .75; margin-left: 2px; }
.choices input:checked + .opt .opt-add { opacity: 1; }   /* on the picked wash, faded text drops below 4.5:1 */
.price-math { margin: -8px 0 0; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.buy-note { margin: -2px 0 0; font-size: 14px; color: var(--ink-soft); }
.buy-note .email-link { font-weight: 600; }
.choice.needs .choice-need { display: inline; }
/* Every option button is the same size, in as many equal columns as the longest question has
   options (--cols, set by shop.js). A label never wraps: when any button is too narrow for its
   label, shop.js adds .stacked and they all go one per row. All start as outlines. */
.choices { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.buy.stacked .choices { grid-template-columns: minmax(0, 1fr); }
.choices label { position: relative; display: flex; cursor: pointer; }
.choices input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choices .opt {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 6px 34px; white-space: nowrap;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); text-align: center;
  font-weight: 600; transition: background .15s, color .15s;
}
.choices label { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .choices label:hover .opt { background: var(--tint); } }
/* Picked: a light ink wash (so it never competes with the solid buy button) and a check
   that draws itself in */
.choices input:checked + span, .choices label:active .opt { background: color-mix(in srgb, var(--ink) 16%, var(--cream)); }
.tick {
  position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; opacity: 0;
  transition: stroke-dashoffset .32s cubic-bezier(.2,.7,.2,1) .04s, opacity .12s;
}
.choices input:checked + span .tick { stroke-dashoffset: 0; opacity: 1; }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The commission's steps, right under the button: numbered ink tiles on the mat */
.steps { margin-top: 12px; display: grid; gap: 12px; padding: 16px 18px 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tint); }
.steps h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; }
.steps-list li::before {
  content: counter(step); width: 26px; height: 26px; margin-top: -1px; border-radius: 2px;
  display: grid; place-items: center; background: var(--ink); color: var(--cream);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps-note { margin: 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 14px; }
.steps .policy-link { white-space: nowrap; }

/* Why it's safe to buy here, under the buy button */
/* sits close under the box above it, with room before the description */
.trust { list-style: none; padding: 0; margin: -6px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trust svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Phones: a buy bar at the bottom while the real button is off screen */
.buybar { display: none; }
.menu-open .buybar { display: none !important; }
@media (max-width: 640px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 12px;
    padding: 10px var(--edge) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--cream); border-top: 2px solid var(--ink);
    box-shadow: 0 -10px 18px -12px var(--shadow-lift);
  }
  .buybar-text { flex: 1; min-width: 0; display: grid; }
  /* the name wraps to a second line rather than being cut off (very long names stop at two) */
  .buybar-name { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .buybar-price { font-weight: 700; font-variant-numeric: tabular-nums; }
  .buybar .btn { flex: none; min-width: 0; max-width: 55%; padding: 10px 16px; font-size: 15px; line-height: 1.25; }  /* may wrap to two lines on narrow phones */
  .product { padding-bottom: 88px; }
}
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); }
.qty button { width: 38px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--tint); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.btn {
  flex: 1; min-width: 180px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 22px;
  background: var(--ink); color: var(--cream); font-weight: 700; cursor: pointer; font-size: 16px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 18px -6px var(--shadow-lift); outline: none; }
.btn:active { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
/* the quieter second button (e.g. "Add to cart" under a portrait's "Pay 50% deposit") */
.btn-secondary { background: var(--cream); color: var(--ink); box-shadow: none; font-weight: 600; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--tint); }
.buy-row #add { font-size: 17px; }
/* A painting hanging in a show: where to see it, and an email button in place of Add to cart */
.on-view { display: grid; gap: 10px; justify-items: start; padding: 16px 18px; background: var(--tint); border-left: 3px solid var(--ink); border-radius: 2px; }
.on-view-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.on-view-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.on-view .btn { text-decoration: none; text-align: center; margin-top: 4px; }
.on-view-meta { color: var(--ink); font-weight: 600; }
.jump-target { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose { display: grid; gap: 12px; max-width: 62ch; }
.prose p { margin: 0; white-space: pre-line; }   /* keeps the line breaks in Etsy descriptions */
.prose h2, .prose h3 { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.fineprint { font-size: 13px; color: var(--ink-soft); max-width: 72ch; }
.prose .fineprint { max-width: none; font-size: 14px; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgb(10 12 10 / .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%); background: var(--cream); color: var(--ink);
  border-left: 2px solid var(--ink); box-shadow: -10px 0 30px var(--shadow);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Phones (up to 600px, which covers the larger 428-440px iPhones): the cart fills the screen,
   with no left outline or shadow showing as a strip down the side */
@media (max-width: 600px) { .drawer { width: 100%; border-left: 0; box-shadow: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.icon-btn { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--ink); }
.lines { flex: 1; overflow-y: auto; padding: 4px 20px; display: grid; align-content: start; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); align-items: center; }
.line .mat { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.line .sticker { border-width: 3px; font-size: 9px; padding: 2px; }
.line .portrait-ph span { font-size: 8px; border-width: 1px; }
.line .ph-note { display: none; }
.line-name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-variant { font-size: 13px; color: var(--ink-soft); }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.line-actions:empty { display: none; }
.line .qty button { width: 30px; height: 30px; font-size: 16px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink-soft); font-size: 13px; text-decoration: underline; cursor: pointer; }
.msg.undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.msg.undo .link-btn { color: var(--ink); font-size: 14px; font-weight: 700; text-underline-offset: 3px; padding: 4px 2px; }
.drawer-foot .fineprint a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.line-end { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 8px; }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.trash { border: 0; background: none; padding: 4px; margin: -4px; color: var(--ink-soft); cursor: pointer; border-radius: var(--radius); display: grid; }
.trash svg { width: 18px; height: 18px; }
.trash:hover, .trash:focus-visible { color: var(--ink); }
.empty { padding: 40px 0; display: grid; justify-items: center; gap: 16px; color: var(--ink-soft); }
.empty p { margin: 0; text-align: center; max-width: 30ch; }
.empty p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.card-price .found { font-weight: 500; color: var(--ink-soft); }
.drawer-foot { border-top: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent); padding: 16px 20px; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum-row.total { font-weight: 700; font-size: 18px; }
.sum-row .free { font-weight: 700; }
.msg { font-size: 14px; padding: 10px 12px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--tint); }
.msg.error { border-color: var(--error); color: var(--error); }
.gone-note { margin: 24px 0 0; }


/* Email address: a mail link */
.email-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.email-link:hover { text-decoration-thickness: 2px; }

/* ---------- Shop policies ---------- */
.policies { max-width: 68ch; padding-block: 40px 64px; display: grid; gap: 14px; }
.policies h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; margin: 0 0 4px; }
.policies section { display: grid; gap: 12px; margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.policies h2 {
  margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.policies p { margin: 0; }
.policies ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.policies ol li::marker { font-weight: 700; }
.policy-link { font-size: 14px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* About page photos: framed like the product photos, captions in the soft ink */
.about-fig { margin: 10px 0 8px; display: grid; gap: 8px; }
.about-fig img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tint); }
.about-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.about-pair figcaption { grid-column: 1 / -1; }
.about-fig figcaption { font-size: 13px; color: var(--ink-soft); }

/* Folded description sections (e.g. "For realtors"): a heading you can open */
.prose .fold { border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-block: 10px; }
.prose .fold summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.prose .fold summary::-webkit-details-marker { display: none; }
.prose .fold summary::after { content: "+"; font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.prose .fold[open] summary::after { content: "−"; }
.prose .fold[open] summary { margin-bottom: 10px; }
.prose .fold > :not(summary) { margin: 0 0 10px; }

/* More from the same section, under a product */
.related { padding-block: 8px 48px; }

/* Front page ending: who makes all this */
.about-strip { padding-block: 8px 40px; }
.about-card {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 22px);
  color: var(--ink); text-decoration: none; background: var(--cream);
  box-shadow: 0 2px 4px var(--shadow); transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1);
}
.about-card:hover, .about-card:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 18px -6px var(--shadow-lift); outline: none; }
.about-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); }
.about-card-body { display: grid; gap: 8px; justify-items: start; }
.about-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.about-card p { margin: 0; max-width: 52ch; }
@media (max-width: 520px) { .about-card { grid-template-columns: 96px minmax(0, 1fr); } .about-card p { font-size: 15px; } }

/* Thank-you order recap */
.thanks .recap { width: 100%; display: grid; gap: 8px; margin-bottom: 12px; }   /* room before the button */
.thanks .recap h2, .thanks .note h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.thanks .recap ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.thanks .recap li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); font-variant-numeric: tabular-nums; }
.thanks .recap small { display: block; font-size: 13px; color: var(--ink-soft); }
.thanks .note .btn-link { justify-self: start; margin-top: 6px; }

/* ---------- Contact: one question at a time ---------- */
.contact { max-width: 640px; padding-block: 40px 64px; display: grid; gap: 22px; }
.contact h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.contact-prog { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.contact-prog .bar { flex: 1; height: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; border-radius: 2px; }
.contact-prog .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 2px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.c-step { display: grid; gap: 14px; animation: c-in .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes c-in { from { opacity: 0; transform: translateY(10px); } }
.c-step h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; outline: none; text-wrap: balance; }
.c-hint { margin: -4px 0 4px; color: var(--ink-soft); }
.c-opts { display: grid; gap: 10px; }
.c-opt {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); color: var(--ink);
  font: inherit; box-shadow: 0 2px 4px var(--shadow);
  transition: background .18s, color .18s, transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1);
}
.c-opt::after { content: ""; position: absolute; left: -2px; right: -2px; top: 100%; height: 6px; }
.c-opt .t { flex: 1; font-weight: 600; font-size: 17px; line-height: 1.3; }
.c-opt small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.c-opt .go { flex: none; width: 22px; height: 12px; }
.c-opt:hover, .c-opt[aria-pressed="true"] { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: 0 10px 18px -6px var(--shadow-lift); }
.c-opt:hover small, .c-opt[aria-pressed="true"] small { color: inherit; opacity: .85; }
.c-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.c-step .field input, .c-step .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius);
}
.c-step .field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.c-step .field input:focus, .c-step .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.c-step [aria-invalid="true"] { border-color: var(--error) !important; }
.c-err { margin: -6px 0 0; color: var(--error); font-size: 14px; }
.c-err:empty { display: none; }
.c-err .email-link { color: var(--error); }
.c-step > .btn { justify-self: start; flex: none; }
.c-sum { margin: 0; border-top: 2px solid var(--ink); }
.c-sum div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.c-sum dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.c-sum dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-sum dd.none { color: var(--ink-soft); }
.c-sum .link-btn { color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 520px) { .c-sum div { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; } .c-sum dt { grid-column: 1 / -1; } }
.c-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.c-acts .btn { flex: none; min-width: 0; }
.c-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-foot .link-btn { color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.contact-foot .link-btn:hover { color: var(--ink); }
.contact-direct { margin: 8px 0 0; }

/* ---------- Thanks + footer ---------- */
.thanks { padding-block: 64px; display: grid; gap: 20px; max-width: 60ch; justify-items: start; }
.thanks h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 58px); margin: 0; line-height: 1.05; }
.thanks p { margin: 0; }
.thanks .lead { font-size: 18px; }
.thanks .note { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tint); padding: 16px 18px; display: grid; gap: 6px; margin-bottom: 10px; } /* matches the visual gap above it (the lead line's spacing adds ~10px there) */
.thanks .note h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
/* a link that looks like the main button (thank-you page, empty cart) */
.btn-link { flex: none; display: inline-block; text-align: center; text-decoration: none; min-width: 0; }
.footer { border-top: 2px solid var(--ink); margin-top: 24px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding-block: 24px 32px; color: var(--ink-soft); font-size: 14px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink); font-weight: 600; }

/* ---------- Content reveal after the logo intro ---------- */
.intro .reveal { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.intro.show .reveal { opacity: 1; transform: none; }

/* intro layers */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--cream); overflow: hidden; transition: opacity .5s ease; }
.overlay.gone { opacity: 0; pointer-events: none; }
.word { position: absolute; left: 0; top: 0; font-family: var(--display); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.ch { display: inline-block; transform-origin: 50% 60%; will-change: transform, opacity; }
.spark { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--ink); pointer-events: none; }
.hero { position: fixed; left: 0; top: 0; z-index: 80; font-family: var(--display); line-height: 1; color: var(--ink); pointer-events: none; will-change: transform; }
.skip {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  font: 600 13px var(--ui); color: var(--ink-soft); background: transparent; border: 0; padding: 8px 10px; cursor: pointer;
}

/* Keyboard focus gets a ring as well as the hover lift, so it's always distinguishable */
.btn:focus-visible, .feature:focus-visible, .about-card:focus-visible, .pic-arrow:focus-visible,
.mode:focus-visible, .cart-btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.card:focus-visible .frame { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* Faire link for store owners, under the buy button (products with a "faireUrl") */
/* tucked up under the button, with room before the trust line below */
.wholesale-note { margin: -6px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-align: right; }
.wholesale-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Wholesale page (#wholesale) ---------- */
.no-banner .banner { display: none; }
.wholesale { padding-block: 40px 64px; display: grid; gap: 44px; }
.ws-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
@media (max-width: 760px) { .ws-intro { grid-template-columns: 1fr; } }
.ws-text { display: grid; gap: 14px; max-width: 62ch; }
.ws-text h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.ws-text p { margin: 0; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ws-actions .ext { margin-left: 4px; }
.ws-terms { margin: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tint); padding: 4px 20px; display: grid; }
.ws-terms div { display: grid; gap: 2px; padding: 14px 0; }
.ws-terms div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.ws-terms dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.ws-terms dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-card .card-price .ws-unit { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.ws-fine { margin: 28px 0 0; }
