/* ---------- tokens: light (bare :root = the complete palette) ---------- */
:root{
  --bg:#FBF7F8;
  --glow:rgba(196,138,158,.16);
  --surface:#FFFFFF;
  --surface-2:#F4EEF0;
  --ink:#2C2229;
  --ink-soft:#7A6B73;
  --line:#EDE3E7;
  --line-strong:#DFD1D7;

  --accent:#B3546E;
  --accent-hover:#96435A;
  --accent-tint:#F8EAEE;
  --on-accent:#FFFFFF;

  --lilac:#7166A0;
  --lilac-tint:#F0ECF7;
  --pollen:#E0A93F;

  --shadow-sm:0 1px 2px rgba(44,34,41,.05);
  --shadow-md:0 14px 30px -18px rgba(44,34,41,.35);
  --focus:#B3546E;

  --step--1:.8125rem;
  --step-0:.9375rem;
  --step-1:1.0625rem;
  --step-2:1.25rem;
  --step-3:1.7rem;
  --step-4:clamp(2.15rem,7vw,3.4rem);

  --radius:14px;
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --font-body:"Instrument Sans","Segoe UI",system-ui,sans-serif;
}
/* ---------- tokens: dark, only when the visitor asks for it ---------- */
/* The site deliberately does NOT follow prefers-color-scheme: light is the
   default for everyone, and dark is opt-in via the header toggle. */
:root[data-theme="dark"]{
  --bg:#17131A;
  --glow:rgba(240,147,172,.10);
  --surface:#211B24;
  --surface-2:#2A222E;
  --ink:#F6F0F3;
  --ink-soft:#AC9CA6;
  --line:#332A38;
  --line-strong:#453A4B;

  --accent:#F093AC;
  --accent-hover:#F7AABE;
  --accent-tint:#3A2530;
  --on-accent:#24151C;

  --lilac:#BCACE4;
  --lilac-tint:#2B2338;
  --pollen:#E8C979;

  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 14px 30px -18px rgba(0,0,0,.75);
  --focus:#F093AC;
}

*{box-sizing:border-box}
body{
  margin:0;
  background-color:var(--bg);
  background-image:radial-gradient(900px 520px at 50% -180px,var(--glow),transparent 70%);
  background-repeat:no-repeat;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--step-0);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.wrap{width:min(1120px,100% - 2rem);margin-inline:auto}
@media (min-width:640px){.wrap{width:min(1120px,100% - 3rem)}}

h1,h2,h3{
  font-family:var(--font-display);font-weight:600;line-height:1.12;letter-spacing:-.012em;
  font-variation-settings:"SOFT" 45,"WONK" 1;
  text-wrap:balance;margin:0;
}
p{margin:0}
a{color:inherit}
:focus-visible{outline:2.5px solid var(--focus);outline-offset:3px;border-radius:8px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* ---------- header ---------- */
.site-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-block:1.35rem}
.logo{display:flex;align-items:center;text-decoration:none;min-width:0}
.logo-text{
  font-family:var(--font-display);font-weight:600;font-size:1.2rem;letter-spacing:-.02em;
  font-variation-settings:"SOFT" 60,"WONK" 1;white-space:nowrap;
}
.logo-text b{font-weight:600;color:var(--accent)}
/* dotless i, with a blossom sitting where the dot would be.
   line-height:1 pins the box to the em square, so the blossom lands relative to
   the letter rather than to the (much taller) inherited line box. */
.dotted-i{position:relative;display:inline-block;line-height:1}
.dotted-i svg{
  position:absolute;left:50%;bottom:calc(100% - .30em);
  width:.46em;height:.46em;transform:translateX(-50%);color:var(--accent);
}
.head-link{
  font-size:var(--step--1);font-weight:500;text-decoration:none;
  display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;
  padding:.5rem .85rem;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,color .15s ease;
}
.head-link:hover{border-color:var(--accent);color:var(--accent)}
@media (max-width:479px){
  .logo-text{font-size:1.05rem}
  .head-link{padding:.45rem .7rem;font-size:.75rem}
}

/* ---------- hero ---------- */
.hero{padding-block:2.5rem 1rem;display:grid;gap:2.25rem;grid-template-columns:minmax(0,1fr);align-items:center}
@media (min-width:880px){
  .hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:3.5rem;padding-block:4.5rem 2rem}
}
.hero h1{font-size:var(--step-4);font-weight:600;max-width:15ch}
.hero h1 em{font-style:italic;color:var(--accent)}
.hero-copy p{margin-top:1.15rem;color:var(--ink-soft);font-size:var(--step-1);max-width:46ch}

.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem;list-style:none;padding:0}
.chips li{
  font-size:var(--step--1);font-weight:500;color:var(--ink-soft);
  padding:.35rem .8rem;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);
  display:inline-flex;align-items:center;gap:.4rem;
}
.chips svg{width:14px;height:14px;flex:none;color:var(--accent)}

.hero-card{
  display:block;text-decoration:none;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.hero-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--line-strong)}
.hero-card .frame{aspect-ratio:var(--ratio,5/4)}
.hero-card:hover .frame svg{transform:scale(1.04)}
.hero-card-body{padding:1rem 1.15rem 1.2rem}
.kicker{
  display:inline-block;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--accent);background:var(--accent-tint);padding:.25rem .6rem;border-radius:999px;
}
.hero-card h2{font-size:var(--step-2);margin-top:.7rem}
.hero-card .medium{margin-top:.25rem}

/* ---------- section heading ---------- */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-block:3rem 1.5rem}
.section-head h2{font-size:var(--step-3)}
.section-head .count{font-size:var(--step--1);color:var(--ink-soft)}

/* ---------- gallery ---------- */
/* Two across even on the narrowest phone; three once there is room for them. */
.gallery{list-style:none;padding:0;margin:0;display:grid;gap:.7rem;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:560px){.gallery{gap:1.25rem}}
/* Three across, not four: with a square photo the card is already much shorter,
   and narrower cards only make the text block below stretch them out again. */
@media (min-width:720px){.gallery{gap:1.4rem;grid-template-columns:repeat(3,minmax(0,1fr))}}

.piece{
  display:flex;flex-direction:column;scroll-margin-top:1.5rem;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.piece:hover,.piece:focus-within{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--line-strong)}

/* Square tiles. The photographs are portrait (0.709-0.782), so each one sets its
   own --zoom/--focus to decide what a square crop keeps. The full uncropped
   photo is always a click away in the lightbox. */
.frame{position:relative;aspect-ratio:var(--ratio,1/1);background:var(--surface-2);overflow:hidden}
.frame svg,.frame img{position:absolute;inset:0;display:block;width:100%;height:100%;transition:transform .5s ease}


/* Focal crop. Lets a photo be zoomed and re-centred on the painting without
   re-cropping the file, for shots with a lot of wall around the work.
     --zoom     how much to enlarge; 1 is untouched
     --nudge-x  shift needed to bring the painting to the centre, in % of the frame
     --nudge-y  same, vertically
     --focus    which part of the photo to keep when cropping (object-position),
                e.g. "50% 90%" trims from the top and protects the bottom
   --hover is kept separate so the hover lift multiplies the zoom instead of
   replacing it. */
.frame img{
  object-fit:cover;
  object-position:var(--focus,50% 50%);
  transform:scale(calc(var(--zoom,1) * var(--hover,1)))
            translate(var(--nudge-x,0),var(--nudge-y,0));
}
.piece:hover .frame img,.hero-card:hover .frame img{--hover:1.04}

/* For shaped or cut-out paintings that must not be cropped at all */
.frame.contain{background:#FFFFFF}
.frame.contain img{object-fit:contain;padding:3%}

.piece:hover .frame svg{transform:scale(1.04)}
.badge{
  position:absolute;top:.7rem;left:.7rem;z-index:2;
  font-size:.6875rem;font-weight:500;
  padding:.24rem .6rem;border-radius:999px;
  background:var(--surface);color:var(--ink-soft);border:1px solid var(--line);
}

.piece-body{padding:1.05rem 1.15rem 1.2rem;display:flex;flex-direction:column;flex:1}
.title-row{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}
.piece h3{font-size:var(--step-2)}
.price{
  font-family:var(--font-display);font-weight:600;font-size:var(--step-2);
  font-variation-settings:"SOFT" 45,"WONK" 1;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.medium{font-size:var(--step--1);color:var(--ink-soft);margin-top:.3rem}
/* The description stays in the markup for search engines, but it is shown in the
   lightbox rather than on the tile - on the card it was over a quarter of the
   height and made every tile a tall rectangle. */
.note{display:none}
.tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.85rem;list-style:none;padding:0}
.tags li{
  font-size:.6875rem;font-weight:500;letter-spacing:.02em;
  padding:.22rem .58rem;border-radius:999px;
  background:var(--lilac-tint);color:var(--lilac);
}
.tags li.one-off{background:var(--accent-tint);color:var(--accent)}

.buy{margin-top:auto;padding-top:1.1rem;display:block;text-decoration:none}
.buy span{
  display:flex;align-items:center;justify-content:center;min-height:44px;
  border-radius:10px;background:var(--accent);color:var(--on-accent);
  font-weight:600;font-size:var(--step-0);letter-spacing:.01em;
  transition:background .15s ease;
}
.buy:hover span{background:var(--accent-hover)}

/* Mark a piece as gone: add "is-sold" to its <li class="piece">.
   Gallery cards use .shots-wrap and the hero card uses .frame, so both need
   naming here - targeting .frame alone silently did nothing on a gallery card. */
/* pointer-events:none matters: the stamp covers the whole tile, so without it
   it swallows every click meant for the photo, the arrows, the dots and the
   counter. A sold piece should still open in the viewer. z-index 2 rather than
   3 keeps the carousel controls crisp above the veil instead of under it. */
.is-sold .shots-wrap::after,
.is-sold .frame::after{
  content:"Sold";position:absolute;inset:0;z-index:2;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:600;font-size:1.5rem;
  color:var(--surface);background:rgba(44,34,41,.5);
  pointer-events:none;
}
.is-sold .shots-wrap,.is-soldout .shots-wrap{position:relative}
.is-sold .price{color:var(--ink-soft);text-decoration:line-through}
/* the anchor as well as the span, or clicks land on the padding round it */
.is-sold .buy{pointer-events:none}
.is-sold .buy span{background:var(--surface-2);color:var(--ink-soft);pointer-events:none}

/* ---------- prints notice ---------- */
.soon-strip{
  margin-top:2.25rem;background:var(--accent-tint);border-radius:var(--radius);
  padding:1.15rem 1.35rem;display:flex;align-items:flex-start;gap:.9rem;
}
.soon-strip svg{width:22px;height:22px;flex:none;color:var(--accent);margin-top:.15rem}
.soon-strip p{font-size:var(--step--1);color:var(--ink);max-width:62ch}
.soon-strip strong{font-weight:600}
.soon-strip a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* ---------- how buying works ---------- */
.info{
  margin-top:3.5rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem;display:grid;gap:1.6rem;grid-template-columns:minmax(0,1fr);
}
@media (min-width:760px){.info{padding:2rem;gap:2rem;grid-template-columns:repeat(3,minmax(0,1fr))}}
.info h3{font-size:var(--step-1);display:flex;align-items:center;gap:.5rem}
.info h3 svg{width:19px;height:19px;flex:none;color:var(--accent)}
.info p{color:var(--ink-soft);font-size:var(--step--1);margin-top:.45rem}

/* ---------- about ---------- */
.about{margin-top:3.5rem;display:grid;gap:1.75rem;grid-template-columns:minmax(0,1fr);align-items:center}
@media (min-width:760px){.about{gap:2.5rem;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
.about h2{font-size:var(--step-3)}
.about p{margin-top:1rem;color:var(--ink-soft);max-width:56ch}
.about-art{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.about-art svg{display:block;width:100%;height:auto}
/* a photo here just fills the width and keeps its own shape */
.about-art img{display:block;width:100%;height:auto}
/* ...unless you set --ratio on the .about-art div, then it crops to that shape,
   e.g. style="--ratio:4/3" or style="--ratio:1/1;--focus:50% 30%" to keep a face */
.about-art[style*="--ratio"] img{height:100%;aspect-ratio:var(--ratio);object-fit:cover;object-position:var(--focus,50% 50%)}

/* ---------- footer ---------- */
.site-foot{
  margin-top:4rem;padding-block:1.75rem 3rem;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;
  font-size:var(--step--1);color:var(--ink-soft);
}
.site-foot a{font-weight:500;color:var(--accent);text-decoration:none}
.site-foot a:hover{text-decoration:underline}

/* ---------- entrance ---------- */
.reveal{opacity:0;transform:translateY(10px)}
.reveal.in{opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
  .reveal{opacity:1;transform:none}
  .piece:hover,.piece:focus-within,.hero-card:hover{transform:none}
  .piece:hover .frame svg,.hero-card:hover .frame svg{transform:none}
}

/* ---------- navigation ---------- */
.site-nav{display:flex;gap:.3rem;flex-wrap:wrap}
.site-nav a{
  font-size:var(--step--1);font-weight:500;text-decoration:none;color:var(--ink-soft);
  padding:.42rem .8rem;border-radius:999px;white-space:nowrap;
  border:1px solid transparent;
  transition:color .15s ease,background .15s ease,border-color .15s ease;
}
.site-nav a:hover{color:var(--accent);background:var(--accent-tint)}
.site-nav a[aria-current="page"]{
  color:var(--accent);background:var(--accent-tint);border-color:var(--accent-tint);font-weight:600;
}

/* phone: logo and Instagram share the top row, nav sits under them */
@media (max-width:719px){
  .site-head{flex-wrap:wrap;row-gap:.6rem}
  .site-nav{order:3;width:100%;justify-content:flex-start;gap:.25rem}
  .site-nav a{padding:.4rem .7rem}
}

/* ---------- compact painting tiles on small screens ---------- */
@media (max-width:559px){
  .piece-body{padding:.65rem .7rem .8rem}
  .title-row{flex-direction:column;align-items:flex-start;gap:.05rem}
  .piece h3{font-size:1rem;line-height:1.2}
  .piece .price{font-size:.95rem}
  .medium{font-size:.72rem;margin-top:.15rem}
  .tags{margin-top:.5rem;gap:.25rem}
  .tags li{font-size:.5875rem;padding:.16rem .42rem}
  .buy{padding-top:.7rem}
  .buy span{min-height:40px;font-size:.85rem}
  .section-head{margin-block:2rem 1rem}
}

/* ---------- simple pages (prints, contact, thanks) ---------- */
.page{padding-block:2.5rem 1rem;max-width:62ch}
.page h1{font-size:var(--step-4);font-weight:600}
.page > p{margin-top:1.15rem;color:var(--ink-soft);font-size:var(--step-1)}
.page .lead{color:var(--ink)}

.panel{
  margin-top:2rem;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.5rem;
}
.panel h2{font-size:var(--step-2)}
.panel p{color:var(--ink-soft);font-size:var(--step--1);margin-top:.5rem}
.panel .btn{margin-top:1.1rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:44px;padding:.6rem 1.3rem;border-radius:10px;
  background:var(--accent);color:var(--on-accent);
  font-weight:600;font-size:var(--step-0);text-decoration:none;border:none;cursor:pointer;
  font-family:var(--font-body);transition:background .15s ease;
}
.btn:hover{background:var(--accent-hover)}
.btn-quiet{background:transparent;color:var(--accent);border:1px solid var(--line)}
.btn-quiet:hover{background:var(--accent-tint);border-color:var(--accent)}

/* ---------- contact form ---------- */
.form{margin-top:2rem;display:grid;gap:1.1rem;max-width:34rem}
.field{display:grid;gap:.35rem}
.field label{font-size:var(--step--1);font-weight:600}
.field .hint{font-size:.75rem;color:var(--ink-soft);font-weight:400}
.field input,.field textarea,.field select{
  font-family:var(--font-body);font-size:var(--step-0);color:var(--ink);
  background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;
  padding:.7rem .85rem;width:100%;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.field textarea{resize:vertical;min-height:8rem}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);
}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-soft);opacity:.7}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-note{font-size:.75rem;color:var(--ink-soft);margin-top:-.3rem}

.page h1 em{font-style:italic;color:var(--accent)}

/* ---------- light / dark toggle ---------- */
.head-actions{display:flex;align-items:center;gap:.5rem}
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:38px;height:38px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);
  cursor:pointer;box-shadow:var(--shadow-sm);
  transition:color .15s ease,border-color .15s ease;
}
.theme-toggle:hover{color:var(--accent);border-color:var(--accent)}
.theme-toggle svg{width:17px;height:17px}
@media (max-width:479px){.theme-toggle{width:34px;height:34px}}

/* Show the sun when it is dark (click for light) and the moon when it is light.
   Light is the default, so the moon shows unless dark has been chosen. */
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none}

/* ---------- photo carousel on each painting ---------- */
.shots-wrap{position:relative}
.shots{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.shots::-webkit-scrollbar{display:none}

/* each slide is a button so it is reachable by keyboard and opens the lightbox */
.shot{
  flex:0 0 100%;scroll-snap-align:center;
  position:relative;aspect-ratio:var(--ratio,1/1);
  background:var(--surface-2);overflow:hidden;
  display:block;border:0;padding:0;margin:0;cursor:zoom-in;
}
.shot img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:var(--focus,50% 50%);
  transform:scale(calc(var(--zoom,1) * var(--hover,1)))
            translate(var(--nudge-x,0),var(--nudge-y,0));
  transition:transform .5s ease;
}
.piece:hover .shot img{--hover:1.04}

.arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:32px;height:32px;border-radius:999px;display:grid;place-items:center;
  border:1px solid var(--line);background:var(--surface);color:var(--ink);
  cursor:pointer;box-shadow:var(--shadow-sm);opacity:0;transition:opacity .2s ease;
}
.arrow.prev{left:.45rem}
.arrow.next{right:.45rem}
.arrow svg{width:15px;height:15px}
.arrow:disabled{opacity:0 !important;pointer-events:none}
.shots-wrap:hover .arrow,.arrow:focus-visible{opacity:1}
@media (hover:none){.shots-wrap .arrow{display:none}}   /* phones swipe instead */

.dots{
  position:absolute;left:0;right:0;bottom:.5rem;z-index:3;
  display:flex;justify-content:center;gap:.3rem;pointer-events:none;
}
.dots button{
  pointer-events:auto;width:7px;height:7px;padding:0;border-radius:999px;
  border:0;cursor:pointer;background:var(--surface);opacity:.55;
  box-shadow:0 0 0 1px rgba(0,0,0,.15);transition:opacity .15s ease,transform .15s ease;
}
.dots button[aria-current="true"]{opacity:1;transform:scale(1.35)}

.shot-count{
  position:absolute;top:.5rem;right:.5rem;z-index:3;
  font-size:.625rem;font-weight:600;padding:.15rem .45rem;border-radius:999px;
  background:var(--surface);color:var(--ink-soft);border:1px solid var(--line);
}

/* ---------- full size viewer ---------- */
/* inset:0 rather than 100vw/100vh: on iOS those units can exceed the visible
   viewport, which pushed the image and the arrows off the right-hand edge */
.lightbox{
  border:0;padding:0;background:transparent;overflow:hidden;
  position:fixed;inset:0;width:auto;height:auto;max-width:none;max-height:none;
}
.lightbox::backdrop{background:rgba(20,14,22,.88)}
.lightbox-inner{
  position:relative;height:100%;
  display:grid;grid-template-rows:minmax(0,1fr) auto;   /* minmax lets the image row shrink */
  gap:.75rem;padding:1rem;place-items:center;
}
.lightbox img{
  max-width:100%;max-height:100%;
  width:auto;height:auto;object-fit:contain;border-radius:8px;
  box-shadow:0 24px 60px -20px rgba(0,0,0,.7);
}
.lightbox-bar{
  display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap;
  max-width:100%;color:#F6F0F3;font-size:.8125rem;
}
.lightbox-btn{
  width:40px;height:40px;border-radius:999px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);
  color:#fff;cursor:pointer;
}
.lightbox-btn:hover{background:rgba(255,255,255,.2)}
.lightbox-btn svg{width:17px;height:17px}
.lightbox-btn{flex:none}
.lightbox-close{position:absolute;top:1rem;right:1rem}
.lightbox-caption{max-width:52ch;min-width:0;text-align:center;opacity:.85}
/* on a phone the caption is far wider than the row, so give it its own line
   underneath the arrows instead of letting it force the row off screen */
@media (max-width:600px){
  .lightbox-caption{order:3;flex:1 1 100%}
  .lightbox-inner{padding:.75rem}
  .lightbox-close{top:.6rem;right:.6rem}
}
@media (prefers-reduced-motion:reduce){.shot img{transition:none}}

.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;
}

/* ---------- wide pages with a gallery (prints, originals) ---------- */
/* a gallery page needs the full width, not the 62ch reading column, so the
   intro keeps the narrow measure for readability and the page itself opens up */
.page-wide{max-width:none}
.page-intro{max-width:62ch}
.page-intro p{margin-top:1.15rem;color:var(--ink-soft);font-size:var(--step-1)}
.page-intro .lead{color:var(--ink)}
.page-intro h1 em{font-style:italic;color:var(--accent)}

/* size picker: real radio buttons, hidden and drawn as a pair of chips.
   Picking one rewrites the price and repoints Buy - see site.js */
.sizes{margin-top:.9rem;border:0;padding:0;display:flex;gap:.4rem;flex-wrap:wrap}
.sizes label{position:relative;flex:1 1 0;min-width:0}
.sizes input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.sizes input + span{
  display:flex;flex-direction:column;align-items:center;gap:.05rem;
  padding:.45rem .5rem;border:1px solid var(--line);border-radius:10px;
  font-size:var(--step--1);font-weight:600;line-height:1.25;text-align:center;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.sizes em{font-style:normal;font-weight:400;font-size:.72rem;color:var(--ink-soft)}
.sizes input:checked + span{border-color:var(--accent);background:var(--accent-tint);color:var(--accent)}
.sizes input:checked + span em{color:var(--accent)}
.sizes input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
/* On a phone the grid is two columns, so a card is only ~165px wide - three
   chips side by side there squash the size labels until they clip. Stack them
   instead: one chip per row, inches on the left and centimetres on the right. */
@media (max-width:559px){
  .sizes{flex-direction:column;gap:.3rem}
  .sizes label{flex:none}
  .sizes input + span{
    flex-direction:row;align-items:baseline;justify-content:space-between;
    gap:.4rem;padding:.4rem .55rem;font-size:.8rem;text-align:left;
  }
  .sizes em{font-size:.66rem;white-space:nowrap}
}

/* "is-soldout" is the print version of is-sold: the design isn't gone for good,
   there just aren't any in the drawer. Says so, and invites them back. */
.is-soldout .shots-wrap::after{
  content:"Sold out";position:absolute;inset:0;z-index:2;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:600;font-size:1.5rem;
  color:var(--surface);background:rgba(44,34,41,.5);
  pointer-events:none;                 /* photos stay viewable while out of stock */
}
.is-soldout .price{color:var(--ink-soft);text-decoration:line-through}
.is-soldout .sizes{opacity:.45;pointer-events:none}
.is-soldout .buy{pointer-events:none}
.is-soldout .buy span{background:var(--surface-2);color:var(--ink-soft);font-size:0}
.is-soldout .buy span::after{content:"Back in stock soon";font-size:var(--step-0)}
