@font-face { font-family: 'Taipei Sans TC Beta'; src: url('/fonts/TaipeiSansTCBeta-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Taipei Sans TC Beta'; src: url('/fonts/TaipeiSansTCBeta-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --yellow: #F9B91B;
  --black: #1C1B1B;
  --white: #FFFFFF;
  --rust: #BA1A1A;
  --rust-bg: #FFDAD6;
  --muted: #4A4545;
  --sans: 'Taipei Sans TC Beta', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --mono: 'DM Mono', 'Taipei Sans TC Beta', 'Noto Sans TC', monospace; /* 中文借黑體，否則括號與星期會落到明體 */
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--yellow); }
body {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page { max-width: 480px; margin: 0 auto; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }

.hero-logo { display: block; width: 88%; height: auto; margin: 4px auto 0; }
.hero-kicker { margin: 20px 0 0; font-size: 15px; font-weight: 700; }
.hero-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.hero-date, .mono { font-family: var(--mono); font-weight: 500; }
.hero-date { margin: 8px 0 0; font-size: 19px; }
.hero-place { margin: 2px 0 0; font-size: 16px; font-weight: 700; }

.card { background: var(--white); border-radius: 12px; padding: 20px 18px 22px; margin-top: 18px; }
.welcome { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.card-title { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }

.field { margin-top: 14px; }
.field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input {
  width: 100%; height: 48px; padding: 0 12px;
  border: 2px solid var(--black); border-radius: 8px;
  font: inherit; font-size: 17px; color: var(--black); background: var(--white);
  appearance: none; -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--rust); background: var(--rust-bg); }
.err { margin: 4px 0 0; min-height: 0; font-size: 14px; color: var(--rust); }
.err:empty { display: none; }

.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--rust-bg); color: var(--rust); font-weight: 700; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 54px; margin-top: 22px;
  border: 0; border-radius: 8px;
  background: var(--black); color: var(--yellow);
  font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .12em;
  cursor: pointer; transition: transform .15s ease-out, opacity .15s ease-out;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: progress; }

.note { margin: 0 0 12px; font-size: 15px; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 16px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.info a { color: var(--black); text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }

.map { margin-top: 18px; border: 2px solid var(--black); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #F3F0EE; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.btn-nav { margin-top: 12px; text-decoration: none; background: var(--yellow); color: var(--black); border: 2px solid var(--black); letter-spacing: .06em; }

.foot { margin-top: 18px; font-size: 13px; text-align: center; color: var(--black); opacity: .75; }

.view-in { animation: view-in .35s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view-in { animation: none; } }
