:root {
  --wine:#aa1c41;
  --wine-dark:#71132d;
  --ink:#201a1c;
  --muted:#6f6568;
  --paper:#fffdfb;
  --line:#eadfe1;
  --soft:#f8f2f3;
  --green:#19734d;
  --red:#b4233e;
  color-scheme:light;
  font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--paper);color:var(--ink)}
body{margin:0;min-width:320px;background:linear-gradient(180deg,#fff8f5 0,#fffdfb 430px)}
a{color:inherit}
.site-header{height:62px;padding:0 max(20px,calc((100% - 1160px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(170,28,65,.12);background:rgba(255,253,251,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}
.home-link{display:inline-flex;gap:8px;align-items:center;text-decoration:none;font-weight:800;color:var(--wine);min-height:44px}
.home-link span{font-size:21px}.brand{font-size:14px;font-weight:800;color:#75676b}
main{width:min(1160px,calc(100% - 40px));margin:0 auto;padding:52px 0 76px}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding:24px 0 38px}
.beta,.eyebrow{display:inline-block;color:var(--wine);font-weight:900;font-size:12px;letter-spacing:.1em}
h1{font-size:clamp(42px,7vw,76px);line-height:1;margin:14px 0 18px;letter-spacing:-.055em}
.hero p{margin:0;max-width:620px;color:var(--muted);font-size:18px;line-height:1.75}
.hero-date{min-width:210px;border-left:3px solid var(--wine);padding:7px 0 7px 18px;display:grid;gap:5px}
.hero-date span{font-size:12px;color:var(--muted);font-weight:700}.hero-date strong{font-size:24px}
.interpretation{background:var(--wine-dark);color:white;border-radius:18px;padding:20px 24px;display:flex;gap:24px;align-items:center}
.interpretation strong{flex:0 0 auto;font-size:17px}.interpretation p{margin:0;color:#f5dfe5;line-height:1.65;font-size:14px}
.summary{display:grid;grid-template-columns:repeat(3,1fr);margin:34px 0;border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden}
.summary article{padding:24px;display:grid;gap:7px}.summary article+article{border-left:1px solid var(--line)}
.summary span{font-size:12px;font-weight:800;color:var(--wine)}.summary strong{font-size:22px}.summary small{font-size:12px;color:var(--muted);line-height:1.5}
.controls{display:grid;grid-template-columns:1fr 1fr 1.25fr 1.5fr;gap:12px;padding:22px;background:var(--soft);border-radius:18px;margin-bottom:44px}
.controls label{display:grid;gap:8px;font-size:12px;font-weight:800;color:#5f5356}
select,input{width:100%;height:46px;border:1px solid #d8c8cc;border-radius:11px;background:white;color:var(--ink);padding:0 13px;font:inherit;font-size:14px;outline:none}
select:focus,input:focus{border-color:var(--wine);box-shadow:0 0 0 3px rgba(170,28,65,.11)}
.results-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.results-head h2,.notes h2{font-size:28px;margin:7px 0 0;letter-spacing:-.04em}.results-head p{color:var(--muted);font-size:14px;margin:0}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-card{min-width:0;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 30px rgba(82,35,46,.055)}
.product-image{aspect-ratio:1/1;background:#f1eaeb;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;display:block;object-fit:cover}.product-image.is-missing img{display:none}
.product-image.is-missing::after{content:"이미지 미수집";position:absolute;inset:0;display:grid;place-items:center;color:#8d7e82;font-size:13px;font-weight:700}
.rank{position:absolute;top:10px;left:10px;min-width:40px;height:40px;padding:0 10px;border-radius:12px;display:grid;place-items:center;background:rgba(44,23,29,.9);color:#fff;font-size:15px;font-weight:900;box-shadow:0 4px 14px rgba(0,0,0,.16)}
.card-body{padding:16px;display:flex;flex-direction:column;flex:1}.meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--wine);font-size:12px;font-weight:900}.meta span:last-child{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card h3{font-size:15px;line-height:1.55;margin:10px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px}.price{font-weight:900;font-size:16px;margin:0 0 12px}.price.missing{font-size:12px;color:var(--muted);font-weight:700}
.change{font-size:12px;font-weight:800;margin-top:auto;padding:9px 10px;border-radius:9px;background:#f4f1f2;color:#62575a}.change.up{background:#e9f6ef;color:var(--green)}.change.down{background:#fff0f1;color:var(--red)}
.observed{font-size:11px;color:var(--muted);line-height:1.5;margin:10px 0}.missing-note{font-size:11px;color:#846f75;margin:0 0 10px}
.source-link,.source-missing{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;font-size:13px;font-weight:900;text-decoration:none}.source-link{background:var(--wine);color:white}.source-link:hover{background:var(--wine-dark)}.source-missing{background:#eee8e9;color:#8c7d81}
.more-button{display:block;margin:28px auto 0;border:1px solid var(--wine);border-radius:999px;background:white;color:var(--wine);font:inherit;font-weight:900;padding:12px 34px;cursor:pointer}.more-button:hover{background:var(--soft)}
.empty-state{padding:60px 20px;text-align:center;background:var(--soft);border-radius:16px;color:var(--muted)}
.notes{margin-top:60px;padding:30px;border-top:2px solid var(--ink);background:white}.notes h2{margin:0 0 18px}.notes ul{margin:0;padding-left:20px;color:var(--muted);font-size:14px;line-height:1.8}.notes li+li{margin-top:7px}
.error{grid-column:1/-1;padding:40px;background:#fff0f1;border-radius:16px;text-align:center;color:var(--red);line-height:1.7}.error button{display:block;margin:18px auto 0;border:0;border-radius:999px;padding:10px 22px;background:var(--wine);color:#fff;font:inherit;font-weight:800;cursor:pointer}
footer{border-top:1px solid var(--line);min-height:96px;padding:24px max(20px,calc((100% - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px;background:#fff}footer a{color:var(--wine);font-weight:900;text-decoration:none}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.controls{grid-template-columns:1fr 1fr}.search-label{grid-column:span 2}}
@media(max-width:650px){.site-header{padding:0 16px}.brand{font-size:12px}main{width:min(100% - 28px,1160px);padding:28px 0 54px}.hero{display:grid;padding:16px 0 26px}.hero p{font-size:15px}.hero-date{min-width:0}.interpretation{display:block;padding:18px}.interpretation p{margin-top:7px}.summary{grid-template-columns:1fr}.summary article{padding:18px}.summary article+article{border-left:0;border-top:1px solid var(--line)}.controls{grid-template-columns:1fr;padding:16px;margin-bottom:34px}.search-label{grid-column:auto}.results-head{align-items:start}.results-head h2{font-size:24px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-body{padding:12px}.product-card h3{font-size:14px}.meta{display:grid}.rank{min-width:35px;height:35px}.notes{padding:22px 18px;margin-top:46px}footer{align-items:flex-start;flex-direction:column}}
@media(max-width:380px){.product-grid{grid-template-columns:1fr}.product-image{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
