/* kokorone book · 依 kokorone brand identity guide v1.6：Burnt Brass #675128、Sunlight Beige #E3DDD2、Deep Sage #434A33、Midnight Blue #0A2430、Shadow Grey #323330 */
@font-face { font-family: 'Absans'; src: url('/fonts/Absans-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/fonts/WorkSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/fonts/WorkSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --brass: #675128; --beige: #E3DDD2; --sage: #434A33; --night: #0A2430; --grey: #323330;
  --paper: #F3EFE8; --card: #FBF9F5; --line: #D8D0C2; --muted: #6E6A62; --ok: #3E6B4A; --warn: #9A5B12; --bad: #9B2C2C;
  --serif: 'Noto Serif SC', 'Noto Serif TC', 'Songti SC', serif; --sans: 'Work Sans', 'PingFang SC', 'PingFang TC', 'Microsoft YaHei', sans-serif; --display: 'Absans', 'Work Sans', sans-serif;
  --r: 4px;
}
html[lang="zh-Hant"] { --serif: 'Noto Serif TC', 'Noto Serif SC', 'Songti TC', serif; --sans: 'Work Sans', 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--grey); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--brass); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 239, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 14px; letter-spacing: .04em; }
.top nav a { color: var(--grey); text-decoration: none; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.langs button { border: 0; background: none; padding: 2px 10px; border-radius: 99px; cursor: pointer; font-size: 13px; color: var(--muted); }
.langs button.on { background: var(--night); color: #fff; }
.logo { height: 38px; }

/* type */
.kicker { font-family: var(--display); letter-spacing: .28em; font-size: 12px; text-transform: uppercase; color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--night); line-height: 1.35; margin: 0; letter-spacing: .02em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
.lead { font-size: 17px; color: #4a4843; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.brass { color: var(--brass); }

/* hero */
.hero { background: var(--night); color: var(--beige); padding: 88px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(227, 221, 210, .14); box-shadow: 0 0 0 60px rgba(227, 221, 210, .03), 0 0 0 140px rgba(227, 221, 210, .025); }
.hero h1 { color: #F3EFE8; margin: 18px 0 16px; max-width: 14em; }
.hero .lead { color: rgba(227, 221, 210, .82); max-width: 36em; }
.hero .kicker { color: #C9B48A; }

/* service grid */
.section { padding: 64px 0 24px; }
.section > .wrap > .kicker { display: block; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card .no { font-family: var(--display); letter-spacing: .26em; font-size: 11px; color: var(--brass); }
.card h3 { margin-top: 4px; }
.card .en { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-top: -6px; }
.card .hl { color: #4a4843; flex: 1; }
.card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 14px; }
.card .price { color: var(--brass); font-weight: 600; }
.card.dark { background: var(--night); color: var(--beige); border-color: var(--night); }
.card.dark h3 { color: #F3EFE8; } .card.dark .hl { color: rgba(227, 221, 210, .8); } .card.dark .foot { border-color: rgba(227, 221, 210, .2); } .card.dark .en { color: rgba(227, 221, 210, .6); }

/* service page */
.svc { padding: 28px 0 140px; }
.posters { display: flex; flex-direction: column; gap: 14px; }
.posters img { width: 100%; border-radius: var(--r); box-shadow: 0 1px 0 var(--line); }
.video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.svc-body { padding: 36px 0 0; }
.svc-body h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 10px 0 6px; }
.svc-body .hl { font-family: var(--serif); font-size: 20px; color: var(--brass); margin-bottom: 18px; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
ul.ticks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 10px; height: 1px; background: var(--brass); }
.note { font-size: 13px; color: var(--muted); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(251, 249, 245, .97); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); backdrop-filter: blur(6px); }
.bar .in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bar .tot { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.3; }
.bar .tot b { display: block; font-size: 20px; color: var(--night); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--night); background: var(--night); color: #fff; text-decoration: none; cursor: pointer; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.btn:hover { background: #142f3d; }
.btn.ghost { background: transparent; color: var(--night); }
.btn.ghost:hover { background: rgba(10, 36, 48, .06); }
.btn.brass { background: var(--brass); border-color: var(--brass); }
.btn.wa { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* form */
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 18px 0; }
.step > h3 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; font-size: 18px; }
.step > h3 .n { font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--brass); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; background: #fff; }
.opt:hover { border-color: #b9ab92; }
.opt.on { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.opt .t { flex: 1; } .opt .t b { display: block; color: var(--night); font-weight: 600; } .opt .t span { font-size: 13px; color: var(--muted); }
.opt .p { font-weight: 600; color: var(--brass); white-space: nowrap; }
.opt.dis { opacity: .45; cursor: not-allowed; }
.opt input { margin-top: 6px; accent-color: var(--night); }
label.f { display: block; margin: 14px 0 0; font-size: 14px; color: var(--night); font-weight: 600; }
label.f span.h { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
input.i, select.i, textarea.i { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 16px; }
input.i:focus, select.i:focus, textarea.i:focus { outline: 2px solid rgba(103, 81, 40, .35); border-color: var(--brass); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.6; }
.chk input { margin-top: 4px; accent-color: var(--night); flex: none; width: 17px; height: 17px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hq { border-top: 1px solid var(--line); padding: 10px 0; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.hq .q { flex: 1; }
.yn { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex: none; }
.yn button { border: 0; background: #fff; padding: 4px 14px; cursor: pointer; font-size: 13px; }
.yn button.on.y { background: var(--warn); color: #fff; } .yn button.on.n { background: var(--sage); color: #fff; }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; }
.ok { color: var(--ok); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; background: var(--beige); color: var(--grey); }
.pill.paid { background: #dfe9df; color: #2f5a3b; } .pill.pending { background: #f3e6cf; color: #7a4a0e; } .pill.checking { background: #e4e0f2; color: #4a3f7a; } .pill.cancelled, .pill.expired, .pill.refunded { background: #eee; color: #888; }

/* calendar */
.cal { user-select: none; }
.cal .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal .hd button { border: 1px solid var(--line); background: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.cal .wk, .cal .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px; }
.cal .wk div { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal .d { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; color: #bbb; border: 1px solid transparent; }
.cal .d.av { color: var(--night); cursor: pointer; border-color: var(--line); background: #fff; font-weight: 600; }
.cal .d.av:hover { border-color: var(--brass); }
.cal .d.on { background: var(--night); color: #fff; border-color: var(--night); }
.times { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.times button { min-width: 92px; height: 44px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; }
.times button.on { background: var(--night); color: #fff; border-color: var(--night); }

/* summary / order */
.sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; color: var(--night); }
.banner { padding: 18px 20px; border-radius: var(--r); background: var(--night); color: var(--beige); margin: 18px 0; }
.banner h2 { color: #F3EFE8; font-size: 22px; margin-bottom: 4px; }
.banner.ok { background: var(--sage); }
.banner.gift { background: #EFE6D3; color: var(--grey); border: 1px solid #d9c9a5; }
.countdown { font-family: var(--display); font-size: 28px; color: var(--brass); letter-spacing: .04em; }
.plans { display: grid; gap: 14px; }
.plan { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 22px; position: relative; }
.plan.rec { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.plan .tag { position: absolute; top: -11px; left: 18px; background: var(--brass); color: #fff; font-size: 12px; padding: 1px 10px; letter-spacing: .1em; }
.plan .amt { font-family: var(--display); font-size: 34px; color: var(--night); margin: 8px 0 2px; }
.plan .amt small { font-size: 15px; color: var(--muted); margin-right: 4px; }

footer.foot { border-top: 1px solid var(--line); padding: 36px 0 120px; font-size: 13px; color: var(--muted); }
footer.foot .wrap { display: grid; gap: 6px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--brass); border-radius: 50%; animation: sp 0.8s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
.center { text-align: center; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.hide { display: none !important; }
