@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --paper: #fff;
  --ink: #151915;
  --muted: #525b53;
  --line: #dfe5dd;
  --dark: #101410;
  --accent: #e2f773;
  --gutter: clamp(.875rem, 3vw, 1.25rem);
  font: 1rem/1.58 'Noto Sans TC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #547030; outline-offset: 3px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.shell {
  width: 100%;
  max-width: 72.5rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: fixed; top: 0; left: .8rem; transform: translateY(-130%); z-index: 5; background: var(--accent); color: var(--dark); padding: .6rem; }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--dark); color: #fff; border-bottom: 1px solid #2b342c; padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; gap: .65rem; }
.brand { display: flex; align-items: center; gap: .62rem; text-decoration: none; }
.brand img { object-fit: cover; object-position: 50% 35%; width: 2.6rem; height: 2.6rem; border-radius: .5rem; background: #000; }
.brand > span { display: grid; line-height: 1.1; }
.brand strong, .site-footer strong { font: 800 1.55rem/.9 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .04em; }
.brand > span > span { font-size: .76rem; color: #bac7b9; margin-top: .23rem; }
nav { display: flex; gap: clamp(.45rem, 2.9vw, 1.8rem); align-items: center; }
nav a { font-size: .89rem; white-space: nowrap; text-decoration: none; padding: .45rem .1rem; color: #dbe4da; }
nav a[aria-current='page'] { color: var(--accent); }
nav .nav-check { border-radius: .35rem; padding: .55rem .8rem; border: 1px solid #63743b; color: var(--accent); }
.nav-qr {
  display: grid; place-items: center; flex: 0 0 auto; min-width: 2.75rem; min-height: 2.75rem;
  padding: .35rem; border: 1px solid #63743b; border-radius: .35rem;
  background: transparent; color: var(--accent); font: 800 1.05rem 'Barlow Condensed', system-ui, sans-serif;
  letter-spacing: .06em;
}
.nav-qr:hover:not(:disabled) { background: #273523; }
.nav-qr:disabled { opacity: .48; cursor: default; }
.qr-dialog {
  width: min(22rem, calc(100% - max(.9rem, env(safe-area-inset-left, 0px)) - max(.9rem, env(safe-area-inset-right, 0px))));
  max-height: calc(100dvh - max(.75rem, env(safe-area-inset-top, 0px)) - max(.75rem, env(safe-area-inset-bottom, 0px)));
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink);
  background: var(--paper); box-shadow: 0 12px 35px #1118; overflow: auto;
}
.qr-dialog::backdrop { background: #0a100ac9; }
.qr-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.qr-dialog-heading h2 { font-size: 1.2rem; }
.qr-dialog-heading p { color: var(--muted); overflow-wrap: anywhere; }
.qr-close {
  min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .35rem;
  background: #f4f6f2; color: var(--ink); font-size: 1.4rem; line-height: 1;
}
.qr-image {
  display: block; width: min(100%, 14rem, max(9rem, calc(100dvh - 9rem)));
  height: auto; margin: .35rem auto; background: white; image-rendering: pixelated;
}
.qr-image[hidden] { display: none; }
.qr-message { color: var(--muted); font-size: .875rem; text-align: center; line-height: 1.45; }


.eyebrow { font: 700 .95rem/1.25 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .12em; color: #405322; }
.eyebrow span { margin-left: .3rem; color: var(--muted); }
.home-next { padding-block: clamp(.65rem, 1.8vw, 1.2rem) 1.5rem; }
.home-heading { margin-bottom: .5rem; font-size: 1.5rem; }
.home-next .demo-note { margin: .55rem 0 0; }

.home-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem;
}
.home-links .home-link {
  display: grid; place-items: center; min-height: 3rem; padding: .5rem .3rem; white-space: normal;
  text-align: center; color: #34462a; background: var(--paper); border: 1px solid #a6b99b;
  border-radius: .55rem; font-weight: 800;
}
.home-links .home-link:hover { background: #edf3e8; }
.check-in-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.check-in-list li {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.15rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper);
}
.check-in-list li > div { min-width: 0; }
.check-in-list p { overflow-wrap: anywhere; color: var(--muted); }
.check-in-list a:not(.button) { color: #45562c; }

.section { padding-block: 2.35rem 3.25rem; }
.text-link { font-size: .93rem; font-weight: 700; color: #45562c; text-underline-offset: .22em; }
.back { display: inline-block; margin-bottom: 1.25rem; }
.page { padding-top: 2.6rem; }
.page-heading { margin-bottom: 1rem; }
.page-heading h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.15; margin-top: .25rem; }
.demo-note { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

.run-card, .form-card, .notice { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 7px 22px #14241907; }
.run-card { padding: clamp(1rem, 3.2vw, 1.7rem); min-width: 0; }
.run-title { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .9rem; }
.run-title :is(h1, h2) { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.18; margin-top: .24rem; }
.run-status { font-size: .875rem; font-weight: 700; color: #2f4521; background: #eaf3d9; padding: .25rem .65rem; border-radius: 6rem; white-space: nowrap; }
.run-status.past { color: #4f5650; background: #eef1ed; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.details > div { background: #f6f8f5; border: 1px solid #e9eee7; border-radius: .5rem; padding: .62rem .75rem; }
.details dt, .run-story .story-title { font-size: .875rem; font-weight: 700; color: var(--ink); }
.details dt span, .form-field label span { color: var(--muted); margin-left: .3rem; font: 700 .83rem 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .06em; }
.details dd { margin-top: .2rem; overflow-wrap: anywhere; font-weight: 600; }
.details dd a { color: #45562c; }
.run-story { margin-top: 1rem; padding: .85rem 0 0; border-top: 1px solid var(--line); }
.run-story p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .28rem; }
.run-story .story-title { margin: 0; }
.run-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.featured-run { border-top: .3rem solid #a6bd50; }
.featured-run .run-title { margin-bottom: .65rem; }
.featured-run .run-title h1 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
.featured-run .run-essentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.run-date-main, .run-date-meta { display: block; }
.run-date-meta { color: var(--muted); font-size: .9rem; }
.featured-run .run-actions { margin: .7rem 0 1rem; }
.featured-run .run-extra { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .56rem 1.05rem; border: 1px solid transparent; border-radius: .42rem; font-weight: 800; line-height: 1.3; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: var(--dark); border-color: #cadd70; }
.primary:hover { background: #d1eb57; }
.secondary { color: #34462a; border-color: #a6b99b; background: white; }
.secondary:hover { background: #edf3e8; }
.notice { color: var(--muted); padding: 1.2rem; }
.notice .button { margin-top: .65rem; }
.run-list { display: grid; gap: 1rem; }
.segmented { display: flex; gap: .4rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; }
.segmented button { border: 1px solid var(--line); background: #fff; border-radius: .4rem; padding: .52rem .72rem; color: #39413a; min-height: 2.75rem; font-weight: 700; }
.segmented button[aria-pressed='true'] { background: #273523; color: #fff; border-color: #273523; }
.segmented button span { margin-left: .4rem; font: 700 1rem 'Barlow Condensed', system-ui, sans-serif; }

.check-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; align-items: start; }
.check-context .details { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-card { padding: clamp(1rem,3vw,1.55rem); }
.form-card h2 { margin-bottom: .9rem; font-size: 1.3rem; }
.form-field { margin-bottom: .8rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: .25rem; }
.form-field label span { font-size: .9rem; }
.form-field input { width: 100%; min-height: 2.82rem; border: 1px solid #aeb9ad; border-radius: .35rem; padding: .55rem .65rem; color: var(--ink); background: #fff; }
.form-field input[aria-invalid='true'] { border-color: #a03227; }
.field-error, .form-error { margin-top: .3rem; color: #942b22; font-size: .88rem; }
.field-error:empty, .form-error:empty { display: none; }
.privacy { font-size: .88rem; color: var(--muted); }
.submit { margin-top: 1rem; width: 100%; }
.success h2 { margin: .65rem 0 .3rem; }
.success p { color: var(--muted); margin-bottom: .9rem; }
.success-mark { display: grid; place-items: center; background: #edf6dc; color: #425820; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.5rem; }
.site-footer { background: var(--dark); color: #ebf0e8; padding-top: 1.35rem; padding-bottom: max(1.35rem, env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; gap: .65rem 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.site-footer strong span { font: 700 .86rem 'Noto Sans TC', system-ui, sans-serif; }
.site-footer p { color: #bac7b9; font-size: .88rem; }

.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.merch-product {
  min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden;
  box-shadow: 0 6px 18px #14241909; display: flex; flex-direction: column;
}
.merch-art { display: grid; place-content: center; gap: .22rem; padding: .6rem; text-align: center;
  min-height: 7.25rem; background: #253421; color: #e2f773; }
.merch-art span { font: 800 clamp(1.45rem, 4.5vw, 2.3rem)/1 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .09em; }
.merch-art small { font-size: .76rem; letter-spacing: .1em; overflow-wrap: anywhere; }
.merch-art-1 { background: #333025; color: #ffdb92; }
.merch-art-2 { background: #3a2731; color: #ffc9da; }
.merch-product.has-customizations { display: grid; grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.25fr); }
.merch-photo {
  align-self: start; position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 9rem; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: #edf2e9; color: var(--muted);
}
.merch-photo-placeholder { padding: .85rem; text-align: center; font-size: .93rem; }
.merch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f5f7f4; }
.merch-photo img[hidden], .merch-photo-thumb img[hidden] { display: none; }
.merch-gallery { min-width: 0; align-self: start; }
.merch-photo-frame { position: absolute; inset: 0; display: grid; place-items: center; }
.merch-photo-frame[hidden] { display: none; }
.merch-photo-controls { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .55rem .2rem; }
.merch-photo-thumb { position: relative; width: 2.9rem; height: 2.9rem; overflow: hidden; border: 1px solid var(--line);
  border-radius: .4rem; background: #eef3ea; color: var(--ink); font-weight: 700; }
.merch-photo-thumb[aria-pressed='true'] { outline: 2px solid #627d43; outline-offset: 1px; }
.merch-photo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.merch-photo-thumb span { position: relative; padding: .05rem .25rem; background: #fff; border-radius: .25rem; }
.merch-photo-count { padding: 0 .55rem .5rem; font-size: .82rem; color: var(--muted); }
.merch-option { min-inline-size: 0; border: 1px solid var(--line); border-radius: .45rem; padding: .5rem .65rem .65rem; margin: .65rem 0 0; }
.merch-option legend { font-weight: 800; color: #405322; padding-inline: .25rem; }
.merch-option label { display: block; font-weight: 700; margin-top: .28rem; }
.merch-option select, .merch-option input {
  width: 100%; min-height: 2.75rem; padding: .42rem .6rem; margin-top: .2rem; border: 1px solid #aeb9ad;
  border-radius: .35rem; background-color: #fff; color: var(--ink); font: inherit; font-weight: 500;
}
.merch-option select {
  appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg,transparent 50%,#56664a 50%),linear-gradient(135deg,#56664a 50%,transparent 50%);
  background-position: calc(100% - .9rem) center, calc(100% - .55rem) center;
  background-size: .35rem .35rem; background-repeat: no-repeat;
}
.merch-receipt-options { margin: 0 0 .8rem; padding-inline-start: 1.4rem; overflow-wrap: anywhere; }
[data-cup-options] .privacy { margin-top: .5rem; }
.merch-product-body { padding: .85rem; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.merch-product h2 { font-size: 1.16rem; line-height: 1.3; overflow-wrap: anywhere; }
.merch-price { color: #354924; font-weight: 800; margin-top: .28rem; }
.merch-description { color: var(--muted); margin-block: .38rem .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.merch-quantity { display: flex; gap: .55rem; align-items: center; justify-content: space-between; margin-top: auto; font-weight: 700; }
.merch-quantity input { width: 4.5rem; min-height: 2.75rem; border: 1px solid #aeb9ad; border-radius: .35rem; padding: .35rem .45rem; background: #fff; color: var(--ink); }
.merch-checkout { margin-top: 1rem; }
.merch-basket { margin: 0 0 .65rem; padding-inline-start: 1.3rem; overflow-wrap: anywhere; }
.merch-total { margin-bottom: .75rem; font-weight: 700; }
.merch-total strong { margin-left: .45rem; font-size: 1.3rem; color: #354924; }
.merch-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }

@media (max-width: 540px) {
  nav .nav-home { display: none; }
  .merch-grid { grid-template-columns: 1fr; gap: .65rem; }
  .merch-product { display: grid; grid-template-columns: 5.35rem minmax(0,1fr); }
  .merch-product.has-customizations { grid-template-columns: 1fr; }
  .merch-photo { aspect-ratio: 16 / 9; }
  .merch-product-body { padding: .65rem; }
  .merch-contact { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 680px) {
  :root { --gutter: .75rem; }
  .header-inner { min-height: 3.25rem; gap: .4rem; }
  .brand { gap: .4rem; }
  .brand img { width: 2.1rem; height: 2.1rem; }
  nav .nav-check { padding-inline: .48rem; }
  .home-next { padding-top: .5rem; }
  .featured-run { padding: .72rem; }
  .details, .featured-run .run-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details > div { padding: .5rem .55rem; }
  .featured-run .run-actions .button { flex: 1 1 auto; }
  .check-layout { grid-template-columns: 1fr; }
  .section { padding-block: 1.45rem 2.25rem; }
}
@media (max-width: 365px) {
  .site-header .brand > span { display: none; }
  .brand img { width: 1.9rem; height: 1.9rem; }
  nav { gap: .3rem; }
  nav a { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.merch-grid.merch-multiple .merch-product { display: flex; flex-direction: column; }

.merch-contact .merch-email { grid-column: 1 / -1; }
