:root {
  color-scheme: light;
  --ink:#2c3b30; --muted:#5c6355; --wine:#762d36; --forest:#263b32;
  --paper:#fbf4e7; --edge:#d7cbb7; --heading:"Iowan Old Style", "Baskerville", "Noto Serif CJK SC", "Songti SC", "STSong", Georgia, serif;
  --body:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}
*, *::before, *::after {box-sizing:border-box}
body {margin:0; color:var(--ink); background:white; background: url(grain.svg),#f6f0e5; font-family:var(--body); line-height:1.55}
button,input,textarea,select {font:inherit}
button {cursor:pointer; color:inherit}
button:disabled {cursor:wait; opacity:.65}
a {color:inherit}
:focus-visible {outline:2px solid #a05047; outline-offset:5px}
.site-header, footer {max-width:1232px; margin:auto; padding:19px clamp(20px,5vw,66px); display:flex; justify-content:space-between; align-items:center; gap:20px}
.site-header {border-bottom:1px solid var(--edge)}
.brand {font:700 2rem/.9 var(--heading); text-decoration:none; letter-spacing:-.07em}
.brand span {color:var(--wine)}
.language,.quiet {border:0; background:none; text-decoration:underline; text-underline-offset:4px; padding:8px; color:var(--muted)}
footer {border-top:1px solid var(--edge); color:var(--muted); font-size:.88rem; flex-wrap:wrap}
footer p {margin:0}
footer a {text-underline-offset:4px}
.hero {max-width:1232px; margin:auto; padding:clamp(28px,7vw,92px) clamp(20px,5vw,66px) clamp(44px,7vw,86px); display:grid; gap:28px; align-items:center}
h1,h2,h3 {font-family:var(--heading); line-height:1.08; font-weight:600; margin:0 0 14px}
h1 {font-size:clamp(2.8rem,7vw,6rem); letter-spacing:-.063em}
:lang(zh) h1 {letter-spacing:-.045em; font-size:clamp(2.5rem,5.6vw,5.2rem); line-height:1.14}
h1 em {color:var(--wine); font-weight:400}
:lang(zh) h1 em {font-style:normal}
h2 {font-size:clamp(1.9rem,4vw,3rem)}
h3 {font-size:1.5rem}
.eyebrow {font-size:.78rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:var(--wine); display:block; margin:0 0 16px}
.lede {color:var(--muted); max-width:32ch; font-size:clamp(1rem,2vw,1.16rem); margin:0 0 25px}
.button {display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 20px; color:#fff8ed; background:var(--wine); border:1px solid var(--wine); border-radius:4px; text-decoration:none; font-weight:650; text-align:center}
.button:hover {filter:brightness(1.13)}
.button.secondary {color:var(--ink); background:transparent; border-color:var(--edge)}
.hero-copy .button {min-width:174px}
.stage {position:relative; isolation:isolate; display:grid; place-items:center; min-height:280px; aspect-ratio:1.25; padding:32px 24px 48px; border-radius:6px; overflow:hidden; background: url(grain.svg), radial-gradient(ellipse at 50% 45%,#4c5e48 0%,#27392e 62%,#182a22 100%); color:var(--paper)}
.stage::before {content:""; position:absolute; inset:12px; border:1px solid #e0c89854; pointer-events:none}
.stage::after {content:"✧"; color:#d7ae73; font-family:Georgia,serif; position:absolute; top:16px; right:22px; font-size:1.75rem; pointer-events:none}
.stage-caption {position:absolute; bottom:13px; margin:0; font-size:.85rem; color:#f3dfbb; letter-spacing:.05em; text-align:center}
.envelope {position:relative; width:min(91%,355px); aspect-ratio:1.52; margin-top:10px; perspective:900px; filter:drop-shadow(0 16px 16px #101b15aa)}
.envelope::before,.fold,.lid {position:absolute; inset:0; content:""}
.envelope::before {background:url(grain.svg),#d4ac81; border:1px solid #dbb384; border-radius:4px}
.fold {background:url(grain.svg),linear-gradient(156deg,#ead2aa,#d5af85); clip-path:polygon(0 0, 50% 54%,100% 0,100% 100%,0 100%); border-radius:4px; z-index:2}
.fold::after {content:""; position:absolute; inset:0; background:url(grain.svg),linear-gradient(7deg,#e2be91,#f6e4c6); clip-path:polygon(0 100%,50% 37%,100% 100%); border-radius:4px}
.lid {height:70%; background:url(grain.svg),linear-gradient(#f6e2bf,#e3bb92); clip-path:polygon(0 0,100% 0,100% 5%,53% 95%,50% 99%,47% 95%,0 5%); transform-origin:top center; transition:transform .68s cubic-bezier(.26,.85,.2,1); z-index:3}
.peek {position:absolute; z-index:1; left:9%; right:9%; bottom:8%; height:82%; background:var(--paper); border:1px solid var(--edge); color:#927250; display:grid; justify-items:center; padding-top:.3rem; font-family:var(--heading); font-size:1.5rem; transition:transform .65s .25s ease}
.seal {border:0; padding:0; position:absolute; z-index:4; display:grid; place-items:center; top:66%; left:50%; width:clamp(60px,22%,82px); aspect-ratio:1; transform:translate(-50%,-50%); background:transparent; touch-action:manipulation; user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent; border-radius:50%; transition:opacity .24s, scale .24s}
.seal img {width:100%; pointer-events:none; filter:drop-shadow(0 3px 3px #59292d77)}
.ring {position:absolute; width:110%; height:110%; transform:rotate(-90deg); pointer-events:none; fill:none; stroke:#fff1c3; stroke-width:2; stroke-dasharray:100}
.unsealed .seal {opacity:0; scale:1.28; pointer-events:none}
.unsealed .lid {transform:rotateX(174deg); z-index:1}
.unsealed .peek {transform:translateY(-29%)}
.demos {padding:32px clamp(20px,5vw,66px) 64px; max-width:1232px; margin:auto; border-top:1px solid var(--edge)}
.demo-list {display:grid; gap:12px; margin-top:22px}
.demo-card {min-height:127px; display:grid; align-content:center; justify-items:start; padding:16px 20px; border:1px solid var(--edge); background:url(grain.svg),#f9f2e5; text-decoration:none; border-radius:4px}
.demo-card:hover {border-color:#956a5b}
.demo-mark {font:1.5rem var(--heading); color:var(--wine)}
.demo-card strong {font:600 1.35rem var(--heading)}
.demo-card small {color:var(--muted); margin-top:6px}
.page {max-width:1232px; padding:36px clamp(20px,5vw,66px) 68px; margin:auto}
.page h1 {font-size:clamp(2.5rem,5vw,4.3rem)}
.editor {display:grid; gap:24px; align-items:start}
.form-card {display:grid; gap:16px}
.fields {display:grid; gap:12px}
.field {display:grid; gap:5px; font-weight:650}
.field span {font-size:.92rem}
input,textarea,select {width:100%; min-height:46px; border:1px solid #c5b8a4; background:#fffbf4; border-radius:4px; color:var(--ink); padding:9px 11px; font-weight:400}
textarea {min-height:91px; resize:vertical}
fieldset {margin:0; padding:0; border:none; min-width:0}
legend {font-weight:700; margin-bottom:7px}
.edition {display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; padding:12px; margin-bottom:7px; border:1px solid var(--edge); border-radius:4px}
.edition:has(:checked) {border-color:var(--wine); background:#fbede3}
.edition input {width:auto; min-height:auto; margin-top:6px; accent-color:var(--wine)}
.edition small {display:block; color:var(--muted); font-size:.89rem}
.status,.note {font-size:.9rem; color:var(--muted); margin:0}
.status:not(:empty) {color:var(--wine); padding:.35rem 0}
.test-label {border:1px solid #b98356; color:#643523; background:#faead5; border-radius:4px; padding:9px 12px; font-size:.9rem; margin:0 0 12px}
.letter {position:relative; isolation:isolate; overflow:hidden; padding:clamp(23px,6vw,52px); border:1px solid #d8c7a9; border-radius:3px; background:url(grain.svg),#fffaee; box-shadow:0 12px 30px #61452219; overflow-wrap:anywhere}
.letter p {white-space:pre-wrap; font-family:var(--heading); font-size:1.22rem; line-height:1.6}
.letter h2 {color:var(--wine)}
.letter .sign {margin-bottom:0}
.letter .watermark {display:block; margin-top:25px; color:var(--muted)}
.letter.premium {border:1px solid #b89256; box-shadow:inset 0 0 0 6px #fff5db,inset 0 0 0 7px #d2ac72,0 12px 30px #61452222}
.letter.premium::after {content:"✧    ·    ✦    ·    ✧"; position:absolute; top:9px; right:16px; color:#a2723d; font-family:Georgia,serif; animation:glow 4s ease-in-out infinite; pointer-events:none}
.letter.christmas {background:url(grain.svg),#eff0dc}
.letter.christmas::after {content:"❅    ·    ✦    ·    ❅"; color:#507360}
@keyframes glow {50% {opacity:.44; transform:translateY(3px)}}
.preview-heading {margin-bottom:8px}
.receiver, .share-page {width:min(100%,670px); margin:auto}
.receiver > .stage {max-height:410px}
.receiver-tools {display:flex; justify-content:space-between; align-items:center; gap:10px; margin:0 0 10px; flex-wrap:wrap}
.actions {display:flex; flex-wrap:wrap; gap:9px; margin-top:20px}
.link-group {display:grid; gap:8px; margin:21px 0}
.link-group label {font-weight:700}
.link-group input {font-size:.88rem}
.policy {max-width:720px}
.policy p {max-width:66ch}
[hidden] {display:none!important}
@media(min-width:670px) {
  .hero {grid-template-columns:1fr 1.11fr; gap:clamp(28px,5vw,65px)}
  .demo-list {grid-template-columns:repeat(3,1fr)}
  .editor {grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,66px)}
  .preview {position:sticky; top:20px}
  .fields {grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.001ms!important; transition-duration:.001ms!important; transition-delay:0ms!important}
}
.demo-access {display:inline-block; margin-top:3px; font-size:.87rem}
.receiver-tools button {min-height:44px}
#unwrapped:not([hidden]) .letter {animation:letter-arrive .46s ease-out both}
@keyframes letter-arrive {from {opacity:0; transform:translateY(11px)} to {opacity:1; transform:translateY(0)}}
