:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #382f29;
  --muted: #7d7167;
  --rose: #996c64;
  --line: #ded5ca;
  --serif: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif CJK SC', serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }
.announcement { padding: 11px 20px; background: #eae3d9; text-align: center; color: #65584c; font-size: 10px; letter-spacing: 2px; }
.announcement span { margin-left: 18px; font: 9px Georgia, serif; letter-spacing: 2px; }
.site-header { max-width: 1320px; margin: 0 auto; padding: 30px 48px 27px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.header-date { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.header-date span:first-child { font: 9px Georgia, serif; letter-spacing: 2px; }
.header-date span:last-child { font-size: 10px; letter-spacing: 2px; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.wordmark > span { font: 38px 'Times New Roman', Georgia, serif; letter-spacing: 7px; margin-right: -7px; }
.wordmark small { font-family: var(--serif); font-size: 10px; letter-spacing: 4px; margin-right: -4px; }
.sound-button { justify-self: end; display: flex; gap: 10px; align-items: center; padding: 10px 0 10px 12px; background: transparent; border: 0; color: #75675c; font-size: 10px; letter-spacing: 1px; }
.sound-bars { display: flex; gap: 3px; align-items: center; height: 15px; }
.sound-bars i { display: block; width: 1px; height: 5px; background: #8e7365; }
.sound-bars i:nth-child(2) { height: 12px; }
.sound-bars i:nth-child(3) { height: 8px; }
.sound-bars i:nth-child(4) { height: 14px; }
.sound-button[aria-pressed=true] i { animation: sound-wave .8s ease-in-out infinite alternate; }
.sound-button[aria-pressed=true] i:nth-child(2n) { animation-delay: -.5s; }
main { max-width: 1224px; padding: 0 48px; margin: 0 auto; }
.letter { position: relative; animation: arrive .8s ease both; }
.letter-top { display: flex; justify-content: space-between; padding-top: 27px; color: #827367; font: 9px Georgia, serif; letter-spacing: 2px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; padding: 32px 0 45px; }
.hero-copy { padding-left: 4%; }
.eyebrow { margin: 0 0 26px; color: #8a6c57; font: 10px Georgia, serif; letter-spacing: 3px; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.3vw, 58px); font-weight: 400; letter-spacing: 4px; line-height: 1.55; }
.title-accent { color: var(--rose); }
.hero-description { margin: 26px 0 0; color: var(--muted); font-size: 12px; line-height: 2.2; letter-spacing: .9px; }
.date-note { display: flex; align-items: center; gap: 18px; margin-top: 33px; }
.date-number { color: #756451; font: 58px/.95 'Times New Roman', Georgia, serif; letter-spacing: -2px; }
.date-detail { display: flex; flex-direction: column; gap: 10px; padding-left: 18px; border-left: 1px solid #cbbca9; }
.date-detail > span:first-child { font: 10px Georgia, serif; letter-spacing: 2.5px; color: #776452; }
.date-detail > span:last-child { font-size: 10px; letter-spacing: 1.4px; color: #887566; }
.gift-scene { position: relative; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: #eee2d6; overflow: hidden; }
.gift-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, #fff9ef8c 0%, #fff9ef00 48%, #c5a48e26 100%); pointer-events: none; }
.art-label { display: flex; justify-content: space-between; position: relative; padding: 23px 27px 0; color: #89705d; font: 8px Georgia, serif; letter-spacing: 2px; }
.art-label > span:last-child { font-size: 17px; line-height: 10px; }
.gift-art { display: block; width: 100%; max-height: 345px; margin: -8px 0 -2px; position: relative; }
.floating-gift { transform: translateY(-10px); }
.gift-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 27px; padding: 15px 0 20px; border-top: 1px solid #cfbba95c; position: relative; color: #7f6858; font-family: var(--serif); font-size: 10px; letter-spacing: 1px; }
.countdown-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 4% 27px; }
.countdown-heading { display: flex; justify-content: center; align-items: center; gap: 15px; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
.countdown-kicker { color: #8b725d; font: 8px Georgia, serif; letter-spacing: 2px; padding-right: 15px; border-right: 1px solid #cfc1b0; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 34px; padding: 20px 0 28px; }
.time-part { min-width: 80px; display: flex; flex-direction: column; align-items: center; }
.time-value { font: 58px/1 'Times New Roman', Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: 2px; color: #554739; }
.time-unit { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 9px; color: #7c6d5d; }
.time-unit small { color: #8c7d6c; font: 7px Georgia, serif; letter-spacing: 1.3px; }
.colon { align-self: flex-start; margin-top: 6px; color: #b5a18c; font: 26px Georgia, serif; }
.entry-row { display: flex; justify-content: center; align-items: center; gap: 28px; }
.unlock-note { display: flex; align-items: center; gap: 7px; color: #857260; font-size: 10px; letter-spacing: .5px; margin: 0; }
.unlock-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.entry-button { display: flex; align-items: center; justify-content: space-between; gap: 38px; min-width: 220px; border: 1px solid #4d3e31; padding: 14px 22px; background: #4d3e31; color: #fffaf3; font-size: 10px; letter-spacing: 1.3px; transition: background .25s, border-color .25s; }
.entry-button:disabled { background: transparent; border-color: #b9a48d; color: #8b7761; cursor: not-allowed; }
.entry-button:not(:disabled):hover { background: #705643; border-color: #705643; }
.entry-button > span:last-child { font-size: 20px; line-height: 10px; }
.letter-bottom { text-align: center; padding: 29px 0 32px; color: #8b7967; font-family: var(--serif); font-size: 12px; letter-spacing: 2px; }
.site-footer { max-width: 1320px; margin: 0 auto; padding: 22px 48px 27px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #897d70; font: 8px Georgia, serif; letter-spacing: 1.5px; }
.footer-date { font-family: var(--serif); font-size: 10px; letter-spacing: 2px; }
.birthday-page { min-height: 700px; padding: 58px 20px 40px; text-align: center; }
.birthday-page .eyebrow { margin-bottom: 15px; }
.birthday-spark { color: #a98a62; font-size: 55px; line-height: 1.3; }
.birthday-salutation { font-family: var(--serif); font-size: 16px; letter-spacing: 3px; margin: 20px 0 12px; }
.birthday-page h1 { font-size: 62px; color: var(--rose); }
.birthday-page h1 span { color: #a28966; }
.birthday-english { color: #8d725d; font: italic 18px Georgia, serif; letter-spacing: 1px; margin-top: 12px; }
.birthday-wishes { font-family: var(--serif); color: #776754; font-size: 14px; line-height: 2.3; letter-spacing: 1.5px; margin: 29px 0; }
.wish-button { padding: 14px 32px; background: transparent; border: 1px solid #b49c7e; color: #7d5e48; font-family: var(--serif); font-size: 13px; letter-spacing: 2px; transition: background .25s; }
.wish-button:hover { background: #eee4d7; }
.wish-message { margin-top: 24px; min-height: 30px; color: #8e7963; font-size: 11px; letter-spacing: 1px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.noscript { position: fixed; bottom: 10px; left: 10px; right: 10px; padding: 15px; background: #f0e2cc; text-align: center; font-size: 13px; color: #62472f; z-index: 20; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sound-wave { to { height: 4px; } }
@media (min-width: 1500px) {
  .site-header { padding-top: 37px; padding-bottom: 34px; }
  .hero { padding-top: 40px; padding-bottom: 50px; }
  .gift-art { max-height: 380px; }
}
@media (max-width: 850px) {
  .site-header { padding: 24px 28px; }
  main { padding: 0 28px; }
  .hero { gap: 5%; padding: 30px 0 35px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: 40px; letter-spacing: 2px; }
  .hero-description { font-size: 11px; letter-spacing: 0; }
  .date-note { margin-top: 25px; }
  .date-number { font-size: 48px; }
  .art-label { padding: 20px 20px 0; font-size: 7px; letter-spacing: 1px; }
  .gift-caption { margin: 0 20px; font-size: 9px; letter-spacing: 0; }
  .countdown { gap: 24px; }
  .countdown-section { padding-left: 0; padding-right: 0; }
  .entry-row { gap: 20px; }
  .entry-button { min-width: 200px; gap: 20px; }
  .site-footer { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 580px) {
  .announcement { font-size: 9px; padding: 10px 12px; letter-spacing: 1.5px; }
  .announcement span { font-size: 7px; letter-spacing: 1px; margin-left: 10px; }
  .site-header { padding: 23px 20px 20px; grid-template-columns: 1fr auto 1fr; }
  .header-date span:first-child { font-size: 7px; letter-spacing: .6px; }
  .header-date span:last-child { display: none; }
  .wordmark > span { font-size: 27px; letter-spacing: 3px; margin-right: -3px; }
  .wordmark small { font-size: 8px; letter-spacing: 2px; }
  .wordmark { gap: 7px; }
  .sound-button { font-size: 8px; gap: 6px; letter-spacing: 0; padding-left: 5px; }
  .sound-bars { gap: 2px; }
  main { padding: 0 24px; }
  .letter-top { padding-top: 20px; font-size: 7px; letter-spacing: 1px; }
  .edition { font-size: 6px; letter-spacing: .6px; }
  .hero { display: flex; flex-direction: column; padding: 30px 0 25px; gap: 27px; }
  .hero-copy { text-align: center; }
  .eyebrow { font-size: 8px; letter-spacing: 2.5px; margin-bottom: 15px; }
  h1 { font-size: 35px; line-height: 1.5; letter-spacing: 3px; }
  .hero-description { margin-top: 17px; font-size: 10px; line-height: 2.1; letter-spacing: .4px; }
  .date-note { justify-content: center; margin-top: 20px; gap: 14px; }
  .date-number { font-size: 43px; }
  .date-detail { padding-left: 14px; gap: 7px; }
  .date-detail > span:first-child { font-size: 8px; letter-spacing: 2px; }
  .date-detail > span:last-child { font-size: 9px; letter-spacing: .8px; }
  .gift-scene { width: 100%; max-width: 360px; align-self: center; }
  .art-label { padding: 16px 19px 0; font-size: 6px; }
  .art-label > span:last-child { font-size: 14px; }
  .gift-art { width: 100%; height: 182px; margin: -5px 0 0; }
  .gift-caption { margin: 0 19px; padding: 11px 0 13px; font-size: 9px; }
  .countdown-section { padding: 20px 0 24px; }
  .countdown-heading { font-size: 9px; gap: 10px; letter-spacing: .7px; }
  .countdown-kicker { font-size: 7px; letter-spacing: 1px; padding-right: 10px; }
  .countdown { gap: 9px; justify-content: space-between; padding: 20px 0 24px; }
  .time-part { min-width: 40px; flex: 1; }
  .time-value { font-size: 38px; letter-spacing: 1px; }
  .time-unit { font-size: 8px; flex-direction: column; gap: 5px; margin-top: 9px; }
  .time-unit small { font-size: 6px; letter-spacing: .8px; }
  .colon { font-size: 18px; margin-top: 4px; }
  .entry-row { flex-direction: column; gap: 15px; }
  .unlock-note { font-size: 9px; letter-spacing: 0; }
  .entry-button { width: 100%; max-width: 320px; padding: 15px 22px; font-size: 10px; }
  .letter-bottom { padding: 24px 0; font-size: 10px; letter-spacing: 1px; }
  .site-footer { padding: 20px 24px 25px; flex-wrap: wrap; justify-content: center; gap: 16px 22px; font-size: 7px; letter-spacing: .7px; }
  .footer-date { order: -1; flex-basis: 100%; text-align: center; font-size: 10px; }
  .birthday-page { padding: 44px 0 30px; min-height: 620px; }
  .birthday-page h1 { font-size: 43px; }
  .birthday-salutation { font-size: 14px; }
  .birthday-english { font-size: 15px; }
  .birthday-wishes { font-size: 12px; letter-spacing: .8px; }
  .wish-message { font-size: 10px; letter-spacing: .5px; }
}
@media (max-width: 360px) {
  .header-date span:first-child { font-size: 6px; letter-spacing: 0; }
  .wordmark > span { font-size: 24px; }
  .sound-bars { display: none; }
  main { padding: 0 20px; }
  h1 { font-size: 32px; }
  .time-value { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
