:root {
  color-scheme: light;
  --oat: #f5efe4;
  --linen: #fffaf1;
  --coffee: #6f421d;
  --coffee-dark: #563319;
  --ink: #33271f;
  --muted: #735f4f;
  --line: #d8c7b4;
  --caramel: #a96728;
  --coffee-label: #885326;
  --white: #fff;
  --pine: #345346;
  --pine-dark: #284235;
  --berry: #8c3d43;
  --berry-line: #d8b3b0;
  --header-line: rgba(216, 199, 180, .72);
  --header-surface: rgba(245, 239, 228, .9);
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
figure, dl, dd, p { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 91px; }
:focus-visible { outline: 2px solid var(--coffee); outline-offset: 4px; }

.page-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 21;
  inset: 12px auto auto 12px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--white);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-surface);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; text-decoration: none; white-space: nowrap; }
.brand-name { color: var(--coffee); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav .nav-booking { color: var(--coffee); text-decoration: underline; text-underline-offset: .45em; }

.hero { padding-block: 64px 76px; background: var(--linen); }
.hero-copy { max-width: 680px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--coffee);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--caramel); }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: 0; }
h1 { font-size: 40px; line-height: 1.28; }
h2 { font-size: 32px; line-height: 1.34; }
h3 { font-size: 18px; line-height: 1.4; }
.hero-subtitle, .section-subtitle { margin-top: 6px; color: var(--coffee); font-size: 18px; font-weight: 700; }
.hero-lead { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: 18px; }
.hero-lead + .hero-lead { margin-top: 12px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 6px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button-primary { border-color: var(--coffee); background: var(--coffee); color: var(--linen); }
.button-primary:hover { background: var(--coffee-dark); }
.button-seasonal { border-color: var(--pine); background: var(--pine); }
.button-seasonal:hover { background: var(--pine-dark); }
.button-secondary:hover { background: var(--oat); }
.button:disabled { cursor: not-allowed; opacity: .65; }

.section { padding-block: 78px; border-top: 1px solid var(--line); background: var(--oat); }
.section.alt { background: var(--linen); }
.section-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 42px; align-items: start; margin-bottom: 34px; }
.section-label { padding-top: 2px; color: var(--coffee-label); font-size: 13px; font-weight: 900; letter-spacing: .13em; }
.period-name { white-space: nowrap; }
.lead { max-width: 790px; margin-top: 12px; color: var(--muted); font-size: 17px; }
.section-body { margin-inline-start: 212px; }

.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 32px clamp(30px, 7vw, 92px); margin-inline-start: 212px; }
.theme-copy { color: var(--muted); }
.theme-copy p + p { margin-top: 14px; }
.theme-photos { display: grid; gap: 16px; }
.theme-photos img { width: 100%; object-fit: cover; }
.theme-photo img { height: auto; aspect-ratio: 4 / 5; }
.aroma-photo img { height: auto; aspect-ratio: 4 / 3; }
.seasonal-course { background: var(--linen); }
.seasonal-course .section-label, .seasonal-course .section-subtitle { color: var(--berry); }
.seasonal-course h2 { color: var(--pine); }
.theme-details { margin-top: 24px; border-top-color: var(--berry-line); font-size: 15px; }

.booking-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px clamp(32px, 6vw, 82px); align-items: start; }
.fee-lines { border-top: 1px solid var(--line); }
.fee-lines > div { display: grid; grid-template-columns: minmax(88px, .6fr) minmax(0, 2.5fr); gap: 9px 20px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.fee-lines dt { color: var(--ink); font-weight: 750; }
.fee-lines dd { color: var(--muted); }
.venue-photo { width: min(100%, 248px); margin-top: 20px; }
.venue-photo img { width: 100%; height: auto; }

.booking-panel { min-width: 0; padding: clamp(18px, 3vw, 31px); border: 1px solid var(--line); background: var(--white); }
.form-intro { color: var(--muted); font-size: 15px; }
.availability-note { margin: 8px 0 18px; color: var(--ink); font-size: 15px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.booking-panel label { display: block; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 750; }
.booking-panel input { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 5px; padding: 7px 9px; border: 1px solid #977d63; border-radius: 2px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 400; }
.price-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 18px 15px; padding: 10px 8px; border-block: 1px solid var(--line); background: var(--linen); text-align: center; }
.price-summary dt { color: var(--muted); font-size: 13px; }
.price-summary dd { color: var(--ink); font-weight: 800; white-space: nowrap; }
.submit-button { width: 100%; }
.message, .form-message { color: var(--coffee); font-size: 14px; }
.message:not(:empty), .form-message:not(:empty) { margin-top: 12px; }
.booking-result:empty { display: none; }
.message.error, .form-message.error { color: #88382f; }
.booking-lookup { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.booking-lookup summary { color: var(--ink); cursor: pointer; font-weight: 750; }
.booking-lookup[open] summary { margin-bottom: 14px; }
.lookup-button { margin-top: 12px; }
.booking-result { margin-top: 14px; padding: 14px; border: 1px solid var(--line); background: var(--linen); overflow-wrap: anywhere; }
.booking-result p, .booking-result form { margin-top: 6px; }
.booking-result .receipt-details { display: grid; grid-template-columns: minmax(85px, .6fr) minmax(0, 1.4fr); gap: 4px 10px; margin-block: 12px; }
.booking-result dt { font-weight: 750; }
.booking-result .receipt-link { color: var(--coffee); font-weight: 750; }
.booking-result .form-hint { color: var(--muted); font-size: 14px; }
.booking-result h3:not(:first-child) { margin-top: 16px; }
.payment-form .button { margin-top: 10px; }

.past-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.past-location { margin-top: 4px; color: var(--muted); font-size: 14px; }
.past-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.past-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.site-footer { padding-block: 32px; border-top: 1px solid var(--line); background: var(--linen); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (max-width: 920px) {
  .page-width { width: min(calc(100% - 32px), 720px); }
  .hero { padding-block: 48px 56px; }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .hero-lead, .lead { font-size: 16px; }
  .section { padding-block: 58px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .section-body, .theme-layout { margin-inline-start: 0; }
  .theme-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 175px); align-items: start; gap: 20px; }
  .venue-photo { margin-top: 0; }
}

@media (max-width: 600px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .site-nav { gap: 12px; }
  .theme-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .theme-photos { width: min(100%, 340px); }
  .booking-copy { grid-template-columns: minmax(0, 1fr); }
  .venue-photo { width: min(100%, 210px); }
  .past-courses { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .brand-name { font-size: 13px; }
  .site-nav { font-size: 13px; }
  h1 { font-size: 28px; }
  h2 { font-size: 25px; }
  .actions { flex-direction: column; align-items: stretch; }
  .section { padding-block: 48px; }
}

@media (max-width: 390px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .price-summary { padding-inline: 4px; font-size: 14px; }
}
