/* hallmark: catalogue walk — museum lots, not a marketing kit */
/* critique: first pass used cream/serif/cards; this rebuild grounds color and structure in porcelain itself */
:root {
  --ink: #0c1c2e;
  --cobalt: #16458a;
  --cinnabar: #a51c1c;
  --celadon: #c5d6c8;
  --bronze: #9a7a3e;
  --paper: #e7eee8;
  --porcelain: #f3f6f4;
  --ink-soft: #24364a;
  --wash: rgba(12, 28, 46, 0.08);
  --font-display: "Suez One", "David Libre", serif;
  --font-body: "Alef", "Segoe UI", Tahoma, sans-serif;
  --measure: 38rem;
  --folio: 5.5rem;
  --gutter: clamp(1rem, 3vw, 2.4rem);
  --max: 88rem;
  --focus: 2px solid var(--bronze);
}

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

html, body { overflow-x: clip; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(22, 69, 138, 0.07), transparent 50%),
    radial-gradient(ellipse at 100% 30%, rgba(165, 28, 28, 0.05), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cinnabar); }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--porcelain);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 0.5rem; }

/* Folio index — jumps between objects, not a marketing bar */
.folio {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent);
}
.folio-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.folio-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cinnabar);
  margin-top: 0.15rem;
}
.folio-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.folio-index a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.folio-index a:hover,
.folio-index a:focus-visible { color: var(--cinnabar); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--bronze);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.notice {
  margin: 0;
  padding: 0.45rem var(--gutter);
  background: var(--ink);
  color: var(--celadon);
  font-size: 0.88rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem 1.4rem;
  align-items: end;
}

/* Opening object: the collection begins here */
.lot-open {
  position: relative;
  background: var(--ink);
  color: var(--porcelain);
  padding: clamp(1.4rem, 4vw, 3rem) 0 3.2rem;
  overflow: clip;
  min-height: min(100svh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lot-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 70% 20%, rgba(22, 69, 138, 0.45), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(165, 28, 28, 0.2), transparent 55%);
  pointer-events: none;
  transform: translate3d(0, var(--wash-shift, 0px), 0);
  will-change: transform;
}
.cjk-spine {
  position: absolute;
  top: 12%;
  inset-inline-start: var(--gutter);
  writing-mode: vertical-rl;
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.45em;
  color: color-mix(in srgb, var(--bronze) 80%, white);
  font-size: 1.05rem;
  pointer-events: none;
}
.lot-open .cols { position: relative; z-index: 1; width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.lot-copy { grid-column: 1 / 6; align-self: center; }
.lot-visual { grid-column: 6 / 13; min-width: 0; }

.lot-no {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--bronze);
  margin: 0 0 0.8rem;
}
.lot-open h1,
.lot h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.7rem;
  overflow-wrap: break-word;
  min-width: 0;
}
.lot-open h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  color: var(--porcelain);
  max-width: 12ch;
}
.lot h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.schema {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.schema li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  padding: 0.28rem 0;
  border-top: 1px solid color-mix(in srgb, var(--bronze) 35%, transparent);
  font-size: 0.95rem;
}
.schema .k { color: var(--bronze); }
.lot-open .schema .k { color: var(--celadon); }
.lot-open .schema { color: var(--porcelain); }
.price { font-weight: 700; color: var(--bronze); }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border: 1px solid var(--cinnabar);
  background: var(--cinnabar);
  color: var(--porcelain);
  cursor: pointer;
}
.act:hover { background: color-mix(in srgb, var(--cinnabar) 85%, black); color: var(--porcelain); }
.act-ghost {
  background: transparent;
  color: var(--porcelain);
  border-color: color-mix(in srgb, var(--celadon) 50%, transparent);
}
.act-ghost:hover { color: var(--celadon); border-color: var(--celadon); }
.lot .act-ghost { color: var(--ink); border-color: var(--bronze); }
.lot .act-ghost:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.plate {
  position: relative;
  background: var(--porcelain);
  box-shadow: 0 30px 70px rgba(12, 28, 46, 0.28);
  overflow: clip;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.55s ease, filter 0.55s ease;
}
.plate:hover img { transform: scale(1.03); }
.tissue {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 72%, transparent));
  color: var(--porcelain);
  transform: translateY(35%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  font-size: 0.88rem;
  pointer-events: none;
}
.plate:hover .tissue,
.plate:focus-within .tissue {
  transform: translateY(0);
  opacity: 1;
}

/* Subsequent lots: walking the room, irregular spreads */
.room { padding: 3.2rem 0 1rem; }
.spread { margin: 0 0 3.2rem; }

.lot { min-width: 0; }
.lot-a { grid-column: 1 / 8; }
.lot-b { grid-column: 8 / 13; }
.lot-c { grid-column: 1 / 5; }
.lot-d { grid-column: 5 / 10; }
.lot-e { grid-column: 10 / 13; align-self: stretch; }

.lot .schema { margin-top: 0.8rem; }
.lot .schema li { grid-template-columns: 6.2rem 1fr; }

/* Dealer note — caption, not feature cards */
.dealer {
  background: var(--ink);
  color: var(--porcelain);
  padding: 3.5rem 0;
}
.dealer-copy { grid-column: 1 / 7; }
.dealer-plate { grid-column: 7 / 13; }
.dealer h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.chip {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--celadon);
  font-size: 0.88rem;
}
.dealer p { max-width: var(--measure); color: color-mix(in srgb, var(--porcelain) 88%, var(--celadon)); }

/* Flower appendix — handbook index, not a card grid */
.appendix {
  padding: 3.4rem 0;
}
.appendix h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.5rem;
  line-height: 1.1;
  grid-column: 1 / 8;
}
.appendix-lead {
  grid-column: 8 / 13;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  align-self: end;
}
.pair {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.8rem 1rem;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--bronze) 50%, transparent);
}
.pair h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
}
.pair p { margin: 0 0 0.4rem; color: var(--ink-soft); }
.pair .fit { color: var(--cobalt); margin: 0; }

/* Inquiry plate — typeset like a lot label */
.inquiry {
  background: var(--celadon);
  padding: 3.4rem 0 3.8rem;
}
.inquiry-copy { grid-column: 1 / 6; }
.inquiry form { grid-column: 6 / 13; }
.inquiry h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.inquiry p { max-width: var(--measure); }
.inquiry .lot-no { color: var(--cinnabar); }

.slip {
  background: var(--porcelain);
  border: 1px solid var(--bronze);
  padding: 1.2rem 1.2rem 1.3rem;
  display: grid;
  gap: 0.75rem;
}
.slip label { display: grid; gap: 0.25rem; font-size: 0.92rem; }
.req { color: var(--cinnabar); }
.slip input,
.slip select,
.slip textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--bronze);
  background: transparent;
  padding: 0.55rem 0.1rem;
  border-radius: 0;
}
.slip textarea { min-height: 7rem; resize: vertical; }
.slip input:focus,
.slip select:focus,
.slip textarea:focus { outline: none; border-bottom-color: var(--cinnabar); }
.warn {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cinnabar);
}
.status { margin: 0; font-size: 0.9rem; color: var(--cobalt); }

/* Contact colophon */
.colophon {
  padding: 3rem 0 2.5rem;
}
.colophon h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
  grid-column: 1 / 6;
}
.facts {
  grid-column: 6 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent);
}
.facts strong { font-weight: 700; color: var(--ink); }

.site-end {
  background: var(--ink);
  color: var(--celadon);
  padding: 1.6rem var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.site-end a { color: var(--porcelain); }

/* WhatsApp as a vertical chop, not a green bubble */
.wa-tab {
  position: fixed;
  inset-inline-end: 0;
  top: 55%;
  z-index: 50;
  writing-mode: vertical-rl;
  text-decoration: none;
  background: var(--cinnabar);
  color: var(--porcelain);
  padding: 1rem 0.45rem;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.wa-tab:hover { color: var(--porcelain); background: color-mix(in srgb, var(--cinnabar) 82%, black); }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 92%, black);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lightbox img { max-width: min(900px, 100%); max-height: 82vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: transparent;
  border: 0;
  color: var(--porcelain);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox figcaption {
  color: var(--celadon);
  text-align: center;
  margin-top: 0.7rem;
  font-family: var(--font-display);
}

.lot, .pair, .dealer-copy, .inquiry-copy {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .lot-copy, .lot-visual,
  .lot-a, .lot-b, .lot-c, .lot-d, .lot-e,
  .dealer-copy, .dealer-plate,
  .inquiry-copy, .inquiry form,
  .appendix h2, .appendix-lead,
  .colophon h2, .facts { grid-column: 1 / -1; }
  .pair { grid-column: 1 / -1; }
  .cjk-spine { display: none; }
}

@media (max-width: 860px) {
  .folio-index { display: none; }
  .folio-index.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--bronze);
    padding: 0.8rem var(--gutter) 1rem;
    gap: 0.55rem;
  }
  .menu-toggle { display: inline-flex; }
  .lot-open { min-height: auto; padding-top: 1.2rem; }
  .lot-open h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .schema li, .facts li { grid-template-columns: 5.5rem 1fr; }
  .pair { grid-template-columns: 1fr; }
  .wa-tab { top: auto; bottom: 0; writing-mode: horizontal-tb; inset-inline: 0 auto auto 0; width: 100%; text-align: center; padding: 0.7rem; letter-spacing: 0.06em; }
  body { padding-bottom: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate img, .tissue, .lot-open::before { transition: none; transform: none !important; }
}
