:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #22242a;
  --muted: #62635f;
  --line: #d9d9d1;
  --accent: #dc4727;
  --focus: #b23b22;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; font-size: 1rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
button, input, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { border: 0; background: transparent; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 4; padding: .8rem 1.2rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: .5rem; }
.wrap { width: min(100% - clamp(3rem, 9.8vw, 10rem), 77rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-block; color: #202126; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-style: italic; font-size: 3.05rem; letter-spacing: -.112em; line-height: 1; padding: 0 .1em .09em 0; }
.brand span { color: var(--accent); }
.header-inner nav { display: flex; gap: 1.8rem; align-items: center; }
.nav-item { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 0; font-size: .9rem; font-weight: 650; color: #51534f; text-decoration: none; }
.nav-item:hover, .text-button:hover, .example-button:hover { color: var(--focus); }
.nav-current { color: var(--ink); }
.nav-current .icon { color: var(--accent); stroke-width: 1.9; }
.hero { background-color: #f4f1e9; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr .95fr; align-items: center; position: relative; isolation: isolate; min-height: clamp(20rem, 29.3vw, 26.4rem); }
.hero-content { z-index: 1; align-self: center; margin-block: 2.6rem; }
h1 { font-size: clamp(2.65rem, 4.05vw, 4.1rem); letter-spacing: -.078em; font-weight: 820; line-height: 1.19; }
h1 span { color: var(--accent); }
.hero-content p { color: #4e514e; font-size: clamp(.98rem, 1.1vw, 1.1rem); line-height: 1.7; letter-spacing: -.025em; margin-top: .98rem; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.65rem; padding: .58rem 1.08rem; margin-top: 1.35rem; border-radius: .38rem; text-decoration: none; font-size: .9rem; font-weight: 680; color: #fff; background: var(--ink); }
.hero-cta:hover { background: #3e4046; }
.hero-art { position: absolute; right: -.6%; width: 51%; height: 100%; display: grid; place-items: center; pointer-events: none; mix-blend-mode: multiply; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; max-height: 26.7rem; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 95%, transparent); mask-composite: intersect; }
.workspace { padding-block: clamp(2rem, 3.9vw, 3.7rem) 3.8rem; }
.selection-grid { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(0,1fr); gap: clamp(1.65rem, 3.8vw, 3.6rem); align-items: start; }
.panel-heading, .seed-bottom, .dialog-head, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.3; font-weight: 760; letter-spacing: -.065em; }
.seed-count { color: #ab391e; font: 600 .82rem/1 var(--mono); letter-spacing: .025em; background: #fbebe0; padding: .4rem .6rem; border-radius: 2rem; white-space: nowrap; }
.selection-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.button, .recommend-button, .catalog-add, .result-play { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.6rem; border-radius: .35rem; padding: .55rem .9rem; font-weight: 650; font-size: .9rem; line-height: 1.3; }
.button, .catalog-add, .result-play { background: #fffefa; border: 1px solid #c8c8c0; }
.button:hover, .result-play:hover, .catalog-add:not(:disabled):hover { border-color: var(--ink); }
.button:disabled { color: #7b7c73; border-color: var(--line); }
.seed-list { list-style: none; margin: 1rem 0; padding: 0; }
.empty-state { background: #f4f3ed; min-height: 10rem; border: 1px dashed #c7c6b9; border-radius: .43rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .26rem; padding: 1.1rem; text-align: center; }
.empty-state strong { font-size: 1rem; font-weight: 650; letter-spacing: -.04em; }
.empty-state small { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.empty-record { position: relative; width: 2.45rem; height: 2.45rem; border: 1.3px solid #73746d; border-radius: 50%; margin-bottom: .22rem; background: radial-gradient(circle at center, #f4f3ed 0 7%, #74756d 8% 10%, transparent 11% 24%, #74756d 25% 27%, transparent 28%), conic-gradient(from 24deg, transparent 0 25%, #e0dfd4 29% 32%, transparent 37% 76%, #e0dfd4 80% 83%, transparent 90%); }
.empty-record::after { content: ''; position: absolute; inset: 3px; border: 1px solid transparent; border-right-color: #aaa99e; border-left-color: #aaa99e; border-radius: 50%; rotate: -30deg; }
.seed-row, .catalog-row, .suggestion { display: flex; align-items: center; gap: .72rem; width: 100%; min-width: 0; text-align: left; border-bottom: 1px solid var(--line); }
.seed-row { padding: .63rem 0; }
.seed-row:first-child, .catalog-row:first-child { border-top: 1px solid var(--line); }
.track-info { display: grid; flex: 1; min-width: 0; gap: .05rem; }
.track-info strong, .track-info small { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track-info strong { color: var(--ink); font-weight: 670; font-size: 1rem; line-height: 1.45; }
.track-info small, .result-meta { color: var(--muted); font-size: .825rem; line-height: 1.5; }
.track-cover, .mini-cover { display: inline-block; flex: none; position: relative; isolation: isolate; width: clamp(2.45rem, 3.4vw, 3.12rem); aspect-ratio: 1; border-radius: .2rem; overflow: hidden; box-shadow: inset 0 0 0 1px #0000000d; background-color: #d6c8af; }
.track-cover::after, .mini-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, #fff1, #fff1 1px, transparent 1px, transparent 3px); mix-blend-mode: soft-light; }
.tone-0 { background: repeating-radial-gradient(ellipse at -28% 16%, #d95832 0 7%, #342d27 8% 16%, #fd8949 17% 21%); }
.tone-1 { background: radial-gradient(circle at 66% 33%, #fdd383 0 14%, transparent 15%), linear-gradient(152deg, transparent 0 55%, #374d66 56% 69%, #788da1 70% 75%, #273f53 76%), #bac2ae; }
.tone-2 { background: repeating-linear-gradient(58deg, transparent 0 10%, #385948 11% 16%, transparent 17% 23%), #cfdaa4; }
.tone-3 { background: repeating-radial-gradient(ellipse at 90% 12%, #605276 0 8%, #d2a9b6 9% 20%, #ede1cf 21% 29%); }
.tone-4 { background: repeating-linear-gradient(155deg, #222839 0 12%, #45647a 13% 19%, #e89971 20% 24%, #414357 25% 31%); }
.tone-5 { background: radial-gradient(ellipse at 12% 75%, #ab4647 0 35%, transparent 36%), radial-gradient(ellipse at 83% 25%, #d1af67 0 33%, transparent 34%), #edd9c0; }
.tone-6 { background: repeating-radial-gradient(ellipse at center, #d1c18e 0 11%, #775c45 12% 15%, #3d4235 16% 25%); }
.tone-7 { background: linear-gradient(135deg, transparent 0 43%, #e4eaef 44% 53%, transparent 54%), linear-gradient(40deg, #37485c 0 30%, #8798ad 31% 70%, #b0a3ac 71%); }
.icon-button, .dialog-close, .add-mark { display: inline-grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; font-weight: 450; line-height: 1; }
.icon-button:hover, .dialog-close:hover { border-color: var(--ink); }
.icon-button { border-color: transparent; }
.moment-button { flex: none; border: 1px solid var(--line); border-radius: 2rem; padding: .4rem .7rem; font-size: .81rem; font-weight: 650; }
.moment-button:hover { background: #eeeee6; }
.seed-bottom { margin-top: .9rem; }
.example-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; line-height: 1.3; font-size: .875rem; color: #52544f; font-weight: 600; }
.example-button { padding: .55rem 0; }
.text-button { border-bottom: 1px solid #b2b4ab; padding: .08rem 0; }
.recommend-button { border: 1px solid transparent; background: #bd3c20; color: #fff; }
.recommend-button:not(:disabled):hover { background: #a83118; }
.recommend-button:disabled { background: #e6e5dd; color: #6c6d64; }
#analysis-status { color: #613e2f; font-size: .9rem; line-height: 1.5; margin-top: .75rem; }
#analysis-status:empty { margin: 0; }
.suggestions-panel { border-left: 1px solid var(--line); padding-left: clamp(1.65rem, 3.8vw, 3.6rem); }
.suggestions { margin-top: .85rem; }
.suggestion { background: transparent; padding: .56rem 0; min-height: 3.7rem; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover .track-info strong { color: #a4381e; }
.suggestion:hover .add-mark { border-color: var(--ink); color: var(--ink); }
.suggestion:disabled { cursor: default; }
.suggestion:disabled .add-mark { color: #77796f; }
.add-mark { width: 1.7rem; height: 1.7rem; font-size: 1.15rem; background: #ffffff65; }
.results { margin-top: 2.45rem; padding-top: 2rem; border-top: 1px solid #bdbdb2; }
.result-heading { display: flex; align-items: center; gap: .8rem; }
.result-heading > .icon { color: var(--accent); font-size: 1.4rem; }
.result-list { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.result-card { min-width: 0; padding: clamp(1rem, 1.6vw, 1.4rem); border: 1px solid var(--line); border-radius: .5rem; background: #fffefa; }
.result-card > .track-cover { width: 4rem; margin-bottom: .8rem; }
.result-kicker { color: #ab3c23; font: 650 .8rem/1.5 var(--sans); }
.result-title { color: var(--ink); font-size: 1.26rem; font-weight: 730; line-height: 1.3; letter-spacing: -.035em; }
.result-match { border-top: 1px solid var(--line); color: #55564f; font-size: .9rem; margin-top: .8rem; padding-top: .7rem; }
.result-play { margin-top: .9rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.6rem; }
.foot-brand { font-size: 1.75rem; }
.site-footer .text-button { font-size: .81rem; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid #c5c4b9; border-radius: .78rem; width: min(34rem, calc(100% - 2rem)); max-height: min(84dvh, 48rem); overflow: auto; padding: clamp(1.1rem, 3vw, 1.85rem); box-shadow: 0 1rem 6rem #18191c3d; overscroll-behavior: contain; }
dialog::backdrop { background: #24251fb3; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { margin-bottom: 1.1rem; }
.dialog-head h2 { font-size: 1.38rem; }
.dialog-close { width: 2.1rem; height: 2.1rem; background: #fffefa; }
.search-field { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; background: #fffefa; border: 1px solid #a9aba0; border-radius: .35rem; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input { display: block; min-width: 0; flex: 1; border: 0; padding: .2rem 0; background: transparent; font-size: 1rem; outline: none; }
.catalog-list { margin-top: 1rem; }
.catalog-row { padding: .65rem 0; }
.catalog-add { min-height: 2.1rem; padding: .4rem .6rem; }
.catalog-add:disabled { color: #77786f; border-color: #deded7; }
#moment-body p, .method-body p, #credits-body { font-size: .98rem; line-height: 1.75; color: #4e514c; }
#moment-body audio, #moment-body input[type="range"] { width: 100%; margin-block: .55rem; }
#moment-body input[type="range"] { accent-color: var(--accent); }
#moment-body label { display: block; margin-top: .7rem; }
.method-body h3, #credits-body h3 { margin: 1.25rem 0 .25rem; color: var(--ink); font-size: 1.02rem; font-weight: 710; letter-spacing: -.045em; }
.method-body h3:first-child, #credits-body h3:first-child { margin-top: 0; }
.source-link, #credits-body a { text-decoration-thickness: 1px; text-underline-offset: .19rem; color: #973a23; }
.source-link { display: inline-flex; margin-top: .55rem; font-size: .9rem; }
@media (min-width: 1500px) { .hero-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .hero-inner { min-height: 19rem; } .hero-art { right: -2%; width: 50%; } .hero-content p { font-size: .95rem; } .selection-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 1.45rem; } .suggestions-panel { padding-left: 1.45rem; } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.3rem); }
  .header-inner { min-height: 3.85rem; }
  .brand { font-size: 2.53rem; }
  .header-inner nav { gap: 1rem; }
  .nav-item { font-size: .85rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: unset; }
  .hero-content { margin-block: 1.95rem .3rem; }
  h1 { font-size: clamp(2.3rem, 6.8vw, 3.25rem); }
  .hero-content p { margin-top: .8rem; }
  .hero-cta { min-height: 2.5rem; margin-top: .85rem; }
  .hero-art { position: relative; right: auto; width: min(100%, 32rem); height: clamp(11rem, 39vw, 16rem); justify-self: end; margin: -.6rem -2% .4rem 0; }
  .hero-art img { object-position: 70% 50%; }
  .workspace { padding-block: 1.75rem 2.5rem; }
  .selection-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .suggestions-panel { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .empty-state { min-height: 9.25rem; }
  .result-list { grid-template-columns: 1fr; }
  .result-card { padding: 1.15rem; }
  .foot-brand { font-size: 1.75rem; }
}
@media (max-width: 390px) { .wrap { width: calc(100% - 1.8rem); } .seed-row, .catalog-row { gap: .45rem; } .moment-button { padding: .4rem .48rem; } .hero-content p { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cover-player { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; padding: 0; border-radius: .22rem; }
.cover-player .track-cover { grid-area: 1 / 1; width: 2.8rem; }
.cover-player .play-symbol { grid-area: 1 / 1; z-index: 1; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #fff; background: #25262adc; font-size: .6rem; line-height: 1; }
.cover-player:hover .play-symbol, .cover-player.is-playing .play-symbol { background: #a6341c; }
.play-symbol { flex: none; font-size: .72em; }
.remove-seed { font-size: 1.38rem; font-weight: 350; color: #686b61; }
.moment-button.is-set { background: #f9e8df; border-color: #e9ad96; color: #92351e; }
.result-top { display: flex; align-items: center; gap: .75rem; }
.result-title-group { flex: 1; min-width: 0; }
.result-cover { display: block; flex: none; width: 3.2rem; aspect-ratio: 1; border-radius: .2rem; }
.result-meta { margin-top: .1rem; }
.result-match strong { color: #373936; font-size: .9rem; }
.result-match p { margin-top: .3rem; line-height: 1.55; }
.result-buttons { margin-top: .85rem; display: flex; flex-direction: column; gap: .4rem; align-items: start; }
.result-buttons .result-play { margin: 0; font-size: .82rem; font-variant-numeric: tabular-nums; }
.result-play.is-playing { box-shadow: inset 0 0 0 1px var(--accent); }
.candidate-play { background: #303235; color: #fff; border-color: #303235; }
.candidate-play:hover { background: #46484a; }
.reference-play { background: transparent; }
.result-source { margin-top: .8rem; font-size: .83rem; }
.wave-control { position: relative; isolation: isolate; height: 5.5rem; margin-top: 1.25rem; border: 1px solid #d6d4c8; border-radius: .36rem; background: #eeede3; }
.wave-control svg { width: 100%; height: 100%; display: block; fill: #62685b; }
.wave-control:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.wave-marker { position: absolute; z-index: 1; top: -3px; bottom: -3px; width: 2px; transform: translateX(-1px); background: var(--accent); pointer-events: none; }
.wave-marker::before { content: ''; display: block; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); width: .63rem; height: .63rem; border-radius: 50%; background: var(--accent); }
#moment-body .moment-slider { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wave-times { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.wave-times strong { color: #a23820; }
.moment-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.primary-button, .secondary-button { padding: .55rem .84rem; min-height: 2.5rem; border-radius: .35rem; font-size: .9rem; font-weight: 650; }
.primary-button { background: #bd3c20; color: #fff; }
.primary-button:hover { background: #a83118; }
.secondary-button { border: 1px solid #c8c8c0; background: #fffefa; }
.secondary-button:hover { border-color: var(--ink); }
.credit-row { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.credit-row p { font-size: .86rem; }
.credit-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.credit-links .source-link { font-size: .82rem; }
.catalog-empty, .dialog-status { color: #6a5143; font-size: .9rem; }
.catalog-empty { padding: 1rem 0; }
.dialog-status:not(:empty) { margin: .8rem 0 0; }
.dialog-open { overflow: hidden; }
.example-button:disabled { color: #8a8c81; }

/* A listening cue sits next to the original sleeve; the artwork stays intact. */
.hero-listen { position:absolute; z-index:2; right:1.1rem; bottom:.7rem; display:flex; align-items:center; gap:.45rem; padding:.25rem .28rem .25rem .65rem; border:1px solid #c5c1b3; border-radius:2rem; background:#faf9f1f5; box-shadow:0 2px 8px #48311a12; }
.sleeve-label { font-size:.76rem; color:#656052; }
.sleeve-cue { min-height:1.7rem; display:inline-flex; align-items:center; gap:.4rem; border-radius:1.2rem; background:#242526; color:#fff; padding:.22rem .65rem; font-size:.78rem; }
.sleeve-cue .play-text { max-width:14ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sleeve-cue.is-playing { background:var(--accent); }
.selection-progress, #seed-meter { display:flex; align-items:center; gap:.25rem; }
.selection-progress { gap:.65rem; }
#seed-meter i { width:.84rem; height:.32rem; background:#dfddd1; border-radius:.3rem; }
#seed-meter i.filled { background:var(--accent); }
.catalog-tools, .catalog-bottom { display:flex; justify-content:space-between; align-items:center; gap:.65rem; margin-top:.85rem; }
.search-filters { display:flex; gap:.3rem; }
.search-filters button { border:1px solid var(--line); border-radius:2rem; padding:.4rem .73rem; font-size:.85rem; }
.search-filters button[aria-pressed=true] { color:#fff; border-color:var(--ink); background:var(--ink); }
.search-state,.result-context { font-size:.86rem; color:#605d56; line-height:1.55; }
.search-state { margin:.75rem 0 0; }
.catalog-list { min-height:4rem; overflow-y:auto; overscroll-behavior:contain; max-height:min(47dvh,27rem); }
.catalog-bottom { justify-content:flex-end; border-top:1px solid var(--line); padding-top:.7rem; }
.source-meta { font-size:.72rem; color:#6c665d; line-height:1.3; }
.track-info .source-meta { display:block; margin-top:.15rem; }
.result-context { margin:0 0 1.2rem; }
.evidence-list { display:flex; flex-wrap:wrap; gap:.3rem; margin:.55rem 0 0; }
.evidence-list span { border-radius:.25rem; background:#f2eee2; padding:.16rem .42rem; font-size:.75rem; color:#5c5041; }
.evidence-list .measured { background:#f9e5d7; color:#87341f; }
.result-credit { font-size:.76rem; color:var(--muted); margin:.7rem 0 0; }
.result-credit a { color:inherit; }
.credits-search { margin-top:.9rem; width:100%; font:inherit; padding:.5rem .68rem; border-radius:.3rem; border:1px solid var(--line); background:#fffefa; }
#catalog-dialog .dialog-status:not(:empty) { font-size:.82rem; }
@media(max-width:680px) {
  .hero-listen { right:.6rem; bottom:.65rem; }
  .catalog-list { max-height:min(43dvh,23rem); }
  .catalog-row { padding:.55rem 0; }
  #seed-meter i { width:.64rem; }
}
.shelf-row { cursor:default; padding:.52rem 0; }
.shelf-row .track-info { flex:1; }
.shelf-row .cover-player .play-symbol { opacity:.9; }
.shelf-add { flex:none; display:grid; place-items:center; min-width:2.1rem; min-height:2.1rem; border-radius:50%; border:1px solid var(--line); background:#fffefa; font-size:1.1rem; }
.shelf-add:enabled:hover { background:var(--ink); color:#fff; }
.shelf-add:disabled { color:#929087; }
.rotate-shelf { margin-top:.55rem; }
.seed-list.drop-ready { outline:2px dashed var(--accent); outline-offset:2px; }
