/* 葉宸佑 鋼琴課（chenyuyeh92.github.io）：GitHub Pages 靜態網站，沒有追蹤碼、沒有外部字型、沒有嵌入第三方內容 */
/* 版面：手機為主的單欄；大螢幕時照片和文字並排。顏色取自禮服照：深綠牆、酒紅玫瑰、銅色 */
:root {
  --bg: #f2f5f1;          /* 帶一點綠的白 */
  --surface: #ffffff;
  --ink: #18302a;         /* 深綠黑 */
  --muted: #55665f;
  --line: #d6e0da;
  --green: #1f3d34;       /* 照片裡的牆 */
  --on-green: #eef4ef;
  --accent: #9b2f40;      /* 玫瑰酒紅：按鈕、重點 */
  --on-accent: #ffffff;
  --brass: #a07a3a;       /* 小標、譜線 */
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --latin: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101a17; --surface: #17241f; --ink: #e6eee9; --muted: #a3b3ab; --line: #2a3a34;
    --green: #0b1512; --on-green: #e6eee9; --accent: #e07b8b; --on-accent: #1a0d10; --brass: #d0ab6a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #101a17; --surface: #17241f; --ink: #e6eee9; --muted: #a3b3ab; --line: #2a3a34;
    --green: #0b1512; --on-green: #e6eee9; --accent: #e07b8b; --on-accent: #1a0d10; --brass: #d0ab6a;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; text-wrap: balance; margin: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }

/* 頂端列 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand small { font-family: var(--latin); font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 6px; letter-spacing: .04em; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { color: var(--accent); background: transparent; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 首頁上方：照片＋名字 */
.hero { background: var(--green); color: var(--on-green); }
.hero .wrap { display: grid; gap: 28px; padding-block: 36px 44px; align-items: center; }
.hero img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 6px; justify-self: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
.hero .en { font-family: var(--latin); letter-spacing: .08em; opacity: .8; margin-top: 4px; }
.hero .lead { font-size: 1.12rem; margin-top: 18px; max-width: 32em; }
.facts { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 6px; }
.facts li { padding-left: 1.4em; position: relative; }
.facts li::before { content: "♪"; position: absolute; left: 0; color: var(--brass); }
.hero .btn-ghost { color: var(--on-green); border-color: var(--on-green); }
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 5fr 6fr; gap: 48px; }
  .hero img { justify-self: stretch; aspect-ratio: 2 / 3; object-position: center 20%; }
}

/* 五線譜分隔線：網站自己的記號 */
.staff { height: 26px; margin: 0 auto; max-width: 1040px; background: repeating-linear-gradient(to bottom, var(--brass) 0 1px, transparent 1px 6px); opacity: .35; }

/* 各段落（點選單跳過去時，不要被上面固定的標題列蓋住） */
[id] { scroll-margin-top: 80px; }
.section { padding-block: 52px; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: .82rem; letter-spacing: .14em; color: var(--brass); font-weight: 700; margin-bottom: 6px; }
.intro { color: var(--muted); margin-top: 10px; max-width: 36em; }

.about { display: grid; gap: 28px; margin-top: 24px; }
.about figure { margin: 0; }
.about figure img { border-radius: 6px; border: 1px solid var(--line); }
.about figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.about .text { display: grid; gap: 22px; min-width: 0; }
@media (min-width: 760px) { .about { grid-template-columns: 5fr 6fr; align-items: start; } }
.list { margin: 6px 0 0; padding-left: 1.2em; }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; }
.timeline b { font-family: var(--latin); font-weight: 400; color: var(--brass); font-variant-numeric: tabular-nums; }

.cards { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.card .tag { font-size: .82rem; color: var(--muted); }

.who { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .who { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--on-green); font-family: var(--latin); margin-bottom: 8px; }
.steps b { display: block; }

.note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--muted); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
.faq { margin-top: 22px; }

.work { display: flex; gap: 18px; align-items: center; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; flex-wrap: wrap; }
.work img { width: 88px; height: 88px; border-radius: 20px; }
.work div { flex: 1 1 240px; min-width: 0; display: grid; gap: 4px; }

.contact { background: var(--green); color: var(--on-green); }
.contact .intro { color: var(--on-green); opacity: .85; }
.contact .btn-ghost { color: var(--on-green); border-color: var(--on-green); }
.mail { font-family: var(--latin); font-size: 1.05rem; user-select: all; overflow-wrap: anywhere; }

footer { padding-block: 28px 96px; color: var(--muted); font-size: .85rem; text-align: center; display: grid; gap: 6px; }
footer a { color: var(--muted); }

/* 手機：畫面最下面固定一個「預約試上」 */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } footer { padding-bottom: 28px; } }

/* 「學音樂」頁（learn-music/）：沿用同一套，換成遊戲的顏色 */
.game { --accent: #1f6fb0; --brass: #c58a00; --green: #2c6f73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .game { --accent: #7cc4f2; --brass: #f0c24a; --green: #12302f; } }
:root[data-theme="dark"] .game { --accent: #7cc4f2; --brass: #f0c24a; --green: #12302f; }
.game-head { display: flex; gap: 16px; align-items: center; }
.game-head img { width: 76px; height: 76px; border-radius: 18px; }
.game-head h1 { font-size: 2rem; }
.game-head small { display: block; font-family: var(--latin); font-size: .95rem; color: var(--muted); font-weight: 400; }
.lang { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .95rem; }
.doc { max-width: 720px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 40px; display: grid; gap: 22px; }
.doc section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
.doc ul { margin: 0; padding-left: 1.3em; }
.doc h3 { margin-top: 6px; }
