
:root {
  --bg: #0F221B;
  --surface: #16302A;
  --ink: #EFEADF;
  --muted: #A3AFA6;
  --line: rgba(239, 234, 223, .14);
  --line-2: rgba(239, 234, 223, .3);
  --red: #E5484D;
  --red-2: #EC6267;
  --red-ink: #0B1813;
  --display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --text: "Amulya", "Avenir Next", "Helvetica Neue", sans-serif;
  --zh: "ZCOOL XiaoWei", "Songti SC", "STSong", "Noto Serif SC", serif;
  --pad: clamp(120px, 16vw, 220px);
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.65, 0, .35, 1);
}
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
[lang="zh-Hans"] { font-family: var(--zh); font-weight: 400; line-break: strict; letter-spacing: .08em; }
h1, h2, h3, p, ol, figure, blockquote { margin: 0; }
h1, h2, .quote { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bi { --b-hi: #F2EEE6; --b-lo: #C3BBAA; --b-mid: #DAD3C5; }
.br { --b-hi: #EC5D62; --b-lo: #C2383E; --b-mid: #D9474C; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 16px; outline: 2px solid var(--ink); outline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Buttons: pills, one hover (fill) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ivory { background: var(--ink); color: var(--bg); border-color: var(--ink); --k-fill: var(--surface); --k-fill-ink: var(--ink); }
.btn-red { background: var(--red); color: var(--red-ink); border-color: var(--red); --k-fill: var(--red-2); --k-fill-ink: var(--red-ink); height: 46px; padding: 0 26px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); --k-fill: rgba(239, 234, 223, .12); --k-fill-ink: var(--ink); height: 46px; padding: 0 26px; }
.k-arrow svg { width: 16px; height: 16px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink); font: 500 16px/1.4 var(--text); text-decoration: none; }

/* Nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 28px var(--gut); }
.nav-link { font-size: 15px; text-decoration: none; padding: 4px 0; }
.nav-link.l { justify-self: start; }
.nav-link.r { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 22px; }
.brand-en { font: 500 19px/1 var(--display); letter-spacing: .005em; }
.brand-zh { font-size: 17px; line-height: 1; letter-spacing: .06em; }

/* 1 Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; padding: 128px var(--gut) 136px; }
.hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: .72; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.plaque { position: relative; padding: .2em .5em .22em .54em; font-size: min(clamp(72px, 8.6vw, 128px), 14vh); line-height: 1; }
.plaque::before, .plaque::after { content: ""; position: absolute; pointer-events: none; }
.plaque::before { inset: 0 -16px; border-block: 1px solid var(--line-2); }
.plaque::after { inset: -16px 0; border-inline: 1px solid var(--line-2); }
.plaque [lang] { letter-spacing: .04em; display: block; }
.hero h1 { margin-top: clamp(40px, 5.4vh, 60px); font: 400 min(clamp(46px, 6.2vw, 96px), 10.6vh)/1 var(--display); letter-spacing: -.025em; }
.hero-zh { margin-top: 24px; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; letter-spacing: .08em; }
.hero-sub { margin-top: 18px; max-width: 30em; font-size: 18px; }
.hero .btn { margin-top: 34px; }
.rodline { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1200px; margin: 0 auto; }
.rodline > .ln { flex: 1; height: 1px; background: var(--line-2); }
.rodline > svg { width: 14px; height: 34px; flex: none; }
.rodline > .t { font-size: 14px; color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hero-rod { position: absolute; left: var(--gut); right: var(--gut); bottom: 44px; width: auto; }
.hero-rod .t { opacity: .9; }

/* 2 The night */
.night { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(56px, 8vh, 96px) var(--gut) clamp(36px, 5vh, 64px); }
.is-static .night { min-height: 0; padding-block: var(--pad); }
.night h2 { font: 400 clamp(26px, 2.5vw, 36px)/1.15 var(--display); letter-spacing: -.01em; }
.night-zh { margin-top: 10px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); letter-spacing: .08em; }
.clock { margin-top: clamp(22px, 4vh, 44px); display: flex; justify-content: center; font: 400 min(clamp(84px, 11.5vw, 170px), 19vh)/.9 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; }
.clock .d { display: inline-block; width: .58em; text-align: center; }
.clock .c { display: inline-block; width: .28em; text-align: center; transform: translateY(-.05em); }
.clock-note { margin-top: 14px; font-size: 14px; color: var(--muted); letter-spacing: .03em; }
.abacus { position: relative; width: min(100%, 1184px, calc((100svh - 430px) * 3.3)); min-width: min(100%, 560px); margin-top: clamp(26px, 4.5vh, 52px); }
.abacus svg { width: 100%; height: auto; overflow: visible; }
.red-labels { position: relative; height: 28px; }
.red-labels span { position: absolute; top: 10px; transform: translateX(-50%); font-size: 13px; color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tally { margin-top: clamp(14px, 2.6vh, 28px); width: min(100%, 760px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 48px); font-size: 16px; color: var(--muted); }
.tally .n { color: var(--ink); font-variant-numeric: tabular-nums; }
.tally > :first-child { text-align: right; }
.tally > :last-child { text-align: left; }
.need { display: inline-flex; align-items: center; gap: 10px; font: 500 clamp(20px, 1.9vw, 26px)/1 var(--display); color: var(--ink); white-space: nowrap; }
.glyph { width: 26px; height: 11px; flex: none; }

/* Divider rods */
.rod-div { padding: 0 var(--gut); }
.rod-div .rodline > svg { width: 12px; height: 28px; opacity: .7; }
.rod-div .ln { background: var(--line); }

/* 3 Three need you */
.morning { padding: var(--pad) var(--gut); text-align: center; }
.morning h2 { font: 400 clamp(38px, 4.8vw, 72px)/1.04 var(--display); letter-spacing: -.022em; max-width: 12em; margin: 0 auto; }
.morning-zh { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); letter-spacing: .08em; }
.counter { --bw: 24px; --bh: 60px; --rod-y: 96px; position: relative; height: 180px; max-width: 1040px; margin: clamp(64px, 8vw, 112px) auto 0; }
.counter-rod { position: absolute; left: 0; right: 0; top: var(--rod-y); height: 2px; margin-top: -1px; background: rgba(239, 234, 223, .36); }
.cap { position: absolute; top: calc(var(--rod-y) - 46px); width: 12px; height: 92px; background: #1F3E35; border: 1px solid var(--line); }
.cap-l { left: 0; }
.cap-r { right: 0; }
.home { position: absolute; left: 13px; top: calc(var(--rod-y) - var(--bh) / 2); display: flex; gap: 1px; }
.home svg, .rb-bead svg { width: var(--bw); height: var(--bh); }
.home-label { position: absolute; left: 13px; top: calc(var(--rod-y) + var(--bh) / 2 + 16px); font-size: 14px; color: var(--muted); white-space: nowrap; }
.home-label .n { color: var(--ink); font-variant-numeric: tabular-nums; }
.rb { position: absolute; left: 0; top: calc(var(--rod-y) - var(--bh) / 2 - 36px); width: 60px; padding: 0; border: 0; border-radius: 10px; background: none; display: flex; flex-direction: column; align-items: center; transform: translateX(var(--tx, 0px)); transition: transform 1.2s var(--ease); }
.counter.no-tx .rb { transition: none; }
.rb-time { height: 24px; font-size: 14px; line-height: 24px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; transition: color .3s, opacity .4s; }
.rb-bead { display: grid; margin-top: 12px; }
.rb-bead > svg { grid-area: 1 / 1; }
.rb-bead .br { transition: opacity .8s .55s; }
.rb-mark { width: 22px; height: 1px; margin-top: 12px; background: var(--ink); opacity: 0; transition: opacity .3s; }
.rb:hover .rb-time { color: var(--ink); }
.rb:hover .rb-mark { opacity: .4; }
.rb[aria-selected="true"] .rb-time { color: var(--ink); }
.rb[aria-selected="true"] .rb-mark { opacity: 1; }
.rb.done .rb-time { opacity: 0; }
.rb.done .br { opacity: 0; }
.note { max-width: 640px; margin: 36px auto 0; padding: clamp(32px, 4.4vw, 52px) clamp(24px, 4.4vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.note-body { transition: opacity .22s; }
.note-body.swap { opacity: 0; }
.note-meta { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.note-buyer { margin-top: 12px; font-size: 19px; line-height: 1.5; }
.note-sep { width: 48px; height: 1px; margin: 28px auto; background: var(--line-2); }
.note-reply { margin-top: 12px; font: 400 clamp(22px, 2vw, 26px)/1.35 var(--display); letter-spacing: -.005em; }
.note-edit { display: block; width: 100%; min-height: 120px; margin-top: 12px; padding: 14px 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; resize: vertical; text-align: center; font: 400 22px/1.4 var(--display); }
.note-edit[hidden] { display: none; }
.note-rule { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.note-rule .glyph { width: 22px; height: 9px; }
.note-actions { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.note-done { margin-top: 28px; font-size: 16px; color: var(--muted); }
.note-done[hidden], .note-actions[hidden], .note-rule[hidden] { display: none; }
.note-done .link { margin-left: 10px; }

/* 4 House rules */
.rules { padding: 0 0 var(--pad); text-align: center; }
.strip { height: clamp(150px, 17vw, 250px); overflow: hidden; border-block: 1px solid var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.placard { position: relative; max-width: 940px; margin: var(--pad) var(--gut) 0; padding: clamp(64px, 7vw, 100px) clamp(20px, 6vw, 96px) clamp(48px, 5vw, 76px); }
@media (min-width: 1068px) { .placard { margin-inline: auto; } }
.placard::before, .placard::after { content: ""; position: absolute; pointer-events: none; }
.placard::before { inset: 0 -14px; border-block: 1px solid var(--line-2); }
.placard::after { inset: -14px 0; border-inline: 1px solid var(--line-2); }
.placard h2 { position: absolute; top: 0; left: 50%; z-index: 1; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 14px; padding: 0 24px; background: var(--bg); white-space: nowrap; font: 400 15px/1 var(--text); letter-spacing: .06em; color: var(--muted); }
.placard h2 [lang] { font-size: clamp(26px, 2.4vw, 34px); color: var(--ink); letter-spacing: .04em; }
.rule-list { list-style: none; padding: 0; }
.rule-list li { font: 400 clamp(28px, 4vw, 56px)/1.14 var(--display); letter-spacing: -.018em; padding: .6em 0; }
.rule-list li + li { border-top: 1px solid var(--line); }
.rules-foot { margin: 44px auto 0; max-width: 26em; padding: 0 var(--gut); color: var(--muted); }

/* 5 Owner */
.owner { padding: 0 var(--gut) var(--pad); text-align: center; }
.portrait { width: min(420px, 76vw); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote { margin: clamp(52px, 6vw, 84px) auto 0; max-width: 19em; font: 400 clamp(28px, 3.3vw, 48px)/1.2 var(--display); letter-spacing: -.016em; }
.cite { margin-top: 30px; font-size: 16px; color: var(--muted); }
.cite [lang] { color: var(--ink); letter-spacing: .08em; }

/* 6 Price and footer */
.price { padding: var(--pad) var(--gut) clamp(96px, 11vw, 150px); text-align: center; }
.price-zh { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: .08em; color: var(--muted); }
.price h2 { margin: 26px auto 0; max-width: 15.5em; font: 400 clamp(32px, 4.4vw, 64px)/1.12 var(--display); letter-spacing: -.02em; }
.price h2 .n { font-variant-numeric: lining-nums; }
.price-note { margin-top: 26px; color: var(--muted); }
.price .btn { margin-top: 44px; }
.foot { padding: 0 var(--gut) 56px; text-align: center; }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding-top: 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-row > :first-child { text-align: left; }
.foot-row > :last-child { text-align: right; }
.foot-legal { margin-top: 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .tally { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .tally > .need-slot { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .foot-row { grid-template-columns: 1fr; text-align: center; }
  .foot-row > :first-child, .foot-row > :last-child { text-align: center; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .nav { padding-top: 22px; }
  .nav-link { font-size: 14px; }
  .brand-en { font-size: 17px; }
  .brand-zh { font-size: 15px; }
  .brand-mark { width: 24px; }
  .hero { padding-top: 120px; padding-bottom: 140px; }
  .hero-sub { font-size: 17px; }
  .counter { --bw: 17px; --bh: 42px; --rod-y: 84px; height: 160px; }
  .cap { width: 10px; height: 68px; top: calc(var(--rod-y) - 34px); }
  .home { left: 11px; }
  .home-label { left: 11px; }
  .home svg:nth-child(n + 6) { display: none; }
  .rb { width: 48px; }
  .note { border-radius: 20px; }
  .rule-list li { padding: .7em 0; }
  .placard h2 { padding: 0 14px; gap: 10px; }
}
