@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf3;
  --cream: #fcf2e7;
  --plum: #351044;
  --wine: #7f1331;
  --ink: #432e43;
  --soft-ink: #69536a;
  --line: #e5d4cc;
  --brass: #996934;
  --green: #16603f;
  --serif: Fraunces, Georgia, serif;
  --sans: "Nunito Sans", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); }
.catalog-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(122deg, #f0e4ed 0%, #f7ebee 45%, #fff8ee 88%);
}
.catalog-page > .atelier-header { flex: none; }
.catalog-page > main { flex: 1 0 auto; min-width: 0; }
.catalog-page .footer { background: #fffaf38a; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, p, figure, blockquote { margin: 0; }
h1, h2 { text-wrap: balance; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: #7f13312b; }
a { touch-action: manipulation; }
:focus-visible { outline: 2px solid #9a4e12; outline-offset: 3px; }
[tabindex="-1"] { scroll-margin-top: 12px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: 12px; color: var(--plum); background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.text-action {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-size: .875rem;
  font-weight: 800;
  text-underline-offset: 4px;
  text-decoration: underline;
}
.text-action:hover { text-decoration-thickness: 2px; color: var(--plum); }
.text-action span { margin-left: 3px; }
.service-action { margin-top: 16px; text-align: left; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: start;
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(40px, 5.2vw, 78px);
  row-gap: 16px;
  padding-block: 22px 20px;
}
.feature > .model-heading { grid-area: 1 / 2; align-self: end; }
.feature-copy { grid-area: 2 / 2; min-width: 0; max-width: 490px; }
.catalog-listing { padding: clamp(22px, 4vw, 54px) 0 42px; }
.back-to-list { display: inline-flex; min-height: 44px; gap: 7px; align-items: center; font-size: .92rem; font-weight: 750; text-underline-offset: 3px; color: var(--wine); }
.back-to-list span { font: 1.55rem/1 Georgia,serif; }
.back-to-list + .feature { padding-top: 0; }
.model-suggestions { padding: 0 0 38px; }
.card-list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card-list-heading :is(h1,h2) { color: var(--plum); font: 540 clamp(1.9rem,3.3vw,3.3rem)/1.12 var(--serif); letter-spacing: -.035em; }
.card-list-heading > span { color: var(--soft-ink); font-size: .9rem; white-space: nowrap; }
.model-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: clamp(12px,2vw,28px); margin: 0; padding: 0; list-style: none; }
.model-card { display: flex; flex-direction: column; padding: clamp(6px, .65vw, 10px); background: #fffdf8; box-shadow: 0 3px 10px #46213b19; }
.model-link { display: block; color: var(--plum); text-decoration: none; }
.card-purchase { display: flex; flex-wrap: wrap; margin: auto 3px 3px; gap: 7px 10px; align-items: center; justify-content: space-between; }
.card-purchase .price small { font-size: .75rem; }
.card-purchase .price strong { font-size: clamp(1rem, 1.35vw, 1.2rem); }
.card-purchase .card-order { min-height: 44px; padding-inline: 13px; font-size: .82rem; }
.card-photo { display: grid; overflow: hidden; aspect-ratio: 4 / 5; background: #f2e5e6; }
.card-photo picture { display: contents; }
.card-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-title { display: block; padding: 9px 2px 6px; text-align: center; font: 540 clamp(1.08rem,1.6vw,1.43rem)/1.2 var(--serif); }
.card-photo-type { display: block; margin: 0 2px 7px; text-align: center; font-size: .8rem; line-height: 1.25; color: var(--soft-ink); }
.model-suggestions hr { height: 1px; border: 0; margin: 8px 0 22px; background: linear-gradient(90deg, transparent, #cdb4bd 12%, #cdb4bd 88%, transparent); }
.suggestion-carousel { position: relative; }
.model-suggestions .model-grid { display: flex; gap: clamp(12px, 1.7vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 4px; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: #cbb1bd transparent; }
.model-suggestions li { flex: 0 0 22%; min-width: 150px; scroll-snap-align: start; }
.model-suggestions .card-photo { border-radius: 0; }
.model-link[aria-current=true] .card-title { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.strip-step { position: absolute; z-index: 1; top: 40%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #b79aa9; background: var(--paper); color: var(--plum); font: 1.85rem/1 Georgia, serif; box-shadow: 0 2px 6px #46213b24; }
.strip-step[hidden] { display: none; }
.strip-step[data-scroll="-1"] { left: -8px; }
.strip-step[data-scroll="1"] { right: -8px; }
@media (max-width: 600px) {
  .model-suggestions li { flex-basis: 43%; min-width: 0; }
  .model-suggestions hr { margin-bottom: 15px; }
}
.model-link:hover .card-title, .model-link:focus-visible .card-title { text-decoration: underline; text-underline-offset: 4px; }
.inspiration { margin-top: 4px; color: var(--wine); font-weight: 800; font-size: 1rem; }
.model-heading .model-title { color: var(--plum); font: 510 clamp(3.5rem, 6vw, 6.3rem)/1.05 var(--serif); letter-spacing: -.042em; overflow-wrap: break-word; }
.description { color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.65; text-wrap: pretty; }
.feature-copy .description { margin-top: 16px; max-width: 45ch; }
.price-context { margin-top: 7px; color: var(--soft-ink); font-size: .9rem; }
.model-links { display: flex; flex-wrap: wrap; column-gap: 22px; }
.model-links .service-action { margin: 0; }
.payment-note { margin-top: 14px; }

.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.price small { display: block; color: var(--soft-ink); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.price strong { display: block; white-space: nowrap; color: var(--plum); font: 550 clamp(1.75rem, 2.45vw, 2.4rem)/1.18 var(--serif); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--wine);
  color: #fff;
  font-weight: 850;
  font-size: .895rem;
  text-wrap: balance;
}
.action:hover { background: var(--plum); }
.action span { font-size: 1rem; }
.feature .action { white-space: nowrap; }

.gallery { display: grid; min-width: 0; gap: 12px; }
.feature > .gallery {
  --portrait-width: clamp(456px, calc((100svh - var(--atelier-header-height) - 64px) * .8), 670px);
  grid-area: 1 / 1 / 3 / 2;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  justify-self: end;
  align-self: start;
  width: min(100%, calc(var(--portrait-width) + 82px));
  gap: 16px;
}
.feature .photo-stage { height: min(69svh, 690px); padding: 0; border: 0; border-radius: 3px; background: #efe0e6; }
.feature .gallery-main { cursor: zoom-in; }
.feature .thumbs a { width: 60px; height: 58px; }
.gallery-view { position: relative; min-width: 0; }
.feature .gallery-view { grid-column: 2; grid-row: 1; }
.gallery-main {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
}
.photo-stage {
  display: block;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  overflow: hidden;
  height: clamp(330px, 44vw, 565px);
  padding: 10px;
  border: 1px solid #e4d4d9;
  border-radius: 13px;
  background: #f4e8eb;
}
.photo-stage img { width: 100%; max-width: var(--photo-width, 100%); height: 100%; min-height: 0; margin-inline: auto; object-fit: contain; }
.photo-status { position: absolute; inset: 50% auto auto 50%; max-width: calc(100% - 12px); width: max-content; transform: translate(-50%, -50%); pointer-events: none; }
.photo-status[data-error]::before { content: none; }
.caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 780;
}
.caption-action { display: inline-flex; gap: 5px; align-items: center; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.gallery-main:hover .caption-action { color: var(--plum); text-decoration-thickness: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 9px; align-content: start; }
.feature > .gallery > .thumbs { grid-column: 1; grid-row: 1; flex-direction: column; gap: 6px; }
.thumbs a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  position: relative;
  padding: 4px 4px 9px;
  border: 0;
  background: #fffdf8;
  box-shadow: 0 2px 5px #46213b24;
}
.thumbs a img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #f0e4e8; }
.thumbs a:hover { box-shadow: 0 3px 8px #46213b40; }
.thumbs a[aria-current="true"]::after { content: ""; position: absolute; width: 16px; height: 3px; bottom: 3px; border-radius: 2px; background: var(--wine); }
.footer { padding-block: 22px; border-top: 1px solid var(--line); color: var(--soft-ink); font-size: .87rem; }
.footer span { color: var(--brass); margin-right: 8px; }

.dialog {
  --dialog-inset: clamp(16px, 3.3vw, 32px);
  width: min(960px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 2 * var(--gutter));
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: var(--dialog-inset);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 65px #24112c35;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: #271131b8; }
section[data-modal], [data-journey-src]:not([src]) { display: none; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.details-dialog .dialog-top, .journey-dialog .dialog-top {
  position: sticky;
  top: calc(-1 * var(--dialog-inset));
  z-index: 1;
  margin: calc(-1 * var(--dialog-inset)) calc(-1 * var(--dialog-inset)) 15px;
  padding: var(--dialog-inset) var(--dialog-inset) 9px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.details-dialog :is(a, button), .journey-dialog :is(a, button) { scroll-margin-block-start: 96px; }
.dialog h2 { font: 550 clamp(1.5rem, 4.4vw, 2.6rem)/1.05 var(--serif); color: var(--plum); }
.close-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--wine);
  font-size: 1.45rem;
  line-height: 1;
}
.close-button:hover { border-color: var(--wine); background: var(--cream); }
.detail-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 46px); }
.detail-copy { grid-column: 2; grid-row: 1; }
.detail-copy > * + * { margin-top: 12px; }
.detail-content .gallery { grid-column: 1; grid-row: 1; }
.detail-content .photo-stage { height: min(45vh, 410px); }
.detail-copy .description { font-size: 1rem; }
.detail-copy .price-row { margin-top: 19px; }
.model-note { font-size: .9rem; color: var(--soft-ink); }
.contact-action { min-height: 50px; background: var(--green); }
.contact-action:hover { background: #104b31; }
.zoom-dialog { width: min(970px, calc(100% - 2 * var(--gutter))); padding: clamp(12px, 2vw, 25px); overflow: auto; }
.zoom-dialog .dialog-top { margin-bottom: 10px; }
.zoom-dialog h2 { font-size: clamp(1.3rem, 3.7vw, 2.05rem); }
.zoom-content { display: grid; place-items: center; }
.zoom-content img { width: 100%; height: min(64vh, 675px); height: min(64dvh, 675px); object-fit: contain; }
.zoom-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; max-width: 19rem; align-items: center; margin: 10px auto 0; text-align: center; gap: 10px; font-weight: 760; font-size: .92rem; }
.journey-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding-left: 22px; }
.journey-stages li::marker { color: var(--wine); font-weight: 900; }
.journey-stages img { width: 100%; height: auto; border-radius: 5px; margin-bottom: 6px; }
.journey-dialog h3 { margin: 20px 0 12px; color: var(--plum); font: 550 1.35rem/1.2 var(--serif); }
.service-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.service-modes li { padding-inline: 12px; border-left: 1px solid var(--line); }
.service-modes li:first-child { padding-left: 0; border-left: 0; }
.service-modes strong, .service-modes small { display: block; }
.service-modes strong { color: var(--plum); }
.service-modes small { margin-top: 2px; font-size: .855rem; line-height: 1.25; color: var(--soft-ink); }
.contact-dialog { max-width: 520px; }
.contact-dialog blockquote { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--cream); overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .feature { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-block: 20px 24px; }
  .feature > .model-heading { align-self: start; }
  .feature-copy { width: 100%; max-width: 640px; align-self: center; }
  .model-heading .model-title { font-size: clamp(2.5rem, 7vw, 4.2rem); }
  .feature > .gallery { width: 100%; max-width: 714px; align-self: center; }
}
@media (max-width: 600px) {
  .feature { padding-block: 13px 22px; }
  .catalog-listing { padding: 19px 0 32px; }
  .card-list-heading { margin-bottom: 14px; }
  .card-list-heading h1 { font-size: clamp(2.1rem,9vw,3rem); }
  .model-suggestions { padding: 0 0 24px; }
  .model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .model-heading .inspiration { display: none; }
  .card-purchase { align-items: start; flex-direction: column; }
  .card-purchase .card-order { width: 100%; }
  .price-row { gap: 8px 16px; }
  .price small { font-size: .82rem; }
  .price strong { font-size: clamp(1.62rem, 6.75vw, 2rem); }
  .action { min-height: 44px; padding-inline: 18px; }
  .feature > .gallery { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .feature .photo-stage { height: auto; aspect-ratio: 4 / 5; max-height: 62svh; }
  .feature > .gallery > .thumbs { flex-flow: row nowrap; overflow-x: auto; padding: 3px 2px 7px; gap: 8px; }
  .feature .thumbs a { flex: none; width: 48px; height: 54px; }
  .detail-content { display: flex; flex-direction: column; }
  .detail-content .gallery { order: -1; }
  .detail-content .thumbs a { width: 46px; height: 46px; }
  .journey-stages { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .catalog-listing .model-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 355px) {
  .service-modes li { padding-inline: 7px; }
  .service-modes strong { font-size: .9rem; }
  .service-modes small { font-size: .8rem; }
}
.gallery-main, .action { text-decoration: none; }
.gallery-main { color: inherit; }
.text-action { display: inline-flex; align-items: center; gap: 5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--soft-ink); text-underline-offset: 3px; }
.zoom-stage { display: grid; width: 100%; height: min(55vh, 570px); height: min(55dvh, 570px); place-items: center; overflow: hidden; touch-action: none; user-select: none; }
.zoom-stage img { grid-area: 1 / 1; max-width: none; pointer-events: none; }
.photo-tools { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 10px; }
.photo-tools button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--plum); background: var(--paper); font-size: 1.35rem; }
.photo-tools button:disabled { opacity: .48; cursor: default; }
[data-scale] { min-width: 4ch; text-align: center; }
a:focus-visible, button:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { scroll-behavior: auto !important; } }
