:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --ink: #203929;
  --body: #353d32;
  --muted: #62675c;
  --line: #d9d9cb;
  --accent: #c7e96f;
  --surface: #fffdf6;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", STSong, SimSun, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft Yahei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #ebece3; color: var(--body); font: 16px/1.65 var(--sans); }
a { color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: #20392916; }
:focus-visible { outline: 2px solid #47701b; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.24; }
.phone { max-width: 540px; min-height: 100dvh; margin: auto; background: var(--paper); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 22px 12px; min-height: 60px; }
.wordmark { font: 700 21px/1.35 var(--serif); color: var(--ink); text-decoration: none; }
.demo-tag, .eyebrow { font-size: 12px; color: var(--muted); }
.hero h1 { font: 700 clamp(32px, 9.1vw, 48px)/1.18 var(--serif); letter-spacing: .025em; }
.hero-copy { padding: 14px 22px 20px; }
.hero-copy p { margin-top: 8px; letter-spacing: .12em; }
.hero img { aspect-ratio: 468 / 290; }
.stories { display: grid; gap: 27px; padding: 25px 18px 28px; }
.story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 15px; color: inherit; text-decoration: none; }
.story:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.story img { aspect-ratio: 1.24; }
.story:nth-child(even) img { grid-column: 1; grid-row: 1; }
.story:nth-child(even) .story-copy { grid-column: 2; grid-row: 1; }
.story-wide { display: block; }
.story-wide img { aspect-ratio: 2.12; margin-bottom: 12px; }
.story h2, .page-title { font-family: var(--serif); }
.story h2 { font-size: clamp(21px, 5.3vw, 29px); }
.story small { display: block; margin: 4px 0 3px; color: var(--muted); font-size: 12px; }
.story p { margin-top: 5px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.yard-note { padding: 0 20px 20px; font-size: 14px; }
#screen { min-height: calc(100dvh - 60px); padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 540px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.bottom-nav a { display: flex; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink); font-size: 13px; }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] .tab-label { border-bottom: 2px solid var(--ink); }
.order-tab .tab-label::after { content: ""; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #84ac30; }
.page { padding: 15px 22px 30px; }
.page-title { margin: 11px 0 12px; font-size: 35px; }
.lede { margin-bottom: 20px; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.detail-photo { max-height: 260px; aspect-ratio: 1.85; margin: 12px 0 16px; }
.detail-copy { line-height: 1.85; }
.panel, .record { margin-top: 16px; padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.panel h2 { font-size: 19px; margin-bottom: 6px; }
.panel h3 { font-size: 16px; }
.panel p + p { margin-top: 6px; }
.field { display: grid; gap: 5px; margin: 12px 0; }
.field :is(input, select) { width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: white; text-decoration: none; }
.button-quiet { background: transparent; color: var(--ink); }
.button-accent { background: var(--accent); color: var(--ink); border-color: transparent; }
.button:disabled { opacity: .56; cursor: default; }
.checkout-row, .toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line); }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); }
.amount { margin-top: 12px; color: var(--ink); font-size: 25px; font-weight: 700; }
.notice { margin: 14px 0; padding: 11px 13px; border-left: 3px solid #8cac43; background: #edf1e1; color: var(--ink); font-size: 14px; }
.quiet { color: var(--muted); font-size: 14px; }
.state { color: var(--ink); font-weight: 650; }
.split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 12px; }
.panel [role="status"]:empty, [hidden] { display: none !important; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 5px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: white; }
.admin { width: min(1060px, 100%); min-height: 100dvh; margin: auto; background: var(--paper); }
.admin .page { max-width: 970px; margin: auto; }
.admin-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }
.admin-grid button.record { width: 100%; text-align: left; color: var(--ink); }
.admin-grid button[aria-pressed="true"] { border-color: #799149; background: #edf1e1; }
@media (max-width: 650px) {
  .admin-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  .stories { padding-inline: 14px; }
  .story { gap: 11px; }
  .story p { font-size: 13px; }
}
