/* Greeting to Saud — refined typography system */
:root {
  --paper: #f3f1eb;
  --ink: #24241f;
  --muted: #77766f;
  --line: rgba(36,36,31,.18);
  --serif: Georgia, "Times New Roman", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page { width: 100%; overflow: hidden; }
.topbar {
  min-height: 64px; padding: 0 22px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em;
}
.brand { font-weight: 650; }
.edition { color: var(--muted); font-size: 10px; }
.hero { padding: 18px 14px 0; }
.art-frame { position: relative; width: 100%; background: #e6e3dc; overflow: hidden; }
.art-frame img {
  display: block; width: 100%; height: auto; max-height: calc(100svh - 94px);
  object-fit: contain; object-position: center;
}
.hero-caption {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0;
  color: var(--muted); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
}
.intro { padding: 82px 28px 88px; max-width: 820px; margin: 0 auto; }
.eyebrow { font-size: 11px; letter-spacing: .21em; color: var(--muted); margin: 0 0 24px; }
h1 {
  /* B style: contemporary museum typography — only the English main title changes */
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(44px, 7.2vw, 76px); letter-spacing: -.045em;
  line-height: 1.04; margin: 0 0 14px;
}
.subtitle {
  font-family: var(--sans); font-size: 19px; letter-spacing: .1em;
  line-height: 1.6; margin: 0 0 36px; color: #5d5b55;
}
.rule { height: 1px; background: var(--line); width: 100%; margin: 0 0 26px; }
.meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-bottom: 30px;
}
.copy {
  font-family: var(--sans); font-size: 16px; line-height: 2.0; letter-spacing: .035em;
  max-width: 650px; margin: 0; color: #44433d;
}
.english {
  font-family: var(--serif); font-size: 17px; line-height: 1.9; letter-spacing: .005em;
  color: #77746d; margin: 22px 0 0; max-width: 650px;
}
.music-section { background: #22231f; color: #f3f1eb; padding: 56px 26px 112px; }
.music-inner { max-width: 820px; margin: 0 auto; }
.music-label { font-size: 11px; letter-spacing: .21em; color: #aaa99f; margin: 0 0 28px; }
.record { display: flex; align-items: center; gap: 22px; }
.record img { width: 108px; height: 108px; object-fit: cover; flex: none; }
.record-title {
  font-family: var(--serif); font-size: clamp(23px, 3vw, 29px);
  line-height: 1.2; margin: 0 0 9px; font-weight: 400;
}
.record-sub { font-family: var(--sans); font-size: 11px; letter-spacing: .13em; line-height: 1.7; color: #b9b7ae; margin: 0; }
.music-note {
  border-top: 1px solid rgba(243,241,235,.2); margin-top: 32px; padding-top: 17px;
  font-size: 10px; letter-spacing: .12em; line-height: 1.6; color: #aaa99f;
  display: flex; justify-content: space-between; gap: 16px;
}
footer { background: #22231f; color: #8f8e86; padding: 0 24px 112px; text-align: center; font-size: 10px; letter-spacing: .17em; }
/* Compact floating album-art music control */
.music-dock {
  position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; min-height: 62px;
  padding: 8px 12px 8px 8px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; background: rgba(31,32,28,.97); color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.28); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.music-dock img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.dock-text { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 0; }
.dock-title { font-family: var(--serif); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.dock-state { font-family: var(--sans); font-size: 9px; letter-spacing: .13em; color: #c1c0b8; }
.dock-icon { width: 27px; height: 27px; display: grid; place-items: center; margin-left: 3px; }
.dock-icon svg { width: 19px; height: 19px; fill: currentColor; }
.player-panel {
  position: fixed; z-index: 49; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom));
  width: min(320px,calc(100vw - 24px)); padding: 12px; background: #22231f;
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); color: #fff; display: none;
}
.player-panel.open { display: block; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 10px; font-size: 11px; letter-spacing: .08em; }
.close-player { border: 0; background: transparent; color: #d4d2ca; font-size: 21px; line-height: 1; padding: 0 4px; cursor: pointer; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; overflow: hidden; border-radius: 7px; }
#yt-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 1px; color: #b9b7ae; font-size: 10px; letter-spacing: .1em; }
.youtube-link { color: #d9d7ce; text-decoration: none; border-bottom: 1px solid #77766f; padding-bottom: 2px; }
@media (min-width: 760px) {
  .topbar { padding: 0 42px; }
  .hero { padding: 26px 32px 0; }
  .art-frame img { max-height: none; width: min(100%,1100px); margin: auto; }
  .intro { padding-top: 112px; padding-bottom: 112px; }
  .music-section { padding: 68px 42px 125px; }
  .record img { width: 124px; height: 124px; }
}
@media (max-width: 600px) {
  .topbar { min-height: 56px; padding: 0 17px; font-size: 10px; }
  .edition { font-size: 9px; letter-spacing: .12em; }
  .hero { padding: 12px 10px 0; }
  .hero-caption { font-size: 9px; letter-spacing: .12em; }
  .intro { padding: 58px 23px 66px; }
  .eyebrow { font-size: 10px; margin-bottom: 19px; }
  h1 { font-size: clamp(39px, 10.5vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
  .subtitle { font-size: 17px; margin-bottom: 29px; }
  .meta { font-size: 9px; margin-bottom: 23px; }
  .copy { font-size: 15px; line-height: 1.95; letter-spacing: .025em; }
  .english { font-size: 16px; line-height: 1.8; margin-top: 19px; }
  .music-section { padding: 42px 22px 105px; }
  .music-label { font-size: 10px; margin-bottom: 23px; }
  .record { gap: 15px; }
  .record img { width: 82px; height: 82px; }
  .record-title { font-size: 23px; }
  .record-sub { font-size: 10px; }
  .music-note { font-size: 9px; margin-top: 27px; }
  footer { font-size: 9px; padding-bottom: 108px; }
  .music-dock { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); min-height: 64px; border-radius: 15px; }
  .music-dock img { width: 46px; height: 46px; }
  .dock-title { font-size: 14px; }
  .dock-state { font-size: 8px; }
  .player-panel { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; }
}
@media (max-width: 360px) {
  .intro { padding-left: 19px; padding-right: 19px; }
  h1 { font-size: 38px; }
  .record-title { font-size: 21px; }
  .music-note { letter-spacing: .07em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Native audio player: local M4A playback, no YouTube iframe */
.music-note { align-items: center; }
.source-link {
  color: #d9d7ce; text-decoration: none; border-bottom: 1px solid #77766f;
  padding-bottom: 3px; white-space: nowrap;
}
.source-link:hover { color: #fff; border-color: #fff; }
.music-dock {
  position: fixed; z-index: 50; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; width: min(340px, calc(100vw - 32px));
  min-height: 76px; padding: 9px 11px 9px 9px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  background: rgba(31,32,28,.97); color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.28); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.music-dock > img {
  width: 48px; height: 48px; border-radius: 7px; object-fit: cover; flex: 0 0 48px;
}
.dock-main { flex: 1; min-width: 0; }
.dock-info { display: flex; flex-direction: column; gap: 3px; margin-bottom: 5px; }
.dock-title { font-family: var(--serif); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.dock-state { font-family: var(--sans); font-size: 8px; letter-spacing: .13em; color: #c1c0b8; }
.dock-controls { min-width: 0; }
.dock-controls .progress { display: block; width: 100%; height: 3px; margin: 0; accent-color: #f3f1eb; cursor: pointer; }
.dock-controls .time-row { display: flex; justify-content: space-between; margin-top: 3px; font: 8px var(--sans); color: #aaa99f; }
.play-button {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
}
.play-button svg { width: 19px; height: 19px; fill: currentColor; }
.play-button:focus-visible, .progress:focus-visible, .source-link:focus-visible { outline: 2px solid #c9c4b8; outline-offset: 3px; }
@media (max-width: 600px) {
  .music-dock {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto; min-height: 76px; border-radius: 15px;
  }
  .music-dock > img { width: 48px; height: 48px; flex-basis: 48px; }
  .dock-title { font-size: 14px; }
  .dock-state { font-size: 8px; }
  .play-button { width: 40px; height: 40px; flex-basis: 40px; }
  .music-note { align-items: flex-start; }
  .source-link { font-size: 9px; letter-spacing: .07em; }
}
