@font-face {
  font-family: "Sloop Script Pro";
  src: url("/assets/fonts/003e82bf2f68067801da6a72d24cdf78.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/f8379cdb66878cb9f02f8bacbc3fdb36.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/6fc478d8454592749e30c793e7f90f81.woff") format("woff");
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/677a5a6175ed03ad71aa851acdcefee6.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "The Seasons";
  src: url("/assets/fonts/694ad324e926bca090d158ea2c4730c6.woff") format("woff");
  font-weight: 300;
}

@font-face {
  font-family: "The Seasons";
  src: url("/assets/fonts/8dcc63e6bd4f6d41561f68dbc75529a1.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "The Seasons";
  src: url("/assets/fonts/f9026ee74bca9e958959f14f08c41f48.woff") format("woff");
  font-style: italic;
  font-weight: 400;
}

:root {
  --paper: #dfdad6;
  --ink: #442f29;
  --mocha: #66371b;
  --red: #ae3927;
  --panel: #f6f1ec;
  --line: rgba(68, 47, 41, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #fffaf5;
  color: var(--ink);
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
}

button:hover {
  background: #efe4da;
}

.site-shell {
  min-height: 100vh;
  padding: 0;
  background: var(--paper);
  overflow-x: hidden;
}

.site-shell.page-envelope {
  min-height: 100vh;
  display: block;
  background: #eee9e3;
  padding: 0;
}

.stage-wrap {
  width: min(100vw, 1366px);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: none;
}

.stage-wrap[data-page="envelope"] {
  max-width: none;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.18);
}

.stage-wrap.editor-canvas {
  width: min(100%, 760px);
  margin: 0;
  box-shadow: 0 16px 38px rgba(42, 27, 18, 0.24);
}

.stage {
  position: relative;
  background: var(--paper);
  transform-origin: top left;
  overflow: hidden;
}

.layer {
  position: absolute;
  transform-origin: center center;
  white-space: pre-line;
  user-select: none;
  animation: layer-rise 850ms cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.layer.text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer.text.long-text {
  align-items: flex-start;
}

.layer.image img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.layer.shape {
  background-size: cover;
  background-position: center;
}

.layer.widget {
  display: flex;
}

.layer.diamond {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.is-link {
  cursor: pointer;
}

.page-brand {
  width: min(100vw, 1366px);
  margin: 12px auto 0;
  text-align: center;
  color: rgba(68, 47, 41, 0.72);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.page-envelope .page-brand {
  width: auto;
  color: rgba(247, 241, 225, 0.76);
}

.rsvp-card {
  width: 100%;
  min-height: 100%;
  padding: 44px 62px 52px;
  background: rgba(247, 241, 225, 0.86);
  border: 1px solid rgba(68, 47, 41, 0.18);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 22px 45px rgba(68, 47, 41, 0.12);
}

.rsvp-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68, 47, 41, 0.3);
  border-radius: 50%;
  font-family: "Sloop Script Pro", cursive;
  font-size: 48px;
  color: var(--mocha);
}

.rsvp-card h2 {
  margin: 0;
  font-family: "The Seasons", serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 0.95;
  text-align: center;
}

.rsvp-card p {
  max-width: 430px;
  margin: 18px auto 28px;
  font-family: "The Seasons", serif;
  font-size: 25px;
  line-height: 1.35;
  text-align: center;
}

.rsvp-card form {
  display: grid;
  gap: 20px;
}

.rsvp-card label,
.rsvp-card fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.rsvp-card label span,
.rsvp-card legend {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.rsvp-card input,
.rsvp-card textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(68, 47, 41, 0.36);
  background: transparent;
  color: var(--ink);
  padding: 13px 2px;
  font-size: 18px;
}

.rsvp-card textarea {
  min-height: 118px;
  resize: vertical;
}

.rsvp-card .choice {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 12px;
}

.rsvp-card .choice input {
  width: 16px;
  height: 16px;
}

.rsvp-card button {
  justify-self: center;
  min-width: 220px;
  margin-top: 18px;
  border-color: rgba(68, 47, 41, 0.38);
  background: var(--ink);
  color: #f7f1e1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.details-replica {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.details-hero {
  min-height: clamp(330px, 26vw, 355px);
  position: relative;
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(75, 70, 64, 0.24), rgba(75, 70, 64, 0.24)), var(--details-hero);
  background-size: cover;
  background-position: center 48%;
}

.details-back {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  color: #f7f1e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-decoration: none;
  text-transform: uppercase;
}

.details-title {
  margin: 150px 0 0;
  color: #f7f1e1;
  font-family: "The Seasons", serif;
  font-size: clamp(86px, 8.8vw, 116px);
  font-weight: 300;
  line-height: 0.9;
  text-align: center;
}

.details-title span {
  font-style: italic;
  font-weight: 400;
}

.details-body {
  min-height: calc(100vh - clamp(330px, 26vw, 355px));
  padding: 106px 24px 120px;
  background-color: #ede9e4;
  background-image: var(--details-paper);
  background-size: cover;
  background-position: center top;
  text-align: center;
}

.details-main-heading {
  margin: 0 0 70px;
  font-family: "The Seasons", serif;
  font-size: clamp(76px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 0.78;
  white-space: pre-line;
}

.details-block {
  margin: 0 auto 68px;
  max-width: 680px;
}

.details-label {
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.details-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1.1px;
  line-height: 1.13;
  text-transform: uppercase;
  white-space: pre-line;
}

.details-footer-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .details-hero {
    min-height: 335px;
  }

  .details-back {
    top: 48px;
    font-size: 11px;
  }

  .details-title {
    max-width: 430px;
    margin-top: 72px;
    font-size: 99px;
    line-height: 0.88;
  }

  .details-title span {
    display: block;
    font-size: 112px;
    margin-top: 12px;
  }

  .details-body {
    padding: 86px 22px 110px;
    min-height: auto;
  }

  .details-main-heading {
    margin-bottom: 64px;
    font-size: 78px;
    line-height: 0.9;
  }

  .details-label {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .details-value {
    font-size: 24px;
    line-height: 1.16;
  }

  .details-block {
    margin-bottom: 66px;
  }
}

.details-replica + .page-brand {
  display: none;
}

.envelope-replica {
  min-height: 100svh;
  overflow: hidden;
  background-color: #eee9e3;
  background-image: var(--envelope-paper);
  background-size: cover;
  background-position: center center;
  color: var(--ink);
}

.envelope-entry {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(220px, 24vh, 240px) 20px 80px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.envelope-lead {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 5px;
  line-height: 1.25;
  text-transform: uppercase;
}

.envelope-entry h1 {
  margin: 0 0 34px;
  font-family: "The Seasons", serif;
  font-size: clamp(54px, 5.7vw, 70px);
  font-weight: 300;
  line-height: 0.98;
}

.envelope-stack {
  position: relative;
  width: min(456px, 66vw);
  aspect-ratio: 483 / 316;
  margin: 0 auto 38px;
  animation: layer-rise 850ms cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.envelope-stack img {
  display: block;
  user-select: none;
  pointer-events: none;
}

.envelope-front {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 9px rgba(40, 28, 22, 0.22));
}

.envelope-flower-left {
  position: absolute;
  z-index: 1;
  width: 36%;
  left: -15%;
  top: 29%;
}

.envelope-stem-right {
  position: absolute;
  z-index: 2;
  width: 16%;
  right: -10%;
  top: 38%;
  transform: rotate(-4deg);
}

.envelope-seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 52%;
  width: 18%;
  transform: translate(-50%, -50%);
}

.envelope-seal img {
  width: 100%;
  height: auto;
}

.envelope-seal span {
  position: absolute;
  left: 50%;
  color: #3a270e;
  font-family: "Sloop Script Pro", cursive;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 0.75;
  transform: translateX(-50%);
}

.envelope-seal .seal-e {
  top: 31%;
  margin-left: -3%;
}

.envelope-seal .seal-g {
  top: 46%;
  margin-left: 9%;
}

.envelope-open-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.envelope-entry:hover .envelope-stack {
  transform: translateY(-4px);
}

.page-envelope .page-brand,
.envelope-replica + .page-brand {
  display: none;
}

@media (max-width: 700px) {
  .envelope-replica {
    background-position: center center;
  }

  .envelope-entry {
    padding: 250px 22px 70px;
  }

  .envelope-lead {
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 2.1px;
  }

  .envelope-entry h1 {
    max-width: 360px;
    margin-bottom: 20px;
    font-size: 58px;
    line-height: 1.1;
  }

  .envelope-stack {
    width: min(365px, 92vw);
    margin-bottom: 36px;
  }

  .envelope-open-text {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .envelope-seal span {
    font-size: 20px;
  }
}

.rsvp-replica {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.rsvp-hero {
  min-height: clamp(236px, 26vw, 334px);
  position: relative;
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(75, 70, 64, 0.24), rgba(75, 70, 64, 0.24)), var(--rsvp-hero);
  background-size: cover;
  background-position: center 48%;
}

.rsvp-back {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  color: #f7f1e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-decoration: none;
  text-transform: uppercase;
}

.rsvp-hero h1 {
  margin: 92px 0 0;
  color: #f7f1e1;
  font-family: "The Seasons", serif;
  font-size: clamp(96px, 8.8vw, 118px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
}

.rsvp-body-replica {
  padding: 106px 20px 84px;
  background: var(--paper);
  text-align: center;
}

.rsvp-intro-replica {
  max-width: 720px;
  margin: 0 auto;
}

.rsvp-intro-replica h2 {
  margin: 0 auto 42px;
  font-family: "The Seasons", serif;
  font-size: clamp(58px, 6.4vw, 82px);
  font-weight: 300;
  line-height: 0.96;
  white-space: pre-line;
}

.rsvp-date-line {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.rsvp-intro-replica p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.rsvp-heart {
  margin: 86px auto 68px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.rsvp-target-form {
  width: min(100%, 626px);
  margin: 0 auto;
  padding: 28px 36px 34px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  text-align: left;
}

.rsvp-field,
.rsvp-choice-group {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
  border: 0;
  padding: 0;
}

.rsvp-field span,
.rsvp-choice-group legend {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.rsvp-field input,
.rsvp-field textarea {
  width: 100%;
  border: 2px solid rgba(68, 47, 41, 0.55);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 8px 12px;
}

.rsvp-field textarea {
  min-height: 86px;
  resize: vertical;
}

.rsvp-choice-group button {
  width: 100%;
  min-height: 55px;
  border: 0;
  border-radius: 11px;
  background: #cdc3bf;
  color: rgba(68, 47, 41, 0.82);
  padding: 0 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}

.rsvp-submit {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 999px;
  background: #d4cabe;
  color: rgba(68, 47, 41, 0.86);
  font-weight: 700;
  text-align: center;
}

.rsvp-load-note {
  margin-top: 10px;
  text-align: center;
  color: rgba(68, 47, 41, 0.48);
  font-size: 10px;
}

.rsvp-heart-bottom {
  margin: 82px auto 62px;
}

.rsvp-note-replica {
  max-width: 620px;
  margin: 0 auto 80px;
}

.rsvp-note-replica h3 {
  margin: 0 0 34px;
  font-family: "The Seasons", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 0.96;
  white-space: pre-line;
}

.rsvp-note-replica p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-line;
}

.rsvp-footer-art {
  display: block;
  width: min(170px, 42vw);
  margin: 0 auto 26px;
  opacity: 0.82;
}

.rsvp-with-love {
  margin-bottom: 26px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.rsvp-couple {
  font-family: "The Seasons", serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 700px) {
  .rsvp-hero {
    min-height: 236px;
  }

  .rsvp-back {
    top: 42px;
    font-size: 10px;
  }

  .rsvp-hero h1 {
    margin-top: 70px;
    font-size: 100px;
  }

  .rsvp-body-replica {
    padding: 94px 18px 74px;
  }

  .rsvp-intro-replica h2 {
    margin-bottom: 38px;
    font-size: 64px;
    line-height: 1.08;
  }

  .rsvp-date-line {
    font-size: 15px;
    letter-spacing: 3.5px;
    line-height: 1.35;
  }

  .rsvp-intro-replica p {
    font-size: 14px;
  }

  .rsvp-heart {
    margin: 72px auto 52px;
    font-size: 24px;
  }

  .rsvp-target-form {
    padding: 18px 18px 26px;
    border-width: 3px;
    border-radius: 18px;
  }

  .rsvp-field,
  .rsvp-choice-group {
    gap: 9px;
    margin-bottom: 24px;
  }

  .rsvp-field span,
  .rsvp-choice-group legend,
  .rsvp-choice-group button {
    font-size: 12px;
  }

  .rsvp-field input {
    min-height: 31px;
    border-radius: 8px;
  }

  .rsvp-field textarea {
    min-height: 58px;
    border-radius: 8px;
  }

  .rsvp-choice-group button {
    min-height: 38px;
    border-radius: 8px;
  }

  .rsvp-submit {
    min-height: 36px;
    font-size: 12px;
  }

  .rsvp-note-replica h3 {
    font-size: 30px;
  }

  .rsvp-note-replica p {
    font-size: 13px;
  }
}

.rsvp-replica + .page-brand {
  display: none;
}

.love-story-replica {
  min-height: 100vh;
  overflow-x: hidden;
  background: #2d1e19;
  color: #dfd8d4;
  text-align: center;
}

.love-story-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 150px 20px 250px;
}

.love-collage {
  position: relative;
  width: min(820px, 68vw);
  aspect-ratio: 820 / 965;
  margin: 0 auto;
}

.love-img,
.love-photo,
.love-seal-frame,
.love-footer-art {
  display: block;
  user-select: none;
  pointer-events: none;
}

.love-img {
  position: absolute;
  height: auto;
}

.love-photo {
  position: absolute;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.love-img.bouquet {
  z-index: 1;
  top: 0;
  left: 34.5%;
  width: 45.5%;
}

.love-img.left-polaroid {
  z-index: 2;
  top: 13.7%;
  left: 8.5%;
  width: 47.1%;
}

.love-img.eucalyptus {
  z-index: 3;
  top: 37%;
  left: 6.5%;
  width: 9.9%;
}

.love-img.right-flowers {
  z-index: 3;
  top: 39.8%;
  right: 0;
  width: 29.2%;
}

.love-img.right-polaroid {
  z-index: 4;
  top: 19.1%;
  left: 47.6%;
  width: 46.3%;
}

.love-photo.left-photo {
  z-index: 5;
  top: 16.65%;
  left: 13.05%;
  width: 38%;
  aspect-ratio: 1 / 1;
}

.love-photo.right-photo {
  z-index: 5;
  top: 21.77%;
  left: 52.41%;
  width: 36.75%;
  aspect-ratio: 1 / 1;
}

.love-img.doily-photo {
  z-index: 6;
  top: 43.8%;
  left: 26%;
  width: 53.4%;
}

.love-photo.front-photo {
  z-index: 7;
  top: 52.2%;
  left: 34.2%;
  width: 37%;
  aspect-ratio: 1.48 / 1;
  object-position: center 24%;
}

.love-img.ribbon {
  z-index: 8;
  top: 73.5%;
  left: 18.3%;
  width: 68.2%;
}

.love-seal {
  position: relative;
  width: 74px;
  margin: 118px auto 58px;
}

.love-seal-frame {
  width: 100%;
  height: auto;
}

.seal-initial {
  position: absolute;
  left: 50%;
  color: #442f29;
  font-family: "Sloop Script Pro", cursive;
  font-size: 35px;
  line-height: 0.75;
  transform: translateX(-50%);
}

.seal-e {
  top: 27px;
  margin-left: -3px;
}

.seal-g {
  top: 39px;
  margin-left: 7px;
}

.love-copy h1 {
  margin: 0 auto 70px;
  color: #dfd8d4;
  font-family: "The Seasons", serif;
  font-size: clamp(58px, 6.5vw, 82px);
  font-weight: 300;
  line-height: 1.01;
}

.love-copy h1 span,
.love-copy h1 em {
  display: block;
}

.love-copy h1 em {
  font-style: italic;
  font-weight: 400;
}

.love-paragraphs {
  width: min(100%, 560px);
  margin: 0 auto;
}

.love-paragraphs p {
  margin: 0 0 35px;
  color: rgba(223, 216, 212, 0.82);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.32;
}

.love-footer-art {
  width: 170px;
  margin: 165px auto 46px;
  opacity: 0.82;
}

.love-with {
  margin-bottom: 33px;
  color: rgba(223, 216, 212, 0.86);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.love-couple {
  margin: 0 auto 84px;
  color: #dfd8d4;
  font-family: "The Seasons", serif;
  font-size: clamp(52px, 5.9vw, 76px);
  font-weight: 300;
  line-height: 1.1;
}

.love-back {
  color: #dfd8d4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
}

.love-story-replica + .page-brand {
  display: none;
}

@media (max-width: 700px) {
  .love-story-inner {
    padding: 384px 18px 310px;
  }

  .love-collage {
    width: min(430px, 96vw);
    aspect-ratio: 430 / 510;
  }

  .love-seal {
    width: 70px;
    margin: 96px auto 54px;
  }

  .seal-initial {
    font-size: 32px;
  }

  .seal-e {
    top: 26px;
  }

  .seal-g {
    top: 38px;
  }

  .love-copy h1 {
    margin-bottom: 62px;
    font-size: 63px;
    line-height: 1.04;
  }

  .love-paragraphs {
    max-width: 440px;
  }

  .love-paragraphs p {
    margin-bottom: 31px;
    font-size: 17px;
    line-height: 1.28;
  }

  .love-footer-art {
    width: 150px;
    margin: 108px auto 30px;
  }

  .love-with {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .love-couple {
    max-width: 360px;
    margin-bottom: 56px;
    font-size: 56px;
    line-height: 1.15;
  }
}

.editor-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  background: #eadfd7;
}

.editor-panel {
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.editor-panel h1 {
  margin: 0 0 14px;
  font-family: "The Seasons", serif;
  font-size: 36px;
  font-weight: 300;
}

.editor-topbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.page-tab {
  min-height: 34px;
  border-color: transparent;
  background: rgba(255, 250, 245, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.page-tab.active {
  border-color: var(--mocha);
  background: var(--ink);
  color: #fffaf5;
}

.editor-panel h2 {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.editor-actions,
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.save-status {
  margin: 10px 0 2px;
  min-height: 22px;
  color: rgba(68, 47, 41, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.save-status[data-state="dirty"] {
  color: var(--red);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf5;
  color: var(--ink);
  padding: 9px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.editor-subpanel {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.54);
}

.style-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.layer-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.layer-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: rgba(255, 250, 245, 0.72);
  padding: 8px;
  text-align: left;
}

.layer-row.active {
  border-color: var(--mocha);
  background: #fffaf5;
}

.layer-chip {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
}

.canvas-area {
  height: 100vh;
  overflow: auto;
  padding: 28px;
}

.replica-editor-preview {
  width: min(100%, 760px);
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(42, 27, 18, 0.24);
}

.replica-editor-preview .details-replica,
.replica-editor-preview .rsvp-replica,
.replica-editor-preview .love-story-replica {
  min-height: 100vh;
}

.editor-canvas .layer {
  outline: 1px solid transparent;
}

.editor-canvas .layer:hover {
  outline-color: rgba(174, 57, 39, 0.45);
}

.editor-canvas .layer.selected {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.notice {
  margin-top: 14px;
  color: rgba(68, 47, 41, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes layer-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985) rotate(var(--rot, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rot, 0deg));
  }
}

@media (max-width: 800px) {
  .site-shell {
    padding: 0;
  }

  .site-shell.page-envelope {
    padding: 0;
  }

  .stage-wrap,
  .page-brand {
    width: 100vw;
    box-shadow: none;
  }

  .editor-shell {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .canvas-area {
    height: auto;
    padding: 12px;
  }
}
