:root {
  color-scheme: light;
  --paper: #f7f6ef; --surface: #fffef8; --ink: #25372b; --muted: #526355;
  --pine: #305740; --tint: #e7eee1; --clay: #925135; --line: #d5dacc; --peach: #f3e5d7;
  --serif: ui-serif, "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.28; overflow-wrap: anywhere; }
h1,h2 { font-family: var(--serif); }
a { color: var(--pine); text-underline-offset: .18em; }
button,input,select,textarea { font: inherit; color: inherit; }
button,summary { cursor: pointer; touch-action: manipulation; }
button { appearance: none; -webkit-appearance: none; }
button:disabled { cursor: wait; opacity: .64; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 3px solid #a25e3c; outline-offset: 3px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #aebba9; border-radius: 10px; background: #fffef9; padding: .55rem .75rem; font-size: max(16px, 1rem); }
textarea { resize: vertical; }
input[type=checkbox],input[type=radio] { accent-color: var(--pine); }
img { max-width: 100%; }
.skip { position: fixed; top: 0; left: 1rem; transform: translateY(-130%); z-index: 30; padding: .7rem; background: var(--surface); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); background: var(--paper); padding-top: env(safe-area-inset-top, 0px); }
.mast-inner, #stage { width: min(100%, 62rem); margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px)); }
.mast-inner { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; white-space: nowrap; }
.brand img { width: 37px; height: 37px; }
.brand span { display: flex; align-items: baseline; gap: .5rem; }
.brand strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; }
.brand small,.edition { font-size: .75rem; color: var(--muted); }
.edition { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.edition b { color: var(--clay); margin: 0 .12em; }
.head-tools { display: flex; gap: .35rem; }
.tool { min-height: 44px; padding: .5rem .7rem; color: var(--pine); border-radius: 12px; border: 1px solid transparent; background: none; font-weight: 650; font-size: .91rem; }
.tool:hover,.tool[aria-current=page] { background: var(--tint); }
#stage { padding-top: clamp(1.25rem, 4vw, 2.3rem); padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
body.signed-in #stage { padding-bottom: calc(6.8rem + env(safe-area-inset-bottom, 0px)); }
#stage:focus { outline: 0; }
.view { display: grid; gap: 1rem; min-width: 0; overflow-wrap: anywhere; }
.view > *, .stack > *, .card > *, .welcome-grid > *,.home-grid > * { min-width: 0; }
.page-head { display: grid; gap: .44rem; padding: .1rem 0 .3rem; }
.page-head h1, .welcome-hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.045em; }
.eyebrow { color: var(--clay); font: 700 .72rem/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .09em; }
.lede,.muted { color: var(--muted); }
.lede { max-width: 50ch; }
.section-title { font-size: clamp(1.35rem, 4vw, 1.7rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1rem,3.2vw,1.45rem); }
.stack,.card.stack,.field,.form-stack { display: grid; gap: .75rem; }
.row,.actions { display: flex; align-items: center; gap: .55rem .7rem; flex-wrap: wrap; }
.actions { margin-top: .17rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 46px; max-width: 100%; padding: .57rem 1.05rem; border: 1px solid #a8baa7; border-radius: 12px; background: var(--surface); color: var(--pine); font-weight: 650; line-height: 1.36; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.btn.primary { color: #fffef8; background: var(--pine); border-color: var(--pine); }
.btn.quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .19em; }
.btn.danger { color: #823e28; border-color: #d4ad98; background: #fff9f3; }
.btn:hover { box-shadow: 0 0 0 1px currentColor inset; }
.btn:active { transform: translateY(1px); }
.field { gap: .32rem; font-weight: 650; }
.field small { font-size: .85rem; font-weight: 400; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: .2rem .65rem; color: var(--pine); background: var(--tint); border-radius: 99px; font-size: .82rem; font-weight: 650; }
.empty { padding: 1rem; background: var(--tint); border: 1px dashed #a7b9a5; border-radius: 14px; }
.error { background: #f9e9df; border-left: 3px solid #a45c3f; padding: .65rem .85rem; color: #733721; border-radius: 5px; }
.error:empty { display: none; }
.notice { position: fixed; z-index: 20; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: #243f2f; color: white; box-shadow: 0 .3rem 1rem #1427191f; max-width: min(92vw, 38rem); width: max-content; font-size: .94rem; border-radius: .8rem; padding: .65rem 1rem; pointer-events: none; overflow-wrap: anywhere; }
.notice:empty { padding: 0; }
.signed-in .notice { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
.tabs { position: fixed; z-index: 10; bottom: 0; inset-inline: 0; border-top: 1px solid var(--line); background: #fbfbf4; padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs-inner { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 32rem; margin: 0 auto; padding: .32rem .35rem; }
.tabs button { display: grid; gap: .1rem; place-items: center; min-height: 51px; padding: .22rem 0; margin-inline: .13rem; border: 0; border-radius: 12px; background: none; color: var(--muted); font-weight: 620; font-size: .76rem; }
.tabs button[aria-current=page] { background: var(--tint); color: var(--pine); }
.tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 21px; background: #30543f; color: #fffaf0; padding: clamp(1.15rem, 4.5vw, 2rem); }
.hero .eyebrow { color: #d6e4ca; }
.hero p:not(.eyebrow) { color: #e1ead9; }
.hero-main { position: relative; display: grid; align-content: center; min-height: 6.7rem; padding-right: 5.1rem; gap: .2rem; }
.hero h2 { font-size: clamp(1.45rem,6vw,2.25rem); }
.hero-main .window-hours { font: 750 clamp(1.45rem,6vw,2.4rem)/1.3 ui-rounded, -apple-system, system-ui, sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-note { border-top: 1px solid #84a089; padding-top: .7rem; font-size: .9rem; }
.paper-art { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%) rotate(-5deg); width: 58px; height: 64px; pointer-events: none; }
.slip { position: absolute; width: 40px; height: 53px; border: 1px solid #d5d8ba; border-radius: 4px 7px 7px 4px; }
.slip-back { left: 1px; top: 6px; background: #b1c1a5; transform: rotate(-15deg); }
.slip-front { top: 4px; right: 1px; background: repeating-linear-gradient(to bottom,#f2eedb 0 8px,#cbd2b8 8px 9px); transform: rotate(11deg); }
.bookmark { position: absolute; top: 3px; right: 9px; width: 6px; height: 17px; background: #ba7653; transform: rotate(11deg); }
.home-grid,.welcome-grid { display: grid; gap: 1rem; align-items: start; }
.welcome-hero { padding: clamp(1.5rem,5vw,2.2rem); }
.welcome-hero .hero-main { min-height: 5rem; }
.welcome-hero .hero-note { margin-top: .55rem; }
.welcome-menu { display: grid; gap: .6rem; }
.menu-option { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: start; padding: .8rem 1rem; gap: .14rem .55rem; color: var(--ink); width: 100%; }
.menu-option strong { font-size: 1.02rem; }
.menu-option small { grid-column: 1; color: var(--muted); line-height: 1.4; }
.menu-option::after { content: '›'; color: var(--clay); grid-area: 1/2/3/3; font-size: 1.4rem; }
.menu-option.featured { background: var(--tint); border-color: #a6bba2; }
.suggest-title { font-size: 1.28rem; }
.reason { border-left: 3px solid #a9ba9e; padding-left: .75rem; color: var(--muted); }
.combo { background: var(--peach); }
.footnote { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.slim { width: 100%; max-width: 38rem; margin-inline: auto; }
.secret-box { display: grid; gap: .5rem; border: 1px dashed #a3b2a0; background: #f4f7ed; padding: 1rem; border-radius: 14px; }
.secret-box code { display: block; font: 650 1.12rem/1.6 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--pine); user-select: all; }
.consent { display: flex; gap: .6rem; align-items: start; min-height: 44px; }
.consent input { flex: none; width: 1.18rem; height: 1.18rem; margin: .2rem 0 0; }
.noscript { margin: 2rem; }
@media (min-width: 48rem) {
  .mast-inner,#stage { padding-inline: 2rem; }
  .welcome-grid { grid-template-columns: 1fr 1.12fr; gap: 1.5rem; }
  .welcome-hero .hero-main { min-height: 8rem; }
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: 1.4rem; }
  .home-grid .hero-main { min-height: 8rem; }
}
@media (max-width: 23rem) { .brand span { gap: .28rem; } .edition { font-size: .66rem; } .tool { padding-inline: .45rem; } .hero-main { padding-right: 0; } .hero-main .paper-art { display:none; } }
body.keyboard-up .tabs { display: none; }
body.signed-in.keyboard-up #stage { padding-bottom: 2rem; }
@media (max-height: 30rem) and (max-width: 50rem) { body.editing .tabs { display: none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
