* { box-sizing: border-box; }
.gaengbon-page {
  --chapter-back-bg: #fff;
  --chapter-back-border: #27241e32;
  --chapter-back-hover: #f7f6f3;
  --chapter-back-border-hover: #27241e70;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background: #fff;
  color: #24221e;
  font-family: 'Noto Serif KR', 'Batang', 'Nanum Myeongjo', serif;
}
.gaengbon-page .lang-picker button:focus-visible { outline-color: currentColor; }
.gaengbon-paper {
  flex: 1;
  display: grid;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: 10px 18px max(36px, env(safe-area-inset-bottom));
}

.gaengbon-caption { text-align: center; }
.gaengbon-caption .memory-scene-number { color: #76726b; }
.gaengbon-caption h1 {
  margin: 10px 0 13px;
  font-size: clamp(31px, 6vw, 48px);
  font-weight: 400;
  letter-spacing: .18em;
  padding-left: .18em;
}
.gaengbon-caption p {
  margin: 0;
  color: #615c53;
  font-size: clamp(13px, 2.7vw, 16px);
  letter-spacing: .075em;
}
.gaengbon-player {
  width: min(100%, 420px);
  margin: 19px auto 0;
}
.gaengbon-player audio {
  display: block;
  width: 100%;
  height: 48px;
}
.gaengbon-tracklist {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e1da;
}
.gaengbon-tracklist li { border-bottom: 1px solid #e5e1da; }
.gaengbon-tracklist button {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  gap: .6em;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gaengbon-tracklist button:hover,
.gaengbon-tracklist button[aria-current="true"] { background: #f5f2ec; }
.gaengbon-tracklist button:focus-visible {
  outline: 2px solid #575145;
  outline-offset: -2px;
}
.gaengbon-track-number,
.gaengbon-track-length {
  color: #6b655b;
  font: 12px system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.gaengbon-player .gaengbon-audio-error {
  margin-top: 10px;
  color: #87382c;
}

.gaengbon-art {
  width: min(100%, 600px);
  height: clamp(200px, 42svh, 410px);
  position: relative;
}
.gaengbon-art > * { width: 100%; height: 100%; object-fit: contain; }
.gaengbon-painting, .gaengbon-art [hidden] { display: none; }
.gaengbon-art-note {
  width: min(100%, 420px);
  margin: 0;
  padding-inline: .75rem;
  text-align: center;
  color: #615c53;
  font-size: .875rem;
  line-height: 1.65;
  word-break: keep-all;
}
.gaengbon-art-note p { margin: .5rem 0 0; }

.gaengbon-art-note a { display: inline-block; padding: .15em .3em; color: inherit; text-underline-offset: .22em; }
.gaengbon-art-note a:focus-visible { outline: 2px solid currentColor; }


/* Gaengbon: a score on white paper, not a browser widget. */
.gaengbon-page {
  --ink: #24231f; --ink-soft: #777167; --ink-line: #e5e1da;
  font-family: 'Noto Serif KR', 'Noto Serif CJK KR', 'Nanum Myeongjo', 'Batang', 'AppleMyungjo', serif;
}
.gaengbon-paper { padding-top: 8px; padding-bottom: max(44px, env(safe-area-inset-bottom)); }
.gaengbon-art { width: min(100%, 650px); }
.gaengbon-art-note { width: min(100%, 520px); font-size: clamp(15px, 2.7vw, 17px); line-height: 1.9; color: #504d45; padding-inline: 4px; }
.gaengbon-art-note p { margin: 6px 0 0; }
.gaengbon-art-note a { color: #302d27; text-decoration-thickness: 1px; text-underline-offset: .28em; padding: 0 .35em; }
.gaengbon-caption { margin-top: 23px; }
.gaengbon-caption .memory-scene-number { font: 12px/1.4 Georgia, serif; letter-spacing: .26em; color: #81796f; }
.gaengbon-caption h1 { font-weight: 600; font-size: clamp(38px, 6vw, 52px); letter-spacing: .20em; margin: 4px 0 8px; line-height: 1.3; }
.gaengbon-caption p { font-size: 16px; letter-spacing: .14em; color: #70685d; }
.gaengbon-player { width: min(100%, 480px); margin: 23px auto 0; }
.gaengbon-player audio[hidden], .ink-player[hidden] { display: none; }
.ink-player { padding: 0 3px 5px; }
.ink-player-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 0 3px 3px; min-height: 29px; }
.ink-player-kicker { color: #777064; font-size: 12px; letter-spacing: .08em; }
.ink-current-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.ink-transport { display: flex; align-items: center; gap: 13px; }
.ink-transport button { border: 0; background: none; color: var(--ink); padding: 0; cursor: pointer; flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; }
.ink-transport button svg { width: 48px; height: 48px; overflow: visible; }
.ink-ring { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ink-play-mark { fill: currentColor; }
.ink-pause-mark { display: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; fill: none; }
.ink-play.is-playing .ink-play-mark { display: none; }
.ink-play.is-playing .ink-pause-mark { display: block; }
.ink-transport button:hover { color: #74675a; }
.ink-transport button:focus-visible, .ink-seek:focus-within { outline: 2px solid #796e5f; outline-offset: 3px; border-radius: 4px; }
.ink-volume { width: 44px !important; }
.ink-volume svg { width: 27px !important; height: 27px !important; }
.ink-speaker { fill: currentColor; }
.ink-waves, .ink-muted-mark { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ink-muted-mark, .ink-volume[aria-pressed=true] .ink-waves { display: none; }
.ink-volume[aria-pressed=true] .ink-muted-mark { display: block; }
.ink-seek-area { flex: 1; min-width: 0; }
.ink-seek { position: relative; height: 34px; --progress: 0%; }
.ink-seek > svg { position: absolute; left: 0; width: 100%; height: 18px; top: 8px; overflow: visible; }
.ink-track-base { fill: none; stroke: #d6d0c6; stroke-width: 1.8; stroke-linecap: round; }
.ink-track-fill { fill: #282621; }
.ink-track-grain { fill: none; stroke: #8b8479; stroke-width: .42; opacity: .55; }
.ink-seek-tip { width: 5px; height: 7px; background: #25231f; border-radius: 55% 40% 55% 45%; position: absolute; top: 13px; left: var(--progress); transform: translateX(-50%) rotate(12deg); pointer-events: none; }
.ink-range { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; opacity: 0; cursor: pointer; }
.ink-times { display: flex; justify-content: space-between; font: 13px/1.2 Georgia, serif; color: #6e665b; font-variant-numeric: tabular-nums; margin-top: -2px; }
.gaengbon-tracklist { margin-top: 15px; border-top: 1px solid var(--ink-line); }
.gaengbon-tracklist li { border-color: var(--ink-line); }
.gaengbon-tracklist button { position: relative; min-height: 48px; padding: 9px 12px 9px 14px; font-size: 16px; grid-template-columns: 2.65em minmax(0,1fr) auto; gap: 9px; line-height: 1.5; }
.gaengbon-tracklist button:hover { background: #f8f6f1; }
.gaengbon-tracklist button[aria-current=true] { background: #f4f1eb; }
.gaengbon-tracklist button[aria-current=true]::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; background: var(--ink); border-radius: 55% 35% 45% 30%; }
.gaengbon-tracklist button[aria-current=true] > span:nth-child(2) { font-weight: 600; }
.gaengbon-track-number, .gaengbon-track-length { font: 13px/1.5 Georgia, serif; color: #756d62; font-variant-numeric: tabular-nums; }
@media(max-width:600px) {
 .gaengbon-paper { padding-inline: 22px; }
 .gaengbon-art { height: clamp(185px, 34svh, 330px); }
 .gaengbon-caption { margin-top: 19px; }
 .gaengbon-player { margin-top: 18px; }
 .ink-transport { gap: 8px; }
 .gaengbon-tracklist button { min-height: 48px; font-size: 16px; padding-inline: 10px; gap: 6px; }
}

.gaengbon-caption .gaengbon-guide{font-size:clamp(14px,2.6vw,16px);font-weight:400;line-height:1.8;letter-spacing:0;max-width:420px;margin:12px auto 0;padding:0 8px;word-break:keep-all;color:#615b52;}
.gaengbon-tracklist button{font-family:inherit;font-weight:500;letter-spacing:.025em;color:#302c26;}
.gaengbon-track-number,.gaengbon-track-length,.ink-times{font-family:Georgia,'Noto Serif KR',serif;color:#665f55;}
.ink-player-kicker{font-size:14px;color:#655e55;}.ink-current-title{font-weight:500;}
.gaengbon-art-note a{display:inline-flex;align-items:center;min-height:36px;}
.gaengbon-page .lang-picker button{font-size:12px;}

/* 2026-12-02: the painting and the score are enough; commentary belongs to the selected row. */
.gaengbon-paper{align-content:start;padding-top:12px;}
.gaengbon-caption{margin:0 0 5px;}
.gaengbon-caption h1{font-weight:500;font-size:clamp(32px,5vw,44px);margin:0;line-height:1.4;letter-spacing:.18em;}
.gaengbon-art{height:clamp(190px,38svh,360px);}
.gaengbon-player{margin:5px auto 0;}
.gaengbon-row-note[hidden],.ink-volume-panel[hidden]{display:none;}
.gaengbon-row-note{padding:4px 15px 15px 49px;background:#f9f7f2;color:#514c43;font-size:15px;line-height:1.85;word-break:keep-all;overflow-wrap:anywhere;}
.gaengbon-row-note p{margin:0;}
.gaengbon-row-note a{display:inline-flex;align-items:center;min-height:40px;color:#39332a;text-underline-offset:.24em;}
.gaengbon-row-note .ink-first-guide{margin-top:7px;font-size:13px;color:#6b6257;}
.ink-volume-wrap{position:relative;flex:0 0 44px;}
.ink-volume-panel{position:absolute;z-index:10;bottom:calc(100% + 5px);right:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 10px 9px;width:72px;background:#fffdf8;border:1px solid #ded8cd;border-radius:9px;box-shadow:0 5px 16px #241d1518;font-size:13px;color:#4a443b;}
.ink-volume-range{writing-mode:vertical-lr;direction:rtl;appearance:auto;-webkit-appearance:slider-vertical;width:44px;height:116px;margin:0;accent-color:#302b25;cursor:pointer;touch-action:none;}
.ink-volume-value{font:12px Georgia,serif;font-variant-numeric:tabular-nums;}
.ink-volume.is-muted .ink-waves{display:none;}.ink-volume.is-muted .ink-muted-mark{display:block;}
.ink-volume[aria-expanded=true]{color:#74675a;}
.ink-transport button:focus-visible{outline:2px solid #796e5f;outline-offset:2px;border-radius:50%;}
.ink-transport button:focus:not(:focus-visible){outline:none;}
@media(max-width:600px){.gaengbon-paper{padding-top:8px;}.gaengbon-art{height:clamp(180px,32svh,280px);}.gaengbon-row-note{padding-left:42px;}.gaengbon-caption{margin:0 0 3px;}}
