/* Made By TerriSue — "One of One"
 *
 * The brief asked for a yellow-to-pink gradient. A gradient that large reads
 * as a phone app, so here it behaves like light instead of like paint: a wash
 * behind photography, a hairline under a heading, the ring around a seal. The
 * page itself is warm paper and ink, and structure comes from rules and space
 * rather than cards and shadows — the pieces are the only objects on screen.
 */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2');
             font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree';  src: url('/fonts/figtree.woff2') format('woff2');
             font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Ephesis';  src: url('/fonts/ephesis.woff2') format('woff2');
             font-weight: 400; font-display: swap; }

:root {
  --paper:      #fdfaf5;
  --paper-warm: #f7efe4;
  --ink:        #241c1a;
  --ink-soft:   #574a45;
  --muted:      #877771;
  --rule:       #e6dccf;

  --yellow: #fbc94a;
  --coral:  #f58e7a;
  --pink:   #e8659b;
  --gradient: linear-gradient(100deg, var(--yellow) 0%, var(--coral) 52%, var(--pink) 100%);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script:  'Ephesis', 'Brush Script MT', cursive;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
}

/* width/height attributes are present on every photo so the browser can
   reserve the right space; height:auto keeps them from fixing the box. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 100, 'SOFT' 20;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* ---- shared bits ------------------------------------------------------- */

.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* The gradient as a drawn line. Used to open a section, never to fill one. */
.rule-gradient {
  height: 2px; border: 0; margin: 0;
  background: var(--gradient);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
.section-head::after {
  content: ''; flex: 1 1 6rem; height: 2px; min-width: 4rem;
  background: var(--gradient); align-self: center;
}

/* The one-of-one seal: a ring of gradient with the count inside. This is the
   site's signature — it appears wherever a piece is shown. */
.seal {
  --size: 4.5rem;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient);
  padding: 2px;
  flex: none;
}
.seal > span {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 0.78rem; line-height: 1.1; text-align: center;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
}
.seal--onpaper > span { background: var(--paper); }

/* Buttons: ink by default. The gradient is reserved for the single act of
   buying, so it means something when it shows up. */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--buy {
  border: 0; color: var(--ink);
  background: var(--gradient);
  background-size: 160% 100%; background-position: 0% 0;
  transition: background-position 400ms ease;
}
.btn--buy:hover { background-position: 100% 0; color: var(--ink); }
.btn[disabled], .btn--sold {
  background: transparent; color: var(--muted); border-color: var(--rule); cursor: default;
}

.link-underline {
  text-decoration: none;
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 0 100%;
  transition: background-size 260ms ease;
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 2px; }

/* A strip across the top for a sale or anything else worth saying once. The
   gradient earns its keep here: this is the one element whose whole job is to
   be noticed before the page is read. */
.announce {
  margin: 0;
  background: var(--gradient);
  color: var(--ink);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem var(--gutter);
  text-wrap: balance;
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}
.wordmark {
  font-family: var(--script);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1; text-decoration: none; white-space: nowrap;
}
.wordmark em { font-style: normal; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.nav a[aria-current='page'] { background-size: 100% 2px; }
.cart-pip {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem;
  padding-inline: 0.35rem; margin-left: 0.4rem;
  background: var(--gradient); color: var(--ink);
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  font-variant-numeric: lining-nums;
}

.nav-toggle { display: none; }

/* ---- hero -------------------------------------------------------------- */

/* The first version ran a photograph full-bleed behind white type. Two things
   were wrong with it: object-fit:cover on a wide, short frame enlarges a 4:3
   close-up enormously, so the bag arrived at giant scale; and the type sat on
   whatever the photograph happened to be doing underneath. Setting the type on
   paper beside the photograph fixes both, and lets the piece be shown at its
   own proportions rather than cropped to the shape of the box. */

.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem); }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 54rem) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; }
}

.hero__copy .eyebrow { margin: 0 0 1rem; }
.hero__copy .wordmark-lg {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 7vw, 6rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: 0;
}
.hero__rule { width: 7rem; margin: 1.4rem 0 1.5rem; }
.hero__line {
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.4rem);
  line-height: 1.35;
  max-width: 26rem;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; }

/* On a phone the copy stacks above the photograph, so keep it compact enough
   that the piece itself is still in view at the fold. */
@media (max-width: 53.9375rem) {
  .hero { padding-block: 1.5rem 0; }
  .hero__rule { margin: 1rem 0 1.1rem; }
  .hero__line { margin-bottom: 1.4rem; }
  .hero__actions .btn { padding-block: 0.8rem; }
}

.hero__figure { margin: 0; position: relative; }
.hero__figure img {
  width: 100%; height: auto;
  background: var(--paper-warm);
}
/* The gradient as light again — a wash off the top corner of the photograph,
   plain alpha so it always composites. */
.hero__figure::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  background: radial-gradient(70% 60% at 100% 0%,
              rgb(251 201 74 / 26%), rgb(232 101 155 / 16%) 55%, transparent 76%);
}
.hero__figure figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: 0.9rem; padding-top: 0.7rem;
  font-size: 0.88rem;
}
.hero__figure figcaption span { color: var(--muted); font-variant-numeric: lining-nums; }
.hero__figure figcaption a { font-family: var(--display); font-size: 1.05rem; text-decoration: none; }

/* ---- hero carousel ----------------------------------------------------- */

/* The slides hold different shapes — her photos run 3:4 and 4:3 — so the stage
   is a fixed square and the photographs are CONTAINED inside it. Cropping to a
   common ratio would cut the bags about, and letting each slide set its own
   height would make the page jump on every change. The warm ground reads as a
   plate the piece is set on. */

.carousel { display: grid; gap: 0.9rem; }
.carousel__eyebrow { margin: 0; }

.carousel__stage {
  display: grid;
  isolation: isolate;
}
.carousel__slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease;
}
.carousel__slide.is-current { opacity: 1; visibility: visible; }

.carousel__frame {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  background: var(--paper-warm);
  overflow: hidden;
}
.carousel__frame img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* The gradient as light off the corner, plain alpha so it always composites. */
.carousel__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 100% 0%,
              rgb(251 201 74 / 24%), rgb(232 101 155 / 15%) 55%, transparent 76%);
}
.carousel__save {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 1;
}

.carousel__slide figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: 0.9rem; padding-top: 0.7rem;
}
.carousel__name { font-family: var(--display); font-size: 1.05rem; }
.carousel__price { font-variant-numeric: lining-nums; white-space: nowrap; }
.carousel__price s { color: var(--muted); margin-right: 0.45rem; }
.carousel__price strong { font-weight: 600; }

.carousel__controls {
  display: flex; align-items: center; gap: 0.9rem;
}
.carousel__arrow {
  width: 2.1rem; height: 2.1rem; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  cursor: pointer; padding: 0;
  transition: border-color 180ms ease, color 180ms ease;
}
.carousel__arrow:hover { border-color: var(--ink); }
.carousel__dots { display: flex; gap: 0.45rem; flex: 1; flex-wrap: wrap; }
.carousel__dot {
  width: 1.9rem; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: var(--rule);
  transition: background 240ms ease;
}
.carousel__dot.is-current { background: var(--gradient); }
.carousel__arrow:focus-visible, .carousel__dot:focus-visible, .carousel__frame:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 3px;
}
/* Announced to screen readers only. */
.carousel__live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: 0;
}

/* Nine sale pieces means nine dots, which wrap to a second row on a phone
   unless they give up some width. */
@media (max-width: 30rem) {
  .carousel__dot { width: 1.1rem; }
  .carousel__dots { gap: 0.35rem; flex-wrap: nowrap; }
  .carousel__controls { gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

/* ---- statement --------------------------------------------------------- */

.statement { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1.18; margin: 0 auto; max-width: 24ch; text-wrap: balance;
}
.statement .accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- front-page film band ---------------------------------------------- */

/* Sits directly under the "every piece is one of one" statement, because it is
   the evidence for it. Warm ground so it reads as a held moment rather than
   another row of the shop. */

.filmband {
  background: var(--paper-warm);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.filmband__grid {
  display: grid;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 54rem) {
  .filmband__grid { grid-template-columns: 1.05fr 1fr; }
}

.filmband__media { margin: 0; }
.filmband__media video {
  width: 100%; height: auto;
  background: var(--ink);
  display: block;
}
/* Phone footage is 9:16 and would otherwise run the height of the screen. */
.filmband__media--portrait { max-width: 21rem; }
@media (min-width: 54rem) {
  .filmband__media--portrait { justify-self: center; }
}

.filmband__copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); }
.filmband__copy p { max-width: 34ch; }
.filmband__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* ---- the collection: staggered, never a card grid ---------------------- */

.collection {
  display: grid; align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.collection--three { grid-template-columns: repeat(3, 1fr); }

.piece { position: relative; display: flex; flex-direction: column; text-decoration: none; }
/* Every other piece drops down the page, so the eye travels instead of scanning rows. */
.collection > .piece:nth-child(even) { margin-top: clamp(1.5rem, 6vw, 5rem); }

.piece__frame { position: relative; overflow: hidden; background: var(--paper-warm); }
.piece__frame img {
  width: 100%; height: auto;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.piece:hover .piece__frame img { transform: scale(1.04); }
/* Warm light washes in from the corner on hover — the gradient again, as
   light. Plain alpha, for the same compositing reason as the hero. */
.piece__frame::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(80% 90% at 100% 0%,
              rgb(251 201 74 / 40%), rgb(232 101 155 / 26%) 55%, transparent 78%);
  transition: opacity 500ms ease;
}
.piece:hover .piece__frame::after { opacity: 1; }

.piece__no {
  font-family: var(--body); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  font-variant-numeric: lining-nums; display: block; margin-bottom: 0.15rem;
}
.piece__tags { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; gap: 0.35rem; justify-items: end; }
.tag {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 0.3rem 0.55rem; background: var(--paper); color: var(--ink);
}
.tag--sale { background: var(--gradient); }
.tag--sold { background: var(--ink); color: var(--paper); }

.piece__line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-top: 1rem;
  border-top: 1px solid var(--rule); padding-top: 0.8rem;
}
.piece__line > span:first-child { display: block; }
.piece__name { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.piece__price { font-variant-numeric: lining-nums; white-space: nowrap; font-weight: 600; }
.piece__price s { color: var(--muted); font-weight: 400; margin-right: 0.4rem; }
.piece--sold .piece__frame img { filter: grayscale(1); opacity: 0.72; }

/* ---- product page ------------------------------------------------------ */

.product { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60rem) { .product { grid-template-columns: 1.15fr 1fr; } }

.product__gallery { display: grid; gap: 1rem; }
.product__gallery img { width: 100%; height: auto; background: var(--paper-warm); }

.product__panel { position: sticky; top: 6rem; }
.product__head { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; }
.product__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.product__price {
  font-family: var(--display); font-size: 1.7rem;
  font-variant-numeric: lining-nums; margin: 1.2rem 0 0;
}
.product__price s { color: var(--muted); font-size: 1.15rem; margin-right: 0.6rem; }
.product__price .save {
  display: inline-block; margin-left: 0.6rem; font-family: var(--body);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; padding: 0.25rem 0.5rem; background: var(--gradient);
}

.spec { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.2rem; }
.spec h3 { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.2em;
           text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.7rem; }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.spec li:last-child { border-bottom: 0; }

.buybar { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.buybar .btn { flex: 1 1 12rem; justify-content: center; }
.note { font-size: 0.86rem; color: var(--muted); margin-top: 0.9rem; }

/* ---- product gallery --------------------------------------------------- */

/* Photographs and films in one swipeable sequence, because that is how someone
   actually looks at a bag: stills first, then the film of it being made, while
   they are still reading the description.
   
   Built on scroll-snap rather than a JS slider so that swiping on a phone is
   the browser's own, works before the script loads, and keeps working if it
   never does. The frame is square with everything CONTAINED: her photographs
   run 3:4 and 4:3 and phone footage is 9:16, so any shared crop would cut the
   bags about and per-item heights would jolt the page on every swipe. */

/* min-width:0 matters here. A grid item defaults to min-width:auto, so the
   ten-thumbnail strip inside sized the whole gallery to its own 712px content
   instead of scrolling within it — which widened the page rather than the
   strip. Same reason it is repeated on the track and the strip. */
.gallery { position: relative; min-width: 0; }

.gallery__track {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  /* Mandatory snap gives a phone the native swipe-and-settle feel. It also
     reverts programmatic smooth scrolling — both scrollTo({behavior:'smooth'})
     and CSS scroll-behavior — so the arrows and thumbnails move the track by
     assigning scrollLeft, which snap accepts. Verified: with either smooth
     route in place the track did not move at all. */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  position: relative;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  background: var(--paper-warm);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery__item img,
.gallery__item video {
  /* max-* rather than width/height:100%. A 9:16 film given height:100% inside
     an aspect-ratio box resolves circularly, the browser falls back to the
     video's intrinsic height, and that one item grows to 595px in a 335px
     frame — dragging the whole track and the thumbnails down with it. */
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.gallery__item video { background: var(--ink); }

/* The stage is the positioning context for the arrows and the counter. They
   belong to the picture, not to the gallery as a whole — anchored to the
   latter, the counter came to rest on top of the thumbnail strip. */
.gallery__stage { position: relative; min-width: 0; }

/* Where you are in a ten-photo gallery, so the strip is not the only clue. */
.gallery__count {
  position: absolute; right: 0.85rem; bottom: 0.85rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 600;
  padding: 0.25rem 0.55rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.gallery__filmtag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 0.3rem 0.55rem;
  background: var(--gradient); color: var(--ink);
  pointer-events: none;
}

.gallery__arrow {
  position: absolute; top: calc(50% - 1.4rem);
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 0; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  transition: background 180ms ease;
}
.gallery__arrow:hover { background: var(--paper); }
.gallery__arrow--prev { left: 0; }
.gallery__arrow--next { right: 0; }
.gallery__arrow[hidden] { display: none; }

/* One scrolling row, never a wrapping grid. With three photos wrapping was
   harmless; at ten it built a three-row block that pushed the piece's name and
   price off a phone screen entirely. */
.gallery__thumbs {
  list-style: none; margin: 0.8rem 0 0; padding: 0 0 0.2rem;
  display: flex; gap: 0.5rem; flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs li { flex: none; }
.gallery__thumb {
  position: relative; display: block; padding: 0; cursor: pointer;
  width: 4rem; height: 4rem;
  border: 1px solid var(--rule); background: var(--paper-warm);
  overflow: hidden;
  transition: border-color 180ms ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb-blank { display: block; width: 100%; height: 100%; background: var(--ink); }
.gallery__thumb.is-current { border-color: var(--ink); }
.gallery__thumb.is-current::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--gradient);
}
.gallery__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 60%);
}
.gallery__play svg { filter: drop-shadow(0 1px 3px rgb(0 0 0 / 70%)); }

.gallery__arrow:focus-visible, .gallery__thumb:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 2px;
}

/* ---- films ------------------------------------------------------------- */

/* Terri films her work. That is the thing no other shop selling handbags can
   put on a page, so it gets a section of its own rather than a tab or a lightbox
   at the bottom of a gallery. Each film keeps its own shape: phone footage is
   vertical, a tripod shot is not, and forcing both into 16:9 would letterbox
   half her work into a black band. */

.films { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); margin-top: 2rem; }
.films__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 26rem));
  justify-content: start;
  align-items: start;
  margin-top: 1.8rem;
}
.film { margin: 0; }

/* Phone footage is 9:16. Left to fill a wide column it renders about two
   thousand pixels tall — the same mistake the first hero made, in video. A
   portrait film is held to a sensible width and centred instead. */
.film--portrait { max-width: 22rem; margin-inline: auto; }
.film video {
  width: 100%; height: auto;
  background: var(--ink);
  display: block;
}
.film figcaption {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: 0.8rem; padding-top: 0.65rem;
  font-size: 0.9rem;
}
.film__kind {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 0.3rem 0.55rem;
  background: var(--gradient); color: var(--ink);
}
.film__title { font-family: var(--display); font-size: 1.02rem; }
.film__time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

.tag--film {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--ink); color: var(--paper);
}

/* ---- about / maker ----------------------------------------------------- */

.maker { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
@media (min-width: 55rem) { .maker { grid-template-columns: 1fr 1.1fr; } }
.maker__body p { max-width: var(--measure); }
.maker__body p:first-of-type::first-letter {
  font-family: var(--display); font-size: 3.4em; line-height: 0.82;
  float: left; padding: 0.06em 0.12em 0 0;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- category index (typographic, not tiles) --------------------------- */

.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cat-list a {
  display: flex; align-items: baseline; gap: 1.5rem; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.8rem) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.cat-list .cat-name { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); transition: color 200ms; }
.cat-list a:hover .cat-name { color: var(--pink); }
.cat-list .cat-count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: lining-nums; white-space: nowrap; }
.cat-list .cat-blurb { color: var(--muted); flex: 1 1 12rem; font-size: 0.92rem; }

/* ---- filters ----------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.filters a { text-decoration: none; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.filters a[aria-current='page'] { color: var(--ink); font-weight: 700; }

/* ---- admin photo list -------------------------------------------------- */

.photolist { list-style: none; margin: 1rem 0 0; padding: 0; }
.photolist__row {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: 0.9rem;
  align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
}
.photolist__row img { width: 4rem; height: 4rem; object-fit: cover; background: var(--paper-warm); }
.photolist__meta { display: grid; }
.photolist__acts { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.photolist__acts button {
  font: inherit; font-size: 0.78rem; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  padding: 0.25rem 0.6rem;
}
.photolist__acts button:hover:not(:disabled) { border-color: var(--ink); }
.photolist__acts button:disabled { opacity: 0.35; cursor: default; }

/* ---- materials library ------------------------------------------------- */

/* A shelf, not a product grid. Each material is a face of colour or a swatch
   photograph with its name set beside it, so the page reads as stock on hand
   rather than as things for sale. */

.swatches {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}
.swatch { display: grid; grid-template-rows: auto 1fr; }
.swatch__face {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--paper-warm);
  overflow: hidden;
}
.swatch__face img { width: 100%; height: 100%; object-fit: cover; }
.swatch--out .swatch__face { filter: grayscale(1); opacity: 0.55; }
.swatch__out {
  position: absolute; inset-inline: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 0.3rem 0.55rem; text-align: center;
}
.swatch__body { border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.swatch__name { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin: 0; }
.swatch__origin {
  margin: 0.15rem 0 0; color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.swatch__desc { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.swatch__cta { display: inline-block; margin-top: 0.6rem; font-size: 0.88rem; }

/* ---- forms ------------------------------------------------------------- */

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); padding: 0.6rem 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--pink);
}
.field textarea { resize: vertical; min-height: 8rem; }

.flash { padding: 1rem 1.2rem; border-left: 3px solid; margin-bottom: 1.5rem; background: var(--paper-warm); }
.flash--ok { border-color: var(--pink); }
.flash--err { border-color: #b3261e; }

/* ---- commission form --------------------------------------------------- */

/* Four numbered steps, because this genuinely is a sequence: a shape, then
   what it is made of, then what it is for, then who to send the quote to.
   Each step is a fieldset so the grouping is real to a screen reader too. */

.commission { max-width: 46rem; padding-bottom: clamp(3rem, 8vw, 5rem); }
.commission__step {
  border: 0; border-top: 1px solid var(--rule);
  margin: 0; padding: 1.8rem 0 2.2rem;
}
.commission__step legend {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-size: 1.35rem;
  padding: 0; margin-bottom: 0.4rem;
}
.commission__n {
  width: 1.9rem; height: 1.9rem; flex: none;
  border-radius: 50%; background: var(--gradient);
  display: grid; place-items: center;
  font-family: var(--body); font-size: 0.8rem; font-weight: 700;
  color: var(--ink); font-variant-numeric: lining-nums;
}
.commission__pair { display: grid; gap: 0 1.2rem; }
@media (min-width: 34rem) { .commission__pair { grid-template-columns: 1fr 1fr; } }

/* Shapes: pick a bag she has already made, sold ones included. */
.shapes {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
}
.shape {
  display: grid; gap: 0.5rem; cursor: pointer;
  padding: 0.5rem; border: 1px solid var(--rule);
  transition: border-color 160ms ease;
  height: 100%;
}
.shape:hover { border-color: var(--muted); }
.shape input { position: absolute; opacity: 0; pointer-events: none; }
.shape:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shape:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; }
.shape__frame { display: block; aspect-ratio: 1 / 1; background: var(--paper-warm); overflow: hidden; }
.shape__frame img { width: 100%; height: 100%; object-fit: cover; }
.shape__name { display: block; font-family: var(--display); font-size: 0.95rem; line-height: 1.2; }
.shape__note { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.shape--none { align-content: center; min-height: 7rem; text-align: center; }

/* ---- cart -------------------------------------------------------------- */

.cart-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.2rem; align-items: center;
            padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.cart-row img { width: 5rem; aspect-ratio: 4/5; object-fit: cover; }
.cart-total { display: flex; justify-content: space-between; padding: 1.2rem 0; font-family: var(--display); font-size: 1.4rem; }

/* ---- footer ------------------------------------------------------------ */

.site-footer { margin-top: clamp(4rem, 10vw, 8rem); border-top: 2px solid transparent;
               border-image: var(--gradient) 1; background: var(--paper-warm); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.2em;
                  text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.colophon { border-top: 1px solid var(--rule); padding-block: 1.2rem; font-size: 0.8rem; color: var(--muted);
            display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; }

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 46rem) {
  .collection, .collection--three { grid-template-columns: 1fr; }
  .collection > .piece:nth-child(even) { margin-top: 0; }
  .product__panel { position: static; }
  /* "The Maker" is reachable from the footer and the home page; Bag is not
     optional on a shop, so it is the link that must survive. */
  .nav a.nav-full { display: none; }
}

/* On a narrow phone the script wordmark and four nav links together overflow
   the bar and push Bag off the right edge. */
@media (max-width: 30rem) {
  .wordmark { font-size: 1.45rem; }
  .nav { gap: 0.95rem; }
  .nav a { font-size: 0.78rem; letter-spacing: 0.06em; }
  .site-header__inner { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
