@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");

:root {
  --paper: #fffdfb;
  --cream: #fdf0e6;
  --blush: #ffebeb;
  --pink: #f5a3a1;
  --rose: #d98880;
  --brown: #5a3d31;
  --soft-brown: #8c7665;
  --kraft: #ead3c3;
  --line: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --clay-shadow:
    0 8px 32px rgba(245, 163, 161, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --clay-shadow-deep:
    0 18px 52px rgba(245, 163, 161, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --shadow: var(--clay-shadow-deep);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 30%, #ffebeb 0%, #fdf0e6 50%, #f5d3d1 100%);
  color: var(--brown);
  font-family:
    "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  line-height: 1.7;
}

html.lang-zh .en-text,
body.lang-zh .en-text,
html.lang-en .zh-text,
body.lang-en .zh-text {
  display: none;
}

html.lang-en,
body.lang-en {
  font-family:
    "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  padding: 4px 6px 4px 2px;
  color: #4a3525;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(74, 53, 37, 0.08);
  filter: drop-shadow(0 8px 18px rgba(74, 53, 37, 0.08));
}

.brand-title {
  font-size: 18px;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 27px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(107, 74, 66, 0.12);
  border-radius: 7px;
  background:
    linear-gradient(31deg, transparent 48.5%, rgba(107, 74, 66, 0.14) 49.5%, transparent 51%),
    linear-gradient(-31deg, transparent 48.5%, rgba(107, 74, 66, 0.12) 49.5%, transparent 51%),
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.86), transparent 1.6rem),
    linear-gradient(145deg, #fff8ee 0%, #f3dfcf 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -9px 16px rgba(205, 169, 143, 0.22),
    0 9px 16px rgba(74, 53, 37, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}

.brand-mark::before {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 11px;
  height: 11px;
  background: linear-gradient(145deg, #ffb0b5, #ef7f8f);
  border-radius: 3px 3px 0 3px;
  transform: translate(-50%, -18%) rotate(45deg);
  box-shadow:
    -4px -1px 0 #ef7f8f,
    1px -4px 0 #ffb0b5,
    0 3px 7px rgba(178, 88, 99, 0.24),
    inset 1px 1px 2px rgba(255, 255, 255, 0.46);
}

.brand-mark::after {
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 15px;
  z-index: 1;
  background:
    linear-gradient(142deg, transparent 48%, rgba(107, 74, 66, 0.13) 49%, transparent 51%),
    linear-gradient(218deg, transparent 48%, rgba(107, 74, 66, 0.13) 49%, transparent 51%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(226, 195, 171, 0.3));
}

.nav-links {
  gap: clamp(14px, 2.3vw, 30px);
  color: var(--soft-brown);
  font-size: 15px;
  font-weight: 600;
}

.language-toggle {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #8c7665;
  cursor: pointer;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 0;
  transition: color 180ms ease, border-color 180ms ease;
}

.language-toggle:hover {
  border-color: var(--pink);
  color: var(--brown);
}

.nav-links a,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.site-footer a:hover {
  border-color: var(--rose);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.15);
  backdrop-filter: blur(12px);
}

.opening {
  --opening-progress: 0;
  --flap-angle: 0deg;
  --letter-left: 7%;
  --letter-bottom: 3%;
  --letter-width: 86%;
  --letter-height: 94%;
  --letter-y: 28%;
  --letter-bottom-clip: 46.28%;
  --letter-opacity: 0.04;
  --letter-scale: 0.72;
  --letter-z: 28px;
  --letter-rotate-x: 0deg;
  --letter-rotate-z: 0deg;
  --letter-shadow-opacity: 0.2;
  --scene-rotate-x: 7deg;
  --scene-rotate-y: -2.5deg;
  --scene-lift: 6px;
  --light-y: 0px;
  --shine-opacity: 0.38;
  --seal-opacity: 1;
  --opening-header-offset: 0px;
  position: relative;
  min-height: calc(100vh - var(--opening-header-offset));
  min-height: calc(100svh - var(--opening-header-offset));
  padding: 0;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 17%, rgba(255, 255, 255, 0.86) 0 11%, transparent 30%),
    radial-gradient(circle at 24% 30%, rgba(255, 207, 217, 0.64), transparent 32%),
    radial-gradient(circle at 76% 22%, rgba(255, 242, 224, 0.76), transparent 30%),
    linear-gradient(180deg, #fff7f7 0%, #fde7e9 52%, #fdf0e6 100%);
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.36), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.52), transparent 34%);
  opacity: 0.78;
}

.opening-scroll-space {
  position: relative;
  min-height: calc(100vh - var(--opening-header-offset));
  min-height: calc(100svh - var(--opening-header-offset));
}

.opening-sticky-scene {
  position: sticky;
  top: var(--opening-header-offset);
  z-index: 1;
  display: grid;
  min-height: calc(100vh - var(--opening-header-offset));
  min-height: calc(100svh - var(--opening-header-offset));
  align-content: center;
  justify-items: center;
  gap: clamp(18px, 3.6vw, 32px);
  padding: clamp(58px, 8vw, 104px) 20px clamp(42px, 7vw, 82px);
  overflow: hidden;
}

.opening-atmosphere,
.opening-light,
.opening-dust {
  position: absolute;
  pointer-events: none;
}

.opening-atmosphere {
  inset: 0;
  z-index: 0;
}

.opening-light {
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.58;
  transform: translate3d(0, var(--light-y), 0);
}

.opening-light-a {
  left: 16%;
  top: 18%;
  width: clamp(110px, 16vw, 220px);
  height: clamp(110px, 16vw, 220px);
  background: radial-gradient(circle, rgba(255, 180, 197, 0.46), transparent 68%);
}

.opening-light-b {
  right: 13%;
  top: 22%;
  width: clamp(96px, 14vw, 190px);
  height: clamp(96px, 14vw, 190px);
  background: radial-gradient(circle, rgba(255, 238, 211, 0.72), transparent 68%);
}

.opening-light-c {
  left: 50%;
  bottom: 14%;
  width: clamp(150px, 24vw, 320px);
  height: clamp(70px, 11vw, 150px);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.72), transparent 70%);
  transform: translateX(-50%);
}

.opening-dust {
  --dust-scale: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    18px 28px 0 rgba(245, 163, 161, 0.28),
    -26px 46px 0 rgba(255, 255, 255, 0.62),
    42px -18px 0 rgba(245, 163, 161, 0.18);
  animation: softDust 6s ease-in-out infinite;
  transform: scale(var(--dust-scale));
}

.opening-dust-a {
  left: 18%;
  top: 32%;
}

.opening-dust-b {
  right: 21%;
  top: 42%;
  animation-delay: -1.8s;
  --dust-scale: 0.82;
}

.opening-dust-c {
  left: 62%;
  bottom: 22%;
  animation-delay: -3.2s;
  --dust-scale: 0.68;
}

.envelope-3d {
  position: relative;
  z-index: 2;
  width: clamp(320px, 58vw, 640px);
  aspect-ratio: 1.42 / 1;
  perspective: 1200px;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--scene-rotate-x, 7deg))
    rotateY(var(--scene-rotate-y))
    translateY(var(--scene-lift));
  filter: drop-shadow(0 34px 48px rgba(112, 63, 68, 0.2));
  animation: envelopeBreath 5.2s ease-in-out infinite;
  will-change: transform;
}

.envelope-3d::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -9%;
  height: 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(122, 72, 70, 0.22), transparent 72%);
  filter: blur(13px);
  transform: translateZ(-90px) rotateX(68deg);
}

.envelope-3d::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4.5%;
  height: 8%;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(201, 117, 125, 0.26), rgba(115, 66, 68, 0.16));
  filter: blur(1px);
  transform: translateZ(-18px);
}

.letter-sheet,
.envelope-back,
.envelope-flap,
.envelope-body,
.envelope-shine {
  position: absolute;
}

.letter-sheet {
  left: var(--letter-left);
  bottom: var(--letter-bottom);
  z-index: 3;
  width: var(--letter-width);
  height: var(--letter-height);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(151, 96, 89, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(rgba(233, 140, 154, 0.13) 1px, transparent 1px) 0 76px / 100% 30px,
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(180deg, #fffefa 0%, #fff8f2 100%);
  box-shadow:
    0 22px 32px rgba(122, 72, 70, var(--letter-shadow-opacity)),
    0 2px 0 rgba(255, 255, 255, 0.82) inset,
    0 -18px 28px rgba(244, 208, 193, 0.22) inset;
  opacity: var(--letter-opacity);
  clip-path: inset(0 0 var(--letter-bottom-clip, 46.28%) 0 round 10px);
  transform:
    translate3d(0, var(--letter-y), var(--letter-z))
    rotateX(var(--letter-rotate-x))
    rotateZ(var(--letter-rotate-z))
    scale(var(--letter-scale));
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
}

.letter-paper-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(122, 72, 70, 0.045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 36%, rgba(122, 72, 70, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 76%, rgba(245, 163, 161, 0.08) 0 1px, transparent 1.5px);
  background-size: 34px 31px, 42px 39px, 50px 46px;
  opacity: 0.9;
}

.letter-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  color: #56392f;
  text-align: left;
}

.typed-copy {
  display: block;
  transform: translateY(-2%);
}

.typed-line {
  display: grid;
  min-height: 0;
  margin: 0 0 clamp(8px, 1.2vw, 12px);
  color: #5a3d31;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.78;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.typed-line::before,
.typed-text {
  grid-area: 1 / 1;
  min-width: 0;
}

.typed-line::before {
  content: attr(data-full-text);
  visibility: hidden;
  white-space: normal;
}

.typed-line:last-child {
  margin-bottom: 0;
}

.typed-line.is-writing .typed-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  border-radius: 999px;
  background: rgba(189, 114, 123, 0.8);
  animation: caretPulse 900ms steps(2, end) infinite;
}

body.lang-en .letter-content {
  font-family: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

body.lang-en .typed-line {
  font-size: clamp(12px, 1.35vw, 16px);
  line-height: 1.5;
}

.envelope-back {
  left: 7%;
  right: 7%;
  bottom: 8%;
  z-index: 1;
  height: 66%;
  overflow: hidden;
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, #fde0ea 0%, #ffffff 100%);
  box-shadow:
    0 18px 34px rgba(133, 72, 77, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.64) inset;
  transform: translateZ(-18px);
}

.envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%);
}

.envelope-flap {
  left: 7%;
  right: 7%;
  top: 26%;
  z-index: 6;
  height: 37%;
  clip-path: polygon(0 0, 50% 89%, 100% 0);
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #fcd8e6 0%, #fdeef3 100%);
  box-shadow:
    0 12px 22px rgba(160, 100, 105, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.70) inset;
  transform: translateZ(44px) rotateX(var(--flap-angle));
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.envelope-flap::after {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(0 0, 50% 89%, 100% 0);
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%);
}

.envelope-body {
  left: 7%;
  right: 7%;
  top: 26%;
  bottom: 8%;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, #fdeef3 0%, #ffffff 100%);
  box-shadow:
    0 20px 36px rgba(160, 100, 105, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transform: translateZ(42px);
  transform-style: preserve-3d;
}

.envelope-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 35%);
  pointer-events: none;
}

.envelope-side,
.envelope-pocket {
  position: absolute;
  inset: 0;
}

.envelope-left {
  z-index: 2;
  clip-path: polygon(0 0, 54% 50%, 0 100%);
  background: linear-gradient(180deg, #fde0ea 0%, #fff8fa 100%);
}

.envelope-right {
  z-index: 2;
  clip-path: polygon(100% 0, 46% 50%, 100% 100%);
  background: linear-gradient(180deg, #fde0ea 0%, #fff8fa 100%);
}

.envelope-pocket {
  z-index: 3;
  clip-path: polygon(0 100%, 50% 50%, 100% 100%);
  background: linear-gradient(180deg, #fdeef3 0%, #ffffff 100%);
}

.envelope-seal {
  position: absolute;
  left: 50%;
  top: 59%;
  z-index: 10;
  width: clamp(32px, 5vw, 50px);
  height: clamp(30px, 4.6vw, 46px);
  background:
    radial-gradient(ellipse at 38% 28%, rgba(255, 255, 255, 0.92) 0 12%, rgba(240, 200, 210, 0.45) 36%, transparent 56%),
    linear-gradient(155deg, #fce8ee 0%, #f0c0cc 46%, #e0a0b0 100%);
  clip-path: url(#heart-seal-clip);
  opacity: var(--seal-opacity);
  pointer-events: none;
  filter:
    drop-shadow(0 7px 16px rgba(180, 100, 115, 0.28))
    drop-shadow(0 2px 5px rgba(160, 80, 95, 0.18));
  transform: translate3d(-50%, -50%, 66px);
  will-change: transform;
}

.envelope-seal::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 18%;
  width: 34%;
  height: 28%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.82) 0%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}

.envelope-seal::after {
  content: none;
}

.envelope-shine {
  left: 11%;
  right: 11%;
  top: 29%;
  z-index: 7;
  height: 53%;
  border-radius: 20px;
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.32) 34%, transparent 52%),
    radial-gradient(circle at 44% 30%, rgba(255, 255, 255, 0.22), transparent 26%);
  opacity: var(--shine-opacity);
  pointer-events: none;
  transform: translateZ(62px);
  mix-blend-mode: screen;
}

.opening-caption {
  position: relative;
  z-index: 2;
  max-width: min(86vw, 560px);
  margin: 0;
  color: rgba(90, 61, 49, 0.72);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.9);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 92px) 0 clamp(76px, 9vw, 120px);
  animation: contentArrive 900ms ease 1.65s both;
  order: 2;
}

.sending-showcase {
  width: min(1080px, calc(100% - 40px));
  margin: clamp(18px, 4vw, 42px) auto clamp(74px, 9vw, 112px);
  order: 2;
}

.hero-image-placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 26px;
}

.status-card {
  overflow-x: auto;
  padding: clamp(26px, 5vw, 46px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.2);
}

.status-heading {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.status-heading h2 {
  margin: 0;
  color: #5a3d31;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-size: 1.5rem;
  line-height: 1.35;
}

.my-romantic-tracker {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  position: relative !important;
  width: 100% !important;
  min-width: 600px !important;
  max-width: 600px !important;
  margin: 40px auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.my-romantic-tracker::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-top: 2px dashed #F5A3A1 !important;
  z-index: 0;
}

.my-tracker-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 1 !important;
  flex: 1 !important;
  text-align: center !important;
}

.my-icon-wrapper {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 2px solid #F5A3A1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 15px rgba(245, 163, 161, 0.4) !important;
  font-size: 20px !important;
}

.my-step-inactive .my-icon-wrapper {
  background: #FAEDE4 !important;
  border-color: #EEDCD0 !important;
  box-shadow: none !important;
}

.my-step-inactive .my-title,
.my-step-inactive .my-subtext {
  opacity: 0.4 !important;
}

.my-title {
  font-family: 'Noto Serif SC', serif !important;
  font-size: 15px !important;
  font-weight: bold !important;
  color: #4A3525 !important;
  margin: 0 0 6px 0 !important;
  white-space: nowrap !important;
}

.my-subtext {
  font-size: 12px !important;
  color: #8C7665 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.romantic-note {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 22px clamp(22px, 4vw, 34px);
  border-radius: 28px;
}

.romantic-note::before,
.romantic-note::after {
  content: "✦";
  position: absolute;
  color: rgba(217, 136, 128, 0.42);
  font-size: 17px;
}

.romantic-note::before {
  left: 22px;
  top: 16px;
}

.romantic-note::after {
  right: 28%;
  bottom: 16px;
}

.note-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
}

.note-heart {
  grid-row: span 2;
  color: var(--pink);
  font-size: 24px;
}

.note-copy p,
.note-copy small {
  margin: 0;
}

.note-copy p {
  color: var(--brown);
  font-weight: 700;
}

.note-copy small {
  color: var(--soft-brown);
}

.write-again-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd1d1 0%, #ffb6b6 100%);
  color: #5a3d31;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(245, 163, 161, 0.34);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a56f78;
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
.quote-section p {
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 800;
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en .quote-section p,
body.lang-en .brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 102px);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 26px 0 34px;
  color: var(--soft-brown);
  font-size: clamp(19px, 2.4vw, 28px);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  color: var(--brown);
  font-weight: 800;
  box-shadow: var(--clay-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--clay-shadow-deep);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.15);
  backdrop-filter: blur(12px);
  transform: rotate(1deg);
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.qr-section,
.product-section,
.quote-section,
.policy-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.qr-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 30px;
  max-width: 620px;
  margin-top: 0;
  margin-bottom: clamp(74px, 9vw, 118px);
  padding: clamp(36px, 6vw, 62px);
  border-radius: 34px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.15);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: contentArrive 900ms ease 1.85s both;
  order: 5;
}

.qr-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.18;
}

.qr-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--soft-brown);
  font-size: 20px;
}

.qr-placeholder {
  width: 260px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px);
  color: var(--soft-brown);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 26px rgba(245, 163, 161, 0.15);
}

.qr-grid {
  width: 136px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qr-grid span {
  aspect-ratio: 1;
  background: var(--pink);
  border-radius: 7px;
  opacity: 0.72;
}

.qr-placeholder strong {
  font-size: 15px;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-section {
  padding: clamp(78px, 9vw, 126px) 0;
  animation: contentArrive 900ms ease 2s both;
  order: 3;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  min-height: 236px;
  padding: 32px;
  border: 0;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.15);
  backdrop-filter: blur(12px);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s ease;
}

.feature-card:active {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--clay-shadow-deep);
}

.feature-card span {
  color: var(--pink);
  font-weight: 700;
}

.feature-card h3 {
  margin: 34px 0 0;
  color: var(--brown);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.45;
}

.feature-card p {
  margin: 18px 0 0;
  color: var(--soft-brown);
  font-size: 17px;
  line-height: 1.7;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--clay-shadow-deep);
  }
}

.quote-section {
  padding: clamp(70px, 9vw, 120px) 0;
  text-align: center;
  animation: contentArrive 900ms ease 2s both;
  order: 4;
}

.quote-section p {
  margin: 0;
  color: var(--brown);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--soft-brown);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  gap: 22px;
  flex-wrap: wrap;
}

.policy-page {
  padding: clamp(54px, 8vw, 96px) 0;
}

.policy-page article {
  max-width: 820px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: 0 8px 32px rgba(245, 163, 161, 0.15);
  backdrop-filter: blur(12px);
}

.policy-page h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.policy-page h2 {
  margin: 34px 0 8px;
  font-size: 24px;
}

.policy-page p,
.policy-page li {
  color: var(--soft-brown);
}

.policy-page ul {
  padding-left: 1.2em;
}

@keyframes envelopeBreath {
  0% {
    filter: drop-shadow(0 32px 46px rgba(112, 63, 68, 0.18));
  }

  50% {
    filter: drop-shadow(0 39px 54px rgba(112, 63, 68, 0.23));
  }

  100% {
    filter: drop-shadow(0 32px 46px rgba(112, 63, 68, 0.18));
  }
}

@keyframes softDust {
  0%,
  100% {
    opacity: 0.44;
    transform: translateY(0) scale(var(--dust-scale));
  }

  50% {
    opacity: 0.86;
    transform: translateY(-14px) scale(var(--dust-scale));
  }
}

@keyframes caretPulse {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes contentArrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .opening {
    --opening-progress: 1;
    --flap-angle: -168deg;
    --letter-left: 7%;
    --letter-bottom: 3%;
    --letter-width: 86%;
    --letter-height: 94%;
    --letter-y: 0%;
    --letter-opacity: 1;
    --letter-scale: 1.2;
    --letter-z: 180px;
    --letter-rotate-x: -2.5deg;
    --letter-rotate-z: -0.6deg;
    --letter-shadow-opacity: 0.24;
    --scene-rotate-x: 0deg;
    --scene-rotate-y: 0deg;
    --scene-lift: 0px;
    --light-y: -18px;
    --shine-opacity: 0.52;
    --seal-opacity: 0;
    --letter-bottom-clip: 0%;
    min-height: auto !important;
    overflow: visible !important;
  }

  .opening-scroll-space {
    min-height: auto !important;
  }

  .opening-sticky-scene {
    position: relative !important;
    min-height: auto !important;
  }

  .opening-dust {
    display: none !important;
  }

  .envelope-3d {
    animation: none !important;
    transform: rotateX(5deg);
  }

  .envelope-flap {
    z-index: 1;
  }

  .letter-sheet {
    z-index: 8;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 8px 18px;
  }

  .hero,
  .qr-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    min-height: 300px;
  }

  .qr-section {
    padding-inline: 22px;
  }

  .qr-placeholder {
    width: min(100%, 260px);
  }

  .envelope-3d {
    width: min(92vw, 540px);
  }

  .letter-sheet {
    padding: clamp(20px, 3.8vw, 30px);
  }

  .typed-line {
    font-size: clamp(14px, 2.6vw, 18px);
    line-height: 1.68;
  }
}

@media (max-width: 768px) {
  .sending-showcase {
    width: min(100%, calc(100% - 28px));
  }

  .hero-image-placeholder {
    height: 220px;
  }

  .status-card {
    padding: 24px 18px;
  }

  .romantic-note {
    align-items: stretch;
    flex-direction: column;
  }

  .write-again-button {
    width: 100%;
  }

  .product-section {
    width: 100%;
    overflow: hidden;
  }

  .product-section .section-heading {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
  }

  .feature-grid {
    display: flex;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 7.5vw 24px;
    scroll-behavior: smooth;
    scroll-padding-inline: 7.5vw;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .feature-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 85%;
    min-height: 268px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@media (max-width: 560px) {
  .opening {
    min-height: calc(100vh - var(--opening-header-offset));
    min-height: calc(100svh - var(--opening-header-offset));
  }

  .opening-sticky-scene {
    gap: 16px;
    padding: 38px 12px 44px;
  }

  .envelope-3d {
    width: min(96vw, 400px);
    aspect-ratio: 1.22 / 1;
  }

  .letter-sheet {
    padding: 17px 16px;
  }

  .typed-copy {
    transform: translateY(-1%);
  }

  .typed-line {
    margin-bottom: 6px;
    font-size: clamp(12px, 3.25vw, 14.5px);
    line-height: 1.48;
  }

  body.lang-en .typed-line {
    font-size: clamp(10.5px, 2.75vw, 12.5px);
    line-height: 1.34;
  }

  .opening-caption {
    max-width: 84vw;
    font-size: 13px;
  }

  .outline-button {
    width: 100%;
  }
}
