:root {
  color-scheme: light;
  --paper: #f7eddb;
  --ivory: #fff8e9;
  --berry: #421f27;
  --wine: #6b2b3b;
  --ink: #301f1c;
  --muted: #654e43;
  --rule: #c6a784;
  --gold: #f1d8aa;
  --serif: Georgia, "Noto Serif TC", "Songti TC", PMingLiU, serif;
  --sans: system-ui, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a34459; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 2rem, 71rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 5; padding: .5rem 1rem; color: var(--berry); background: var(--ivory); transform: translateY(-200%); }
.skip:focus { transform: none; }
.visually-hidden, .workshop input, .slot input { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.notice { background: var(--berry); color: #fff1d7; font-size: .78rem; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1rem; padding-block: .48rem; }
.notice a { display: inline-flex; align-items: center; min-height: 26px; text-underline-offset: .23em; }
.notice a:focus-visible { outline-color: #fff1d7; }
.header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 700 1.05rem/1.15 var(--serif); }
.wordmark small { display: block; margin-top: .32rem; font: 700 .55rem/1 var(--sans); letter-spacing: .17em; }
.monogram { display: grid; place-items: center; width: 42px; height: 42px; margin: 2px; background: var(--berry); color: var(--gold); border: 2px solid var(--paper); outline: 1px solid var(--berry); border-radius: 50% 50% 46% 46%; font: italic 1.4rem/1 var(--serif); }
.header nav { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--wine); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { display: grid; grid-template-columns: .86fr 1.2fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(2rem, 6vw, 5.2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: .75rem; color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
h1 { color: var(--berry); font: 700 clamp(3.3rem, 7vw, 6.1rem)/.98 var(--serif); letter-spacing: -.065em; }
h1 span { display: block; white-space: nowrap; }
.hero-lead { margin-top: 1.2rem; font: 700 clamp(1.04rem, 1.9vw, 1.48rem)/1.45 var(--serif); }
.hero-description { margin: .6rem 0 1.35rem; max-width: 21rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.05rem; background: var(--wine); color: #fff9ed; border: 1px solid var(--wine); font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { background: var(--berry); }
.button:disabled { color: #654e43; background: #eadcc7; border-color: #bea68c; }

.model { min-width: 0; padding: clamp(.7rem, 2vw, 1.25rem); background: #f0dcc1; border: 1px solid #ad8054; box-shadow: inset 0 0 0 4px #f8ebd7, 0 1rem 2.8rem #4b292329; }
.model-head, .model-controls { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.model-head { padding: .25rem .25rem .6rem; color: var(--berry); }
.model-head figcaption { font: 700 clamp(1rem, 2.2vw, 1.3rem)/1.25 var(--serif); }
.model-head span, .model-controls p { color: var(--muted); font-size: .76rem; }
.stage { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid #c39f7a; background: radial-gradient(ellipse at 50% 35%, #fff9ed, #e6c5a6 96%); }
.stage::before { position: absolute; inset: .34rem; content: ""; border: 1px solid #fff7e7ba; pointer-events: none; z-index: 1; }
.stage img, .stage canvas { display: block; width: 100%; height: 100%; }
.stage img { object-fit: cover; }
.stage canvas { touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage canvas:focus-visible { outline-offset: -4px; }
.model-controls { padding: .6rem .25rem .1rem; }
.turn { display: grid; place-items: center; min-width: 48px; min-height: 44px; padding: .2rem .5rem; border: 1px solid #986c50; background: #fff2db; color: var(--berry); font-size: 1.25rem; line-height: 1; }
.turn:hover, .text-button:hover { background: #f1d8bc; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.section-heading h2 { color: var(--berry); font: 700 clamp(1.6rem, 4.5vw, 2.8rem)/1.2 var(--serif); letter-spacing: -.045em; }
.section-heading p { color: var(--muted); }
.workshops { padding-bottom: clamp(2.6rem, 8vw, 5rem); }
.workshop-grid, .times { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 1.8vw, 1.1rem); }
.workshop, .slot { position: relative; display: block; cursor: pointer; }
.workshop-card { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 100%; gap: .55rem; padding: clamp(.8rem, 2.3vw, 1.4rem); border: 1px solid var(--rule); background: #fff8e9a8; }
.workshop:hover .workshop-card, .slot:hover .slot-body { border-color: #8d4956; }
.workshop input:checked + .workshop-card, .slot input:checked + .slot-body { border-color: var(--wine); background: #f3ddce; box-shadow: inset 0 0 0 1px var(--wine); }
.workshop input:focus-visible + .workshop-card, .slot input:focus-visible + .slot-body { outline: 3px solid #a34459; outline-offset: 3px; }
.workshop-level { display: flex; align-items: center; gap: .4rem; width: fit-content; color: var(--wine); font-size: .78rem; font-weight: 800; }
.workshop-level i { display: block; width: .74rem; height: .74rem; border: 1px solid #754752; border-radius: 50%; background: var(--swatch); }
.workshop-name { font: 700 clamp(1.1rem, 2.1vw, 1.43rem)/1.25 var(--serif); }
.workshop-copy { color: var(--muted); font-size: .9rem; }
.workshop-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .65rem; margin-top: .3rem; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: .85rem; }
.workshop-meta b { color: var(--wine); font: 700 1.12rem/1.25 var(--serif); }
.workshop-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .65rem; color: var(--wine); font-size: .88rem; font-weight: 700; }
.workshop-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .24em; }

.booking { padding-block: clamp(2.25rem, 6vw, 4rem); background: #eddbc3; border-block: 1px solid var(--rule); }
.booking-grid { display: grid; grid-template-columns: 1.2fr .9fr; align-items: start; gap: clamp(.9rem, 3vw, 1.8rem); }
.booking-fields, .booking-summary { display: grid; min-width: 0; gap: 1rem; padding: clamp(.9rem, 2.75vw, 1.6rem); background: var(--ivory); border: 1px solid var(--rule); }
.booking-fields label, .times legend, .draft label { color: var(--berry); font-size: .9rem; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.optional, .availability, .summary-note, .summary-status { color: var(--muted); font-size: .82rem; font-weight: 400; }
.availability { margin-block: .12rem .45rem; }
.booking input[type="text"], select, textarea { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: .32rem; padding: .62rem .7rem; color: var(--ink); background: #fffaf0; border: 1px solid #a47c61; border-radius: 0; font-size: 1rem; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.slot-body { display: grid; justify-items: center; align-content: center; min-height: 51px; padding: .25rem; background: #fff8ed; border: 1px solid #a47c61; color: var(--wine); line-height: 1.15; }
.slot-body small { margin-top: .16rem; color: var(--muted); font-size: .67rem; white-space: nowrap; }
.slot.unavailable { cursor: default; }
.slot input:disabled + .slot-body { background: #eee4d4; color: var(--muted); border: 1px dashed #9c826e; }
.slot input:disabled + .slot-body strong { text-decoration: line-through; }
.booking-summary h3 { color: var(--berry); font: 700 1.35rem/1.25 var(--serif); }
.booking-summary dl { display: grid; gap: .45rem; }
.booking-summary dl div { display: grid; grid-template-columns: .76fr 1fr; gap: .35rem; padding-bottom: .4rem; border-bottom: 1px solid #dbc4a8; font-size: .86rem; }
.booking-summary dt { color: var(--muted); }
.booking-summary dd { text-align: right; font-weight: 700; }
.booking-summary .summary-price dd { color: var(--wine); font: 700 1.3rem/1.25 var(--serif); }
.summary-note { margin-top: -.55rem; }
.summary-status:empty { display: none; }
.draft textarea { min-height: 11rem; resize: vertical; font-size: .9rem; }
.text-button { min-height: 44px; padding: .4rem .7rem; margin-top: .55rem; border: 1px solid #986c50; color: var(--berry); background: #fff2db; font-weight: 700; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 5rem; padding-block: 1rem; color: var(--muted); font-size: .82rem; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: .2em; }
.footer a:first-of-type { margin-left: auto; }

@media (max-width: 820px) {
  .section-heading { display: block; }
  .section-heading p { margin-top: .4rem; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .hero, .booking-grid { grid-template-columns: 1fr; }
  .hero { gap: 1.45rem; }
  .hero-description { max-width: 30rem; }
  .workshop-grid { grid-template-columns: 1fr; }
  .workshop-card { gap: .38rem; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 1.35rem); }
  .header nav { gap: .62rem; }
  .header nav a { font-size: .83rem; }
  .wordmark { gap: .45rem; }
  .monogram { width: 36px; height: 36px; }
  .field-pair { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer span { flex-basis: 100%; }
  .footer a:first-of-type { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
