:root {
  --paper: #e9ddc2;
  --cream: #f3ead7;
  --ink: #1e2927;
  --red: #a83d2f;
  --green: #204c43;
  --mustard: #c7933a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: #8a6941; color: #f6ecd7; }
.hero-image { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(24,31,27,.74) 0%, rgba(24,31,27,.54) 30%, rgba(24,31,27,.08) 58%, rgba(24,31,27,.18) 100%), url('/images/laoxinxi-street.png') center/cover no-repeat; transform: scale(1.015); }
.paper-noise { position: absolute; inset: 0; z-index: -2; opacity: .18; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.8) .6px, transparent .8px), radial-gradient(rgba(0,0,0,.7) .5px, transparent .7px); background-position: 0 0, 6px 7px; background-size: 11px 11px, 13px 13px; mix-blend-mode: soft-light; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,29,26,.55) 0, transparent 24%, transparent 72%, rgba(21,29,26,.62)); }

.nav { width: min(1180px, calc(100% - 48px)); margin: 0 auto; height: 112px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: .15em; }
.paper-brand { position: relative; padding: 11px 22px 11px 13px; color: #213e37; background: #eadab8; box-shadow: 5px 7px 0 rgba(70,45,25,.25); transform: rotate(-1.4deg); }
.paper-brand::before, .paper-brand::after { content: ""; position: absolute; z-index: -1; width: 24px; height: 12px; background: rgba(207,178,116,.72); }
.paper-brand::before { left: -9px; top: -5px; transform: rotate(-24deg); }
.paper-brand::after { right: -8px; bottom: -4px; transform: rotate(-20deg); }
.brand-words { display: grid; gap: 2px; }
.brand-words b { font-size: 21px; line-height: 1; }
.brand-words small { color: #876b47; font: 500 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; }
.brand-seal { display: grid; place-items: center; width: 38px; height: 38px; background: var(--red); color: #f7e8ca; border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255,234,200,.45); font-size: 21px; letter-spacing: 0; transform: rotate(-2deg); }
.nav-note { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 16px 8px 38px; color: #493c2c; background: rgba(235,216,176,.88); font-size: 12px; letter-spacing: .16em; transform: rotate(1.8deg); box-shadow: 2px 3px 0 rgba(41,33,24,.2); }
.nav-note i { position: absolute; left: 14px; width: 13px; height: 13px; border: 1px solid var(--red); border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(235,216,176,.88), inset 0 0 0 4px var(--red); }

.hero-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(70px, 12vh, 130px) 0 110px; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .28em; color: rgba(255,239,210,.8); }
.eyebrow span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.eyebrow i { display: inline-block; width: 40px; height: 1px; background: #d9b367; }
h1 { margin: 0; font-size: clamp(64px, 8.8vw, 126px); font-weight: 700; line-height: .92; letter-spacing: -.07em; text-shadow: 0 3px 30px rgba(0,0,0,.28); }
.intro { width: min(530px, 100%); margin: 28px 0 38px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; letter-spacing: .04em; color: rgba(255,243,219,.84); text-wrap: balance; }

.date-machine { position: relative; width: min(730px, 100%); padding: 21px 24px 24px; color: #263c36; background: rgba(235,220,187,.94); box-shadow: 9px 12px 0 rgba(23,34,30,.38), 0 20px 70px rgba(12,17,15,.22); transform: rotate(-.35deg); }
.date-machine::before { content: ""; position: absolute; width: 86px; height: 20px; left: 44%; top: -10px; background: rgba(201,172,109,.72); transform: rotate(2deg); }
.date-topline { display: flex; justify-content: space-between; padding-bottom: 11px; margin-bottom: 14px; border-bottom: 1px dashed rgba(57,71,62,.3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .13em; color: rgba(38,60,54,.62); }
.date-controls { display: flex; align-items: end; gap: 8px; }
.date-controls label { position: relative; flex: 1; }
.date-controls label > span { display: block; margin-bottom: 6px; font-size: 11px; color: rgba(38,60,54,.62); }
.date-controls select { width: 100%; min-width: 86px; height: 50px; padding: 0 12px; appearance: none; border: 0; border-bottom: 2px solid #35584d; border-radius: 0; color: #2b493f; background: rgba(255,249,232,.56); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 21px; cursor: pointer; }
.date-controls label::after { content: "⌄"; position: absolute; right: 10px; bottom: 16px; pointer-events: none; color: #a83d2f; }
.date-mark { padding-bottom: 15px; color: rgba(38,60,54,.65); font-size: 13px; }
.date-controls button { height: 50px; margin-left: 8px; padding: 0 23px; border: 0; background: var(--red); color: #fff1d8; font-weight: 700; letter-spacing: .08em; cursor: pointer; transition: transform .2s, background .2s; white-space: nowrap; box-shadow: 3px 4px 0 #6e2c24; transform: rotate(.8deg); }
.date-controls button:hover { background: #bd4939; transform: translateY(-2px); }
.date-controls button:focus-visible, select:focus-visible { outline: 2px solid #f1c66f; outline-offset: 3px; }
.date-controls button span { margin-left: 8px; }
.scroll-cue { position: absolute; right: 40px; bottom: 34px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; color: rgba(255,242,218,.62); writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 44px; background: rgba(255,242,218,.52); }

.preview { position: relative; padding: 110px max(24px, calc((100% - 1180px)/2)); overflow: hidden; background-color: #f1e5cb; background-image: radial-gradient(rgba(67,49,29,.09) .65px, transparent .8px); background-size: 9px 9px; }
.preview::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 40px; background: #f1e5cb; clip-path: polygon(0 35%, 4% 62%, 9% 31%, 15% 70%, 22% 38%, 29% 68%, 36% 29%, 43% 62%, 50% 34%, 57% 66%, 64% 32%, 71% 71%, 79% 30%, 87% 67%, 94% 34%, 100% 59%, 100% 100%, 0 100%); }
.preview-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 44px; }
.preview-head::after { content: ""; position: absolute; left: 0; bottom: 16px; width: min(580px, 70%); height: 7px; background: var(--red); opacity: .75; clip-path: polygon(0 30%, 100% 0, 98% 75%, 4% 100%); }
.section-kicker { margin: 0 0 12px; color: var(--red); font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.preview-head h2, .coming-soon h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.1; letter-spacing: -.05em; }
.preview-head > div > p:last-child { margin: 12px 0 0; color: #5e675f; font-size: 14px; letter-spacing: .06em; }
.stamp { display: grid; place-items: center; width: 92px; height: 92px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 11px; text-align: center; transform: rotate(9deg); opacity: .78; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--red); }
.stamp b { font-size: 24px; letter-spacing: .12em; }
.memory-collage { position: relative; width: min(1260px, calc(100% + 80px)); margin: 28px -40px 0; padding-bottom: 130px; }
.memory-collage > img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; filter: saturate(.9) contrast(.96); }
.memory-notes { position: absolute; inset: 0; pointer-events: none; }
.memory-note { position: absolute; width: 270px; min-height: 178px; padding: 23px 24px 20px; color: #283b35; background: rgba(246,234,204,.95); box-shadow: 5px 8px 0 rgba(78,55,31,.22); pointer-events: auto; transition: transform .25s; }
.memory-note::before { content: ""; position: absolute; width: 62px; height: 17px; left: 50%; top: -9px; background: rgba(205,172,105,.7); transform: translateX(-50%) rotate(-3deg); }
.note-1 { left: 2%; bottom: 36px; transform: rotate(-3.2deg); }
.note-2 { left: 39%; bottom: 0; transform: rotate(2.2deg); }
.note-3 { right: 1%; bottom: 46px; transform: rotate(-1.5deg); }
.is-entered .memory-note { animation: noteIn .65s both; animation-delay: var(--delay); }
@keyframes noteIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.memory-note:hover { transform: rotate(0) translateY(-7px); }
.card-meta { display: flex; align-items: center; gap: 12px; color: var(--red); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.card-meta time { padding: 7px 8px; color: var(--cream); background: var(--green); }
.memory-note h3 { margin: 25px 0 11px; max-width: 240px; font-size: 21px; line-height: 1.4; }
.memory-note p { margin: 0; max-width: 240px; color: #59645e; font-size: 13px; line-height: 1.75; }
.coming-soon { position: relative; display: grid; grid-template-columns: 1.4fr .8fr; gap: 70px; align-items: end; width: min(1050px, 94%); margin: 150px auto 40px; padding: 72px 64px 58px; color: #283b35; background: #e5d5b2; box-shadow: 13px 15px 0 rgba(50,67,59,.18); transform: rotate(-.7deg); }
.coming-soon::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(46,65,57,.32); pointer-events: none; }
.coming-soon::after { content: ""; position: absolute; width: 120px; height: 25px; left: 42%; top: -13px; background: rgba(197,160,87,.72); transform: rotate(1.5deg); }
.coming-soon .section-kicker { color: var(--red); }
.coming-soon h2 { font-size: clamp(34px, 4.3vw, 58px); }
.coming-soon > p { margin: 0; color: #59645e; font-size: 15px; line-height: 1.9; }
.tape { position: absolute; right: 25px; top: 24px; padding: 6px 22px; background: var(--mustard); color: var(--green); font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; transform: rotate(3deg); }
.art-footer { position: relative; min-height: 570px; display: grid; align-items: center; overflow: hidden; color: #f0dfbd; background: #1d302a; }
.art-footer::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: -1px; height: 46px; background: #f1e5cb; clip-path: polygon(0 0, 100% 0, 100% 29%, 95% 70%, 89% 32%, 82% 78%, 75% 36%, 68% 72%, 60% 31%, 52% 80%, 44% 34%, 36% 72%, 28% 29%, 20% 77%, 12% 34%, 5% 69%, 0 33%); }
.footer-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,38,32,.93) 0%, rgba(18,38,32,.76) 40%, rgba(18,38,32,.15) 76%), linear-gradient(0deg, rgba(18,38,32,.7), transparent 55%), url('/images/laoxinxi-street.png') 66% center/cover no-repeat; filter: saturate(.72) sepia(.12); transform: scale(1.02); }
.footer-copy { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 55px; }
.footer-kicker { margin: 0 0 16px; color: #d7ad5d; font-size: 13px; letter-spacing: .35em; }
.art-footer h2 { margin: 0 0 24px; font-size: clamp(62px, 8vw, 112px); line-height: .9; letter-spacing: -.08em; font-weight: 700; text-shadow: 0 4px 30px rgba(0,0,0,.28); }
.footer-copy > p:not(.footer-kicker) { margin: 0 0 36px; color: rgba(240,223,189,.72); font-size: 15px; letter-spacing: .08em; }
.footer-brand { color: #f1e5cb; font-size: 13px; }
.footer-postmark { position: absolute; z-index: 1; right: max(36px, calc((100% - 1180px)/2)); bottom: 55px; width: 145px; height: 145px; display: grid; place-content: center; gap: 4px; border: 2px solid rgba(225,185,106,.66); border-radius: 50%; color: #e0b96e; text-align: center; transform: rotate(10deg); box-shadow: inset 0 0 0 6px #233a33, inset 0 0 0 8px rgba(225,185,106,.56); }
.footer-postmark span, .footer-postmark small { font-size: 11px; letter-spacing: .18em; }
.footer-postmark b { font: 700 32px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 800px) {
  .nav { width: calc(100% - 32px); height: 78px; }
  .nav-note { display: none; }
  .hero-image { background-position: 62% center; }
  .hero-content { width: calc(100% - 32px); padding-top: 70px; }
  h1 { font-size: clamp(58px, 18vw, 88px); }
  .intro { font-size: 15px; }
  .date-machine { padding: 14px; }
  .date-topline span:last-child, .date-mark { display: none; }
  .date-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .date-controls select { min-width: 0; padding: 0 7px; font-size: 18px; }
  .date-controls button { grid-column: 1 / -1; margin: 6px 0 0; }
  .scroll-cue { display: none; }
  .preview { padding-top: 75px; padding-bottom: 75px; }
  .preview-head { align-items: flex-start; }
  .stamp { width: 70px; height: 70px; flex: 0 0 auto; }
  .stamp b { font-size: 19px; }
  .memory-collage { width: calc(100% + 30px); margin-left: -15px; padding-bottom: 0; }
  .memory-collage > img { margin-bottom: 8px; }
  .memory-notes { position: relative; display: grid; gap: 18px; padding: 0 16px; }
  .memory-note { position: relative; inset: auto; width: 100%; min-height: 0; }
  .note-1 { transform: rotate(-1.5deg); }
  .note-2 { transform: rotate(1.3deg); }
  .note-3 { transform: rotate(-.8deg); }
  .coming-soon { grid-template-columns: 1fr; gap: 30px; margin-top: 100px; padding: 65px 30px 38px; }
  .art-footer { min-height: 590px; }
  .footer-copy { width: calc(100% - 40px); padding-top: 110px; }
  .footer-image { background-position: 70% center; }
  .footer-postmark { right: 22px; bottom: 26px; width: 105px; height: 105px; }
  .footer-postmark b { font-size: 24px; }
}

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