/* ============================================================
   elliegrau.com — The Artist's Stand on the Green
   Mist-linen market stand, slate-indigo painted sign, wet-violet air — After the Rain.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Besley-600.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Besley-700.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/Besley-800.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Caveat-500.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Caveat-600.woff2') format('woff2'); }
@font-face { font-family: 'Grand Hotel'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/GrandHotel-400.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/Karla-400i.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Karla-400.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Karla-500.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Karla-700.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --linen: #f7f3f2;
  --linen-deep: #ece4e2;
  --canvas-white: #fdfcfc;
  --navy: #5e4550;
  --navy-deep: #422e38;
  --navy-soft: #7d616c;
  --sea: #c9899e;
  --sea-deep: #9d5470;
  --sea-ink: #86445c;
  --kraft: #d6b28a;
  --kraft-paper: #e5cba6;
  --kraft-ink: #64492c;
  --cream: #f8f0e4;

  --font-sign: 'Besley', 'Georgia', serif;
  --font-script: 'Grand Hotel', cursive;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;
  --font-tag: 'Caveat', cursive;

  --shadow-hang: 0 2px 3px rgba(66, 46, 56, 0.10), 0 14px 28px -12px rgba(66, 46, 56, 0.28);
  --shadow-hang-hover: 0 3px 5px rgba(66, 46, 56, 0.12), 0 22px 40px -14px rgba(66, 46, 56, 0.34);
  --shadow-board: 0 3px 6px rgba(50, 34, 42, 0.18), 0 18px 36px -10px rgba(50, 34, 42, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

/* ---------- Reset & ground ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--navy) var(--linen-deep);
}
body {
  margin: 0;
  background-color: var(--linen);
  /* woven linen: turbulence-based cloth grain (warp + weft), not a drawn grid */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='warp'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.11 0.52' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.369 0 0 0 0 0.271 0 0 0 0 0.314 0 0 0 0.075 0'/%3E%3C/filter%3E%3Cfilter id='weft'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.1' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.369 0 0 0 0 0.271 0 0 0 0 0.314 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23warp)'/%3E%3Crect width='240' height='240' filter='url(%23weft)'/%3E%3C/svg%3E");
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  caret-color: var(--sea-deep);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sea); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--sea-deep); transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out); }
a:hover { color: var(--sea-ink); text-decoration-color: currentColor; }
p { margin: 0 0 var(--space-2); }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tent canopy edge ---------- */
.canopy {
  position: relative;
  height: 22px;
  background:
    radial-gradient(circle 14px at 14px -2px, var(--canvas-white) 0 12.5px, transparent 13px) 0 0 / 28px 22px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(66, 46, 56, 0.14));
  z-index: 40;
}
.canopy::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--canvas-white);
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.site-nav .wordmark {
  display: inline-flex;
  align-items: center;
  /* pad the hit area to ≥44px; negative inline margin keeps optical alignment */
  padding: 0.3rem 0.35rem;
  margin-inline: -0.35rem;
  color: var(--navy);
  text-decoration: none;
}
.site-nav .wordmark:hover { color: var(--sea-ink); }
/* EE monogram, painted in the ink of wherever it hangs: the mask keeps the
   artwork, currentColor supplies the pigment (rosewood, peony on hover). */
.logo-ee {
  width: 2.6rem;
  aspect-ratio: 3201 / 2712;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url('/images/ee-logo.svg') center / contain no-repeat;
  mask: url('/images/ee-logo.svg') center / contain no-repeat;
}
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.site-nav ul a:hover { border-bottom-color: var(--sea); color: var(--sea-ink); }

/* ---------- Hero: the stand ---------- */
.stand {
  position: relative;
  overflow: clip;
  padding-block: clamp(var(--space-3), 4vh, var(--space-5)) var(--space-5);
}
/* morning tent light drifting across the stand */
.stand::before {
  content: '';
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(112deg,
    transparent 30%,
    rgba(255, 252, 240, 0.55) 44%,
    rgba(255, 250, 233, 0.75) 50%,
    rgba(255, 252, 240, 0.55) 56%,
    transparent 70%);
  animation: tent-light 38s linear infinite alternate;
  pointer-events: none;
  /* dissolve the wash before the section edge so it never cuts a hard line */
  mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
}
@keyframes tent-light {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}
.stand-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 5fr) 6fr;
  grid-template-areas:
    'sign canvas'
    'intro canvas';
  column-gap: clamp(var(--space-3), 5vw, var(--space-5));
  align-items: start;
}
.stand-grid .sign { grid-area: sign; }
.stand-grid .stand-intro { grid-area: intro; }
.stand-grid .featured-hang { grid-area: canvas; }

/* the painted sign */
.sign {
  position: relative;
  margin-top: var(--space-3);
  transform: rotate(-1.2deg);
}
/* two straps the board hangs from */
.sign::before, .sign::after {
  content: '';
  position: absolute;
  top: -26px;
  width: 8px;
  height: 30px;
  background: linear-gradient(var(--kraft), var(--kraft-ink));
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(50, 34, 42, 0.3);
}
.sign::before { left: 18%; transform: rotate(2deg); }
.sign::after { right: 18%; transform: rotate(-2deg); }
.sign-board {
  position: relative;
  background:
    linear-gradient(173deg, rgba(255,255,255,0.10) 0%, transparent 18%),
    repeating-linear-gradient(88deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 9px),
    linear-gradient(var(--navy), var(--navy-deep));
  border-radius: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-board);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.75rem);
  text-align: center;
  color: var(--cream);
}
.sign-board .script-line {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--sea);
  margin: 0 0 0.25rem;
  font-weight: 400;
}
.sign-board h1 {
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.sign-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-block: 0.9rem;
}
.sign-rule::before, .sign-rule::after {
  content: '';
  height: 2px;
  width: 3.5rem;
  background: var(--kraft);
  border-radius: 1px;
}
.sign-rule svg { color: var(--kraft); }
.sign-board .place {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
}
.stand-intro {
  margin-top: var(--space-3);
  max-width: 34rem;
}
.stand-intro p {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--navy);
}
.stand-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.btn-painted {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(178deg, rgba(255,255,255,0.12), transparent 30%), var(--navy);
  border: none;
  border-radius: 8px 10px 8px 11px / 10px 8px 11px 8px; /* hand-painted irregularity */
  padding: 0.95rem 1.75rem;
  box-shadow: 0 2px 4px rgba(50, 34, 42, 0.22), 0 10px 18px -8px rgba(50, 34, 42, 0.35);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn-painted:hover {
  color: var(--cream);
  background-color: var(--sea-deep);
  background-image: linear-gradient(178deg, rgba(255,255,255,0.12), transparent 30%);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(50, 34, 42, 0.2), 0 16px 26px -10px rgba(50, 34, 42, 0.4);
}
.link-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  text-decoration: none;
  color: var(--sea-ink);
  border-bottom: 2px solid transparent;
}
.link-script:hover { border-bottom-color: var(--sea); color: var(--sea-ink); }

/* ---------- Hanging canvases ---------- */
.hang {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transform-origin: 50% -12px;
}
/* the nail */
.hang::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8b7d83, var(--navy-deep) 70%);
  box-shadow: 0 1px 2px rgba(50, 34, 42, 0.4);
}
.hang .frame {
  position: relative;
  background: var(--canvas-white);
  padding: 0;
  box-shadow: var(--shadow-hang);
  transition: box-shadow 300ms var(--ease-out);
}
/* gallery-wrap canvas edge */
.hang .frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(66, 46, 56, 0.08),
    inset -3px -4px 6px -3px rgba(66, 46, 56, 0.28),
    inset 2px 2px 4px -2px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.hang:hover .frame { box-shadow: var(--shadow-hang-hover); }
.hang:hover { animation: sway 1.8s var(--ease-out); }
@keyframes sway {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(0.9deg); }
  45% { transform: rotate(-0.7deg); }
  70% { transform: rotate(0.35deg); }
  100% { transform: rotate(0deg); }
}

/* kraft swing tag */
.tag {
  position: absolute;
  right: -0.9rem;
  bottom: -1.7rem;
  transform: rotate(5deg);
  transform-origin: 12px 4px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.35), transparent 40%),
    var(--kraft-paper);
  border-radius: 4px 10px 6px 6px;
  box-shadow: 0 1px 2px rgba(66, 48, 27, 0.25), 0 6px 10px -5px rgba(66, 48, 27, 0.35);
  padding: 0.45rem 0.9rem 0.5rem 1.5rem;
  min-width: 8.5rem;
  transition: transform 300ms var(--ease-out);
}
/* punched hole + string */
.tag::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--linen);
  box-shadow: inset 0 1px 2px rgba(66, 48, 27, 0.4);
}
.tag::after {
  content: '';
  position: absolute;
  left: 0.83rem;
  top: -0.75rem;
  width: 1.5px;
  height: 1.1rem;
  background: var(--kraft-ink);
  opacity: 0.55;
  transform: rotate(24deg);
}
.hang:hover .tag { transform: rotate(7.5deg); }
.tag .tag-title {
  font-family: var(--font-tag);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--kraft-ink);
  display: block;
}
.tag .tag-medium {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--kraft-ink);
  display: block;
  margin-top: 0.1rem;
}

/* hero featured hang */
.featured-hang { margin-top: var(--space-2); }
.featured-hang .frame img { width: 100%; }
.featured-hang .tag { right: 1.2rem; bottom: -1.9rem; }

/* ---------- Works section ---------- */
.works { padding-block: var(--space-6) var(--space-5); }
.section-head { margin-bottom: var(--space-4); max-width: 46rem; }
.section-head h2 {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
.section-head h2 .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.85em;
  color: var(--sea-ink);
  white-space: nowrap;
}
.section-head p { color: var(--navy-soft); max-width: 58ch; }

.market-wall {
  columns: 3;
  column-gap: clamp(1.75rem, 3.5vw, 3rem);
}
.market-wall .piece {
  break-inside: avoid;
  margin: 0 0 4.25rem;
}
.market-wall .hang { width: 100%; }
.market-wall .hang .frame img { width: 100%; }

/* ---------- Meet Ellie ---------- */
.meet {
  background-color: var(--linen-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='warp'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.11 0.52' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.369 0 0 0 0 0.271 0 0 0 0 0.314 0 0 0 0.085 0'/%3E%3C/filter%3E%3Cfilter id='weft'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.1' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.369 0 0 0 0 0.271 0 0 0 0 0.314 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23warp)'/%3E%3Crect width='240' height='240' filter='url(%23weft)'/%3E%3C/svg%3E");
  border-top: 1px solid rgba(94, 69, 80, 0.09);
  border-bottom: 1px solid rgba(94, 69, 80, 0.09);
  padding-block: var(--space-5);
}
.meet-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) 3fr;
  gap: clamp(var(--space-4), 6vw, var(--space-6));
  align-items: center;
}
.meet h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--navy);
  margin: 0;
  transform: rotate(-2deg);
}
.meet h2 .underline {
  display: block;
  width: 9rem;
  height: 10px;
  margin-top: 0.5rem;
  color: var(--sea);
}
.meet-copy p { max-width: 62ch; }
.meet-copy .lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
}
.meet-copy .aside {
  color: var(--navy-soft);
  font-style: italic;
}

/* ---------- Commissions ---------- */
.commissions {
  background:
    linear-gradient(174deg, rgba(255,255,255,0.05), transparent 24%),
    repeating-linear-gradient(88deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 10px),
    linear-gradient(var(--navy), var(--navy-deep));
  color: var(--cream);
  padding-block: var(--space-5) var(--space-6);
}
.commissions-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(var(--space-4), 6vw, var(--space-6));
  align-items: center;
}
.commissions h2 {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  color: var(--cream);
  text-wrap: balance;
}
.commissions h2 .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.85em;
  color: var(--sea);
  white-space: nowrap;
}
.commissions p { max-width: 56ch; color: #dfccd3; }
.commissions p strong { color: var(--cream); }

/* the order slip — a drawn artifact, deliberately not a live form */
.order-slip {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.5), transparent 35%),
    var(--cream);
  color: var(--kraft-ink);
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.28), 0 20px 38px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(1.4deg);
  padding: 1.75rem 1.9rem 2rem;
}
.order-slip .slip-head {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin: 0 0 0.25rem;
}
.order-slip .slip-sub {
  font-family: var(--font-script);
  font-size: 1.4rem;
  text-align: center;
  color: var(--sea-ink);
  margin: 0 0 1.4rem;
}
.slip-line { margin-bottom: 1.1rem; }
.slip-line .slip-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 0.2rem;
}
.slip-label .slip-optional {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}
/* filling in the slip happens in the tag hand */
.slip-input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1.5px dashed rgba(94, 69, 80, 0.4);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-tag);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--navy);
  padding: 0.1rem 0.1rem 0.25rem;
  caret-color: var(--sea-deep);
  transition: border-color 160ms var(--ease-out);
}
.slip-input:hover { border-bottom-color: rgba(94, 69, 80, 0.65); }
.slip-input:focus { outline: none; border-bottom: 1.5px solid var(--sea-deep); }
.slip-input:focus-visible { outline: none; }
textarea.slip-input { resize: none; }
.slip-line.invalid .slip-input { border-bottom-color: #a4453f; }
.slip-line.invalid .slip-label { color: #a4453f; }
.order-slip .slip-field-error {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8125rem;
  color: #a4453f;
  margin: 0.35rem 0 0;
}
.order-slip .slip-echo {
  font-family: var(--font-tag);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--navy-soft);
  margin: -2rem 0 3rem;
}
.order-slip .slip-error {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: #a4453f;
  margin: 0 0 0.9rem;
}
.slip-submit {
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
}
.slip-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}
.slip-done { min-height: 29rem; display: flex; flex-direction: column; justify-content: flex-start; }
.order-slip .slip-thanks {
  font-family: var(--font-tag);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--navy);
  margin: 1.4rem 0 3.5rem;
}
.stamp-received {
  position: static;
  display: inline-block;
  transform: rotate(-6deg);
  animation: stamp-thunk 380ms var(--ease-out);
}
@keyframes stamp-thunk {
  0% { transform: rotate(-14deg) scale(1.7); opacity: 0; }
  60% { transform: rotate(-6deg) scale(0.96); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp-received { animation: none; }
}
.order-slip .stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 3.4rem;
  transform: rotate(-8deg);
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a4453f;
  border: 3px double #a4453f;
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  opacity: 0.8;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0.1'/%3E%3C/filter%3E%3Crect width='120' height='60' fill='white' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: cover;
}
.slip-note {
  margin-top: var(--space-2);
  font-style: italic;
  font-size: 0.9375rem;
  color: #d0b9c2;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-4);
  text-align: center;
}
.site-footer .foot-logo {
  width: 4.5rem;
  aspect-ratio: 3201 / 2712;
  margin: 0 auto 0.8rem;
  background-color: var(--navy);
  -webkit-mask: url('/images/ee-logo.svg') center / contain no-repeat;
  mask: url('/images/ee-logo.svg') center / contain no-repeat;
}
/* forced-colors overrides background-color, which would blank the masked
   monogram; repaint it in the forced palette's own inks */
@media (forced-colors: active) {
  .logo-ee { background-color: LinkText; forced-color-adjust: none; }
  .site-footer .foot-logo { background-color: CanvasText; forced-color-adjust: none; }
}
.site-footer .foot-legal {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
  margin: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: rgba(247, 243, 242, 0.97);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='warp'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.11 0.52' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.369 0 0 0 0 0.271 0 0 0 0 0.314 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23warp)'/%3E%3C/svg%3E");
  padding: clamp(1rem, 3vw, 2.5rem);
}
.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}
.lightbox-stage img {
  max-height: min(78vh, 60rem);
  max-width: min(92vw, 70rem);
  width: auto;
  box-shadow: var(--shadow-hang-hover);
}
.lightbox-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  padding-top: var(--space-2);
}
.lightbox-caption .tag-title {
  font-family: var(--font-tag);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
}
.lightbox-caption .tag-medium {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.lightbox .lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(94, 69, 80, 0.25);
  border-radius: 50%;
  background: var(--canvas-white);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(66, 46, 56, 0.12), 0 8px 16px -8px rgba(66, 46, 56, 0.25);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.lightbox .lb-btn:hover { transform: scale(1.07); border-color: var(--sea-deep); color: var(--sea-ink); }
.lightbox .lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox .lb-prev { left: clamp(0.5rem, 2.5vw, 2rem); top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: clamp(0.5rem, 2.5vw, 2rem); top: 50%; translate: 0 -50%; }

/* ---------- 404 ---------- */
.empty-wall {
  min-height: calc(100svh - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-5);
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .market-wall { columns: 2; }
  .stand-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'sign' 'canvas' 'intro';
  }
  .stand-intro { max-width: 40rem; }
  .featured-hang { max-width: 34rem; margin-inline: auto; width: 100%; margin-top: var(--space-4); }
  .meet-grid, .commissions-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .meet h2 { transform: rotate(-1deg); }
  .order-slip { max-width: 26rem; }
}
@media (max-width: 40rem) {
  .market-wall { columns: 1; }
  .market-wall .piece { max-width: 26rem; margin-inline: auto; }
  .site-nav { flex-direction: column; align-items: center; gap: 0.35rem; padding-block: 0.6rem; }
  .site-nav .wordmark { padding-block: 0.45rem; }
  .site-nav .logo-ee { width: 2.2rem; }
  .site-nav ul a { padding-block: 0.6rem; } /* keep 44px touch height while nav shrinks */
  .stand { padding-top: 0.5rem; }
  .sign { transform: rotate(-0.8deg); margin-inline: auto; max-width: 19rem; margin-top: var(--space-2); width: 100%; }
  .sign-board { padding: 0.85rem 1rem 1rem; }
  .sign-board h1 { font-size: 1.8rem; margin-bottom: 0.35rem; }
  .sign-board .script-line { font-size: 1.2rem; margin-bottom: 0.1rem; }
  .sign-rule { margin-block: 0.35rem; }
  .sign-rule::before, .sign-rule::after { width: 2.25rem; }
  .sign-board .place { font-size: 0.6875rem; }
  .featured-hang { margin-top: var(--space-3); }
  .stand-intro { margin-top: var(--space-3); }
  .stand-intro p { font-size: 1.0625rem; }
  .tag { right: -0.4rem; }
  .featured-hang .tag { right: 0.75rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stand::before { animation: none; }
  .hang:hover { animation: none; }
  .hang:hover .tag { transform: rotate(5deg); }
  .btn-painted:hover { transform: none; }
  .lightbox .lb-btn:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
