:root {
  color-scheme: only light;
  --bg: #f8f7f3;
  --ink: #263d39;
  --muted: #64716a;
  --green: #234e43;
  --border: #e1e5dc;
  --coral: #b8674b;
  --cream: #f0eee5;
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #b8674b;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  background: white;
  z-index: 20;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  padding: 12px;
}
.site-header {
  max-width: 1280px;
  margin: auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  color: var(--green);
  width: 46px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #c6d0c5;
  border-radius: 12px 12px 3px 12px;
  background: #eef0e5;
  transform: rotate(-5deg);
}
.brand-mark svg {
  width: 32px;
  height: 32px;
}
.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.4px;
}
.brand-subtitle {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d8972;
  margin-right: 7px;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid #cdd5ca;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 800;
  background: #fffefa;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  background: #eeefe7;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffefa;
}
.button.primary:hover:not(:disabled) {
  background: #163c32;
}
.button.small {
  font-size: 0.8rem;
  min-height: 44px;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
}
.intro {
  max-width: 1200px;
  padding: 58px 0 42px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 0.625rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 14px;
}
.intro .eyebrow span {
  color: var(--coral);
  padding-right: 5px;
  font-size: 1rem;
}
.intro h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 4.3vw, 4.2rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.intro h1 em {
  color: var(--coral);
  font-weight: 500;
}
.intro-copy {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.intro-aside {
  padding: 0 80px 0 0;
  text-align: center;
}
.handwritten {
  display: block;
  font:
    1.5rem/1.4 "Pacifico",
    cursive;
  color: #7d8c75;
  transform: rotate(-8deg);
}
.handwritten span {
  display: block;
  font:
    2.2rem/1.3 Georgia,
    serif;
}
.intro-aside p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}
.studio {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  margin: 0 auto;
  align-items: start;
  scroll-margin-top: 20px;
}
.editor-panel {
  min-width: 0;
  background: #fffefa;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 5px 20px #283c3410;
  overflow: clip;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 0;
  gap: 4px;
}
.steps button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0 0 14px;
  min-height: 66px;
  color: var(--muted);
}
.steps button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dfe3d8;
  border-radius: 50%;
  margin: 0 auto 7px;
  font-size: 0.65rem;
}
.steps button[aria-current="step"] {
  border-color: var(--green);
  color: var(--green);
}
.steps button[aria-current="step"] span {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.step-content {
  padding: 32px;
  min-height: 480px;
}
.step-panel h2 {
  font:
    500 1.65rem/1.3 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.step-panel h2:focus {
  outline: none;
}
.section-copy {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 26px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 14px;
  margin-bottom: 17px;
  background: white;
}
.search-field span {
  font:
    1.5rem/1 Georgia,
    serif;
}
.search-field input {
  border: 0;
  background: none;
  padding: 12px 0;
  min-width: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--ink);
}
.search-field:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.search-field input:focus {
  outline: none;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}
.filter-row button {
  border: 0;
  border-radius: 5px;
  padding: 8px 9px;
  min-height: 44px;
  background: transparent;
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--muted);
}
.filter-row button[aria-pressed="true"] {
  background: #edf0e7;
  color: var(--green);
}
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.occasion-tile {
  padding: 12px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  min-height: 83px;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 800;
  position: relative;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.occasion-tile .occasion-symbol {
  display: block;
  width: 29px;
  height: 29px;
  font:
    22px/29px Georgia,
    serif;
  color: var(--tile-ink);
  background: var(--tile-paper);
  border-radius: 50%;
  margin: 0 auto 6px;
}
.occasion-tile:hover,
.theme-tile:hover {
  border-color: #829a83;
}
.occasion-tile[aria-pressed="true"] {
  background: #f1f4eb;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.occasion-tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 0.65rem;
}
.step-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.step-footer .helper {
  margin: 0;
  font-size: 0.7rem;
}
.step-footer .button {
  font-size: 0.8rem;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.theme-tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 12px;
  text-align: left;
  font-size: 0.8rem;
}
.theme-tile[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.mini-card {
  aspect-ratio: 3/4;
  border-radius: 5px;
  background: var(--tile-paper);
  color: var(--tile-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.mini-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  border-radius: 80px 80px 5px 5px;
  opacity: 0.18;
}
.mini-card[data-style="party"] {
  background-image:
    radial-gradient(ellipse at 0 0, #e3a3bc55 0 26%, transparent 27%),
    radial-gradient(ellipse at 100% 100%, #97b5cc66 0 24%, transparent 25%);
}
.mini-card[data-style="celestial"] {
  background-image: radial-gradient(
    ellipse at 80% 0,
    #9d84b633,
    transparent 80%
  );
}
.mini-card[data-style="hearts"]::after {
  border-radius: 50% 50% 5px 5px;
}
.mini-card[data-style="letter"] {
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 23px,
    #b29e841a 23px 24px
  );
}
.mini-card .mini-symbol {
  font:
    1.8rem Georgia,
    serif;
}
.mini-card strong {
  font:
    500 1.25rem/1.3 "Playfair Display",
    serif;
}
.mini-card small {
  font-size: 0.55rem;
}
.design-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}
.design-check {
  opacity: 0;
}
.theme-tile[aria-pressed="true"] .design-check {
  opacity: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
}
.field span small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 5px;
}
.field input,
.field textarea,
.field select {
  min-width: 0;
  width: 100%;
  border: 1px solid #cdd5ca;
  border-radius: 7px;
  padding: 12px;
  min-height: 46px;
  font-size: 1rem;
  background: white;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  line-height: 1.7;
  resize: vertical;
}
.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.helper {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
  margin: 7px 0;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 10px 0;
  min-height: 44px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  text-underline-offset: 4px;
}
.text-button:hover {
  text-decoration: underline;
}
.toggle {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.82rem;
}
.toggle input {
  margin: 0;
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
fieldset {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.soft-box {
  background: #f5f4ed;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
}
.soft-box legend {
  width: 100%;
  max-width: 100%;
}
.soft-box .field {
  margin: 12px 0 0;
}
.picker-section {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 4px;
  margin-bottom: 24px;
}
.picker-section legend {
  width: 100%;
  max-width: 100%;
}
.palette-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  clear: both;
  padding: 2px 0 18px;
}
.palette-preset {
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 6px;
  background: white;
}
.palette-preset[aria-pressed="true"] {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.palette-preset span {
  height: 24px;
  width: 42px;
  display: block;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--swatch-paper) 65%,
    var(--swatch-ink) 65%
  );
}
.colour-fields {
  grid-template-columns: 1fr 1fr;
}
.colour-fields .field {
  margin-bottom: 5px;
}
.field input[type="color"] {
  padding: 5px;
  height: 46px;
  cursor: pointer;
}
.warning,
.fit-status {
  color: #973e2e;
  font-size: 0.8rem;
  line-height: 1.6;
}
.extras {
  border-block: 1px solid var(--border);
  margin-bottom: 20px;
}
.extras summary {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 17px 0;
  min-height: 48px;
}
.extras summary span {
  float: right;
}
.extras-content {
  padding: 0 0 18px;
}
.reset-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.reset-row .text-button {
  white-space: nowrap;
}
.reset-row .helper {
  font-size: 0.65rem;
}
.preview-block {
  position: sticky;
  top: 20px;
  min-width: 0;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
}
.preview-heading > div {
  display: flex;
  align-items: center;
}
.preview-heading h2 {
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.preview-heading .text-button {
  color: var(--muted);
  font-size: 0.75rem;
}
.preview-stage {
  background: #e9eddf;
  background-image: radial-gradient(#a1af951f 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  border-radius: 14px;
  padding: 28px 26px 15px;
  border: 1px solid #e0e5d5;
}
.preview-card-frame {
  border-radius: 16px;
  width: min(100%, 360px);
  margin: auto;
  box-shadow:
    0 20px 28px -18px #374c3966,
    0 3px 8px #374c3914;
}
iframe {
  display: block;
  width: 100%;
  aspect-ratio: 3/5;
  height: auto;
  border: 0;
  border-radius: 16px;
  background: #fff6e9;
}
.stage-caption {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  color: #68725e;
  margin: 16px 0 0;
}
.stage-caption span {
  color: #9b7854;
  padding-right: 3px;
}
.fit-status {
  margin: 10px 4px 0;
}
.fit-status:empty {
  display: none;
}
.full-message {
  font-size: 0.85rem;
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid #d5b8a9;
  border-radius: 8px;
}
.full-message summary {
  font-weight: 800;
  min-height: 30px;
}
.full-message div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.share-panel {
  padding: 22px 2px 0;
}
.share-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.share-heading h3 {
  font:
    500 1.25rem "Playfair Display",
    Georgia,
    serif;
  margin: 0;
}
.share-heading > span {
  color: var(--muted);
  font-size: 0.625rem;
}
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-actions .button {
  min-height: 48px;
}
.whatsapp {
  display: block;
  margin: 6px auto 0;
  font-size: 0.75rem;
}
.export-status {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--green);
  margin: 6px 0 0;
}
.export-status:empty {
  display: none;
}
.share-note {
  text-align: center;
  font-size: 0.65rem;
  margin: 2px 0 0;
}
.manual-link {
  margin-top: 12px;
}
.card-summary {
  margin: 25px 0;
  padding: 22px;
  background: #f4f3eb;
  border-radius: 8px;
}
.card-summary p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 0;
  overflow-wrap: anywhere;
}
.card-summary small {
  color: var(--muted);
}
.edit-shortcuts {
  display: flex;
  gap: 20px;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.privacy-note > span {
  font:
    2rem Georgia,
    serif;
  color: #9e9275;
}
.privacy-note p {
  margin: 0;
  font-size: 0.85rem;
}
.privacy-note small {
  color: var(--muted);
  font-size: 0.72rem;
  display: block;
  line-height: 1.7;
  margin-top: 8px;
}
.site-footer {
  max-width: 1200px;
  margin: 54px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.65rem;
}
.footer-wordmark {
  font:
    italic 0.9rem "Playfair Display",
    serif;
}
.noscript {
  padding: 30px;
  text-align: center;
}
/* Recipient presentation shares the same canvas dimensions and surrounding spacing. */
.viewer-page {
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 25%, #e8ecdf, var(--bg) 65%);
}
.viewer-header {
  max-width: 820px;
  border: 0;
  padding-bottom: 12px;
}
.viewer-wrap {
  width: min(100%, 526px);
  margin: 0 auto;
  padding: 18px 26px 38px;
}
.recipient-intro {
  text-align: center;
  margin-bottom: 24px;
}
.recipient-intro .eyebrow {
  margin-bottom: 12px;
}
.recipient-intro h1 {
  font:
    500 1.9rem/1.25 "Playfair Display",
    Georgia,
    serif;
  margin-bottom: 10px;
}
.recipient-intro p:not(.eyebrow) {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.viewer-wrap .preview-card-frame {
  margin-bottom: 24px;
}
.recipient-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.recipient-actions .button {
  font-size: 0.75rem;
  padding-inline: 13px;
}
.viewer-status {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.create-own {
  text-align: center;
  font-size: 0.75rem;
  margin: 28px 0 0;
}
.create-own a {
  text-underline-offset: 5px;
}
.error-state {
  background: #fffefa;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.error-state > span {
  font:
    3rem Georgia,
    serif;
  color: var(--coral);
}
.error-state h2 {
  font:
    500 1.6rem "Playfair Display",
    serif;
  margin: 20px 0 12px;
}
.error-state p {
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (min-width: 900px) and (max-height: 1000px) {
  .preview-card-frame {
    max-width: 310px;
  }
  .preview-stage {
    padding-top: 20px;
  }
  .viewer-wrap .preview-card-frame {
    max-width: 310px;
  }
}
@media (max-width: 1279px) {
  .intro,
  .studio,
  .site-footer {
    margin-inline: 32px;
  }
  .intro-aside {
    padding-right: 32px;
  }
  .studio {
    gap: 24px;
  }
  .step-content {
    padding: 26px;
  }
  .filter-row button {
    padding-inline: 6px;
  }
  .preview-stage {
    padding-inline: 20px;
  }
}
@media (max-width: 899px) {
  .site-header {
    padding: 18px 24px;
  }
  .header-note,
  .intro-aside {
    display: none;
  }
  .intro {
    padding: 34px 0 30px;
    margin-inline: 24px;
  }
  .intro h1 {
    font-size: 3rem;
  }
  .intro-copy {
    font-size: 0.85rem;
  }
  .studio {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 24px;
    gap: 20px;
  }
  .step-content {
    min-height: 0;
    padding: 28px;
  }
  .occasion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preview-block {
    display: none;
    position: static;
  }
  .studio[data-step="5"] .preview-block {
    display: block;
  }
  .step-footer {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: #fffefa;
    box-shadow: 0 -4px 16px #263d390b;
  }
  .site-footer {
    margin: 36px 24px 0;
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
  }
  .viewer-page .site-footer {
    padding-bottom: 24px;
  }
  .viewer-wrap {
    width: min(100%, 526px);
  }
}
@media (max-width: 500px) {
  .site-header {
    padding: 16px 18px;
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 36px;
    height: 40px;
    border-radius: 9px 9px 2px 9px;
  }
  .brand-mark svg {
    width: 27px;
    height: 27px;
  }
  .brand strong {
    font-size: 0.875rem;
  }
  .brand-subtitle {
    font-size: 0.46rem;
    letter-spacing: 1.4px;
  }
  .header-actions .button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.7rem;
    gap: 5px;
  }
  .intro {
    margin-inline: 20px;
    padding: 30px 0;
  }
  .intro h1 {
    font-size: 2.75rem;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
  }
  .intro .eyebrow {
    letter-spacing: 1.6px;
    font-size: 0.55rem;
  }
  .intro-copy {
    font-size: 0.8rem;
    line-height: 1.7;
  }
  .desktop-only {
    display: none;
  }
  .studio {
    margin-inline: 16px;
  }
  .steps {
    padding: 13px 8px 0;
    gap: 0;
  }
  .steps button {
    font-size: 0.56rem;
    min-height: 62px;
  }
  .steps button span {
    font-size: 0.6rem;
  }
  .step-content {
    padding: 24px 18px;
  }
  .step-panel h2 {
    font-size: 1.5rem;
  }
  .section-copy {
    font-size: 0.78rem;
    margin-bottom: 20px;
  }
  .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }
  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .occasion-tile {
    min-height: 78px;
    font-size: 0.75rem;
  }
  .filter-row {
    gap: 0;
  }
  .filter-row button {
    font-size: 0.6rem;
    padding-inline: 6px;
  }
  .design-grid {
    gap: 10px;
  }
  .theme-tile {
    padding: 9px;
  }
  .mini-card {
    padding-inline: 10px;
  }
  .mini-card strong {
    font-size: 1.1rem;
  }
  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .colour-fields {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .step-footer {
    padding-inline: 16px;
  }
  .step-footer .button {
    padding-inline: 12px;
    font-size: 0.75rem;
  }
  .step-footer .helper {
    font-size: 0.65rem;
  }
  .preview-stage {
    padding: 18px 0 15px;
    background: transparent;
    background-image: none;
    border: 0;
  }
  .preview-card-frame {
    width: 100%;
  }
  .preview-heading {
    padding-inline: 2px;
  }
  .preview-heading h2 {
    font-size: 0.625rem;
  }
  .share-panel {
    padding-top: 12px;
  }
  .share-heading > span {
    font-size: 0.55rem;
  }
  .share-heading h3 {
    font-size: 1.15rem;
  }
  .site-footer {
    margin-inline: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .viewer-wrap {
    padding: 18px 16px 30px;
  }
  .viewer-header .header-actions {
    display: none;
  }
  .recipient-intro h1 {
    font-size: 1.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .occasion-tile[aria-pressed="true"],
  .theme-tile[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}

/* A full-size spread on larger screens; one readable page on phones. */
.preview-card-frame.physical-frame {
  width: 100%;
  max-width: 680px !important;
}
iframe.is-physical {
  aspect-ratio: 1/1.05;
}
@media (max-width: 500px) {
  iframe.is-physical {
    aspect-ratio: 3/5;
  }
}

.viewer-wrap.physical-viewer {
  width: min(100%, 732px);
}
/* Keep intrinsic text/control sizes from escaping their layout tracks. */
.site-header {
  flex-wrap: wrap;
}
.brand,
.header-actions,
.steps button,
.step-panel,
.field > *,
.toggle > span {
  min-width: 0;
  max-width: 100%;
}
.button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.steps button,
h1,
h2,
.brand-subtitle {
  overflow-wrap: anywhere;
}
.reset-row {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.reset-row .helper {
  flex: 1 1 180px;
}
@media (max-width: 899px) {
  html {
    scroll-padding-bottom: calc(var(--studio-footer-height, 80px) + 16px);
  }
  .step-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.7fr);
    align-items: center;
    bottom: var(--keyboard-inset, 0px);
  }
  .step-footer .helper {
    grid-column: 2;
    text-align: center;
  }
  .step-footer #backStep {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .step-footer #nextStep {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .site-footer {
    padding-bottom: calc(var(--studio-footer-height, 80px) + 24px);
  }
  .viewer-page .site-footer {
    padding-bottom: 24px;
  }
}
.filter-row button {
  min-width: 44px;
}
button {
  overflow-wrap: anywhere;
}

.cinematic-effects {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}
.cinematic-effects canvas {
  display: block;
  width: 100%;
  height: 100%;
}
