:root {
  --plum-950: #241020;
  --plum-900: #35152e;
  --plum-800: #522342;
  --rose-500: #c8667c;
  --rose-300: #eab1b8;
  --gold-400: #ddb06d;
  --cream: #fff9f0;
  --paper: #fffdf9;
  --ink: #301c29;
  --muted: #77636f;
  --line: rgba(67, 30, 52, .14);
  --shadow: 0 24px 70px rgba(51, 20, 42, .12);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: min(820px, 92svh);
  display: grid;
  align-items: center;
  color: white;
  background: var(--plum-950);
  overflow: hidden;
}
.hero__photo { position:absolute; z-index:0; inset:0; overflow:hidden; background:var(--plum-950) url("/static/previews-v20260919/fcd26da66c16-birthday-hero.webp") center / cover no-repeat; }
.hero__photo img { width:100%; height:100%; object-fit:cover; object-position:center 28%; opacity:0; transform:scale(1.015); transition:opacity .8s ease,transform 7s ease; }
.hero__photo img.is-ready { opacity:1; transform:scale(1); }
.hero__veil { position: absolute; z-index:1; inset: 0; background: linear-gradient(90deg, rgba(28,9,26,.94), rgba(36,12,31,.72) 43%, rgba(36,12,31,.08) 78%); }
.topbar { position: absolute; z-index: 4; top: 0; left: 50%; width: min(1180px, calc(100% - 40px)); height: 78px; display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); }
.brand { color: white; font: 700 .78rem/1 Georgia, serif; letter-spacing: .18em; text-decoration: none; }
.brand span { color: #f0c188; }
.topbar > div { display: flex; align-items: center; gap: 26px; }
.topbar > div a { color: rgba(255,255,255,.74); font: .78rem/1 ui-sans-serif, system-ui, sans-serif; text-decoration: none; }
.topbar > div a:hover { color: white; }
.topbar .nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; color: white; }
.hero__content { position: relative; z-index:2; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 80px; }
.eyebrow { margin: 0 0 18px; color: #f4c68f; font: 700 .69rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .24em; }
.eyebrow--dark { color: #9f5e70; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(3.3rem, 7.5vw, 7rem); font-weight: 500; line-height: 1.06; letter-spacing: -.06em; text-wrap: balance; }
.hero__copy { max-width: 610px; margin: 30px 0 38px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.9; }
.hero__link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.5); color: white; text-decoration: none; }

.homepage-shortcuts { position:fixed; z-index:20; top:50%; right:24px; width:230px; transform:translateY(-50%); }
.shortcuts-toggle { display:none; }
.shortcuts-panel { display:grid; gap:11px; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; }
.shortcuts-panel a { position:relative; display:grid; grid-template-columns:32px 1fr; column-gap:12px; align-items:center; min-height:88px; padding:17px 18px; overflow:hidden; border:1px solid rgba(113,67,88,.2); border-radius:14px; color:#4f3041; background:rgba(255,252,249,.93); box-shadow:0 14px 38px rgba(49,25,40,.14); text-decoration:none; backdrop-filter:blur(14px); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.shortcuts-panel a::after { content:"→"; position:absolute; top:15px; right:15px; color:#ad7b91; font:1rem/1 ui-sans-serif,system-ui,sans-serif; }
.shortcuts-panel a:hover { border-color:#a96684; box-shadow:0 18px 42px rgba(49,25,40,.2); transform:translateX(-5px); }
.shortcuts-panel span { grid-row:1 / 3; color:#a65c78; font:700 .67rem/1 Georgia,serif; letter-spacing:.08em; }
.shortcuts-panel strong { padding-right:20px; font-size:.98rem; font-weight:500; letter-spacing:.04em; }
.shortcuts-panel small { color:#8e7581; font:500 .69rem/1.55 ui-sans-serif,system-ui,sans-serif; }
.shortcuts-panel a.shortcut-merch { border-color:#d89bb2; background:linear-gradient(135deg,rgba(255,247,251,.98),rgba(241,248,255,.96)); }
.shortcuts-panel a.shortcut-merch::after { color:#c25f86; }

main { overflow: hidden; }
.compose { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0 132px; }
.section-heading { max-width: 690px; margin-bottom: 44px; }
.section-heading h2 { margin: 0 0 16px; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.05em; }
.section-heading p:last-child { color: var(--muted); line-height: 1.8; }

.wish-form { padding: clamp(25px, 5vw, 56px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nickname-field { max-width: 520px; }
label { display: grid; gap: 11px; margin-bottom: 26px; color: #5c4050; font-size: .94rem; }
label > span:first-child { display: flex; justify-content: space-between; gap: 20px; }
label i { color: #9a7d8c; font: .72rem/1.5 ui-sans-serif, system-ui, sans-serif; font-style: normal; }
label small { color: #97858f; font: .73rem/1.5 ui-sans-serif, system-ui, sans-serif; }
input, textarea, select { width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: transparent; transition: border-color .2s; }
select { cursor: pointer; }
textarea { min-height: 142px; resize: vertical; line-height: 1.8; }
input:focus, textarea:focus, select:focus { border-color: var(--rose-500); }
.message-field { position: relative; }
.message-field > textarea { min-height: calc(1.8em + 29px); height: auto; overflow-y: hidden; resize: none; }
.message-field > small { justify-self: end; }
.message-field > small.near-limit { color: #a32f51; font-weight: 700; }
.consent { grid-template-columns: 20px 1fr; align-items: start; gap: 12px; padding: 16px 18px; border-radius: 13px; background: #faf3f3; color: #66515d; font: .82rem/1.65 ui-sans-serif, system-ui, sans-serif; }
.consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--plum-800); }
.publication-options { grid-column:1/-1;min-width:0;margin:0;padding:0;border:0; }
.publication-options legend { padding:0;color:var(--ink);font:500 1rem/1.6 ui-sans-serif,system-ui,sans-serif; }
.publication-options>p { margin:8px 0 16px;color:var(--muted);font:.875rem/1.6 ui-sans-serif,system-ui,sans-serif; }
.publication-options .consent { display:grid;margin:10px 0;font-size:.9375rem;cursor:pointer; }
.honeypot { position: absolute; left: -10000px; }
.form-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 30px; }
.privacy-note { max-width: 650px; margin: 0; color: #9a8a92; font: .73rem/1.7 ui-sans-serif, system-ui, sans-serif; }
.paper-retrieval-link { display:inline-block; margin-top:9px; color:#7c465d; font:.76rem/1.5 ui-sans-serif,system-ui,sans-serif; }
.form-footer button { min-width: 150px; padding: 15px 24px; border: 0; border-radius: 999px; color: white; background: var(--plum-800); box-shadow: 0 10px 26px rgba(82,35,66,.2); cursor: pointer; transition: transform .2s, background .2s; }
.form-footer button:hover { background: #642950; transform: translateY(-2px); }
.form-footer button:disabled { cursor: wait; opacity: .65; transform: none; }
.status { min-height: 1.5em; margin: 20px 0 0; color: #765f6c; }
.status--success { color: #47745b; }
.status--error { color: #a32f51; }

.word-interaction { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 7vw, 100px); padding: 110px max(20px, calc((100vw - 1180px)/2)) 120px; background: linear-gradient(150deg, #fbf2ed, #f5e9ec 54%, #efe3e9); }
.interaction-intro h2 { max-width: 540px; margin: 0 0 22px; font-size: clamp(2.4rem, 4.7vw, 4.25rem); font-weight: 500; line-height: 1.14; letter-spacing: -.05em; }
.interaction-intro > p:last-of-type { max-width: 570px; color: var(--muted); line-height: 1.85; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.topic-list span { padding: 8px 12px; border: 1px solid rgba(82,35,66,.14); border-radius: 999px; color: #775668; background: rgba(255,255,255,.5); font: .7rem/1 ui-sans-serif, system-ui, sans-serif; }
.interaction-panel { align-self: start; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(82,35,66,.12); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.reply-form { display: grid; }
.reply-form label { margin-bottom: 18px; }
.reply-form textarea { min-height: 112px; }
.reply-form small { justify-self: end; }
.reply-form small.near-limit { color: #a32f51; font-weight: 700; }
.reply-form button { justify-self: end; min-width: 145px; padding: 14px 22px; border: 0; border-radius: 999px; color: white; background: var(--plum-800); cursor: pointer; }
.reply-form button:hover { background: #642950; }
.reply-form button:disabled { cursor: wait; opacity: .65; }
.reply-result { min-height: 185px; margin-top: 28px; padding: 26px; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--plum-800), var(--plum-950)); }
.reply-result__topic { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(240,193,136,.35); border-radius: 999px; color: #f0c188; font: .68rem/1 ui-sans-serif, system-ui, sans-serif; }
.reply-result blockquote { margin: 24px 0; font-size: 1.18rem; line-height: 1.8; }
.reply-result__note, .reply-result__placeholder { margin: 0; color: rgba(255,255,255,.56); font: .72rem/1.7 ui-sans-serif, system-ui, sans-serif; }
.reply-result__placeholder { display: grid; min-height: 132px; place-items: center; text-align: center; }
.reply-result__placeholder--error { color: #f1b4bd; }

.wishes { min-height: 720px; padding: 110px max(20px, calc((100vw - 1180px)/2)) 130px; color: white; background: var(--plum-950); }
.wishes-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading--light p:last-child { color: rgba(255,255,255,.62); }
.view-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.message-more { display:flex; justify-content:center; margin-top:32px; }
.message-more button { min-width:132px; padding:11px 24px; border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#fff; background:rgba(255,255,255,.08); font:600 .78rem/1 ui-sans-serif,system-ui,sans-serif; letter-spacing:.12em; cursor:pointer; }
.message-more button:hover:not(:disabled) { color:var(--plum-950); background:#f6e9de; }
.message-more button:disabled { opacity:.55; cursor:wait; }
.message-card { min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.04)); animation: card-in .45s both; animation-delay: var(--delay); }
.message-card--pinned { border-color: rgba(240,193,136,.5); background: linear-gradient(145deg, rgba(221,176,109,.16), rgba(255,255,255,.045)); }
.message-card__top { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.33); font: 700 .68rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .15em; }
.message-tag { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(240,193,136,.28); border-radius: 999px; color: #e8bd86; font: 600 .65rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .05em; }
.message-card blockquote { margin: 26px 0; color: rgba(255,255,255,.9); font-size: 1.05rem; line-height: 1.9; white-space: pre-wrap; }
.message-card__author { display: flex; justify-content: space-between; gap: 16px; color: var(--rose-300); font-size: .88rem; }
.message-card__image { width: 100%; aspect-ratio: 4 / 3; margin: 0 0 20px; border-radius: 10px; object-fit: cover; object-position: center 25%; }
.message-card__author span { color: rgba(255,255,255,.4); font-size: .78rem; }
.message-card--paper { min-height:0; padding:0; overflow:hidden; border:0; border-radius:4px 4px 16px 16px; background:#f4ede4; box-shadow:0 20px 50px rgba(0,0,0,.22); }
.message-card--paper.message-card--pinned { outline:2px solid rgba(240,193,136,.72); outline-offset:3px; }
.message-paper { position:relative;display:block;width:100%;aspect-ratio:5/7;overflow:hidden;background:#eee4d8; }
.message-paper.is-loading { background:linear-gradient(110deg,#e9ddd1 18%,#f5ece3 38%,#e9ddd1 58%);background-size:220% 100%;animation:paper-loading 1.25s ease-in-out infinite; }
.message-paper__frame { width:100%;transition:opacity .22s ease; }
.message-paper__caption { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; color:#715967; background:#f4ede4; font:700 .64rem/1.3 ui-sans-serif,system-ui,sans-serif; letter-spacing:.04em; }
.message-paper__caption span:first-child { color:#a86776; letter-spacing:.14em; }
.message-paper__caption span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.empty-state { padding: 44px; border: 1px dashed rgba(255,255,255,.18); border-radius: 20px; color: rgba(255,255,255,.5); text-align: center; }

footer { display: flex; justify-content: center; gap: 14px; padding: 32px 20px; color: #8c7180; background: #190b17; font: .68rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes paper-loading { from{background-position:100% 0} to{background-position:-120% 0} }

@media (max-width: 900px) {
  .view-wall { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .word-interaction { grid-template-columns: 1fr; }
  .wishes-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1559px) {
  .homepage-shortcuts { right:-238px; width:238px; transform:translateY(-50%); transition:right .24s ease; }
  .homepage-shortcuts.is-open { right:0; }
  .shortcuts-toggle { position:absolute; top:50%; right:100%; display:flex; width:44px; min-height:150px; padding:13px 8px; border:1px solid rgba(255,255,255,.2); border-right:0; border-radius:14px 0 0 14px; align-items:center; justify-content:space-between; flex-direction:column; color:white; background:#713754; box-shadow:-8px 12px 30px rgba(49,25,40,.24); cursor:pointer; transform:translateY(-50%); }
  .shortcuts-toggle span { writing-mode:vertical-rl; font:500 .76rem/1 ui-sans-serif,system-ui,sans-serif; letter-spacing:.17em; }
  .shortcuts-toggle i { font:normal 1.3rem/1 Georgia,serif; transition:transform .24s ease; }
  .homepage-shortcuts.is-open .shortcuts-toggle i { transform:rotate(180deg); }
  .shortcuts-panel { width:238px; padding:12px; border:1px solid #ddcdd5; border-right:0; background:rgba(250,246,248,.97); box-shadow:-16px 18px 42px rgba(49,25,40,.18); }
  .shortcuts-panel a { min-height:79px; padding:14px 15px; box-shadow:none; background:#fff; }
}
@media (max-width: 720px) {
  .hero { min-height: 760px; background-position: 63% center; }
  .hero__veil { background: linear-gradient(180deg, rgba(30,8,25,.84), rgba(30,8,25,.48) 64%, rgba(30,8,25,.72)); }
  .hero__content { align-self: end; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .topbar > div > a:not(.nav-cta) { display: none; }
  .topbar > div > a.gallery-link { display: inline-flex; }
  .compose, .wishes { padding-top: 82px; padding-bottom: 90px; }
  .word-interaction { padding-top: 82px; padding-bottom: 90px; }
  .form-grid, .form-footer { grid-template-columns: 1fr; }
  .form-footer button { width: 100%; }
  .book-spread { grid-template-columns: 1fr; min-height: 640px; border-radius: 20px; }
  .book-photo-placeholder { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(63,38,51,.12); }
  .book-copy { min-height: 400px; }
  .homepage-shortcuts { top:50%; }
}
@media (max-width: 520px) {
  .view-wall { grid-template-columns: 1fr; }
  .view-switcher { width: 100%; overflow-x: auto; }
  .view-switcher button { flex: 1 0 auto; }
  footer { align-items: center; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .message-paper.is-loading { animation:none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
