:root {
  color-scheme: light dark;
  --paper: #faf8f3;
  --ink: #1a1f1c;
  --muted: #4f5b53;
  --green: #1f4d3a;
  --surface: #fff;
  --soft: #edf1eb;
  --line: #d5dcd3;
  --on-action: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a17;
    --ink: #edf2ee;
    --muted: #b9c6bf;
    --green: #a4ddbb;
    --surface: #1d2721;
    --soft: #24382d;
    --line: #41594b;
    --on-action: #10251a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 67rem); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; padding: .5rem; background: var(--surface); transform: translateY(-130%); }
.skip:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner { justify-content: space-between; gap: .75rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; font-weight: 750; color: var(--ink); }
.brand span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .38rem; background: var(--green); color: var(--on-action); }
nav { gap: .15rem .25rem; }
nav a { padding: .35rem .45rem; color: var(--muted); font-size: .875rem; }
nav a[aria-current] { color: var(--ink); font-weight: 750; }
.hero { padding-block: clamp(2rem, 7vw, 4.8rem) clamp(1.5rem, 4vw, 2.8rem); }
h1 { max-width: 24ch; font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.035em; line-height: 1.15; }
h1 span { white-space: nowrap; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; }
h3 { font-size: 1.12rem; line-height: 1.4; }
.lead { max-width: 64ch; margin-top: .9rem; font-size: 1.15rem; }
.review, .market, .note { color: var(--muted); }
.review { margin-top: .65rem; }
.status, .label { font-weight: 700; color: var(--green); font-size: .9rem; }
.market { margin-top: .2rem; margin-bottom: .9rem; }
.actions { gap: .65rem; margin-top: 1.15rem; }
.button { display: inline-block; border: 1px solid var(--green); border-radius: .5rem; padding: .55rem .9rem; background: var(--green); color: var(--on-action); font-weight: 700; text-decoration: none; }
.button.secondary { background: transparent; color: var(--green); }
.section { margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: .8rem; }
.card, .payment { border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); padding: clamp(1rem, 2vw, 1.4rem); }
.card { display: flex; flex-direction: column; gap: .6rem; scroll-margin-top: 1rem; }
.card:target { outline: 2px solid var(--green); outline-offset: 2px; }
.featured { grid-column: 1 / -1; grid-row: 1; background: var(--soft); border-color: var(--green); }
.card > p:not(.price, .label) { max-width: 89ch; }
.price { display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--green); font-weight: 750; font-size: 1.45rem; line-height: 1.3; }
.price span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }
.price small { font-size: .875rem; font-weight: 550; }
dl { margin: auto 0 0; padding-top: .5rem; border-top: 1px solid var(--line); }
dl div { display: flex; flex-wrap: wrap; gap: .15rem .55rem; }
dt { font-weight: 700; }
dd { margin: 0; color: var(--muted); }
.note, .payment p, .payment details { margin-top: .7rem; }
summary { cursor: pointer; width: fit-content; color: var(--green); font-weight: 700; }
.payment-preview { margin-top: .6rem; }
.qr-placeholder { display: grid; place-items: center; text-align: center; width: min(9rem, 100%); aspect-ratio: 1; border: 2px dashed var(--line); padding: .6rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 1.2rem; }
@media (max-width: 42rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
