@import url("fonts.css");

/* --------------------------------------------------------------------------
   Colour: the values below are the quiet default (warm paper and ink).
   On every page they are replaced with tones drawn from the painting being
   looked at (see assets/js/common.js › applyTheme); the registered
   properties let the browser fade smoothly from one palette to the next.
   -------------------------------------------------------------------------- */
@property --paper   { syntax: "<color>"; inherits: true; initial-value: #f2ede4; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #e9e2d6; }
@property --ink     { syntax: "<color>"; inherits: true; initial-value: #2e2923; }
@property --muted   { syntax: "<color>"; inherits: true; initial-value: #6b6257; }
@property --line    { syntax: "<color>"; inherits: true; initial-value: #d6cdbf; }
@property --accent  { syntax: "<color>"; inherits: true; initial-value: #7a5a3a; }
@property --deep    { syntax: "<color>"; inherits: true; initial-value: #2a241e; }

:root {
  --paper: #f2ede4;
  --surface: #e9e2d6;
  --ink: #2e2923;
  --muted: #6b6257;
  --line: #d6cdbf;
  --accent: #7a5a3a;
  --deep: #2a241e;
  --sold: #9b3b30;

  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --text: "EB Garamond", "Garamond", "Georgia", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 36rem;

  transition: --paper 1.4s ease, --surface 1.4s ease, --ink 1.4s ease,
              --muted 1.4s ease, --line 1.4s ease, --accent 1.4s ease,
              --deep 1.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  * { scroll-behavior: auto !important; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.06rem, 0.4vw + 0.98rem, 1.2rem);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
}

.eyebrow, .smallcaps {
  font-family: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- preview notice ------------------------------------------------------ */
.preview-note {
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  padding: 0.35rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.6rem var(--gutter) 1.4rem;
  border-bottom: 1px solid transparent;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), padding 0.35s ease,
              background-color 0.35s ease, border-color 0.35s ease;
}
/* once the page moves: a compact band of translucent paper with a fine rule */
.site-header.scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.7rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.tucked { transform: translateY(-100%); }
html { scroll-padding-top: 5.5rem; }
html.no-scroll { overflow: hidden; }

.header-cart, .menu-button { display: none; }

.site-name {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-name:hover { color: var(--ink); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* phones: name, cart and a Menu button; the menu opens full screen */
@media (max-width: 720px) {
  .site-header { align-items: center; gap: 1.2rem; }
  .site-name { margin-right: auto; font-size: 1.35rem; }
  .header-cart, .menu-button {
    display: inline-block;
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0.4rem 0;
    cursor: pointer;
  }
  .menu-button { color: var(--ink); position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav a {
    font-family: var(--display);
    font-size: 2.1rem;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--ink);
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open .site-name { position: relative; z-index: 2; }
  .menu-open .header-cart { visibility: hidden; }
  /* no transform or blur while open, or the full-screen menu would be clipped to the bar */
  .menu-open.site-header { transform: none; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.cart-count { font-variant-numeric: lining-nums; }

main { display: block; }

/* ---- buttons ------------------------------------------------------------- */
.button {
  display: inline-block;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { border-color: var(--accent); color: var(--accent); }
.button[disabled], .button[aria-disabled="true"] {
  background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed;
}

.text-link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.text-link:hover { color: var(--accent); }

/* ---- sold marker: the gallery red dot ------------------------------------ */
.sold {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--sold);
  font-style: italic;
}
.sold::before {
  content: "";
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--sold);
}

/* ---- hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 8vw, 7rem);
  max-width: 1320px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0.6rem 0 1.4rem;
}
.hero p { max-width: 26rem; color: var(--muted); margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.hero-figure { margin: 0; justify-self: center; }
.hero-figure img { max-height: 72vh; width: auto; height: auto; }
.hero-figure figcaption { margin-top: 0.9rem; font-style: italic; color: var(--muted); font-size: 0.95rem; }

/* A painting "hung" on the page: a soft cast shadow, nothing more. */
.hung { box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 14px 30px -12px rgb(0 0 0 / 0.35); background: var(--surface); }

/* ---- sections ------------------------------------------------------------ */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-top: 0.5rem; }
.section-head p { color: var(--muted); max-width: var(--measure); margin: 1rem auto 0; font-style: italic; }

/* ---- the collection ------------------------------------------------------ */
.works {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.work-card a { display: block; text-decoration: none; }
/* Each work hangs on its own piece of wall under a small picture light.
   Hover (or, on touch screens, scrolling it to the middle) switches the lamp on. */
.work-card .wall {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15% 9% 7%;
}
/* The frame: a thin moulding drawn around the painting (as shadows, so the
   painting itself keeps its exact size). Change --frame to recolour every frame. */
.hang {
  --frame: #c8ad84;                     /* pale natural oak */
  --frame-edge: rgb(60 40 20 / 0.25);   /* the hairlines where frame meets painting and wall */
  --fw: 6px;                        /* frame width */
  position: relative; z-index: 0; display: block;
}
.hang.tall { height: 100%; }
.hang.tall img { height: 100%; width: auto; }
.hang.wide { width: 100%; }
.hang.wide img { width: 100%; height: auto; }

.hang img {
  box-shadow:
    0 0 0 1px var(--frame-edge),
    0 0 0 var(--fw) var(--frame),
    0 0 0 calc(var(--fw) + 1px) var(--frame-edge),
    0 2px 3px calc(var(--fw) - 1px) rgb(0 0 0 / 0.14),
    0 12px 16px calc(var(--fw) - 9px) rgb(0 0 0 / 0.26);
  transition: box-shadow 0.7s ease, filter 0.7s ease;
}
/* in the list, a work waits slightly in the dark until its lamp comes on */
.work-card .hang img { filter: brightness(0.93) saturate(0.94); }

/* the pool of light on the wall, and on the upper part of the painting */
.hang::before, .hang::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hang::before {
  z-index: -1;
  left: -40%; right: -40%; top: -9%; bottom: -16%;
  /* thrown down from the lamp, fading softly on every side */
  background: radial-gradient(ellipse 52% 88% at 50% 0%,
    rgb(255 226 170 / 0.95), rgb(255 222 164 / 0.62) 30%, rgb(255 220 160 / 0.24) 58%, rgb(255 220 160 / 0) 82%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
  mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.hang::after {
  inset: 0;
  background: linear-gradient(to bottom, rgb(255 238 205 / 0.28), rgb(255 238 205 / 0) 60%);
  mix-blend-mode: soft-light;
}

/* the picture light: a slim bronze hood on a short arm */
.lamp {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px + var(--fw));
  width: clamp(54px, 44%, 128px);
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 3px rgb(0 0 0 / 0.22));
}
.lamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.lamp .slit { stroke: #6f604d; transition: stroke 0.4s ease, filter 0.4s ease; }

.hang.on::before, .hang.on::after,
.work-card a:hover .hang::before, .work-card a:hover .hang::after,
.work-card a:focus-visible .hang::before, .work-card a:focus-visible .hang::after,
.work-card.lit .hang::before, .work-card.lit .hang::after { opacity: 1; }
.hang.on img,
.work-card a:hover .hang img, .work-card a:focus-visible .hang img, .work-card.lit .hang img {
  filter: none;
  box-shadow:
    0 0 0 1px var(--frame-edge),
    0 0 0 var(--fw) var(--frame),
    0 0 0 calc(var(--fw) + 1px) var(--frame-edge),
    0 4px 5px calc(var(--fw) - 1px) rgb(0 0 0 / 0.2),
    0 30px 30px calc(var(--fw) - 18px) rgb(0 0 0 / 0.46);
}
.hang.on .lamp .slit,
.work-card a:hover .lamp .slit, .work-card a:focus-visible .lamp .slit, .work-card.lit .lamp .slit {
  stroke: #fff6df;
  filter: drop-shadow(0 1px 2px rgb(255 226 170 / 0.95));
}
.work-card a:focus-visible { outline: none; }

/* A single painting shown large (home page, painting page): its lamp is always
   on, lights the wall and casts the shadow, but never tints the painting. */
.hang.free { display: inline-block; vertical-align: top; --fw: 9px; }
.hang.free .lamp { width: clamp(80px, 34%, 170px); bottom: calc(100% + 5px + var(--fw)); }
.hang.free::before { transition-duration: 1.4s; }
.hang.true-colour::after { display: none; }
.hero-figure, .work-view figure { padding-top: clamp(2.6rem, 5vw, 3.6rem); }
.work-card a:focus-visible .caption .title { text-decoration: underline; text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hang::before, .hang::after, .work-card .hang img, .lamp .slit { transition: none; }
}
.caption { margin-top: 0.6rem; text-align: center; }
.caption .title { font-family: var(--display); font-size: 1.45rem; font-style: italic; }
.caption .meta { color: var(--muted); font-size: 0.92rem; }
.caption .price { margin-top: 0.2rem; font-size: 0.95rem; }

/* ---- invitation to the virtual gallery ----------------------------------- */
.invite {
  background: var(--deep);
  color: var(--paper);
  text-align: center;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}
.invite .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.invite h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.8rem 0 1.2rem; }
.invite p { max-width: 32rem; margin: 0 auto 2.2rem; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.invite .button { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.invite .button:hover { background: transparent; color: var(--paper); }

/* ---- about / contact ----------------------------------------------------- */
.prose { max-width: var(--measure); margin: 0 auto; }

/* "The Artist": her portrait beside the bio, as a matted photograph (paper mat
   and the same soft shadow as the paintings, but no picture light). */
.about.with-portrait {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, var(--measure));
  gap: clamp(2.5rem, 5vw, 5rem);
  justify-content: center;
  align-items: start;
}
.about.with-portrait .prose { margin: 0; }
.portrait { margin: 0; position: sticky; top: 6rem; }
.portrait .mat { padding: 0.7rem; background: color-mix(in srgb, var(--paper) 55%, white); }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%; /* keeps the face in view when the photo is cropped */
  filter: saturate(0.92);
}
.portrait figcaption { margin-top: 0.9rem; text-align: center; font-style: italic; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .about.with-portrait { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: static; width: min(72vw, 300px); margin: 0 auto; }
}
.prose p { margin: 0 0 1.2rem; }
.prose p:first-child::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.6em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 980px;
  margin: 0 auto;
}
.contact h3 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.contact .email { font-size: 1.2rem; }
.contact .studio { font-style: italic; color: var(--muted); }

/* ---- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.3rem; }
.field label, .field .label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0;
  width: 100%;
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-note { font-size: 0.9rem; color: var(--muted); font-style: italic; margin: 0; }

/* ---- single work page ---------------------------------------------------- */
.work-view {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: 1320px;
  margin: 0 auto;
}
.work-view figure { margin: 0; display: flex; justify-content: center; }
.work-view figure button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-view figure img { max-height: calc(100vh - 15rem); width: auto; height: auto; }
.work-info h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-style: italic; margin: 0.4rem 0 1.2rem; }
.work-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.4rem; margin: 0 0 1.8rem; }
.work-info dt { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
.work-info dd { margin: 0; }
.work-info .price-line { font-size: 1.35rem; margin-bottom: 1.2rem; }
.work-info .description { margin: 0 0 1.6rem; max-width: var(--measure); }
.work-info .description p { margin: 0 0 0.8rem; }
/* under a sold or archived painting: paintings still available */
.more-works { border-top: 1px solid var(--line); }
.work-info .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-bottom: 1.4rem; }
.work-info .note { color: var(--muted); font-size: 0.95rem; font-style: italic; max-width: 26rem; }

.palette { display: flex; gap: 0; margin: 2rem 0 0.5rem; height: 0.9rem; max-width: 18rem; }
.palette span { flex: var(--w) 1 0; min-width: 0.9rem; background: var(--c); }
.palette-label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.work-pager {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.4rem var(--gutter) 3rem; max-width: 1320px; margin: 0 auto;
  border-top: 1px solid var(--line);
}

.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgb(12 10 8 / 0.94); }
.viewer img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.viewer .close { position: fixed; top: 1rem; right: 1.2rem; color: #eee; }

/* ---- cart & checkout ----------------------------------------------------- */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 1rem; max-width: 1100px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-top: 0.4rem; }

.cart { max-width: 1100px; margin: 0 auto; padding: 1rem var(--gutter) 5rem; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 88px; height: 100px; object-fit: contain; }
.cart-item .title { font-family: var(--display); font-size: 1.4rem; font-style: italic; }
.cart-item .meta { color: var(--muted); font-size: 0.92rem; }
.cart-item .right { text-align: right; display: grid; gap: 0.4rem; justify-items: end; }
.totals { margin: 1.6rem 0 0 auto; max-width: 22rem; display: grid; gap: 0.4rem; }
.totals .line { display: flex; justify-content: space-between; gap: 2rem; }
.totals .grand { font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.3rem; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.6rem; align-items: center; margin-top: 2rem; }
.empty { text-align: center; padding: 3rem 0 1rem; color: var(--muted); font-style: italic; }
.notice { border: 1px solid var(--line); padding: 0.8rem 1rem; font-style: italic; color: var(--muted); margin-bottom: 1.4rem; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem var(--gutter) 5rem;
  align-items: start;
}
.checkout fieldset { border: 0; padding: 0; margin: 0 0 2.4rem; }
.checkout legend { font-family: var(--display); font-size: 1.7rem; margin-bottom: 1rem; padding: 0; }
.summary { background: var(--surface); padding: 1.6rem; position: sticky; top: 1rem; }
.summary h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.summary .cart-item { grid-template-columns: 56px 1fr auto; gap: 1rem; padding: 0.8rem 0; }
.summary .cart-item img { width: 56px; height: 64px; }
.summary .cart-item .title { font-size: 1.15rem; }
.summary .totals { max-width: none; }

/* The payment slot: deliberately visible until a payment provider is wired up. */
.payment-slot {
  border: 1px dashed var(--muted);
  padding: 1.4rem;
  display: grid;
  gap: 0.6rem;
}
.payment-slot .tag {
  justify-self: start;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  padding: 0.15rem 0.5rem;
  color: var(--muted);
}
.payment-slot p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.thanks { max-width: var(--measure); margin: 0 auto; padding: 2rem var(--gutter) 6rem; text-align: center; }

/* ---- footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--gutter) 2.8rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .name { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.site-footer .legal { text-align: center; max-width: 34rem; margin: 0 auto; }
.site-footer .reach { text-align: right; }
/* Instagram: the camera glyph in the page's own ink, with her handle */
.site-footer .social { margin: 0.9rem 0 0; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border: 0; color: var(--muted); }
.site-footer .social a:hover, .site-footer .social a:focus-visible { color: var(--accent); }
.site-footer .social svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-footer .social .dot { fill: currentColor; stroke: none; }
.site-footer .credit { margin-top: 1.2rem; font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---- small screens ------------------------------------------------------- */
@media (max-width: 820px) {
  .hero, .work-view, .contact, .checkout { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img, .work-view figure img { max-height: 70vh; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .reach { text-align: center; }
  .summary { position: static; order: -1; }
}
@media (max-width: 520px) {
  .form .row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 76px; }
  .cart-item .right { grid-column: 2; justify-items: start; text-align: left; }
  .site-header { padding-top: 1.2rem; }
}
