:root {
  --paper: #f3eee5;
  --paper-deep: #e7ded0;
  --porcelain: #fffdf9;
  --ink: #211d1a;
  --ink-soft: #5f5850;
  --wine: #7c2939;
  --wine-dark: #5d1b29;
  --rose: #d49aaa;
  --sage: #718171;
  --sage-text: #4d6352;
  --blue: #224f82;
  --gold: #b6935c;
  --line: rgb(33 29 26 / 17%);
  --line-strong: rgb(33 29 26 / 32%);
  --error: #9b281f;
  --focus: #175ea8;
  --shadow: 0 1.5rem 4.5rem rgb(43 31 24 / 13%);
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgb(255 255 255 / 50%) 0 0.06rem, transparent 0.07rem) 0 0 / 0.48rem 0.48rem,
    var(--paper);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / 26%), transparent 30%, rgb(124 41 57 / 3%));
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--porcelain);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* v000192: keep the programmatic entry handoff available to screen readers
   without adding another visual stop to the already explicit CTA path. */
[data-entry-handoff-status].sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boutique-header,
.boutique-hero,
.atelier,
.studio-notes,
.boutique-footer {
  width: min(100% - 2.5rem, 88rem);
  margin-inline: auto;
}

.boutique-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.boutique-header > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boutique-wordmark {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  color: var(--ink);
  line-height: 0.9;
  text-decoration: none;
}

.boutique-wordmark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.boutique-wordmark em {
  margin-top: 0.35rem;
  color: var(--wine);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.header-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-self: end;
  padding-inline: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 0.28rem;
  white-space: nowrap;
}

.boutique-hero {
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 39rem;
}

.overline,
.step-count {
  margin: 0;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.atelier-heading h2,
.studio-notes h2,
.boutique-step h3,
.boutique-step legend,
.boutique-review h2,
.generation-status h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-offer {
  display: grid;
  max-width: 34rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid var(--line-strong);
  border-top: 0.28rem solid var(--wine);
  background: rgb(255 253 249 / 92%);
  box-shadow: 0 1rem 3rem rgb(43 31 24 / 10%);
}

.hero-offer__eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--wine);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-offer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  list-style: none;
}

.hero-offer li::before {
  margin-right: 0.4rem;
  color: var(--sage-text);
  content: "✓";
  font-weight: 900;
}

.hero-offer .boutique-button {
  white-space: nowrap;
}

.hero-cta-commitment {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.hero-cta-commitment span {
  margin-inline: 0.2rem;
  color: var(--sage-text);
}

.hero-offer__decision {
  display: grid;
  gap: 0.65rem;
}

.hero-product-proof--text {
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero-offer__outcome {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-offer__decision .boutique-button {
  width: 100%;
  min-height: 3.75rem;
  font-size: 0.82rem;
}

.hero-offer__details {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.hero-offer__details summary {
  min-height: 2.75rem;
  padding: 0.8rem 0.15rem 0.45rem;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  text-underline-offset: 0.2rem;
}

.hero-offer__details-body {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.boutique-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 1.7rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.boutique-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.boutique-button--dark,
.boutique-button--ink {
  color: var(--porcelain);
  background: var(--ink);
}

.boutique-button--dark:hover,
.boutique-button--ink:hover {
  background: #000;
}

.boutique-button--wine {
  color: white;
  background: var(--wine);
}

.boutique-button--wine:hover {
  background: var(--wine-dark);
}

.boutique-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.boutique-button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.82;
}

.form-actions[aria-busy="true"] {
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 28%);
}

@media (forced-colors: active) {
  .hero-offer {
    border: 2px solid CanvasText;
    box-shadow: none;
  }

  .hero-offer__details {
    border-color: CanvasText;
  }

  .form-actions[aria-busy="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
    box-shadow: none;
  }
}

.quiet-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  list-style: none;
}

.quiet-promises li::before {
  margin-right: 0.45rem;
  color: var(--sage);
  content: "✓";
  font-weight: 900;
}

.hero-portrait {
  position: relative;
  margin: 0;
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-portrait::before {
  z-index: -1;
  inset: -1.4rem 1.8rem 1.8rem -1.4rem;
  border: 1px solid var(--gold);
}

.hero-portrait::after {
  z-index: 2;
  inset: 0;
  box-shadow: inset 0 0 5rem rgb(44 30 19 / 10%);
}

.hero-portrait img {
  width: 100%;
  min-height: 31rem;
  aspect-ratio: 1.54 / 1;
  object-fit: cover;
}

.hero-portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-style: italic;
}

.hero-portrait figcaption span {
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.atelier {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--ink);
  background: var(--porcelain);
  box-shadow: var(--shadow);
}

.atelier::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 80%);
  content: "";
  pointer-events: none;
}

.atelier-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(2.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.atelier-heading h2,
.studio-notes h2 {
  max-width: 15ch;
  margin: 0.55rem 0 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}

.atelier-heading > p {
  max-width: 39ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.atelier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.atelier-controls {
  min-width: 0;
}

.boutique-progress {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.boutique-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boutique-progress button {
  display: grid;
  width: 100%;
  min-height: 3.8rem;
  justify-items: start;
  gap: 0.35rem;
  padding: 0.2rem 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
}

.boutique-progress button:disabled {
  cursor: default;
  opacity: 0.42;
}

.boutique-progress button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.boutique-progress button em {
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boutique-progress button[aria-current="step"] {
  color: var(--wine);
}

.progress-line {
  height: 1px;
  margin-top: 0.75rem;
  overflow: hidden;
  background: var(--line);
}

.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--wine);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.boutique-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boutique-step {
  animation: question-in 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boutique-step legend,
.boutique-step h3 {
  display: block;
  width: 100%;
  margin: 0.55rem 0 0.8rem;
  padding: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.03;
}

.boutique-step legend .step-count {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "Avenir Next", Avenir, sans-serif;
}

.step-intro {
  max-width: 55ch;
  margin: 0 0 1.7rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(4.2rem, 1fr));
  gap: 0.6rem;
}

.age-card {
  position: relative;
  cursor: pointer;
}

.age-card input,
.print-card input,
.answer-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.age-card > span {
  display: grid;
  min-height: 6.8rem;
  place-content: center;
  border: 1px solid var(--line);
  background: #faf7f1;
  text-align: center;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.age-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.age-card small {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-card:hover > span {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.age-card input:checked + span {
  border-color: var(--wine);
  color: white;
  background: var(--wine);
}

.age-card input:checked + span small {
  color: rgb(255 255 255 / 74%);
}

.age-card input:focus-visible + span,
.print-card input:focus-visible ~ span,
.answer-card input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.theme-card-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

html.boutique-enhanced .theme-card-grid {
  display: grid;
}

.theme-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: 17rem auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #faf7f1;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 1rem 2.5rem rgb(43 31 24 / 9%);
}

.theme-card[aria-checked="true"] {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
}

.theme-card__image {
  min-height: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.theme-card__image:empty {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 65%), transparent),
    var(--paper-deep);
}

.theme-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-card:hover .theme-card__image img {
  transform: scale(1.025);
}

.theme-card__copy {
  display: grid;
  gap: 0.42rem;
  padding: 1.15rem 2.5rem 1.2rem 1.15rem;
}

.theme-card__copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 500;
}

.theme-card__copy small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.theme-card__check {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0.7rem;
}

.theme-card[aria-checked="true"] .theme-card__check {
  border-color: var(--wine);
  color: white;
  background: var(--wine);
}

.theme-select-fallback {
  display: grid;
  gap: 0.45rem;
}

.theme-select-fallback label,
.select-card__label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.theme-select-fallback select,
.select-card select {
  width: 100%;
  min-height: 3.6rem;
  padding: 0.8rem 2.5rem 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--porcelain);
}

html.boutique-enhanced .theme-select-fallback {
  display: none;
}

.select-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.7rem 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: #faf7f1;
}

.select-card select {
  grid-column: 1;
  min-height: 4.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.select-card__aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink-soft);
  line-height: 1.55;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.print-card {
  position: relative;
  display: grid;
  min-height: 15rem;
  grid-template-rows: 7.5rem auto;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #faf7f1;
  transition: border-color 160ms ease, transform 160ms ease;
}

.print-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.print-card:has(input:checked) {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
}

.print-card > span:last-child {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
}

.print-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.print-card small,
.answer-card small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.paper-swatch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.38rem;
  padding: 1.25rem;
  overflow: hidden;
}

.paper-swatch i {
  display: block;
  border: 1px solid rgb(33 29 26 / 9%);
  box-shadow: 0 0.3rem 0.8rem rgb(43 31 24 / 8%);
  transform: rotate(-3deg);
}

.paper-swatch i:nth-child(2) {
  transform: translateY(-0.2rem) rotate(2deg);
}

.paper-swatch i:nth-child(3) {
  transform: rotate(4deg);
}

.paper-swatch--color {
  background: #eee2e0;
}

.paper-swatch--color i:nth-child(1) {
  background: linear-gradient(150deg, #f4a8b9 0 35%, #ffefdd 36% 70%, #69569e 71%);
}

.paper-swatch--color i:nth-child(2) {
  background: linear-gradient(150deg, #244f82 0 30%, #dbe8f4 31% 64%, #e6b75b 65%);
}

.paper-swatch--color i:nth-child(3) {
  background: linear-gradient(150deg, #f8e0aa 0 25%, #e2786e 26% 56%, #718171 57%);
}

.paper-swatch--quiet {
  background: #eeeae3;
}

.paper-swatch--quiet i {
  background:
    repeating-linear-gradient(0deg, transparent 0 0.85rem, rgb(33 29 26 / 10%) 0.9rem 0.94rem),
    #fffdf9;
}

.answer-card {
  position: relative;
  display: grid;
  min-height: 7.5rem;
  grid-template-columns: 2.7rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #faf7f1;
}

.answer-card:has(input:checked) {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
}

.answer-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
}

.answer-card input:checked + .answer-mark {
  border-color: var(--wine);
  color: white;
  background: var(--wine);
}

.answer-card > span:last-child {
  display: grid;
  gap: 0.3rem;
}

.answer-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.step-actions {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.7rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.step-actions > span {
  max-width: 29ch;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.text-button {
  min-height: 2.75rem;
  padding: 0.45rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.32rem;
}

.text-button:hover {
  color: var(--wine);
  text-decoration-color: currentcolor;
}

.field-error,
.step-nudge {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 700;
}

.share-status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: var(--sage-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.share-status.is-error {
  color: var(--error);
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.error-summary {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--error);
  background: #fff8f6;
}

.error-summary h2 {
  margin: 0.3rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--error);
}

.boutique-review {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--wine);
  background: #fbf5f2;
  animation: question-in 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boutique-review h2,
.generation-status h2 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.boutique-review > p:not(.overline, .share-status) {
  color: var(--ink-soft);
}

.boutique-review dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.boutique-review dl > * {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.boutique-review dt {
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boutique-review dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.review-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.3rem;
  color: white;
  background: var(--ink);
}

.action-copy h2 {
  margin: 0.3rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.action-copy [data-action-guidance] {
  max-width: 52ch;
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.78rem;
  line-height: 1.5;
}

.action-copy .action-commitment {
  margin-top: 0.65rem;
  color: #f2ddd6;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.form-actions .overline {
  color: #d7b5bd;
}

.action-buttons {
  display: flex;
  gap: 0.7rem;
}

.generation-status {
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background: #f8f3eb;
}

.generation-status > div {
  position: relative;
}

.generation-status p:not(.overline) {
  max-width: 55ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.spinner {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.2rem;
  border: 2px solid var(--line);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.status-seal {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--sage);
  font-size: 1.2rem;
}

.status-seal--error {
  background: var(--error);
}

.live-edit {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 80%), transparent 56%),
    #eee5d8;
}

.live-edit__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-edit__topline > span {
  color: var(--sage-text);
  font-size: 0.65rem;
  font-weight: 800;
}

.book-stage {
  position: relative;
  display: grid;
  min-height: 30rem;
  place-items: center;
  overflow: hidden;
  margin-top: 1rem;
  background:
    radial-gradient(circle at 52% 35%, rgb(255 255 255 / 90%), transparent 38%),
    linear-gradient(150deg, #e2d6c5, #f5eee3);
}

.book-stage::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 1.3rem, rgb(33 29 26 / 1.8%) 1.35rem 1.4rem);
  content: "";
  pointer-events: none;
}

.book-cover,
.cover-placeholder img {
  width: min(64%, 16.5rem);
  aspect-ratio: 0.773 / 1;
  border: 0.42rem solid white;
  background: white;
  box-shadow: 0 1.8rem 3.5rem rgb(33 29 26 / 24%);
}

.cover-placeholder {
  position: relative;
  width: 100%;
  height: 27rem;
}

.cover-placeholder img {
  position: absolute;
  top: 2rem;
  left: 50%;
  height: auto;
  object-fit: cover;
}

.cover-placeholder img:first-child {
  transform: translateX(-78%) rotate(-7deg);
}

.cover-placeholder img:last-child {
  transform: translateX(-22%) rotate(7deg);
}

.cover-placeholder[data-cover-count="1"] img:first-child {
  transform: translateX(-50%) rotate(-2deg);
}

.cover-placeholder__blank {
  position: absolute;
  top: 2rem;
  left: 50%;
  width: min(64%, 16.5rem);
  aspect-ratio: 0.773 / 1;
  border: 0.42rem solid white;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 65%), transparent 42%),
    linear-gradient(145deg, var(--paper-deep), #d9c9b5);
  box-shadow: 0 1.8rem 3.5rem rgb(33 29 26 / 18%);
  transform: translateX(-50%) rotate(-2deg);
}

.book-cover {
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: rotate(-1deg);
  animation: book-arrive 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.book-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.book-cover__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 44%, rgb(22 18 16 / 15%) 58%, rgb(22 18 16 / 78%) 100%);
}

.book-cover__title {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  display: grid;
  color: white;
  text-shadow: 0 1px 1rem rgb(0 0 0 / 32%);
}

.book-cover__title span,
.book-cover__title em {
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-cover__title strong {
  margin-block: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 0.95;
}

.book-shadow {
  position: absolute;
  bottom: 1.7rem;
  left: 50%;
  width: 58%;
  height: 1.6rem;
  border-radius: 50%;
  background: rgb(33 29 26 / 16%);
  filter: blur(0.65rem);
  transform: translateX(-50%);
}

.edit-summary {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.edit-summary > p {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.35;
}

.edit-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin: 0;
}

.edit-summary dl div {
  min-width: 0;
}

.edit-summary dt {
  color: var(--ink-soft);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edit-summary dd {
  margin: 0.2rem 0 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curator-note {
  position: relative;
  margin: 1.2rem 0 0;
  padding: 0 0 0 1.6rem;
  border-left: 1px solid var(--gold);
}

.curator-note > span {
  position: absolute;
  top: -0.25rem;
  left: 0.45rem;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.curator-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
}

.curator-note footer {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.theme-galleries {
  margin-top: 1.3rem;
}

.theme-gallery > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
}

.theme-gallery > p span {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.theme-gallery figure {
  min-width: 0;
  margin: 0;
}

.theme-gallery img {
  width: 100%;
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
  object-position: center 20%;
  border: 0.2rem solid white;
}

.theme-gallery figcaption {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
  text-align: center;
}

.gallery-disclaimer {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.45;
}

.studio-notes {
  padding-block: clamp(6rem, 11vw, 10rem);
}

.studio-notes > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.studio-notes h2 {
  grid-column: 1;
}

.studio-notes ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
}

.studio-notes li {
  min-height: 13rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.studio-notes li:last-child {
  border-right: 0;
}

.studio-notes li > span {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 0.78rem;
}

.studio-notes h3 {
  margin: 2.5rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.studio-notes li p {
  max-width: 28ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.studio-notes details {
  border-bottom: 1px solid var(--line-strong);
}

.studio-notes summary {
  min-height: 4.8rem;
  padding: 1.6rem 2.5rem 1.2rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0.5rem 0 2rem;
}

.details-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.details-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.boutique-footer {
  display: grid;
  min-height: 11rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line-strong);
}

.boutique-footer p {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
}

.boutique-parent-line {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}

.boutique-parent {
  display: inline-block;
  min-height: 2rem;
  line-height: 2rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.boutique-footer > a:last-child {
  justify-self: end;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  text-underline-offset: 0.28rem;
}

@keyframes question-in {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes book-arrive {
  from {
    opacity: 0;
    transform: translateY(0.8rem) rotate(-3deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 74rem) {
  .atelier-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 3rem;
  }

  .age-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .book-stage {
    min-height: 25rem;
  }

  .cover-placeholder {
    height: 23rem;
  }
}

@media (max-width: 58rem) {
  .boutique-header {
    grid-template-columns: 1fr auto;
  }

  .boutique-header > p {
    display: none;
  }

  .atelier-heading {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .atelier-layout {
    grid-template-columns: 1fr;
  }

  .live-edit {
    position: relative;
    top: auto;
    grid-row: 1;
  }

  .book-stage {
    min-height: 27rem;
  }

  .book-cover,
  .cover-placeholder img,
  .cover-placeholder__blank {
    width: min(48%, 15.5rem);
  }

  .studio-notes > div:first-child {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 42rem) {
  .boutique-header,
  .boutique-hero,
  .atelier,
  .studio-notes,
  .boutique-footer {
    width: min(100% - 1.25rem, 88rem);
  }

  .boutique-header {
    min-height: 4.7rem;
  }

  .header-link {
    font-size: 0.72rem;
  }

  .boutique-hero {
    padding-block: 3.5rem 5rem;
  }

  .hero-copy h1 {
    margin-top: 0.75rem;
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .hero-portrait::before {
    inset: -0.7rem 0.8rem 0.8rem -0.7rem;
  }

  .hero-portrait img {
    min-height: 19rem;
  }

  .quiet-promises {
    display: grid;
  }

  .atelier {
    width: 100%;
    padding: 2.8rem 1rem;
  }

  .boutique-progress ol {
    grid-template-columns: repeat(5, 1fr);
  }

  .boutique-progress button {
    justify-items: center;
    text-align: center;
  }

  .boutique-progress button em {
    display: none;
  }

  .age-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .age-card > span {
    min-height: 5.8rem;
  }

  .theme-card-grid,
  html.boutique-enhanced .theme-card-grid,
  .print-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    grid-template-rows: 14rem auto;
  }

  .select-card {
    grid-template-columns: 1fr;
  }

  .select-card select,
  .select-card__aside {
    grid-column: 1;
    grid-row: auto;
  }

  .step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .step-actions .boutique-button {
    width: 100%;
  }

  .book-stage {
    min-height: 23rem;
  }

  .cover-placeholder {
    height: 21rem;
  }

  .book-cover,
  .cover-placeholder img,
  .cover-placeholder__blank {
    width: min(56%, 13rem);
  }

  .boutique-review dl {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .action-buttons,
  .action-buttons .boutique-button {
    width: 100%;
  }

  .studio-notes {
    padding-block: 5rem;
  }

  .studio-notes ol {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .studio-notes li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-notes li:last-child {
    border-bottom: 0;
  }

  .studio-notes h3 {
    margin-top: 1.2rem;
  }

  .details-grid,
  .boutique-footer {
    grid-template-columns: 1fr;
  }

  .details-grid {
    gap: 1.2rem;
  }

  .boutique-footer {
    min-height: auto;
    gap: 1.2rem;
    padding-block: 2.5rem;
  }

  .boutique-footer p {
    margin: 0;
  }

  .boutique-footer > a:last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The guided flow uses a tighter product-configurator rhythm than the editorial
   page around it. These refinements keep the artwork present without letting it
   crowd out the decision a visitor is making. */
:root {
  --radius: 1rem;
  --radius-small: 0.7rem;
  --shadow-soft: 0 1.2rem 3.5rem rgb(43 31 24 / 10%);
}

.boutique-header {
  min-height: 4.75rem;
}

.boutique-hero {
  min-height: auto;
}

.boutique-button {
  min-height: 3.25rem;
  gap: 1.25rem;
  border-radius: 0.45rem;
}

.quiet-promises {
  margin-top: 1.15rem;
}

.hero-portrait img {
  aspect-ratio: 1.48 / 1;
  border-radius: var(--radius);
}

.hero-portrait::before {
  inset: -0.9rem 1.1rem 1.1rem -0.9rem;
  border-radius: var(--radius);
}

.hero-portrait::after {
  border-radius: var(--radius);
}

.atelier {
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.atelier::before {
  border-radius: inherit;
}

.atelier-heading {
  gap: 2rem;
  padding-bottom: clamp(1.8rem, 3vw, 2.7rem);
}

.atelier-heading h2,
.studio-notes h2 {
  font-size: clamp(2.75rem, 4.2vw, 4.25rem);
  line-height: 0.98;
}

.atelier-layout {
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 24rem);
  gap: clamp(2.5rem, 4vw, 4rem);
  padding-top: clamp(2rem, 3vw, 2.75rem);
}

.boutique-progress {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.boutique-progress button {
  min-height: 3.35rem;
}

.boutique-progress button span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--porcelain);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
}

.boutique-progress button em {
  font-size: 0.68rem;
}

.boutique-progress button[aria-current="step"] span {
  border-color: var(--wine);
  color: white;
  background: var(--wine);
}

.boutique-progress li.is-complete button {
  color: var(--sage-text);
  opacity: 1;
}

.boutique-progress li.is-complete button span {
  border-color: var(--sage);
  color: white;
  background: var(--sage);
  font-size: 0;
}

.boutique-progress li.is-complete button span::after {
  content: "✓";
  font-size: 0.68rem;
}

.mobile-progress-copy {
  display: none;
}

.boutique-step {
  display: flex;
  min-height: 33rem;
  flex-direction: column;
  scroll-margin-top: 1rem;
}

.boutique-step:focus-visible,
.boutique-review:focus-visible,
.generation-status:focus-visible {
  outline: none;
}

.boutique-step legend,
.boutique-step h3 {
  margin-block: 0.45rem 0.7rem;
  font-size: clamp(2.35rem, 3.6vw, 3.25rem);
  line-height: 1.01;
}

.step-intro {
  margin-bottom: 1.35rem;
}

.age-grid {
  gap: 0.65rem;
}

.age-card > span {
  min-height: 6.2rem;
  border-radius: var(--radius-small);
  background: #fcfaf6;
}

.theme-card-grid {
  gap: 0.75rem;
}

.theme-card-grid.is-single-option {
  max-width: 33rem;
  grid-template-columns: 1fr;
}

.theme-card {
  grid-template-rows: auto auto;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: #fcfaf6;
}

.theme-card__image {
  aspect-ratio: 4 / 3;
}

.theme-card__copy {
  min-height: 7.2rem;
  align-content: start;
  padding: 1rem 2.7rem 1rem 1rem;
}

.theme-card__check {
  right: 0.85rem;
  bottom: 0.85rem;
}

.page-plan-card {
  position: relative;
  display: grid;
  min-height: 12.5rem;
  grid-template-columns: 9.5rem 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfaf6;
}

.page-plan-card__count {
  display: grid;
  min-height: 9.5rem;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: var(--wine);
  text-align: center;
}

.page-plan-card__count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.page-plan-card__count small {
  max-width: 8ch;
  margin: 0.25rem auto 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-plan-card__copy {
  display: grid;
  gap: 0.45rem;
}

.page-plan-card__copy > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

.page-plan-card__copy > span:last-child {
  color: var(--ink-soft);
  line-height: 1.5;
}

.page-plan-select {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.4rem;
}

.page-plan-select select {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  color: var(--ink);
  background: var(--porcelain);
}

html.boutique-enhanced .page-plan-card.is-fixed .page-plan-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.print-grid {
  gap: 0.75rem;
}

.print-card {
  min-height: 0;
  grid-template-rows: 10.5rem auto;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: #fcfaf6;
}

.print-preview {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.print-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.print-preview em {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.3rem;
  color: white;
  background: rgb(33 29 26 / 76%);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-preview--quiet img {
  filter: grayscale(0.75) contrast(0.82) brightness(1.15);
  opacity: 0.82;
}

.print-card > span:nth-of-type(2) {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 3rem 1rem 1rem;
}

.choice-mark {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  background: var(--porcelain);
  font-size: 0.7rem;
}

.print-card:has(input:checked) .choice-mark {
  border-color: var(--wine);
  color: white;
  background: var(--wine);
}

.answer-card {
  min-height: 6.5rem;
  border-radius: var(--radius);
  background: #fcfaf6;
}

.answer-key-choice {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.answer-key-choice h3 {
  margin-bottom: 0.35rem;
}

.answer-key-choice .step-intro {
  margin: 0 0 0.8rem;
}

.step-actions {
  min-height: 4.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.field-error,
.step-nudge,
.share-status {
  min-height: 0;
}

.field-error:empty,
.step-nudge:empty,
.share-status:empty {
  display: none;
}

.boutique-review {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f8eee9;
}

.boutique-review h2,
.generation-status h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.form-actions {
  margin-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.generation-status {
  border-radius: var(--radius);
}

.atelier-controls:has(.generation-status:not([hidden])) .boutique-progress,
.atelier-controls:has(.generation-status:not([hidden])) .boutique-form {
  display: none;
}

.atelier-controls:has(.generation-status:not([hidden])) .generation-status {
  display: grid;
  min-height: 30rem;
  align-items: center;
  margin-top: 0;
}

.live-edit {
  max-height: calc(100svh - 2rem);
  padding: 1.15rem;
  overflow: auto;
  border-radius: var(--radius);
  box-shadow: 0 1rem 2.6rem rgb(43 31 24 / 8%);
}

.live-edit__topline > span {
  font-size: 0.7rem;
}

.book-stage {
  min-height: 21rem;
  border-radius: 0.75rem;
}

.cover-placeholder {
  height: 19rem;
}

.book-cover,
.cover-placeholder img,
.cover-placeholder__blank {
  width: min(55%, 13rem);
}

.book-cover {
  animation: none;
}

.book-cover.is-changing {
  animation: book-arrive 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edit-summary {
  padding-block: 1rem;
}

.edit-summary > p {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.curator-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgb(255 253 249 / 70%);
}

.curator-note > span {
  position: static;
  color: var(--gold);
  font-size: 1rem;
}

.curator-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curator-note p {
  font-family: inherit;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.theme-galleries {
  display: none;
}

.atelier-layout:has(.boutique-form.is-reviewing) .theme-galleries {
  display: block;
}

.theme-gallery img {
  height: 7.25rem;
  aspect-ratio: auto;
  border-radius: 0.25rem;
}

.studio-notes {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

@media (max-width: 74rem) {
  .atelier-layout {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 2.5rem;
  }

  .book-stage {
    min-height: 19rem;
  }

  .cover-placeholder {
    height: 17rem;
  }
}

@media (max-width: 58rem) {
  .hero-copy {
    max-width: 44rem;
  }

  .atelier-layout {
    grid-template-columns: 1fr;
  }

  .atelier-controls {
    grid-row: 1;
  }

  .live-edit {
    position: relative;
    top: auto;
    display: grid;
    max-height: none;
    grid-row: 2;
    grid-template-areas:
      "top top"
      "stage summary"
      "stage note";
    grid-template-columns: minmax(15rem, 0.8fr) 1fr;
    gap: 0 1.25rem;
    overflow: visible;
  }

  .live-edit__topline {
    grid-area: top;
  }

  .book-stage {
    grid-area: stage;
  }

  .edit-summary {
    grid-area: summary;
    align-self: end;
  }

  .curator-note {
    grid-area: note;
    align-self: start;
  }

  .theme-galleries,
  .atelier-layout:has(.boutique-form.is-reviewing) .theme-galleries {
    display: none;
  }
}

@media (max-width: 42rem) {
  .boutique-header,
  .boutique-hero,
  .atelier,
  .studio-notes,
  .boutique-footer {
    width: min(100% - 1rem, 88rem);
  }

  .boutique-header {
    min-height: 4.25rem;
  }

  .boutique-wordmark span {
    font-size: 1.05rem;
  }

  .header-link {
    max-width: 10rem;
    font-size: 0.7rem;
    text-align: right;
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-offer .boutique-button {
    white-space: normal;
  }

  .quiet-promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
    font-size: 0.7rem;
  }

  .quiet-promises li:last-child {
    grid-column: 1 / -1;
  }

  .atelier {
    width: calc(100% - 0.75rem);
    padding: 1.75rem 0.85rem 1.25rem;
    border-radius: 1rem;
  }

  .atelier-heading {
    gap: 0.9rem;
    padding-bottom: 1.5rem;
  }

  .atelier-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .atelier-heading > p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .atelier-layout {
    gap: 1.75rem;
    padding-top: 1.35rem;
  }

  .boutique-progress {
    margin-bottom: 1.45rem;
  }

  .boutique-progress button {
    min-height: 2.6rem;
    align-content: center;
  }

  .boutique-progress button span {
    width: 1.7rem;
    height: 1.7rem;
  }

  .boutique-progress button em {
    display: none;
  }

  .mobile-progress-copy {
    display: block;
    margin: 0.65rem 0 0;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 750;
  }

  .boutique-step {
    min-height: 0;
    scroll-margin-top: 0.75rem;
  }

  .boutique-step legend,
  .boutique-step h3 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .step-intro {
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .age-grid {
    gap: 0.45rem;
  }

  .age-card > span {
    min-height: 4.85rem;
  }

  .age-card strong {
    font-size: 1.65rem;
  }

  .theme-card-grid,
  html.boutique-enhanced .theme-card-grid,
  .print-grid {
    grid-template-columns: 1fr;
  }

  .theme-card-grid.is-single-option {
    max-width: none;
  }

  .theme-card {
    min-height: 7.8rem;
    grid-template-columns: 7.8rem 1fr;
    grid-template-rows: 1fr;
  }

  .theme-card__image {
    height: 100%;
    aspect-ratio: auto;
  }

  .theme-card__copy {
    min-height: 0;
    align-content: center;
    padding: 0.85rem 2.6rem 0.85rem 0.9rem;
  }

  .theme-card__copy strong {
    font-size: 1.15rem;
  }

  .theme-card__copy small {
    font-size: 0.72rem;
  }

  .page-plan-card {
    min-height: 0;
    grid-template-columns: 6.3rem 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .page-plan-card__count {
    min-height: 6.3rem;
  }

  .page-plan-card__count strong {
    font-size: 2.25rem;
  }

  .page-plan-card__copy > strong {
    font-size: 1.15rem;
  }

  .page-plan-card__copy > span:last-child {
    font-size: 0.75rem;
  }

  .print-card {
    min-height: 7.6rem;
    grid-template-columns: 7.8rem 1fr;
    grid-template-rows: 1fr;
  }

  .print-preview {
    height: 100%;
  }

  .print-card > span:nth-of-type(2) {
    align-content: center;
    padding-right: 2.7rem;
  }

  .print-preview em {
    display: none;
  }

  .answer-card {
    min-height: 6.5rem;
    padding: 1rem;
  }

  .step-actions {
    min-height: 0;
    margin-top: 1.2rem;
    padding-top: 0.9rem;
  }

  .step-actions > span {
    align-self: center;
    font-size: 0.72rem;
  }

  .live-edit {
    display: grid;
    grid-template-areas:
      "top top"
      "stage summary";
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem 0.9rem;
    padding: 0.9rem;
  }

  .live-edit__topline {
    align-items: flex-start;
  }

  .live-edit__topline > span {
    max-width: 8rem;
    font-size: 0.62rem;
    text-align: right;
  }

  .book-stage {
    min-height: 8.8rem;
    margin-top: 0;
  }

  .cover-placeholder {
    height: 8.8rem;
  }

  .book-cover,
  .cover-placeholder img,
  .cover-placeholder__blank {
    width: min(65%, 4.8rem);
    border-width: 0.16rem;
  }

  .cover-placeholder img {
    top: 1rem;
  }

  .cover-placeholder img:first-child {
    transform: translateX(-68%) rotate(-5deg);
  }

  .cover-placeholder img:last-child {
    transform: translateX(-32%) rotate(5deg);
  }

  .book-cover__title,
  .book-shadow {
    display: none;
  }

  .edit-summary {
    align-self: center;
    padding: 0;
    border: 0;
  }

  .edit-summary > p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
  }

  .edit-summary dl {
    gap: 0.45rem 0.7rem;
  }

  .edit-summary dt {
    font-size: 0.52rem;
  }

  .edit-summary dd {
    font-size: 0.68rem;
  }

  .curator-note {
    display: none;
  }

  .boutique-review {
    padding: 1.2rem;
  }

  .boutique-review dl {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .form-actions {
    padding: 1.1rem;
  }

  .generation-status .boutique-button {
    width: 100%;
  }

  .atelier-controls:has(.generation-status:not([hidden])) .generation-status {
    min-height: 28rem;
  }
}

/* v59: keep truthful product proof visible at the first conversion decision. */
.hero-product-proof {
  display: flex;
  align-items: flex-end;
  grid-column: 1 / -1;
  gap: 0.85rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: #faf7f1;
}

.hero-product-proof__books {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
}

.hero-product-proof__books img {
  width: 4.35rem;
  height: auto;
  min-height: 0;
  aspect-ratio: 0.773 / 1;
  border: 0.22rem solid white;
  border-radius: 0.2rem;
  object-fit: cover;
  box-shadow: 0 0.45rem 1rem rgb(33 29 26 / 18%);
  transform: rotate(-4deg);
}

.hero-product-proof__books img + img {
  margin-left: -1.25rem;
  transform: translateY(-0.25rem) rotate(5deg);
}

.hero-product-proof figcaption {
  display: grid;
  align-self: center;
  gap: 0.3rem;
  margin: 0;
  font-style: normal;
}

.hero-product-proof figcaption span {
  color: var(--ink);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-product-proof figcaption em {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

@media screen and (max-width: 42rem) {
  .hero-product-proof {
    align-items: center;
    padding: 0.65rem;
  }

  .hero-product-proof__books img {
    width: 3.9rem;
    border-width: 0.14rem;
  }

  .hero-product-proof__books img + img {
    margin-left: -0.85rem;
  }

  .hero-product-proof figcaption em {
    font-size: 0.65rem;
  }
}

/* v62: make the complete buyer value legible before the first commitment. */
.hero-offer .value-journey {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0.15rem 0;
  padding: 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
  counter-reset: value-step;
  list-style: none;
}

.hero-offer .value-journey li {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem 0.65rem;
  counter-increment: value-step;
}

.hero-offer .value-journey li + li {
  border-left: 1px solid var(--line);
}

.hero-offer .value-journey li::before {
  margin: 0 0 0.15rem;
  color: var(--wine);
  content: "0" counter(value-step);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-offer .value-journey strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.15;
}

.hero-offer .value-journey span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.35;
}

@media screen and (max-width: 42rem) {
  .hero-offer .value-journey {
    grid-template-columns: 1fr;
  }

  .hero-offer .value-journey li {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.2rem 0.35rem;
    padding: 0.65rem 0.35rem;
  }

  .hero-offer .value-journey li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-offer .value-journey li::before {
    grid-row: 1 / 3;
  }
}

/* v64: keep the active conversion action and its commitment in reach. */
.boutique-review:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 0.3rem;
}

/* v65: make customization—not editorial scenery—the first visual decision. */
.boutique-hero {
  grid-template-columns: minmax(21rem, 0.96fr) minmax(27rem, 1.04fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 3.5vw, 3.25rem);
}

.hero-copy h1 {
  max-width: 15ch;
  margin-block: 0.65rem 0.9rem;
  font-size: clamp(3rem, 4.7vw, 4.55rem);
  line-height: 0.97;
}

.hero-lede {
  max-width: 49ch;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

.hero-offer .value-journey li {
  padding-block: 0.55rem;
}

.hero-portrait img {
  height: clamp(20rem, 27vw, 24rem);
  min-height: 20rem;
}

.atelier-heading {
  padding-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
}

.atelier-layout {
  padding-top: clamp(1.7rem, 2.5vw, 2.3rem);
}

@media (max-width: 58rem) {
  .boutique-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-portrait {
    display: none;
  }
}

@media (max-width: 42rem) {
  .boutique-hero {
    gap: 1rem;
    padding-block: 1.5rem 2rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
    margin-block: 0.5rem 0.75rem;
    font-size: clamp(2.55rem, 12vw, 3.15rem);
  }

  .hero-lede {
    margin-bottom: 1rem;
  }

  .hero-offer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-offer .boutique-button {
    width: 100%;
  }

  .quiet-promises {
    margin-top: 0.85rem;
  }
}

@media screen and (max-width: 42rem) {
  html.boutique-enhanced .boutique-form:focus-within {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  }

  html.boutique-enhanced .boutique-form:focus-within :is(
    .boutique-step,
    .boutique-review,
    input,
    select,
    button
  ) {
    scroll-margin-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions,
  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions {
    position: fixed;
    z-index: 30;
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    left: 0.5rem;
    display: grid;
    min-height: 4.5rem;
    max-height: calc(100vh - 1rem - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.65rem;
    border: 1px solid rgb(104 38 48 / 28%);
    border-radius: 0.8rem;
    background: rgb(255 253 249 / 96%);
    box-shadow: 0 0.8rem 2.4rem rgb(43 31 24 / 20%);
    -webkit-backdrop-filter: blur(0.8rem);
    backdrop-filter: blur(0.8rem);
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions > span {
    color: var(--ink-soft);
    font-size: 0.7rem;
    line-height: 1.35;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions--commitment {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions--commitment > span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions--commitment .text-button {
    grid-column: 1;
    grid-row: 2;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions--commitment .boutique-button {
    grid-column: 2;
    grid-row: 2;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions .text-button {
    justify-self: start;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions .boutique-button,
  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .boutique-button {
    min-height: 2.75rem;
    padding-inline: 1rem;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions {
    min-height: 6.75rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .action-copy {
    display: block;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .action-copy > :not(.action-commitment) {
    display: none;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .action-commitment {
    margin: 0;
    font-size: 0.66rem;
    line-height: 1.35;
    text-align: center;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .action-buttons,
  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions .boutique-button {
    width: 100%;
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within {
    padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-width: 24rem) {
  html.boutique-enhanced .boutique-form:focus-within {
    padding-bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
  }

  html.boutique-enhanced .boutique-form.is-reviewing:focus-within {
    padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
  }

  html.boutique-enhanced .boutique-form:focus-within :is(
    .boutique-step,
    .boutique-review,
    input,
    select,
    button
  ) {
    scroll-margin-bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px));
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions > span {
    display: none;
  }

  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions .boutique-button {
    width: 100%;
    grid-column: 2;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
}

@media screen and (max-width: 42rem) and (forced-colors: active) {
  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions,
  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions {
    border: 2px solid ButtonText;
    background: Canvas;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media screen and (max-width: 42rem) and (prefers-reduced-transparency: reduce) {
  html.boutique-enhanced .boutique-form:focus-within .boutique-step:not([hidden]) .step-actions,
  html.boutique-enhanced .boutique-form.is-reviewing:focus-within .form-actions {
    background: var(--porcelain);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media screen and (min-width: 42.01rem) {
  html.boutique-enhanced .boutique-step .step-actions,
  html.boutique-enhanced .boutique-form .form-actions {
    position: static;
  }
}
