:root {
  /* the colours of the logo quilt */
  --slate: #61666A;
  --slate-deep: #474B4F;
  --terra: #C98B7B;
  --terra-deep: #A8665A;
  --peach: #F3D5C3;
  --peach-soft: #F8E6DA;
  --cream: #FBF7F2;
  --white: #FFFFFF;
  --sage: #8DA483;
  --sage-deep: #6E8566;
  --gold: #E8C45A;
  --brown: #7B5145;
  --ink: #4A4A4A;
  --ink-soft: #6B6662;
  --taupe: #6F665D;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 5vw, 4rem);
  --radius: 18px;
  --quilt-size: 168px;
  --quilt: url("images/brand/quilt-tile.svg");
  --flower: url("images/brand/marigold-line.png");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  margin: 0;
  color: var(--brown);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--terra-deep); }

p { margin: 0; }
a { color: var(--brown); text-underline-offset: 0.2em; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--slate); color: var(--cream); padding: 0.6rem 1rem; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 0.5rem; }

/* the patchwork itself */
.quilt {
  background-color: var(--cream);
  background-image: var(--quilt);
  background-size: var(--quilt-size) var(--quilt-size);
  background-position: 0 0;
}

/* small caps label with two gold cornerstones, like the sashing */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font: 600 0.78rem/1.2 var(--body);
  font-stretch: 118%;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 0.55em; height: 0.55em; background: var(--gold); flex: none;
}
.eyebrow:empty { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--terra) 25%, transparent);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; white-space: nowrap;
}
.mark {
  width: 1.15rem; height: 1.8rem; background: var(--brown);
  -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat;
}
.top nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2.2rem); }
.top nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 0.8rem; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative;
}
.top nav a:not(.nav-shop)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.35rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--terra) 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.top nav a:not(.nav-shop):hover::after { transform: scaleX(1); }
.top nav .nav-shop {
  background: var(--slate); color: var(--cream); padding: 0.6rem 1.15rem; border-radius: 999px;
  transition: background 0.2s ease;
}
.top nav .nav-shop:hover { background: var(--brown); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; position: relative;
  font: 600 0.85rem/1 var(--body); font-stretch: 115%;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); background: var(--terra-deep);
  border: 0; border-radius: 999px;
  padding: 1.15rem 1.9rem;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
/* a line of running stitch inside the edge */
.btn::after {
  content: ""; position: absolute; inset: 5px; border-radius: 999px;
  border: 1.5px dashed color-mix(in srgb, var(--cream) 70%, transparent);
  pointer-events: none;
}
.btn:hover { background: var(--brown); transform: translateY(-2px); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn-quiet { background: var(--peach); color: var(--brown); }
.btn-quiet::after { border-color: color-mix(in srgb, var(--brown) 45%, transparent); }
.btn-quiet:hover { background: var(--peach-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(8px, 1.2vw, 16px);
  background: var(--sage);
}
.hero-quilt {
  --quilt-size: clamp(132px, 14vw, 200px);
  border-radius: 6px;
  min-height: min(52rem, calc(100svh - 5.5rem));
  display: grid; place-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  animation: drift 90s linear infinite;
}
@keyframes drift {
  to { background-position: calc(var(--quilt-size) * 2) var(--quilt-size); }
}
.hero-inner {
  width: 100%; max-width: 72rem;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.medallion {
  margin: 0; position: relative; justify-self: center;
  width: min(100%, 27rem);
  filter: drop-shadow(0 24px 40px rgba(55, 50, 46, 0.35));
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
.medallion img { width: 100%; height: auto; }
.medallion figcaption {
  position: absolute; left: 50%; top: calc(100% - 0.6rem); transform: translateX(-50%);
  white-space: nowrap;
  background: var(--white); color: var(--brown);
  font: 400 clamp(1.05rem, 2vw, 1.45rem)/1 var(--display);
  padding: 0.85rem 1.6rem; border-radius: 999px;
}
.hero-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: 0 30px 60px -20px rgba(55, 50, 46, 0.45);
}
.hero-card::before {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius) - 6px);
  border: 1.5px dashed color-mix(in srgb, var(--terra) 60%, transparent);
  pointer-events: none;
}
.hero-card h1 { margin: 1.1rem 0 0; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); margin: 1.3rem 0 2rem; max-width: 30rem; }
.next-fair {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem;
  font-size: 0.92rem; color: var(--ink); text-decoration: none;
}
.next-fair strong { color: var(--brown); }
.next-fair::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 var(--sage); animation: ping 2.2s ease-out infinite;
}
.next-fair:hover span { text-decoration: underline; }
@keyframes ping { 70% { box-shadow: 0 0 0 0.6rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- scrolling ribbon ---------- */
.ribbon {
  background: var(--slate); color: var(--cream);
  overflow: hidden; padding: 1.05rem 0;
  border-top: 6px solid var(--terra); border-bottom: 6px solid var(--terra);
}
.ribbon-track {
  display: flex; width: max-content;
  animation: slide 40s linear infinite;
}
.ribbon-track span {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font: italic 400 clamp(1.2rem, 2.2vw, 1.6rem)/1 var(--display); white-space: nowrap;
}
.ribbon-track span::after {
  content: ""; width: 0.6rem; height: 0.6rem; background: var(--gold); transform: rotate(45deg);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.band { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); position: relative; }
.wrap { max-width: 74rem; margin: 0 auto; position: relative; }
.wrap.narrow { max-width: 48rem; }
.head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { margin-top: 0.9rem; }
.intro { margin-top: 1rem; max-width: 36rem; color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.2rem; }
.filters button {
  font: 500 0.8rem/1 var(--body); font-stretch: 110%; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: var(--white);
  border: 1.5px solid color-mix(in srgb, var(--terra) 45%, transparent); border-radius: 999px;
  padding: 0.8rem 1.2rem; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filters button:hover { border-color: var(--terra); background: var(--peach-soft); }
.filters button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--cream); }

.pieces {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
}
.piece { display: flex; }
.piece.wide { grid-column: span 2; grid-row: span 2; }
.piece-open {
  display: flex; flex-direction: column; width: 100%;
  font: inherit; color: inherit; text-align: left;
  background: var(--white); border: 0; padding: 0.6rem 0.6rem 1rem; cursor: pointer;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 12px 30px -18px rgba(74, 74, 74, 0.35);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}
.piece-open:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 40px -20px rgba(74, 74, 74, 0.45); }
.piece:nth-child(even) .piece-open:hover { transform: translateY(-6px) rotate(0.6deg); }
.piece-photo {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: calc(var(--radius) - 6px); background: var(--peach);
}
.piece-photo::after {
  content: ""; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 10px);
  border: 1.5px dashed rgba(255, 255, 255, 0.85); pointer-events: none;
}
.piece.wide .piece-photo { aspect-ratio: auto; flex: 1; min-height: 16rem; }
.piece-photo img, .piece-photo svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.piece-open:hover .piece-photo img, .piece-open:hover .piece-photo svg { transform: scale(1.06); }
.soon {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 1;
  background: var(--cream); color: var(--ink-soft);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.piece-info { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.9rem 0.4rem 0; }
.piece-title { font-family: var(--display); font-size: 1.15rem; color: var(--brown); line-height: 1.25; }
.piece.wide .piece-title { font-size: 1.5rem; }
.piece-price { font-weight: 600; color: var(--terra-deep); white-space: nowrap; }
.piece-price.pending { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.sold-tag {
  position: absolute; right: 0.9rem; top: 0.9rem; z-index: 1;
  background: var(--slate); color: var(--cream);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.piece.is-sold .piece-photo img, .piece.is-sold .piece-photo svg { opacity: 0.55; filter: grayscale(0.4); }
.pieces-empty { grid-column: 1 / -1; color: var(--ink-soft); }

/* ---------- fairs (the business-card colours) ---------- */
.band-taupe { background: var(--taupe); color: var(--cream); overflow: hidden; }
.band-taupe h2 { color: var(--cream); }
.band-taupe h2 em { color: var(--peach); }
.band-taupe .eyebrow { color: var(--peach); }
.band-taupe .intro { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.flower {
  position: absolute; background: currentColor; pointer-events: none;
  -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat;
}
.flower-fairs {
  color: var(--cream); opacity: 0.16;
  width: clamp(14rem, 30vw, 26rem); aspect-ratio: 386 / 765;
  left: -3rem; bottom: -4rem; transform: rotate(-12deg);
}
.flower-fairs.two { left: auto; right: -4rem; top: -5rem; bottom: auto; transform: rotate(160deg); }
.fairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.fair {
  position: relative;
  display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1.5rem;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 1.1rem 1.6rem 1.1rem 1.1rem;
  transition: transform 0.3s ease;
}
.fair:hover { transform: translateX(6px); }
.fair::before {
  content: ""; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 5px);
  border: 1.5px dashed color-mix(in srgb, var(--terra) 55%, transparent); pointer-events: none;
}
.fair-date {
  display: grid; place-items: center; text-align: center;
  background: var(--terra); color: var(--white); border-radius: 12px;
  padding: 0.7rem 0.4rem 0.8rem;
}
.fair-month { font: 600 0.72rem/1 var(--body); font-stretch: 120%; letter-spacing: 0.22em; text-transform: uppercase; }
.fair-day { font: 400 2.4rem/1 var(--display); margin-top: 0.25rem; }
.fair-weekday { font-size: 0.72rem; opacity: 0.9; margin-top: 0.2rem; }
.fair-name { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--brown); }
.fair-name a { color: inherit; text-decoration-color: color-mix(in srgb, var(--terra) 60%, transparent); }
.fair-detail { display: block; color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.3rem; }
.fair-empty {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 1.5rem; outline: 1.5px dashed var(--terra); outline-offset: -8px;
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.about-frame {
  position: sticky; top: 7rem;
  --quilt-size: 96px;
  padding: 14px;
  border-radius: 999px 999px var(--radius) var(--radius);
  background-color: var(--cream); background-image: var(--quilt); background-size: var(--quilt-size) var(--quilt-size);
  box-shadow: 0 30px 50px -28px rgba(74, 74, 74, 0.55);
  transform: rotate(-2deg);
}
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 999px 999px calc(var(--radius) - 8px) calc(var(--radius) - 8px);
  overflow: hidden; background: var(--peach); position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .flower { color: var(--slate); inset: 14% 22% 4%; }
.about-text h2 { margin: 0.9rem 0 1.4rem; }
.about-text p { max-width: 34rem; font-size: 1.12rem; }
.about-text p:first-child { font-family: var(--display); font-size: 1.4rem; line-height: 1.45; color: var(--brown); }
.about-text p + p { margin-top: 1.1rem; }
.name-story { color: var(--ink-soft); font-style: italic; }

/* ---------- contact ---------- */
.band-quilt { padding: 0; background: var(--sage); }
.contact-quilt {
  --quilt-size: clamp(120px, 12vw, 168px);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.contact-card {
  background: var(--white); border-radius: 28px;
  padding: clamp(1.6rem, 5vw, 3.4rem);
  box-shadow: 0 40px 70px -30px rgba(40, 38, 36, 0.6);
  position: relative;
}
.contact-card::before {
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  border: 1.5px dashed color-mix(in srgb, var(--terra) 55%, transparent); pointer-events: none;
}
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; position: relative; }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.78rem; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid color-mix(in srgb, var(--terra) 35%, transparent); border-radius: 12px;
  padding: 0.85rem 0.95rem; width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 0;
  border-color: var(--terra); background: var(--white);
}
.field .invalid { border-color: #B4324A; }
.form-foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.form-status { color: var(--ink-soft); flex: 1; min-width: 14rem; }
.form-status.error { color: #9C2740; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- footer ---------- */
.foot {
  background: var(--slate-deep); color: var(--peach);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  border-top: 10px solid var(--sage);
}
.foot-inner { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.foot-medallion { width: 7.5rem; height: auto; flex: none; }
.foot-text { display: grid; gap: 0.45rem; }
.foot-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); }
.foot-tag { font-family: var(--display); font-style: italic; color: var(--peach); }
.foot a { color: var(--cream); }
.social { display: flex; gap: 1.2rem; }
.social:empty { display: none; }
.fine { font-size: 0.85rem; opacity: 0.75; margin-top: 0.5rem; }

/* ---------- piece dialog ---------- */
.piece-dialog {
  border: 0; padding: 0; color: var(--ink);
  background: var(--cream); border-radius: 24px;
  width: min(58rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.piece-dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; animation: pop 0.35s cubic-bezier(.2, .8, .2, 1); }
.piece-dialog > form { display: contents; }
.piece-dialog::backdrop { background: rgba(55, 50, 46, 0.6); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.pd-gallery { display: flex; flex-direction: column; background: var(--peach); }
.pd-photo { background: var(--peach); min-height: 22rem; position: relative; flex: 1; aspect-ratio: 1 / 1; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.7rem; }
.pd-thumbs:empty { display: none; }
.pd-thumbs button {
  width: 3.6rem; height: 3.6rem; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--white); opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--terra-deep); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-photo img, .pd-photo svg { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 2.6rem 2.2rem 2.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pd-body h3 { font-size: 2.1rem; }
.pd-price { font-family: var(--display); font-size: 1.6rem; color: var(--terra-deep); }
.pd-body .actions { margin-top: auto; padding-top: 1rem; }
.pd-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0;
  background: var(--white); color: var(--brown); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.pd-close:hover { background: var(--peach); }

/* ---------- reveal on scroll (only when scripts run) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .about-frame.reveal.in { transform: rotate(-2deg); }
.js .piece { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.js .piece.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 62rem) {
  .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 3.5rem; }
  .hero-card { max-width: 36rem; }
  .hero-card .actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .medallion { width: min(78%, 22rem); }
}

@media (max-width: 46rem) {
  .top { flex-wrap: wrap; row-gap: 0.55rem; padding-block: 0.7rem; }
  .top nav { width: 100%; overflow-x: auto; gap: 1.2rem; padding-bottom: 0.25rem; }
  .top nav a { white-space: nowrap; font-size: 0.74rem; }
  .top nav .nav-shop { position: absolute; right: var(--gutter); top: 0.55rem; padding: 0.55rem 1rem; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.16em; }
  .soon { left: 0.6rem; bottom: 0.6rem; font-size: 0.6rem; padding: 0.3rem 0.55rem; }
  html { scroll-padding-top: 7.5rem; }

  .hero-quilt { min-height: 0; }
  .medallion figcaption { padding: 0.7rem 1.2rem; }

  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .piece.wide { grid-row: auto; }
  .piece.wide .piece-photo { aspect-ratio: 1 / 1; min-height: 0; flex: none; }
  .piece-open { padding: 0.45rem 0.45rem 0.8rem; }
  .piece-info { flex-direction: column; gap: 0.1rem; padding-inline: 0.25rem; }
  .piece-title { font-size: 1.02rem; }

  .fair { grid-template-columns: 5rem 1fr; gap: 1rem; padding-right: 1.1rem; }
  .fair-day { font-size: 2rem; }
  .fair-name { font-size: 1.15rem; }

  .about { grid-template-columns: 1fr; }
  .about-frame { max-width: 17rem; justify-self: center; position: static; }
  .order-form { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; text-align: center; }
  .social { justify-content: center; }
  .piece-dialog[open] { grid-template-columns: 1fr; }
  .pd-photo { min-height: 0; flex: none; }
  .pd-thumbs button { width: 3rem; height: 3rem; }
  .pd-body { padding: 1.8rem 1.4rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .piece { opacity: 1; transform: none; }
  .js .about-frame.reveal { transform: rotate(-2deg); }
}
