/* Charim: paper, ink, a red seal, and a table set for two. */
:root{--muted:#65675e;--line:#d7d5c8;--green:#374a37;--white:#fcfbf5}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{min-width:280px}
button,a,input,select{touch-action:manipulation}
button{line-height:1.5}
.brand{min-height:44px}
.header-inner{height:86px;gap:64px}
.header-note{letter-spacing:.08em;font-size:12px}
.brand small{font-size:12px}
.nav-link{font-size:14px;min-width:52px}
#history-count{font-size:12px}
.shell{max-width:1240px}
.hero{grid-template-columns:1fr 1.05fr;gap:64px;padding:38px 0 34px;align-items:center}
.hero h1{font-size:46px;line-height:1.42;letter-spacing:-2.6px;margin:17px 0 15px}
.hero h1 em:after{display:none}
.hero-copy>p{font-size:14px;line-height:1.9;color:var(--muted)}
.eyebrow{font-size:12px;letter-spacing:.05em}
.hero-jump{display:inline-flex;align-items:center;gap:28px;min-height:44px;margin-top:12px;font-size:13px;font-weight:600;border-bottom:1px solid var(--line)}
.hero-jump span{color:var(--red);font-size:19px}
.hero-figure img{height:268px;border-radius:0;object-position:center 58%}
.vertical-note{top:15px;right:15px;box-shadow:none;background:var(--paper);font-size:14px;padding:12px 8px;letter-spacing:3px}
.hero-caption{margin-top:11px;align-items:center;gap:12px;font-size:12px}
.hero-caption b{display:flex;align-items:center;gap:9px;font-size:13px}
.caption-index{font-size:12px;color:var(--red);margin-right:4px;font-variant-numeric:tabular-nums}
.pair-cross{color:var(--red);font-weight:400}
.finder{padding:0 26px 22px;border-color:var(--line);border-top:3px solid var(--ink);background:var(--white);scroll-margin-top:20px}
.finder-head{margin-bottom:20px}
.mode-tabs{gap:30px}
.mode-tab{padding:19px 0;font-size:15px;min-height:60px}
.mode-tab[aria-selected=true]:after{height:3px}
.small-note{font-size:12px}
#selection:focus-visible{outline:2px solid var(--red);outline-offset:7px}
.section-label{font-size:14px;margin-bottom:14px;gap:12px;align-items:baseline}
.section-label .question{font-size:14px;font-weight:600;color:var(--ink)}
.section-label>span:last-child{font-size:12px}
.drink-grid{gap:7px}
.drink{border:1px solid transparent;border-radius:0;background:transparent;min-height:110px;gap:6px;padding:12px 6px;transition:background .15s,border-color .15s}
.drink:hover{transform:none;border-color:var(--line);background:#f2f2e9}
.drink svg{width:33px;height:33px;margin-bottom:1px}
.drink span{font-size:14px;font-weight:500}
.drink small{font-size:13px;line-height:1.5;color:var(--muted);white-space:normal;word-break:keep-all}
.drink[data-drink="makgeolli"] svg{transform:scale(1.12) translateY(-1px)}
.drink[data-drink="whisky"] svg{transform:scale(1.08)}
.drink[data-drink="soju"] svg{transform:scale(1.04)}
.drink[aria-pressed=true]{border:1px solid #85937b;background:#edf0e5;color:var(--green)}
.drink[aria-pressed=true]:after{top:6px;right:8px;color:var(--green);font-size:12px}
.drink[aria-pressed=true] span{font-weight:700}
.selection-note{display:flex;align-items:baseline;gap:9px;padding:12px 0 0;min-height:34px;font-size:13px;color:var(--muted);line-height:1.8}
.selection-status{margin:12px 0 0;font-size:13px;line-height:1.8;color:var(--green)}
.mode-note{margin:14px 0 0;font-size:13px;line-height:1.8;color:var(--muted);word-break:keep-all}
.conditions-summary{font-size:13px;line-height:1.7}
.selection-note strong{font-weight:600;color:var(--green);white-space:nowrap}
.selection-mark{font-size:12px;color:var(--green)}
.finder-bottom{margin-top:16px;padding-top:16px;border-top:1px solid var(--line);gap:24px}
.conditions-trigger{font-size:13px;min-height:44px;gap:9px;flex-wrap:wrap;text-align:left}
.conditions-trigger span{display:inline-flex;align-items:center;gap:15px;font-size:13px;margin-left:8px}
.conditions-trigger b{font-size:20px;line-height:1;font-weight:400;color:var(--ink)}
.primary{border-radius:1px;min-height:52px;padding:14px 21px;font-size:14px;gap:45px}
.primary .arrow,.choose-button .arrow{font-size:20px;line-height:1;flex:none}
.choose-button{display:inline-flex;align-items:center;justify-content:space-between;gap:12px}
.secondary,.choose-button{border-radius:1px}
.conditions{border-top:1px solid var(--line);background:var(--paper);margin-top:20px;padding:22px;gap:22px 28px}
.field-label{font-size:13px}
.field-note{font-size:13px}
.chip{min-height:44px;border-radius:1px;font-size:13px}
.select{font-size:14px;border-radius:1px;min-height:48px}
.search-field{border-radius:1px;min-height:48px;font-size:14px;background:var(--paper)}
.food-picker{gap:12px}
.food-option{border-radius:0;background:transparent}
.food-option img{height:94px}
.food-option span{font-size:13px;padding:11px 10px;min-height:44px}
.food-option[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px;background:#edf0e5}
.pair-input{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.editors{margin:37px 0 48px}
.section-title{align-items:end;margin-bottom:20px;gap:16px}
.section-title .eyebrow{font-size:12px;font-weight:400;color:var(--muted);margin-bottom:9px}
.section-title .eyebrow:before{display:none}
.section-title h2{font-size:25px;line-height:1.4}
.section-title p{font-size:12px;line-height:1.7}
.editor-grid{gap:25px}
.editor-card{grid-template-columns:83px 1fr 16px;gap:15px;padding-top:17px;align-items:center;min-width:0}
.editor-card img{width:83px;height:auto;aspect-ratio:1;object-fit:cover;border-radius:0}
.editor-card small{font-size:12px;color:var(--red)}
.editor-card h3{font-size:15px;line-height:1.65;margin:4px 0}
.editor-card p{font-size:13px;line-height:1.7;word-break:keep-all}
.editor-arrow{font-size:19px;align-self:center;color:var(--muted)}
.editor-card:hover h3{text-decoration:underline;text-underline-offset:4px}
.footer{padding:25px 0 30px;gap:20px}
.footer button{min-height:32px;font-size:12px}
.footer>div{gap:2px}
.footer>div>span{font-size:12px;line-height:1.7}
.back{margin:23px 0 19px;min-height:44px;font-size:13px}
.result-intro{margin-bottom:24px}
.result-intro h1{font-size:39px;margin-top:10px;letter-spacing:-1.8px}
.result-intro p{margin-top:10px;font-size:14px}
.result-count{font-size:12px}
.filter-bar{padding:9px 0;margin-bottom:27px;min-height:62px}
.filter-tag{font-size:12px;border-radius:0;background:#e8ebdf;padding:7px 10px}
.filter-bar>button{font-size:13px;min-height:44px;padding:5px 0 5px 12px}
.result-grid{gap:27px;padding-bottom:28px;align-items:stretch}
.food-image{border-radius:0}
.food-image img{height:222px}
.food-card:hover .food-image img{transform:none}
.food-image .badge{border-radius:0;top:12px;left:12px;font-size:12px}
.food-head{align-items:baseline;flex-wrap:wrap;margin-top:19px;gap:6px 12px}
.food-head h2{font-size:26px;line-height:1.5;letter-spacing:-1px;word-break:keep-all}
.food-head span{font-size:12px;line-height:1.6}
.food-sub{font-size:13px;line-height:1.8;margin-top:5px;word-break:keep-all}
.food-reason{display:block;font-size:14px;line-height:1.85;margin:17px 0 21px;padding-top:13px;border-top:1px solid var(--line);color:var(--ink)}
.food-reason>span{display:block;font-size:13px;color:var(--red);margin-bottom:6px}
.food-actions{gap:10px;flex-wrap:wrap;margin-top:auto}
.food-actions button{font-size:13px;min-height:44px}
.detail-button{text-underline-offset:5px}
.choose-button{background:var(--green);border-color:var(--green);color:var(--white);padding:10px 13px;white-space:nowrap}
.choose-button:hover{background:#283a28;border-color:#283a28}
.drink-visual{height:222px;border-radius:0;background:#e9ecdf;border-color:#d8ddcd}
.drink-visual svg{width:83px;height:83px}
.drink-visual span{font-size:27px}
.notice{font-size:12px;line-height:1.85;margin-bottom:33px}
.done-layout{max-width:1010px;gap:65px;padding:50px 0 65px}
.done-image{height:430px;border-radius:0}
.done-stamp{border-radius:3px;width:73px;height:73px;font-size:22px;transform:rotate(-8deg);border-width:2px}
.done-copy h1{font-size:40px}
.done-copy h2{line-height:1.7;word-break:keep-all}
.done-meta{font-size:13px;line-height:1.85}
.done-actions{gap:11px}
.done-actions .primary{gap:22px}
.history .field-note{font-size:13px}
.history-row p{font-size:13px;line-height:1.8}
.history-row img{border-radius:0}
.empty{padding:52px 16px 75px}
.empty h2{line-height:1.6;word-break:keep-all}
.empty p{font-size:14px}
dialog{border-radius:1px;border:1px solid var(--line);max-height:90dvh}
dialog::backdrop{background:#1c221db3;backdrop-filter:none}
.close{width:44px;height:44px;top:13px;right:13px;font-size:28px;margin-bottom:-44px}
.modal-image{height:250px}
.modal-body{padding:28px 31px 32px}
.modal-body h2{font-size:29px;line-height:1.55;word-break:keep-all}
.modal-body h3{font-size:14px}
.modal-body p{font-size:14px}
.modal-body .source,.modal-body details p{font-size:12px}
.modal-body summary{min-height:44px;display:list-item;align-content:center;font-size:13px;line-height:1.8}
.modal-body details{padding:7px 0}
.toast{border-radius:1px;font-size:13px;line-height:1.8}
.page-transition{animation:none}
@media(min-width:1450px){.hero{padding-top:40px;padding-bottom:36px}.hero h1{font-size:48px}.hero-figure img{height:285px}}
@media(max-width:1100px){.hero{gap:35px}.hero h1{font-size:40px}.hero-figure img{height:250px}.header-inner{gap:45px}.drink small{font-size:13px}.editor-grid{gap:20px}.editor-card{grid-template-columns:70px 1fr 13px;gap:10px}.editor-card img{width:70px;height:70px}.editor-card h3{font-size:14px}.food-head h2{font-size:24px}.food-image img{height:195px}.food-actions{align-items:stretch;gap:8px}.food-actions .choose-button{flex:1}.food-actions .detail-button{flex-basis:100%;text-align:left}.result-grid{gap:22px}}
@media(max-width:800px) and (min-width:701px){.drink-grid{grid-template-columns:repeat(4,1fr)}.drink:last-child{grid-column:span 2}.drink small{font-size:13px}.editor-grid{grid-template-columns:1fr}.editor-card{grid-template-columns:83px 1fr 20px}.editor-card img{width:83px;height:83px}.result-grid{grid-template-columns:1fr}.food-card{display:grid;grid-template-columns:200px 1fr;gap:0 23px}.food-image{grid-column:1;grid-row:1/4}.food-image img{height:200px}.food-head{margin-top:0}.food-reason{margin-bottom:15px}.food-actions{grid-column:1/-1;margin-top:17px}.food-actions .detail-button{flex-basis:auto}.food-actions .choose-button{flex:0 1 auto}.food-card:has(.drink-visual){display:flex}.drink-visual{height:170px}}
@media(max-width:700px){
 .header-inner{height:72px;padding:0 20px;gap:15px}.header-inner nav{gap:22px}.nav-link{font-size:13px}.shell{padding:0 20px}.brand{font-size:29px}
 .hero{padding:27px 0 28px;gap:19px;grid-template-columns:1fr}.hero-copy .eyebrow{font-size:12px}.hero h1{font-size:34px;letter-spacing:-1.8px;line-height:1.4;margin:13px 0 12px}.hero-copy>p{font-size:13px;line-height:1.9}.hero-jump{margin-top:5px;font-size:13px;min-height:44px}.hero-figure img{height:154px;object-position:50% 60%}.vertical-note{font-size:12px;letter-spacing:2px;padding:9px 6px;right:13px;top:13px}.hero-caption{font-size:12px;gap:8px;margin-top:9px;align-items:baseline}.hero-caption b{font-size:12px;gap:7px}.caption-index{margin-right:0;font-size:12px}
 .finder{padding:0 15px 18px;margin:0 -2px}.finder-head{margin-bottom:17px}.mode-tabs{gap:12px;justify-content:space-between}.mode-tab{font-size:13px;padding:17px 0;min-height:57px}.section-label{gap:10px;margin-bottom:12px}.section-label .question{font-size:14px}.section-label>span:last-child{font-size:12px;text-align:right}.drink-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.drink{min-height:106px;gap:5px;padding:11px 3px}.drink svg{height:29px;width:29px}.drink span{font-size:13px}.drink small{font-size:13px;white-space:normal;word-break:keep-all;line-height:1.45}.drink:last-child{grid-column:span 2;flex-direction:column;gap:5px}.drink[aria-pressed=true]:after{right:6px;top:4px;font-size:11px}.selection-note{padding-top:10px;gap:5px 7px;font-size:13px;line-height:1.75;flex-wrap:wrap}.selection-note>span:last-child{flex:1;min-width:150px}
 .finder-bottom{flex-direction:column;align-items:stretch;gap:10px;margin-top:13px;padding-top:8px}.conditions-trigger{font-size:13px;gap:7px;min-height:46px}.conditions-trigger span{font-size:13px;margin-left:auto;gap:12px}.primary{min-height:52px;font-size:14px;padding:14px 17px;gap:20px}.conditions{grid-template-columns:1fr;padding:16px 12px;gap:20px}.field-label{font-size:13px}.field-note{font-size:13px}.chip{font-size:13px;padding:9px 11px}.food-option img{height:105px}.food-option span{font-size:13px;line-height:1.6}.search-field{margin-bottom:14px}
 .editors{margin:30px 0 35px}.section-title{margin-bottom:16px;align-items:baseline}.section-title .eyebrow{font-size:12px;margin-bottom:7px}.section-title h2{font-size:23px}.section-title p{font-size:12px;max-width:110px;text-align:right}.editor-grid{grid-template-columns:1fr;gap:14px}.editor-card{grid-template-columns:79px 1fr 18px;gap:14px;padding-top:14px}.editor-card img{width:79px;height:79px}.editor-card small{font-size:12px}.editor-card h3{font-size:15px;margin:3px 0}.editor-card p{font-size:13px}.editor-arrow{font-size:19px}
 .footer{margin:0 20px;padding:23px 0;gap:15px}.footer>p{font-size:12px}.footer button{font-size:12px;min-height:44px}.footer>div>span{font-size:12px;line-height:1.8}.footer>div{gap:0}
 .back{margin:15px 0 14px;font-size:13px;min-height:44px}.result-intro{margin-bottom:18px}.result-intro h1{font-size:30px;letter-spacing:-1.4px;line-height:1.5;margin-top:9px}.result-intro p{font-size:13px;line-height:1.8;margin-top:9px}.result-count{display:block;font-size:12px;margin-top:10px;padding:0;color:var(--muted)}.filter-bar{gap:6px;margin-bottom:22px;padding:7px 0;min-height:60px}.filter-tag{font-size:12px;padding:6px 8px}.filter-bar>button{font-size:12px;padding-left:8px}
 .result-grid{grid-template-columns:1fr;gap:24px;padding-bottom:25px}.food-card{display:grid;grid-template-columns:106px minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:16px;row-gap:0;align-items:start;padding-bottom:23px}.food-image{grid-column:1;grid-row:1/3;align-self:start}.food-image img{height:auto;aspect-ratio:1;object-fit:cover;object-position:50% 54%}.food-image .badge{top:0;left:0;font-size:11px;padding:5px 7px}.food-head{grid-column:2;grid-row:1;display:block;margin:0;align-self:start}.food-head h2{font-size:23px;line-height:1.4}.food-head>span{display:block;margin-top:4px;font-size:13px;line-height:1.6}.food-sub{grid-column:2;grid-row:2;font-size:13px;line-height:1.7;margin-top:5px;align-self:start}.food-reason{display:block;grid-column:1/-1;font-size:13px;line-height:1.9;margin:15px 0 15px;padding-top:12px}.food-reason>span{font-size:13px;margin-bottom:5px}.food-actions{grid-column:1/-1;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:0}.food-actions .detail-button{flex-basis:auto;font-size:13px;min-height:44px}.food-actions .choose-button{flex:0 1 auto;padding:10px 13px;font-size:13px;min-height:44px;gap:10px}.food-card:has(.drink-visual){display:flex}.drink-visual{height:155px;gap:19px}.drink-visual svg{width:69px;height:69px}.drink-visual span{font-size:26px}.food-card:has(.drink-visual) .food-head{margin-top:16px}.notice{font-size:12px;line-height:1.9;margin-bottom:28px;padding-left:11px}
 .done-layout{padding:31px 0 40px;gap:25px}.done-image{height:225px}.done-stamp{width:63px;height:63px;font-size:19px;margin-bottom:20px}.done-copy h1{font-size:34px}.done-copy h2{font-size:19px;line-height:1.7;margin:15px 0 10px}.done-copy>p{font-size:14px}.done-meta{font-size:13px;line-height:1.9;margin:23px 0}.done-actions{gap:10px;flex-wrap:wrap}.done-actions>*{flex:1 1 130px;min-height:50px;font-size:13px;gap:10px}.done-copy>.back{margin-bottom:0}
 .history{padding-top:30px}.page-title{font-size:30px;line-height:1.5}.history .field-note{font-size:13px;line-height:1.85}.history-row{grid-template-columns:65px minmax(0,1fr) auto;gap:12px}.history-row h2{font-size:14px;line-height:1.7}.history-row p{font-size:12px;line-height:1.8}.history-row .secondary{font-size:12px;padding:10px;min-height:44px}.empty{padding:45px 0 65px}.empty h2{font-size:25px}.empty p{font-size:13px;line-height:1.85}
 .modal-image{height:205px}.modal-body{padding:24px 23px 27px}.modal-body h2{font-size:26px;line-height:1.6}.modal-body h3{font-size:14px}.modal-body p{font-size:14px;line-height:1.85}.modal-body .source,.modal-body details p{font-size:12px;line-height:1.85}.modal-body .primary{margin-top:17px}.toast{font-size:13px;padding:12px 18px}
}
@media(max-width:480px){
 .drink-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .drink,.drink:last-child{display:grid;grid-template-columns:27px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;row-gap:2px;align-content:center;justify-content:start;text-align:left;min-height:76px;padding:7px 8px}
 .drink svg{grid-column:1;grid-row:1/3;width:27px;height:27px;margin:0;align-self:center;justify-self:center}
 .drink>span{grid-column:2;grid-row:1;font-size:13px;line-height:1.5}
 .drink small{grid-column:2;grid-row:2;font-size:13px;line-height:1.45;min-width:0;white-space:normal;word-break:keep-all}
 .drink:last-child{grid-column:span 2;min-height:64px;grid-template-columns:27px auto;justify-content:center}
 .drink[aria-pressed=true]:after{right:5px;top:3px}
 .conditions-trigger{column-gap:7px;row-gap:2px}
 .conditions-trigger .conditions-summary{flex-basis:100%;margin-left:25px}
 .food-actions .choose-button{gap:8px;padding-left:11px;padding-right:11px}
 .primary .arrow,.choose-button .arrow{font-size:20px}
}
@media(max-width:400px){.section-title{flex-direction:column;align-items:flex-start;gap:8px}.section-title p{max-width:none;text-align:left}.section-title h2{white-space:nowrap}}
@media(max-width:360px){.shell{padding:0 17px}.header-inner{padding:0 17px}.hero h1{font-size:30px;letter-spacing:-1.5px}.hero-caption{flex-wrap:wrap;gap:5px}.hero-figure img{height:145px}.section-label{align-items:start}.section-label>span:last-child{max-width:95px}.mode-tab{font-size:12px}.finder{padding-left:12px;padding-right:12px}.conditions-trigger{gap:5px}.conditions-trigger span{font-size:13px;margin-left:0}.food-card{grid-template-columns:89px minmax(0,1fr);column-gap:13px}.food-head h2{font-size:22px}.food-image img{height:auto;aspect-ratio:1}.food-actions{gap:6px}.food-actions .choose-button{padding:10px}.food-actions .detail-button{font-size:13px}.history-row{grid-template-columns:56px minmax(0,1fr);gap:12px}.history-row img{width:56px;height:61px}.history-row .secondary{grid-column:2;justify-self:start}.editor-card{grid-template-columns:70px 1fr 13px;gap:11px}.editor-card img{width:70px;height:70px}.editor-card h3{font-size:14px}.editor-card p{font-size:13px}.footer{margin-left:17px;margin-right:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
