/* ==========================================================================
   Shelby Jo Art
   Colors come straight from the brand guide. Change them here and the
   whole site updates.
   ========================================================================== */

@font-face {
  font-family: "Floweey Doodle";
  src: url("../fonts/FloweeyDoodle.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Landster";
  src: url("../fonts/Landster.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-500-normal.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  /* Brand palette */
  --blush: #e5d7d4;
  --taupe: #7f7474;
  --oxblood: #330b0a;
  --mist: #afc4c5;
  --sage: #6f837d;
  --rose: #d9b8b1;

  /* Light theme tokens */
  --paper: #f6f0ee;
  --surface: #e5d7d4;
  --ink: #330b0a;
  --ink-muted: #6a4b48;
  --accent: #4a5e58;
  --line: rgb(51 11 10 / 0.14);
  --btn-bg: #330b0a;
  --btn-ink: #f6f0ee;
  --btn-hover: #4d1a18;
  --field: #fbf8f7;
  --wash-base: #f3ecea;
  --wash-a: rgb(175 196 197 / 0.9);
  --wash-b: rgb(217 184 177 / 0.9);
  --wash-c: rgb(111 131 125 / 0.4);
  --grain-opacity: 0.07;
  --shadow: 0 18px 40px -24px rgb(51 11 10 / 0.35);

  /* Type */
  --font-script: "Floweey Doodle", "Segoe Script", cursive;
  --font-label: "Landster", "Georgia", serif;
  --font-body: "EB Garamond", "Garamond", "Georgia", serif;

  /* Shape and space. One radius for everything; tags are the only pills. */
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #210908;
    --surface: #35110f;
    --ink: #efe3e0;
    --ink-muted: #c7b2ae;
    --accent: #afc4c5;
    --line: rgb(239 227 224 / 0.16);
    --btn-bg: #e5d7d4;
    --btn-ink: #330b0a;
    --btn-hover: #f6f0ee;
    --field: #2b0d0b;
    --wash-base: #3a1512;
    --wash-a: rgb(175 196 197 / 0.38);
    --wash-b: rgb(217 184 177 / 0.32);
    --wash-c: rgb(111 131 125 / 0.45);
    --grain-opacity: 0.05;
    --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Watercolor-paper grain. Fixed layer so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.05 0 0 0 0 0.04 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); text-wrap: balance; }

/* Floweey Doodle has long descenders (y, j, g). Keep room under them. */
.script,
h1,
h2 {
  font-family: var(--font-script);
  line-height: 1.15;
  padding-bottom: 0.08em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  line-height: 1.3;
}

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  color: var(--ink-muted);
  max-width: 34ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-muted); }
.measure { max-width: 62ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.85rem 1.5rem 0.75rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 58px; }

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 1rem 0.55rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .brand img { height: 42px; }
}

/* ---------- Watercolor placeholder slots ----------
   Every painting spot uses .art. Until a real photo exists it shows a soft
   wash with a caption. To add a photo, replace the .art__placeholder div with
   <img src="assets/img/paintings/your-photo.webp" alt="..."> */

.art {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: var(--ratio, 4 / 5);
}
.art > img { width: 100%; height: 100%; object-fit: cover; }

.art__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1.25rem;
  background:
    radial-gradient(75% 55% at 28% 24%, var(--wash-a) 10%, transparent 70%),
    radial-gradient(70% 60% at 78% 68%, var(--wash-b) 10%, transparent 72%),
    radial-gradient(60% 45% at 38% 92%, var(--wash-c) 5%, transparent 70%),
    var(--wash-base);
}
.wash--loch {
  background:
    radial-gradient(90% 50% at 50% 18%, var(--wash-a) 15%, transparent 70%),
    radial-gradient(75% 55% at 18% 78%, var(--wash-c) 10%, transparent 70%),
    radial-gradient(55% 45% at 88% 82%, var(--wash-b) 10%, transparent 70%),
    var(--wash-base);
}
.wash--heather {
  background:
    radial-gradient(70% 55% at 72% 22%, var(--wash-b) 15%, transparent 70%),
    radial-gradient(75% 60% at 22% 62%, var(--wash-a) 10%, transparent 72%),
    radial-gradient(65% 40% at 62% 95%, var(--wash-c) 5%, transparent 70%),
    var(--wash-base);
}
.wash--glen {
  background:
    radial-gradient(80% 60% at 28% 72%, var(--wash-c) 10%, transparent 70%),
    radial-gradient(65% 50% at 76% 28%, var(--wash-a) 15%, transparent 70%),
    radial-gradient(50% 45% at 12% 16%, var(--wash-b) 10%, transparent 70%),
    var(--wash-base);
}
.art__note {
  position: relative;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.4rem, 1.3rem + 2.8vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero__copy .lede { margin-bottom: 2rem; max-width: 48ch; }
.hero__art { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero__art .art { box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 380px; }
}

/* ---------- Home: three ways in (asymmetric bento) ---------- */

.ways {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.way {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.way:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }
.way h3 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); line-height: 1.15; }
.way p { color: var(--ink-muted); max-width: 36ch; }
.way .text-link { align-self: flex-start; margin-top: 0.5rem; }
.way--feature { grid-row: span 2; min-height: 30rem; }
.way--feature::before,
.way--mist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.way--feature::before {
  background:
    radial-gradient(55% 40% at 70% 22%, var(--wash-b), transparent 70%),
    radial-gradient(60% 45% at 25% 38%, var(--wash-a), transparent 72%),
    var(--wash-base);
}
.way--mist { background: var(--surface); }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
  .way--feature { grid-row: auto; min-height: 22rem; }
}

/* ---------- Home: brand promise ---------- */

.promise {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.promise img { width: 120px; margin: 0 auto 2rem; }
.promise blockquote {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  line-height: 1.3;
}
.promise figcaption { margin-top: 1.5rem; color: var(--ink-muted); }

/* ---------- Home: current series (split with layered frames) ---------- */

.series {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.series__frames {
  position: relative;
  min-height: 520px;
}
.series__frames .art { position: absolute; width: 62%; box-shadow: var(--shadow); }
.series__frames .art:first-child { top: 0; left: 0; --ratio: 4 / 5; }
.series__frames .art:last-child { bottom: 0; right: 0; width: 50%; --ratio: 4 / 5; }
.series__frames .art:first-child .art__placeholder { place-items: start center; }
.series__copy h2 { margin: 0.75rem 0 1.25rem; }
.series__copy p { max-width: 42ch; }
.series__copy .btn-row { margin-top: 2rem; }

@media (max-width: 860px) {
  .series { grid-template-columns: 1fr; }
  .series__frames { min-height: 380px; max-width: 460px; width: 100%; margin-inline: auto; }
  .series__copy { order: -1; }
}

/* ---------- Closing call to action ---------- */

.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(40% 80% at 95% 10%, var(--wash-a), transparent 70%),
    radial-gradient(35% 70% at 5% 100%, var(--wash-b), transparent 70%),
    var(--surface);
}
.closing h2 { margin-bottom: 0.75rem; }
.closing p { color: var(--ink-muted); max-width: 44ch; }

@media (max-width: 700px) {
  .closing { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Inner page header ---------- */

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { margin-bottom: 1rem; }
.page-head--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
@media (max-width: 700px) {
  .page-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Originals ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
}
/* Every listing is the same size: same column width, same image shape,
   and the price row always sits at the bottom of the card. */
.piece { display: flex; flex-direction: column; }
.piece .art { margin-bottom: 1rem; --ratio: 4 / 5; }
.piece .piece__buy { margin-top: auto; min-height: 3rem; }
.piece h3 { margin-bottom: 0.25rem; }
.piece__meta { color: var(--ink-muted); font-size: 1rem; margin-bottom: 0.75rem; }
.piece__buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.piece__price { font-weight: 500; font-size: 1.2rem; }

.tag {
  display: inline-block;
  padding: 0.35rem 0.8rem 0.25rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--ink);
}
.tag--sold { background: var(--oxblood); color: var(--blush); }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.info-strip h3 { margin-bottom: 0.5rem; }
.info-strip p { color: var(--ink-muted); font-size: 1.05rem; }
@media (max-width: 760px) {
  .info-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Commissions: steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-script);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--sage);
}
.steps h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.steps p { color: var(--ink-muted); font-size: 1.02rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 0; padding-left: 3.5rem; }
  .steps li::before { font-size: 2.6rem; }
}

/* ---------- Commissions: size & price tiles ---------- */

.sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.5rem;
}
@media (max-width: 620px) {
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.size {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.size__swatch {
  display: flex;
  align-items: flex-end;
  height: 128px;
  margin-bottom: 0.75rem;
}
.size__swatch span {
  display: block;
  width: calc(var(--w) * 5px);
  height: calc(var(--h) * 5px);
  border-radius: 3px;
  background:
    radial-gradient(60% 50% at 30% 30%, var(--wash-a), transparent 70%),
    radial-gradient(60% 50% at 75% 75%, var(--wash-b), transparent 70%),
    var(--wash-base);
  border: 1px solid var(--line);
}
.size__name { font-family: var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; }
.size__from { font-size: 1.35rem; font-weight: 500; }
.size__range { color: var(--ink-muted); font-size: 0.98rem; }

.levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.level {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.level:nth-child(1) { background: var(--paper); }
.level:nth-child(2) { background: color-mix(in srgb, var(--mist) 22%, var(--paper)); }
.level:nth-child(3) { background: color-mix(in srgb, var(--rose) 30%, var(--paper)); }
.level:nth-child(4) { background: color-mix(in srgb, var(--sage) 20%, var(--paper)); }
.level h3 { margin-bottom: 0.4rem; }
.level p { color: var(--ink-muted); font-size: 1.05rem; }
@media (max-width: 700px) {
  .levels { grid-template-columns: 1fr; }
}

.fine-print {
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 70ch;
}

/* ---------- Commission form ---------- */

.request {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.request__intro { position: sticky; top: 110px; }
.request__intro h2 { margin-bottom: 1rem; }
.request__intro ul { margin: 1.5rem 0 0; padding-left: 1.1em; color: var(--ink-muted); }
.request__intro li { margin-bottom: 0.5rem; }
@media (max-width: 900px) {
  .request { grid-template-columns: 1fr; }
  .request__intro { position: static; }
}

.form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.5rem;
  row-gap: 0.45rem;
}
/* Each field shares the row's label / box / help-text tracks, so the boxes
   line up even when one label wraps onto two lines. */
.form-row > .field { grid-row: span 3; grid-template-rows: subgrid; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.5rem; }
  .form-row > .field { grid-row: auto; grid-template-rows: none; }
}

.field { display: grid; gap: 0.45rem; align-content: start; }
.field > label,
.field > legend,
fieldset.field legend {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0;
}
.field .optional { color: var(--ink-muted); letter-spacing: 0.08em; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.input,
.form select,
.form textarea,
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form input[type="date"] {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form select,
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form input[type="date"] { height: 3.25rem; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--ink-muted); opacity: 0.85; }

.form input:user-invalid,
.form select:user-invalid,
.form textarea:user-invalid { border-color: #9a3a35; }
@media (prefers-color-scheme: dark) {
  .form input:user-invalid,
  .form select:user-invalid,
  .form textarea:user-invalid { border-color: #e8a39b; }
}

.help { font-size: 0.98rem; color: var(--ink-muted); line-height: 1.45; }
.error { font-size: 0.98rem; color: #9a3a35; min-height: 0; }
@media (prefers-color-scheme: dark) { .error { color: #e8a39b; } }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.25rem; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.choice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  cursor: pointer;
  line-height: 1.35;
  font-size: 1.05rem;
}
.choice small { display: block; color: var(--ink-muted); font-size: 0.92rem; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input,
.check input { accent-color: var(--oxblood); margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; flex: none; }
@media (prefers-color-scheme: dark) {
  .choice input, .check input { accent-color: var(--blush); }
}

.check { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.45; cursor: pointer; }

.file-drop {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem;
  border: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: var(--radius);
  background: var(--field);
}
.file-drop input { font: inherit; font-size: 1rem; color: var(--ink-muted); max-width: 100%; }
.file-drop input::file-selector-button {
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-right: 0.9rem;
  padding: 0.6rem 0.9rem 0.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hp { display: none; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-label);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.5rem; color: var(--ink-muted); max-width: 65ch; }

/* ---------- Prints ---------- */

.print-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.price-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
}
.price-list li + li { border-top: 1px solid var(--line); }
.price-list .size-name { font-family: var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; }
.price-list .price { font-size: 1.3rem; font-weight: 500; }
.print-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.print-art .art:first-child { grid-column: 1 / -1; --ratio: 5 / 4; }
@media (max-width: 860px) {
  .print-layout { grid-template-columns: 1fr; }
}

.soon {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.soon__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.soon__list div { padding-top: 1.25rem; border-top: 2px solid var(--sage); }
.soon__list h3 { font-family: var(--font-script); font-weight: 400; font-size: 1.9rem; margin-bottom: 0.4rem; }
.soon__list p { color: var(--ink-muted); font-size: 1.05rem; }
@media (max-width: 860px) {
  .soon { grid-template-columns: 1fr; }
  .soon__list { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.about__photo { position: sticky; top: 110px; }
.about__copy h1 { margin-bottom: 1.5rem; }
.about__copy p { max-width: 58ch; }
.about__copy .lede { max-width: 40ch; margin-bottom: 1.5rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 420px; }
}

.values { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.values li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.values strong { font-family: var(--font-script); font-weight: 400; font-size: 1.8rem; line-height: 1.2; color: var(--accent); }
.values p { color: var(--ink-muted); }
@media (max-width: 560px) {
  .values li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Policies ---------- */

.policies {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.toc { position: sticky; top: 110px; }
.toc ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.toc a { text-decoration: none; color: var(--ink-muted); font-size: 1.05rem; }
.toc a:hover { color: var(--accent); }
.policy-body section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.policy-body section:last-child { border-bottom: 0; }
.policy-body h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem); margin-bottom: 1rem; }
.policy-body p,
.policy-body li { max-width: 68ch; }
.policy-body ul { padding-left: 1.15em; margin: 0 0 1em; }
.policy-body li { margin-bottom: 0.5rem; }
.callout {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background:
    radial-gradient(50% 90% at 100% 0%, var(--wash-a), transparent 70%),
    var(--surface);
  margin-bottom: 3rem;
}
.callout p { max-width: 62ch; }
@media (max-width: 860px) {
  .policies { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- Simple centered pages (thanks, 404) ---------- */

.center-page {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}
.center-page img { width: 150px; margin: 0 auto 2rem; }
.center-page p { max-width: 46ch; margin-inline: auto; }
.center-page .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.site-footer.no-gap { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand img { width: 118px; margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-muted); max-width: 30ch; font-size: 1.05rem; }
.site-footer h2 {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  padding: 0;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Gentle reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Shop: header cart button, cart drawer, product cards
   ========================================================================== */

.site-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cart-btn:hover { border-color: var(--ink); }
.cart-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0.1rem 0.35rem 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.72rem;
  letter-spacing: 0;
}

html.cart-open { overflow: hidden; }

.cart {
  margin: 0 0 0 auto;
  padding: 0;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -20px 0 50px -30px rgb(0 0 0 / 0.45);
}
.cart::backdrop { background: rgb(33 9 8 / 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .cart[open] { animation: cart-in 0.45s var(--ease); }
  @keyframes cart-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.cart__panel { display: flex; flex-direction: column; height: 100%; }
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-size: 2.1rem; }
.cart__close {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem 0.45rem;
  cursor: pointer;
}
.cart__body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.cart__items { list-style: none; margin: 0; padding: 0; }
.cart__empty { display: none; padding: 2rem 0; color: var(--ink-muted); }
.cart.is-empty .cart__empty { display: block; }
.cart__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; background: var(--surface); }
.cart__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; }
.cart__subtotal strong { font-weight: 500; }
.cart__note { margin: 0; font-size: 0.98rem; color: var(--ink-muted); }
.cart__error { margin: 0; font-size: 1rem; color: #9a3a35; }
.cart__error:empty { display: none; }
@media (prefers-color-scheme: dark) { .cart__error { color: #e8a39b; } }
.cart__checkout { width: 100%; }
.cart__keep { justify-self: center; background: none; border-top: 0; border-left: 0; border-right: 0; color: var(--ink); cursor: pointer; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
}
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__thumb {
  width: 72px;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--surface);
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__wash {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 50% at 40% 25%, var(--wash-a) 10%, transparent 70%),
    radial-gradient(70% 55% at 70% 80%, var(--wash-b) 10%, transparent 70%),
    var(--wash-base);
}
.cart-item__title { margin: 0; font-weight: 500; line-height: 1.3; }
.cart-item__detail { margin: 0.15rem 0 0.6rem; font-size: 0.98rem; color: var(--ink-muted); }
.cart-item__controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cart-item__one { font-size: 0.95rem; color: var(--ink-muted); font-style: italic; }
.cart-item__remove {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.cart-item__remove:hover { color: var(--ink); }
.cart-item__price { margin: 0; font-weight: 500; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--surface); }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty span { min-width: 1.8rem; text-align: center; font-size: 1.05rem; }

.shop-empty { grid-column: 1 / -1; color: var(--ink-muted); padding: 2rem 0; }

/* Print cards */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }
.print-card .art { margin-bottom: 1rem; }
.print-card h3 { margin-bottom: 0.75rem; }
.print-form { display: grid; gap: 0.9rem; }
.size-pills { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; min-width: 0; }
.size-pill {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  cursor: pointer;
  line-height: 1.3;
}
.size-pill input { position: absolute; opacity: 0; pointer-events: none; }
.size-pill span { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.size-pill strong { font-weight: 500; font-size: 1.1rem; }
.size-pill:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.size-pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.print-form .btn { justify-self: start; }

@media (max-width: 760px) {
  .header-actions { margin-left: auto; }
  .cart-btn { padding: 0.6rem 0.75rem 0.5rem; }
}

/* ==========================================================================
   Product page
   ========================================================================== */

.piece__link { display: block; text-decoration: none; color: inherit; }
.piece__link:hover { color: inherit; }
.piece__link:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.piece__link .art img { transition: transform 0.6s var(--ease); }
.piece__link:hover .art img { transform: scale(1.03); }

.product-page { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.crumbs a { color: var(--ink); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.product__media { position: sticky; top: 100px; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product__media { position: static; }
}

.slides-wrap { position: relative; }
.slides {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide video { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.slides__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.slides__arrow:hover { background: var(--paper); }
.slides__arrow--prev { left: 0.75rem; }
.slides__arrow--next { right: 0.75rem; }

.thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.thumb {
  position: relative;
  width: 4.5rem;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumb__video {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.2rem 0 0.1rem;
  background: rgb(33 9 8 / 0.65);
  color: #f6f0ee;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product__info h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); margin: 0.5rem 0 0.75rem; }
.product__price { font-size: 1.6rem; font-weight: 500; margin-bottom: 0.25rem; }
.product__meta { color: var(--ink-muted); margin-bottom: 1.25rem; }
.product__desc { max-width: 52ch; margin-bottom: 1.75rem; }
.product__buy { display: grid; gap: 0.75rem; justify-items: start; margin-bottom: 2rem; }
.product__note { color: var(--ink-muted); font-size: 1rem; max-width: 44ch; }
.product-form { display: grid; gap: 1.1rem; margin-bottom: 2rem; max-width: 26rem; }
.product-form__label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  padding: 0;
  margin-bottom: 0.5rem;
}
.product-sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.qty-field { display: grid; }
.qty-field select {
  width: 7rem;
  height: 3.25rem;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background-color: var(--field);
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: var(--radius);
  padding: 0.6rem 2.2rem 0.6rem 0.9rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.qty-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.product-form .btn { justify-self: start; }
.product__sizes { list-style: none; padding: 0; margin: 1rem 0 2rem; max-width: 22rem; }
.product__sizes li { display: flex; justify-content: space-between; padding: 0.6rem 0; }
.product__sizes li + li { border-top: 1px solid var(--line); }
.product__info > .tag { margin-bottom: 0.5rem; }
.product__details { margin: 0 0 1rem; padding-left: 1.1em; color: var(--ink-muted); }
.product__details li { margin-bottom: 0.35rem; }
.product__terms { color: var(--ink-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.art > a { display: block; width: 100%; height: 100%; }
.art > a > img { width: 100%; height: 100%; object-fit: cover; }
