:root {
  --ink: #293d35;
  --muted: #6a776e;
  --sage: #e5ede5;
  --green: #66846b;
  --paper: #fcfcf9;
  --coral: #b94f44;
  --pink: #f6e6e3;
  --line: #d6ded5;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button svg,
a svg {
  flex-shrink: 0;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 5px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: #edc8c0;
  color: var(--ink);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: #fff;
  padding: 12px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  height: 84px;
  background: var(--sage);
  border-bottom: 1px solid #cad6c9;
  position: relative;
  z-index: 5;
}
.nav-inner {
  max-width: 1440px;
  padding: 0 64px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 600;
  white-space: nowrap;
}
.wordmark > svg {
  width: 32px;
  height: 32px;
  color: #d2a52f;
  fill: #f2c95c;
  stroke: #a87916;
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 2px #8e681c33);
}
.wordmark-dot {
  color: var(--coral);
}
.wordmark-english {
  font-size: 9px;
  font-weight: 400;
  border-left: 1px solid #b8c8b9;
  padding-left: 14px;
  margin-left: 8px;
  max-width: 60px;
  line-height: 1.55;
  white-space: normal;
}
.nav-inner nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
}
.nav-inner nav a {
  padding: 12px 0;
  position: relative;
}
.nav-inner nav a:after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--coral);
  transition: width 0.2s;
}
.nav-inner nav a:hover:after {
  width: 100%;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 18px;
}
.edition {
  font-size: 9px;
  color: #647566;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #293d350c;
}
.music-button {
  border: 1px solid #aebbaf;
}
.music-button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
[data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: white;
  padding: 7px 10px;
  border-radius: 3px;
  font: 11px var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 30;
}
[data-tooltip]:hover:after,
[data-tooltip]:focus-visible:after {
  opacity: 1;
}
.header-end [data-tooltip]:after {
  bottom: auto;
  top: calc(100% + 9px);
  left: auto;
  right: 0;
  transform: none;
}
.hero {
  position: relative;
  background: var(--sage);
  height: min(680px, calc(100svh - 148px));
  min-height: 510px;
  isolation: isolate;
  overflow: hidden;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  touch-action: pan-y;
}
.hero-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-scene.scene-fallback {
  background-image: url("assets/cake-fallback.png");
  background-repeat: no-repeat;
  background-size: auto 70%;
  background-position: calc(50% + min(23vw, 331px)) 55%;
}
.hero-scene.scene-fallback[data-state="out"] {
  background-image: url("assets/cake-fallback-out.png");
}
.hero-inner {
  height: 100%;
  max-width: 1440px;
  margin: auto;
  position: relative;
  padding: 0 96px;
  pointer-events: none;
}
.hero-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 52%;
  padding-bottom: 20px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.8;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 29px;
  color: #526a59;
  font-size: 9px;
}
.little-line {
  height: 1px;
  background: #7b947e;
  width: 27px;
}
.salutation {
  font-size: 14px;
  margin-bottom: 17px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 500;
  line-height: 1.27;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.hero h1 [data-age] {
  font-family: Georgia, serif;
  font-size: 85px;
  font-style: italic;
  line-height: 0.9;
}
.coral {
  color: var(--coral);
}
.hero-description {
  font-size: 13px;
  line-height: 2.1;
  color: #657168;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  pointer-events: auto;
}
.button {
  min-height: 49px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 13px;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button-dark {
  background: var(--ink);
  color: var(--paper);
}
.button-dark:hover {
  background: #41634e;
  transform: translateY(-2px);
}
.button svg {
  width: 18px;
  height: 18px;
}
.text-button {
  padding: 10px 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
}
.text-button:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}
.text-button svg {
  width: 16px;
  height: 16px;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6b7a6c;
  margin-top: 40px;
  font-size: 9px;
}
.hero-date time {
  font-variant-numeric: tabular-nums;
}
.date-line {
  width: 24px;
  height: 1px;
  background: #8da18d;
}
.birthday-stamp {
  position: absolute;
  right: 95px;
  top: 39px;
  border: 1px dashed #a3b29d;
  border-radius: 50%;
  width: 97px;
  height: 97px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(12deg);
  color: #6b806b;
}
.birthday-stamp span {
  font-size: 9px;
  line-height: 1.6;
}
.birthday-stamp strong {
  font:
    italic 37px Georgia,
    serif;
  line-height: 1.2;
}
.hero-handwriting {
  position: absolute;
  right: 142px;
  bottom: 33px;
  font:
    italic 27px Georgia,
    serif;
  color: var(--coral);
  transform: rotate(-7deg);
}
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 30px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.hero-scroll svg {
  width: 16px;
  height: 16px;
}
.hero-side-note {
  position: absolute;
  right: 30px;
  top: 46%;
  font-size: 8px;
  writing-mode: vertical-rl;
  color: #71816f;
}
.love-ribbon {
  border-top: 1px solid #b8c6b5;
  border-bottom: 1px solid var(--line);
  background: #f0f3e9;
  overflow: hidden;
}
.love-ribbon > div {
  max-width: 1248px;
  margin: auto;
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  font-size: 11px;
  white-space: nowrap;
}
.love-ribbon svg {
  width: 17px;
  height: 17px;
  color: var(--coral);
  fill: #b94f440b;
}
.section-inner {
  max-width: 1248px;
  margin: 0 auto;
  padding: 92px 48px;
}
.section-eyebrow {
  color: #7d8c7c;
  font-size: 9px;
  margin-bottom: 18px;
}
.section-inner h2 {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.55;
}
.section-description {
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
  margin-top: 16px;
}
.letter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  padding-top: 104px;
  padding-bottom: 108px;
}
.letter-intro {
  position: relative;
}
.letter-intro h2 {
  font-size: 37px;
  line-height: 1.6;
}
.with-love {
  display: block;
  font:
    italic 21px Georgia,
    serif;
  color: var(--coral);
  margin-top: 31px;
}
.letter-sparkle {
  position: absolute;
  right: 50px;
  bottom: 30px;
  width: 32px;
  height: 32px;
  color: #b1b789;
  transform: rotate(15deg);
}
.envelope {
  position: relative;
  background: transparent;
  width: 100%;
  height: 267px;
  transform: rotate(-4deg);
  padding: 0;
  transition: transform 0.35s;
  isolation: isolate;
}
.envelope:hover {
  transform: rotate(-1deg) translateY(-6px);
}
.envelope-paper {
  position: absolute;
  background: #fff;
  top: 0;
  left: 7%;
  width: 86%;
  height: 180px;
  box-shadow: 0 0 0 1px #e1e2d8;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  padding: 22px 22px;
  transform: rotate(3deg);
  font-size: 8px;
  color: #8d9185;
  transition: transform 0.35s;
  z-index: -1;
}
.envelope-paper span + span {
  font: 17px var(--serif);
  color: #586151;
}
.envelope:hover .envelope-paper {
  transform: translateY(-14px) rotate(1deg);
}
.envelope-body {
  position: absolute;
  top: 42px;
  left: 0;
  bottom: 0;
  right: 0;
  background: #f3f1e9;
  border: 1px solid #dddfd3;
  box-shadow: 0 16px 28px #3b4b3220;
}
.envelope-to {
  position: absolute;
  top: 28px;
  left: 31px;
  text-align: left;
  font-size: 8px;
  line-height: 2;
  color: #9a9b8b;
}
.envelope-to strong {
  font: 17px var(--serif);
  line-height: 2.2;
  color: var(--ink);
}
.postage {
  position: absolute;
  right: 27px;
  top: 21px;
  width: 58px;
  height: 69px;
  border: 1px dashed #b9beb0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  padding: 8px 5px;
  color: #879277;
}
.postage svg {
  width: 18px;
  height: 18px;
}
.postage > span {
  font:
    23px Georgia,
    serif;
}
.postage small {
  grid-column: 1/-1;
  font-size: 6px;
}
.envelope-fold {
  position: absolute;
  inset: 0;
  background: #e8e9de;
  clip-path: polygon(0 100%, 0 47%, 50% 79%, 100% 47%, 100% 100%);
}
.envelope-fold:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0efe5;
  clip-path: polygon(0 100%, 50% 60%, 100% 100%);
}
.wax-seal {
  position: absolute;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  left: calc(50% - 24px);
  top: 57%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b65148;
  color: #ebc4ae;
  border: 4px solid #ad4b43;
  box-shadow: 2px 3px 3px #723c2833;
  transform: rotate(-10deg);
}
.wax-seal svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.1;
}
.envelope-bottom {
  position: absolute;
  bottom: 17px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #7b8172;
}
.envelope-bottom svg {
  width: 15px;
  height: 15px;
}
.wishes-section {
  background: #eef1e9;
  border-top: 1px solid #e4e8dd;
  border-bottom: 1px solid #e4e8dd;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.wish-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b876f;
  font-size: 11px;
  white-space: nowrap;
  padding-bottom: 7px;
}
.wish-progress svg {
  width: 14px;
  height: 14px;
}
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}
.wish-card {
  height: 128px;
  position: relative;
  border: 1px solid #dce2d4;
  background: #f8f9f3;
  border-radius: 3px;
  text-align: left;
  perspective: 600px;
  padding: 0;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.3s;
}
.wish-card:hover {
  border-color: #9faa94;
  transform: translateY(-3px);
}
.wish-card:nth-child(6n + 2),
.wish-card:nth-child(6n + 6) {
  background: #f7ece5;
  border-color: #e8dcd1;
}
.wish-card:nth-child(6n + 3) {
  background: #eef0dc;
  border-color: #e0e3cb;
}
.wish-card:nth-child(6n + 4) {
  background: #e6eeee;
  border-color: #d5e2e1;
}
.wish-card:nth-child(6n + 5) {
  background: #f2e8ec;
  border-color: #e6d9df;
}
.wish-front,
.wish-back {
  position: absolute;
  inset: 0;
  padding: 17px 18px;
  backface-visibility: hidden;
  transition:
    transform 0.5s ease,
    opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wish-number {
  font:
    italic 17px Georgia,
    serif;
  color: #89917c;
}
.wish-front strong {
  font-size: 12px;
  font-weight: 400;
  padding-right: 17px;
  line-height: 1.8;
}
.wish-front > svg {
  position: absolute;
  right: 15px;
  top: 19px;
  width: 18px;
  height: 18px;
  color: #869478;
}
.wish-back {
  transform: rotateY(180deg);
  opacity: 0;
  font-size: 11px;
  line-height: 1.9;
  justify-content: center;
  padding: 21px 17px;
}
.wish-back.wish-back-photo {
  padding: 0;
  overflow: hidden;
}
.wish-back-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
}
.wish-back svg {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  color: #95a287;
}
.wish-card[aria-pressed="true"] {
  background: #fffdf8;
  border-color: #bccab4;
}
.wish-card[aria-pressed="true"] .wish-front {
  transform: rotateY(-180deg);
  opacity: 0;
}
.wish-card[aria-pressed="true"] .wish-back {
  transform: rotateY(0);
  opacity: 1;
}
.wishes-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  font-size: 10px;
  color: #7f8877;
}
.wishes-bottom .text-button {
  font-size: 11px;
}
.future-section {
  padding-top: 94px;
  padding-bottom: 76px;
}
.future-description {
  font-size: 12px;
  padding-bottom: 7px;
  margin-top: 0;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}
.plan {
  margin: 0;
  min-width: 0;
}
.plan-image-wrap {
  position: relative;
}
.plan-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #e6ece8;
  border-radius: 3px;
}
.plan-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.38;
  object-fit: cover;
  transition: transform 0.6s;
}
.plan-image-button:hover img {
  transform: scale(1.035);
}
.plan-save {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 36px;
  height: 36px;
  background: #fffffff0;
  color: #5d705e;
}
.plan-save:hover {
  background: white;
}
.plan-save[aria-pressed="true"] {
  color: var(--coral);
}
.plan-save[aria-pressed="true"] svg {
  fill: #b94f4422;
}
.plan figcaption {
  padding-top: 21px;
}
.plan-tag {
  font-size: 8px;
  color: #90998c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-tag:before {
  content: "";
  height: 1px;
  width: 19px;
  background: #a7b3a0;
}
.plan h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.6;
}
.plan-note {
  font-size: 11px;
  color: #7c8579;
  line-height: 1.9;
  margin-top: 6px;
}
.future-footnote {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #87907e;
  margin-top: 54px;
}
.future-footnote svg {
  width: 13px;
  height: 13px;
  color: var(--coral);
}
.closing-section {
  background: #f3e7e3;
  border-top: 1px solid #e8d8d1;
  border-bottom: 1px solid #e8d8d1;
  text-align: center;
  padding: 65px 24px 61px;
  position: relative;
}
.closing-inner {
  max-width: 620px;
  margin: auto;
}
.closing-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #a86a5d;
  margin-bottom: 24px;
}
.closing-mark span {
  font-size: 9px;
}
.closing-mark svg {
  width: 17px;
  height: 17px;
}
.closing-inner h2 {
  font: 500 40px/1.5 var(--serif);
}
.closing-inner > p {
  font-size: 12px;
  line-height: 2.15;
  color: #8a776d;
  margin-top: 17px;
}
.closing-inner .button {
  margin-top: 27px;
  min-width: 189px;
}
.closing-handwriting {
  display: block;
  font:
    italic 17px Georgia,
    serif;
  color: #b07d71;
  margin-top: 33px;
}
.site-footer {
  max-width: 1344px;
  padding: 28px 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #82907d;
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.footer-mark svg {
  width: 21px;
  height: 21px;
  color: #d2a52f;
  fill: #f2c95c;
  stroke: #a87916;
  stroke-width: 1.8;
  filter: drop-shadow(0 1px 1px #8e681c33);
}
.site-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer > span svg {
  width: 11px;
  height: 11px;
  color: var(--coral);
}
.site-footer time {
  font-variant-numeric: tabular-nums;
}
.site-footer > .icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}
