/* finesse · register=brand · A=espresso+ivory+garnet · B=Cormorant+DM-Sans
 * C=full-bleed-cover+product-spread · D=unboxing · E=painted-miniatures */
@font-face {
  font-family: Cormorant;
  src: url("assets/type/cormorant.woff2") format("woff2");
  font-style: normal; font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/type/cormorant-italic.woff2") format("woff2");
  font-style: italic; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/type/dm-sans.woff2") format("woff2");
  font-style: normal; font-weight: 100 1000; font-display: swap;
}
:root {
  --porcelain: #fcfaf5;
  --vellum: #f5f1e8;
  --espresso: #322a25;
  --garnet: #793b3e;
  --caption: #675c51;
  --rule: #d9d0c2;
  --book-face: Cormorant, Georgia, serif;
  --sans-face: "DM Sans", Arial, sans-serif;
  --pine: var(--espresso);
  --holly: var(--garnet);
  --holiday-ink: var(--espresso);
  --paper-white: var(--porcelain);
  --holiday-line: var(--rule);
  --home-frame: min(89%, 1504px);
  --section-space: clamp(48px, 5.6vw, 92px);
  --section-title: clamp(44px, 4.65vw, 78px);
  --ink: var(--espresso);
  --paper: var(--porcelain);
  --dark: var(--espresso);
  --gold: var(--garnet);
  --muted: var(--caption);
  --line: var(--rule);
}
body, .holiday-header, #home-view, .holiday-footer, .workspace-view, dialog {
  font-family: var(--sans-face);
}
html, body { overflow-x: clip; }
.holiday-header { background: var(--porcelain); border-bottom: 1px solid var(--rule); }
.holiday-header .header-inner {
  min-height: clamp(66px, 5vw, 82px);
  grid-template-columns: minmax(0, 1fr) auto 48px;
  gap: clamp(14px, 3vw, 48px); padding: 0;
}
.holiday-header .holiday-brand img { width: clamp(104px, 8.1vw, 138px); }
.holiday-nav {
  justify-content: flex-end; gap: clamp(20px, 3.1vw, 54px);
  background: transparent; color: var(--espresso); border-radius: 0; padding: 0;
}
.holiday-nav a { position: relative; flex: none; padding-inline: 0; font: 550 14px/1.2 var(--sans-face); }
.holiday-nav a:hover { text-decoration: none; }
.holiday-nav a::after {
  content: ""; position: absolute; bottom: 6px; left: 0; right: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
}
.holiday-nav a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
body:has(#gallery:target) .holiday-nav a[href="#gallery"]::before,
body:has(#process:target) .holiday-nav a[href="#process"]::before,
body:has(#custom-set:target) .holiday-nav a[href="#custom-set"]::before { background: var(--garnet); }
.header-order { border: 1px solid var(--rule); border-radius: 50%; }
.header-order svg { width: 20px; }

/* The artwork and the high-resolution original inside its frame move as one plane. */
#home-view .studio-hero {
  width: 100%; height: clamp(490px, 45vw, 790px); aspect-ratio: auto; border-radius: 0;
  margin: 0; background: #40291d; color: #fff7e8;
}
#home-view .bride-studio-scene {
  inset: 50% 0 auto auto; height: max(100%, 42.54vw); width: auto;
  aspect-ratio: 1923 / 818; transform: translateY(-50%); z-index: -2;
}
#home-view .studio-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(34 20 16 / 56%), rgb(36 23 19 / 22%) 37%, transparent 62%);
  mask-image: none;
}
#home-view .hero-inner { width: var(--home-frame); padding: 0; margin: auto; }
#home-view .studio-hero .hero-copy { max-width: 49%; text-align: left; }
#home-view .hero-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: #ffe8c9; font: 600 clamp(10px,.82vw,13px)/1.4 var(--sans-face);
  text-transform: uppercase; letter-spacing: .16em;
}
.hero-kicker::before { content: ""; display: block; width: 32px; height: 1px; background: currentColor; }
#home-view .studio-hero .hero-copy h1 {
  color: inherit; margin: .22em 0 .23em; font: 500 clamp(67px,7.75vw,142px)/.84 var(--book-face);
  letter-spacing: -.052em;
}
#home-view :is(h1,h2) em { font-family: var(--book-face); font-weight: 500; }
#home-view .hero-copy h1 em { display: inline-block; color: #ffdfb0; }
.hero-copy .painted { white-space: nowrap; }
#home-view .studio-hero .hero-copy p:not(.hero-kicker) {
  color: #fff8ed; max-width: 35ch; margin: 0;
  font: 400 clamp(15px,1.2vw,20px)/1.46 var(--sans-face);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; margin-top: clamp(18px,2.1vw,32px); }
.holiday-button, #gallery .occasion-cta, .workspace-view .button {
  gap: 13px; font-family: var(--sans-face); font-weight: 600;
}
.hero-actions .holiday-button, .holiday-gift .holiday-button {
  min-height: 48px; padding: 0 24px; border-radius: 4px;
  background: var(--porcelain); color: var(--espresso); font-size: 15px;
}
.hero-actions .holiday-button:hover, .holiday-gift .holiday-button:hover { background: #f3e4cb; color: var(--espresso); }
.hero-actions .holiday-button span { font: 19px/1 Arial,sans-serif; }
.set-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  color: #fff7e8; text-underline-offset: .27em; font-size: 14px; font-weight: 550;
}
.set-link:hover { text-decoration: underline; }
.set-link span { font: 18px/1 Arial,sans-serif; }
#home-view .studio-hero :focus-visible { outline: 2px solid #fff5d6; outline-offset: 4px; }

/* The same three objects are available from the shelf or directly from the index. */
#custom-set {
  --unbox-ink: var(--espresso);
  padding: 0; background: var(--vellum); border-bottom: 1px solid var(--rule);
}
#custom-set .unbox-stage {
  --closed-x: 50%; --closed-y: 49%; --closed-size: 84%;
  --closed-shadow-y: 91%; --closed-shadow-size: 28%;
  --card-x: 18%; --card-size: 56%; --figure-x: 49%; --figure-size: 80%;
  --back-x: 80%; --back-y: 47%; --back-size: 68%;
  width: var(--home-frame); max-width: none; aspect-ratio: auto; overflow: visible;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  grid-template-rows: clamp(330px, 28.5vw, 470px) auto;
  align-items: stretch; column-gap: 3%; padding: clamp(32px,3.3vw,60px) 0 clamp(24px,2.6vw,42px);
  border-radius: 0; background: transparent;
}
#custom-set .set-heading {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0; width: auto; margin: 0; padding: 0 0 12px;
}
#custom-set .set-heading h2 {
  max-width: 18ch; color: var(--espresso);
  font: 500 clamp(26px,2.45vw,39px)/1.08 var(--book-face);
  text-align: left; letter-spacing: -.025em; text-wrap: balance;
}
#custom-set .set-heading h2 em, #home-view #collection-title em { color: var(--garnet); }
#home-view #collection-title em { display: inline-block; }
.unbox-scene { align-self: stretch; }
.unbox-scene::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 3%; right: 1%; bottom: 3%; height: 19%; border-radius: 50%;
  background: linear-gradient(176deg,#eee9df 5%,#fdfbf5 49%,#eae4d7);
  border: 1px solid #e3dbce;
  box-shadow: 0 5px 0 -1px #d7cfc1, 0 12px 15px -10px rgb(74 55 43 / 26%);
}
.unbox-stage[data-unbox="closed"] .unbox-scene::before { transform: scaleX(.67); }
.unbox-stage .shadow-box, .unbox-stage .shadow-figurine, .unbox-stage .shadow-card {
  background: radial-gradient(ellipse,rgb(67 47 33 / 32%),rgb(91 66 44 / 11%) 48%,transparent 72%);
}
.unbox-stage .unbox-open {
  top: 72%; letter-spacing: 0; white-space: nowrap;
  padding: 0 16px; min-height: 44px; font: 550 14px/1 var(--sans-face);
  color: var(--porcelain); border-color: rgb(255 253 244 / 70%);
  background: rgb(61 42 37 / 85%);
}
.unbox-stage .unbox-open:hover { background: #49302a; }
.unbox-stage .unbox-tools { top: clamp(10px,1.15vw,19px); right: 0; bottom: auto; }
#custom-set .unbox-hint { color: var(--caption); font: 450 12px/1.2 var(--sans-face); }
.unbox-tools :is(.unbox-repack,.unbox-motion), #set-detail .set-close {
  background: var(--porcelain); color: var(--espresso); border-color: var(--rule);
}
.piece-list {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: clamp(18px,1.8vw,30px); border-block: 1px solid var(--rule);
}
.piece-list button {
  appearance: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(12px,1.5vw,22px); min-width: 0; min-height: 72px;
  padding: 8px clamp(12px,2.2vw,34px); border: none; border-radius: 0;
  cursor: zoom-in; color: var(--espresso); background: transparent; text-align: left;
}
.piece-list button + button { border-left: 1px solid var(--rule); }
.piece-list img { width: 44px; height: 48px; object-fit: contain; }
.piece-list span { font: 550 clamp(21px,2vw,31px)/1.05 var(--book-face); letter-spacing: -.033em; }
.piece-list i { color: var(--garnet); font: normal 17px/1 var(--sans-face); }
.piece-list button:hover { background: #ece5d9; }
#set-detail { background: var(--vellum); border-radius: 9px; }
#custom-set .viewer-title { color: var(--espresso); font-family: var(--book-face); font-weight: 550; }
#custom-set :is(.viewer-head p,.viewer-status) { font-family: var(--sans-face); color: var(--caption); }
#custom-set button:focus-visible, #custom-set .viewer-viewport:focus-visible,
#gallery :is(.occasion-tab,.occasion-toggle,.occasion-image,.occasion-cta):focus-visible,
.workspace-view :is(button,a,input,textarea,select):focus-visible {
  outline: 2px solid var(--garnet); outline-offset: 3px;
}

/* Supporting spreads use the same paper, ink and caption typography. */
#home-view #collection-title, #home-view #cases-title, #home-view .holiday-process h2,
#home-view .holiday-gift h2 { font: 500 var(--section-title)/.98 var(--book-face); letter-spacing: -.045em; }
#home-view #collection-title { margin-bottom: clamp(18px,2vw,32px); }
#gallery .occasion-art, .process-image { border-radius: 5px; }
#gallery .occasion-info { padding: 12px 0; border-bottom: 1px solid var(--rule); }
#gallery .occasion-story h3 { font-weight: 550; font-size: clamp(28px,2.75vw,45px); }
#gallery :is(.occasion-cta,.occasion-toggle,.occasion-tab) { font-family: var(--sans-face); }
#gallery .occasion-cta, .holiday-process .step-number { color: var(--garnet); }
#gallery .occasion-toggle, #gallery .occasion-tab { color: var(--espresso); background: var(--porcelain); }
#gallery .occasion-tab[aria-selected="true"] { color: var(--porcelain); background: var(--espresso); }
#gallery .occasion-tab:hover { background: #e9e2d7; }
#gallery .occasion-tab[aria-selected="true"]:hover { background: var(--espresso); }
#gallery .occasion-tab[aria-selected="true"]::after { background: #e6c794; }
.holiday-cases { --album-pine: var(--espresso); --album-paper: var(--vellum); }
#home-view #cases-title em { color: #f0d9b6; }
.holiday-cases .comparison-pair figcaption, #home-view .album-hint,
#home-view .holiday-process p, .holiday-footer :is(a,button):not(.holiday-brand) { font-family: var(--sans-face); }
.holiday-cases .more-stories { border-color: #897769; }
.holiday-cases .compare-example h3 { font-weight: 550; }
.holiday-process { background: var(--porcelain); }
.holiday-process li { border-color: var(--rule); }
.holiday-gift { background: #66373a; color: var(--porcelain); }
.holiday-footer { background: var(--vellum); color: var(--espresso); }
.holiday-footer .footer-inner { color: var(--espresso); }

body:not(.is-home-route) { background: var(--vellum); color: var(--espresso); }
.workspace-view { --muted: var(--caption); }
.workspace-view :is(h1,h2,h3), #confirm-dialog h2 { font-family: var(--book-face); color: var(--espresso); font-weight: 600; }
.workspace-view .workspace-heading h1 { font-size: clamp(43px,5vw,74px); line-height: 1; letter-spacing: -.045em; }
.workspace-view :is(.form-card,.design-panel,.notes-panel,.empty-state), body dialog { background: var(--porcelain); border-color: var(--rule); }
.workspace-view .summary-card, .wizard-progress li.active { background: var(--espresso); color: var(--porcelain); }
.workspace-view .demo-callout, .workspace-view .upload-area { background: #eee9de; border-color: var(--rule); }
.workspace-view .demo-callout p, .workspace-view .muted { color: var(--caption); }
.workspace-view :is(.back-link,.cancel-link,.text-link) { color: var(--garnet); }
.workspace-view :is(.demo-callout,.order-timeline,.brief-summary,.review-brief,.notification-preview,.choice-selected,.status-pill) {
  color: var(--espresso); background: #eee8de; border-color: var(--rule);
}
.workspace-view .badge, .workspace-view .version-tabs span { color: var(--garnet); border-color: #c5b7a9; background: var(--vellum); }
.workspace-view .version-tabs button.active { color: var(--garnet); border-color: var(--garnet); }
.workspace-view .upload-area.drag-over { border-color: var(--garnet); background: #eee0d9; }
.workspace-view .button, dialog .button { border-radius: 4px; font-family: var(--sans-face); }
.workspace-view :is(.button-dark,.button-gold), dialog .button-dark { background: var(--espresso); border-color: var(--espresso); color: var(--porcelain); }
.workspace-view :is(.button-dark,.button-gold):hover, dialog .button-dark:hover { background: var(--garnet); border-color: var(--garnet); }
.workspace-view :is(input:not([type=file]):not([type=checkbox]),textarea,select) { background: var(--porcelain); border-color: #b9ad9d; color: var(--espresso); }

@media (prefers-reduced-motion: no-preference) {
  .holiday-nav a::after, .piece-list i, .set-link span { transition: transform 210ms ease; }
  .piece-list button:hover i { transform: translate(2px,-2px); }
  .set-link:hover span { transform: translateY(3px); }
  .unbox-scene::before { transition: transform 850ms cubic-bezier(.2,.75,.22,1); }
  .studio-hero .hero-copy h1 { animation: cover-title-in 650ms cubic-bezier(.18,.72,.24,1) both; }
  @keyframes cover-title-in {
    from { opacity: .2; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 900px) {
  :root { --home-frame: 91%; }
  #home-view .studio-hero { height: clamp(385px,50vw,490px); }
  #home-view .studio-hero .hero-copy h1 { font-size: clamp(58px,8.3vw,80px); }
  .hero-actions { gap: 8px 14px; }
  .hero-actions .holiday-button { padding-inline: 15px; font-size: 14px; gap: 8px; }
  #custom-set .unbox-stage { grid-template-rows: clamp(250px,34vw,295px) auto; }
  .piece-list button { gap: 10px; min-height: 64px; }
}
@media (max-width: 680px) {
  :root { --home-frame: calc(100% - 36px); }
  .holiday-header .header-inner { grid-template-columns: auto minmax(0,1fr) 44px; gap: 8px; min-height: 62px; }
  .holiday-header .holiday-brand img { width: clamp(71px,17vw,96px); }
  .holiday-nav { grid-column: auto; grid-row: auto; justify-content: center; gap: clamp(7px,2.75vw,18px); }
  .holiday-nav a { padding: 0; font-size: clamp(10.5px,2.7vw,13px); gap: 2px; }
  .header-order { grid-column: auto; grid-row: auto; }
  #home-view .studio-hero { display: flex; flex-direction: column; height: auto; background: #3a261d; border-radius: 0; }
  #home-view .bride-studio-scene {
    position: relative; inset: auto; order: 0; width: 100%; height: auto; aspect-ratio: 1.52;
    transform: none; z-index: 0;
  }
  #home-view .bride-studio-scene .hero-image { object-position: 88% center; }
  #home-view .hero-photo-plane {
    inset: 0 auto auto 88%; height: 100%; aspect-ratio: 1923 / 818; transform: translateX(-88%);
  }
  #home-view .studio-hero::before { display: none; }
  #home-view .bride-studio-scene::after {
    content: ""; position: absolute; inset: 75% 0 0; background: linear-gradient(transparent,#3a261d);
  }
  #home-view .hero-inner { order: 1; width: var(--home-frame); height: auto; padding: 7px 2px 29px; }
  #home-view .studio-hero .hero-copy { width: 100%; max-width: none; }
  #home-view .studio-hero .hero-copy h1 { font-size: clamp(53px,11.6vw,75px); line-height: .9; margin: .21em 0 .21em; }
  #home-view .studio-hero .hero-copy p:not(.hero-kicker) { max-width: 34ch; font-size: 14px; }
  .hero-actions { margin-top: 14px; gap: 16px; }
  .hero-actions .holiday-button { min-height: 44px; font-size: 14px; padding: 0 16px; gap: 9px; }
  .set-link { font-size: 13px; gap: 5px; }
  #custom-set .unbox-stage {
    --card-x: 15%; --card-size: 45%; --figure-x: 48%; --figure-size: 64%;
    --back-x: 82%; --back-y: 47%; --back-size: 52%;
    --closed-x: 50%; --closed-y: 52%; --closed-size: 76%;
    grid-template-columns: minmax(0,1fr); grid-template-rows: auto clamp(230px,58vw,330px) auto;
    gap: 0; padding: 34px 0 22px;
  }
  #custom-set .set-heading { padding: 0 0 12px; }
  #custom-set .set-heading h2 { max-width: 33ch; font-size: clamp(22px,5.8vw,28px); }
  .unbox-stage .unbox-tools { top: auto; bottom: 114px; }
  #custom-set .unbox-hint { display: none; }
  .unbox-stage .unbox-open { font-size: 12px; padding: 0 11px; }
  .unbox-scene::before { left: 0; right: 0; bottom: 3%; }
  .unbox-stage[data-unbox="closed"] .unbox-scene::before { transform: scaleX(.7); }
  .piece-list { margin-top: 8px; }
  .piece-list button { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 4px; padding: 8px 3px 10px; }
  .piece-list img { width: 32px; height: 36px; }
  .piece-list span { font-size: clamp(16px,4.5vw,21px); white-space: nowrap; }
  .piece-list i { display: none; }
  .holiday-process .holiday-shell { row-gap: 16px; }
}
@media (max-width: 365px) {
  #custom-set .unbox-stage { --back-x: 80%; }
  .holiday-header .header-inner { grid-template-columns: 1fr 44px; gap: 0 12px; padding-top: 5px; }
  .holiday-header .holiday-brand img { width: 78px; }
  .header-order { grid-area: 1 / 2; }
  .holiday-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .holiday-nav a { font-size: 13px; }
  .hero-actions .holiday-button { padding: 0 12px; gap: 5px; font-size: 13px; }
  .hero-actions { gap: 8px; }
  .hero-actions .set-link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero *, .piece-list *, .unbox-scene::before, .holiday-nav a::after { animation: none; transition: none; }
}
