/* Perry Yang AI 小班課 — layout & theme. Content lives in content.js. */
:root {
  --bg: #16170F;
  --paper: #1E2015;
  --card: #252918;
  --hero: #2A2519;
  --olive: #343B24;
  --olive-2: #2C3220;
  --rule: #363B28;
  --border: #4A5036;
  --border-2: #4F553A;
  --dash: #7A6E46;
  --text: #EFE6CF;
  --text-2: #D8CFB8;
  --muted: #ABA187;
  --dim: #6F6A55;
  --gold: #D4BC72;
  --gold-hover: #E3CD85;
  --gold-line: #8A7A45;
  --ph: #E0453A;
  --ph-tag: #D7322B;
  --serif: 'Noto Serif TC', serif;
  --latin-serif: 'Source Serif 4', 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
button { font-family: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
summary::-webkit-details-marker { display: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.sec { padding: 64px 0; background: var(--bg); border-top: 1px solid var(--rule); scroll-margin-top: 56px; }
.sec--paper { background: var(--paper); }
.sec--tight { padding-top: 0; border-top: 0; }
#offerings { padding-bottom: 72px; }
.eyebrow { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); }
.h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.3; }
.intro { color: var(--muted); max-width: 36em; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: var(--gold-hover); color: var(--bg); }
.btn--line { border: 1.5px solid var(--text); color: var(--text); font-weight: 500; padding: 0 22px; }
.btn--line:hover { background: var(--paper); color: var(--text); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* Segmented switchers */
.seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); }
.seg button { appearance: none; border: 0; cursor: pointer; font: 500 13px/1 var(--sans); letter-spacing: 0.04em; padding: 10px 13px; min-width: 44px; min-height: 36px; border-radius: 999px; background: transparent; color: var(--text); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--paper); }

/* Placeholders (visible only with ?placeholders=1) */
.is-ph { outline: 2px dashed var(--ph); outline-offset: 3px; }
.ph-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--ph-tag); padding: 1px 6px; border-radius: 4px; line-height: 1.6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(52, 59, 36, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--latin-serif); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.brand-sub { font-size: 14px; color: var(--muted); }
.site-header .seg button { padding: 9px 12px; min-height: 34px; }
.notice { border-top: 1px solid var(--border); }
.notice p { padding-top: 8px; padding-bottom: 8px; font-size: 13px; line-height: 1.5; }

/* Hero */
.hero { padding: 44px 0 72px; background-color: var(--hero); background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(212, 188, 114, 0.06) 39px 40px); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; }
.hero-text { flex: 1 1 360px; min-width: 0; }
.hero-eyebrow { display: inline-flex; max-width: 100%; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: clamp(12px, 3.2vw, 13px); font-weight: 500; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.hero h1 { margin-bottom: 22px; font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 7.4vw, 50px); line-height: 1.3; letter-spacing: 0.01em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { margin-bottom: 30px; font-size: 17px; line-height: 1.85; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.table { flex: 1 1 300px; max-width: 440px; margin: 0 auto; padding: 30px 22px 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.seats { display: flex; gap: clamp(22px, 7vw, 40px); }
.seat { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: var(--paper); border: 2px solid var(--muted); }
.seat--you { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.tabletop { width: 100%; max-width: 330px; height: 128px; border-radius: 64px; background: var(--olive); border: 1px solid var(--border-2); display: grid; grid-template-columns: repeat(3, 1fr); align-content: space-between; justify-items: center; padding: 14px 34px; }
.laptop { width: 38px; height: 24px; border-radius: 4px; background: var(--paper); border: 1.5px solid var(--muted); }
.table figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; text-wrap: pretty; }

/* Offerings */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sec-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.sec-head .h2 { margin-bottom: 10px; }
.cur { display: flex; align-items: center; gap: 10px; }
.cur-label { font-size: 13px; color: var(--muted); }
.cur .seg { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: stretch; }
.card { display: flex; flex-direction: column; gap: 20px; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; scroll-margin-top: 72px; min-width: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 700; line-height: 1.4; }
.card .tag { margin-bottom: 10px; }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.35; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { padding: 14px 6px 12px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact b { font-family: var(--latin-serif); font-weight: 700; font-size: 28px; line-height: 1.15; font-variant-numeric: lining-nums; }
.fact span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.dots-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); line-height: 1.4; }
.dots { display: flex; gap: 5px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--bg); }
.label { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.card p.body { font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.topics { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.topics li { display: flex; gap: 10px; font-size: 15px; line-height: 1.65; }
.topics li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: 12px; background: var(--gold); }
.price-box { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border-2); display: flex; flex-direction: column; gap: 6px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-family: var(--latin-serif); font-weight: 700; font-size: 32px; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.price-note, .ref-line { font-size: 13px; color: var(--muted); }
.ref-line { line-height: 1.55; }
.ref-line a { color: var(--muted); text-underline-offset: 3px; }
.btn--book { display: flex; min-height: 50px; border-radius: 999px; align-items: center; justify-content: center; background: var(--text); color: var(--paper); font-weight: 700; text-decoration: none; }
.btn--book:hover { background: var(--gold); color: var(--bg); }

/* Online */
.online { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px; border: 1.5px dashed var(--border-2); border-radius: 20px; }
.online > div { flex: 1 1 320px; min-width: 0; }
.online-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.online .tag { border-color: var(--muted); color: var(--muted); }
.online h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.4; }
.tbd { padding: 2px 9px; border-radius: 6px; background: var(--gold); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.online p { font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* Guide */
.guide .h2 { margin-bottom: 24px; }
.guide-list { border-top: 1.5px solid var(--text); }
.guide-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.guide-row:hover { background: #23261A; color: var(--text); }
.guide-row > span:first-child { flex: 1 1 300px; min-width: 0; line-height: 1.7; text-wrap: pretty; }
.guide-go { font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; }

/* Schedule */
.sched .h2 { margin-bottom: 8px; }
.sched .intro { margin-bottom: 28px; }
.sched-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cal { flex: 1 1 320px; max-width: 440px; padding: 18px 16px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-head span { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.cal-nav { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-wd { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day { appearance: none; aspect-ratio: 1 / 1; width: 100%; max-width: 48px; margin: 0 auto; border-radius: 50%; font: 500 15px/1 var(--latin-serif); font-variant-numeric: lining-nums; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; background: transparent; color: var(--dim); padding: 0; }
.cal-day.has { border-color: var(--gold); color: var(--text); cursor: pointer; }
.cal-day.has.sel { background: var(--gold); color: var(--bg); }
.cal-day.blank { visibility: hidden; }
.slots-col { flex: 1 1 280px; min-width: 0; }
.sel-label { margin: 4px 0 14px; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.slots { display: flex; flex-direction: column; gap: 12px; }
.slot { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; color: var(--text); text-decoration: none; }
.slot:hover { border-color: var(--gold); color: var(--text); }
.slot b { font-family: var(--latin-serif); font-weight: 700; font-size: 22px; font-variant-numeric: lining-nums tabular-nums; }
.slot span { font-size: 15px; font-weight: 500; }
.slot small { font-size: 13px; color: var(--muted); }
.slots .btn { align-self: flex-start; min-height: 48px; font-size: 15px; padding: 0 24px; }

/* Booking */
.booking .h2 { margin-bottom: 8px; }
.booking .intro { margin-bottom: 32px; }
.steps { margin-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.steps li { display: flex; gap: 16px; }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); display: flex; align-items: center; justify-content: center; font-family: var(--latin-serif); font-weight: 700; font-size: 20px; }
.steps h3 { margin: 6px 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.steps p { font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }

/* Referral */
#referral { padding: 56px 0; }
.ref { max-width: 760px; margin: 0 auto; padding: 26px 22px; border: 1.5px dashed var(--dash); border-radius: 18px; background: #1B1D13; }
.ref .eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ref h2 { margin-bottom: 18px; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 3.6vw, 24px); line-height: 1.45; text-wrap: balance; }
.ref h2 small { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }
.ref-steps { margin-bottom: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.ref-steps li { display: flex; gap: 10px; font-size: 15px; line-height: 1.65; }
.ref-steps i { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font: normal 700 14px/1 var(--latin-serif); }
.ref-note { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.photo { flex: 1 1 240px; max-width: 340px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--olive) 0 12px, var(--olive-2) 12px 24px); display: flex; align-items: center; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); background: var(--paper); padding: 4px 10px; border-radius: 6px; }
.about-text { flex: 1 1 340px; min-width: 0; }
.about-text .h2 { margin-bottom: 18px; }
.paras { display: flex; flex-direction: column; gap: 14px; max-width: 36em; }
.paras p { line-height: 1.9; color: var(--text-2); text-wrap: pretty; }

/* FAQ */
.faq .h2 { margin-bottom: 24px; }
.faq-list { border-top: 1.5px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; min-height: 56px; font-weight: 500; line-height: 1.6; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--latin-serif); font-size: 22px; color: var(--gold); line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 4px 20px; font-size: 15px; line-height: 1.8; color: var(--text-2); text-wrap: pretty; }

/* Footer */
.site-footer { padding: 64px 0 32px; background: var(--olive); color: var(--text); border-top: 1px solid var(--gold-line); }
.site-footer .h2 { margin-bottom: 10px; }
.foot-body { margin-bottom: 26px; color: var(--text-2); }
.foot-mail { color: var(--text); font-size: 15px; text-underline-offset: 4px; }
.foot-mail:hover { color: var(--gold-hover); }
.foot-bottom { margin-top: 56px; padding-top: 18px; border-top: 1px solid #4F5638; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #C9BC94; }

.noscript { padding: 40px 20px; text-align: center; color: var(--text); }
