:root { color-scheme:light; --ink:#282723; --muted:#827e77; --paper:#faf9f6; --line:#e8e5df; --warm:#eee9e1; --accent:#94755f; }
* { box-sizing: border-box; }
html { scroll-behavior:smooth; scroll-padding-top:136px; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button:focus-visible, a:focus-visible, label:focus-visible { outline:3px solid #ad8869; outline-offset:3px; }
.site-header { position:sticky; top:0; z-index:20; border-bottom:1px solid var(--line); background:rgba(250,249,246,.95); backdrop-filter:blur(12px); }
.page,.header-inner { width:100%; max-width:760px; margin:0 auto; }
.header-inner { min-height:63px; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:0 18px; }
.brand,.footer-brand { font-size:17px; font-weight:760; letter-spacing:.17em; }
.header-note { font-size:10px; letter-spacing:.18em; color:#99928b; }
.intro { padding:38px 18px 21px; }
.eyebrow { margin:0; text-transform:uppercase; color:var(--accent); font-weight:750; font-size:10px; letter-spacing:.15em; }
h1 { font-size:clamp(32px,9vw,46px); letter-spacing:-.055em; line-height:1.13; margin:11px 0 8px; font-weight:790; }
.intro-description { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.editor { margin:0 18px 16px; padding:16px; border:1px solid #d9c7b0; border-radius:13px; background:#f4eee5; font-size:13px; }
.editor[hidden],.fatal-error[hidden] { display:none; }
.editor-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.editor-label { font-weight:760; font-size:13px; }
.editor-state { color:#817162; font-size:11px; }
.editor p { margin:10px 0 14px; line-height:1.55; color:#61574e; }
.editor .editor-result { margin:9px 0 0; font-size:12px; }
.upload-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; border-radius:8px; padding:10px 15px; background:var(--ink); color:#fff; font-size:13px; font-weight:700; cursor:pointer; }
#excel-upload { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.fatal-error { margin:8px 18px; padding:17px; border-radius:10px; background:#f8eae5; color:#8c382b; font-size:14px; line-height:1.5; }
.categories { position:sticky; top:63px; z-index:19; display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; padding:12px 18px 14px; border-bottom:1px solid var(--line); background:rgba(250,249,246,.98); }
.categories::-webkit-scrollbar { display:none; }
.chip { flex:none; border-radius:999px; padding:10px 14px; border:0; background:#eeebe6; color:#645e56; text-decoration:none; font-size:12px; font-weight:690; white-space:nowrap; }
.chip.active,.chip:active { background:var(--ink); color:white; }
.section { padding:29px 18px 0; scroll-margin-top:139px; }
.section-heading { display:flex; align-items:center; gap:15px; margin:0 0 18px; }
.section-heading h2 { font-size:26px; font-weight:770; letter-spacing:-.04em; margin:0; }
.section-heading::after { content:""; height:1px; flex:1; background:var(--line); }
.products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:13px; row-gap:25px; }
.dish { min-width:0; border:0; color:inherit; background:transparent; padding:0; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.dish-photo,.detail-photo { display:flex; position:relative; align-items:center; justify-content:center; overflow:hidden; background:var(--warm); }
.dish-photo { aspect-ratio:1.17; border-radius:12px; }
.dish-photo img,.detail-photo img { width:100%; height:100%; display:block; object-fit:contain; object-position:center; }
.dish-photo img { padding:0; object-fit:cover; object-position:center; }
.no-photo { width:100%; height:100%; display:flex; flex-direction:column; gap:8px; align-items:center; justify-content:center; color:#a29788; background:linear-gradient(135deg,#f1eee8,#e6e1d9); text-align:center; }
.no-photo svg { width:53px; height:53px; opacity:.58; }
.no-photo span { font-size:11px; letter-spacing:.015em; }
.dish-title { margin:10px 0 7px; font-size:15px; font-weight:700; line-height:1.3; letter-spacing:-.01em; overflow-wrap:anywhere; }
.dish-info { display:flex; align-items:baseline; justify-content:space-between; gap:7px; }
.weight { font-size:12px; color:var(--muted); }
.price { font-weight:760; font-size:15px; white-space:nowrap; }
.section-empty { color:var(--muted); font-size:13px; margin:0; }
.footer { padding:30px 18px 45px; border-top:1px solid var(--line); margin-top:54px; text-align:center; }
.footer p { margin:11px 0 0; font-size:12px; line-height:1.55; color:var(--muted); }
.dish-dialog { position:fixed; inset:0; margin:auto; padding:0; border:0; width:min(calc(100% - 28px),530px); max-width:530px; max-height:min(88dvh,780px); border-radius:19px; background:var(--paper); color:var(--ink); overflow-y:auto; box-shadow:0 24px 95px #0005; overscroll-behavior:contain; }
.dish-dialog:not([open]) { display:none; }
.dish-dialog::backdrop { background:rgba(26,24,20,.68); }
.dialog-close { position:sticky; float:right; top:12px; right:12px; margin:12px 12px -52px 0; display:flex; width:39px; height:39px; border:0; border-radius:50%; align-items:center; justify-content:center; color:#24221e; font-size:27px; line-height:1; background:#fffefaee; cursor:pointer; z-index:3; box-shadow:0 2px 12px #0002; }
.detail-photo { clear:both; width:100%; height:min(40dvh,330px); max-height:330px; border-radius:19px 19px 0 0; }
.detail-photo img { padding:7px; }
.detail-body { padding:20px 22px 28px; }
.detail-weight { color:var(--muted); font-size:13px; }
.detail-body h2 { font-size:27px; letter-spacing:-.035em; line-height:1.2; margin:9px 0 10px; }
.detail-body p { color:#68635d; font-size:15px; line-height:1.58; margin:0 0 23px; overflow-wrap:anywhere; }
.detail-price { font-size:22px; }
@media (max-width:550px) { .dish-dialog { width:100%; max-width:none; max-height:91dvh; margin:auto 0 0; border-radius:22px 22px 0 0; } .detail-photo { height:min(38dvh,300px); border-radius:22px 22px 0 0; } .detail-body { padding-bottom:max(30px,env(safe-area-inset-bottom)); } }
@media (min-width:630px) { .products { grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:19px; row-gap:32px; } .intro { padding-top:45px; } .section { padding-top:35px; } .dish-title { font-size:17px; } }
@media (max-width:350px) { .section { padding-left:12px; padding-right:12px; } .products { column-gap:10px; } .dish-title,.price { font-size:14px; } .weight { font-size:11px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
/* v3: separate, readable sections for ingredients and nutrition. */
.detail-description { white-space:pre-line; }
.detail-block { margin:17px 0 22px; padding-top:18px; border-top:1px solid var(--line); }
.detail-block[hidden],.detail-weight[hidden],.detail-description[hidden] { display:none; }
.detail-block h3 { margin:0 0 10px; font-size:15px; font-weight:750; line-height:1.35; }
.detail-block p { margin:0; font-size:14px; line-height:1.65; color:#67615a; white-space:pre-line; }
.nutrition-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.nutrition-grid > div { min-width:0; padding:12px 4px 11px; background:#f1eee9; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; text-align:center; }
.nutrition-grid strong { font-size:17px; font-weight:750; font-variant-numeric:tabular-nums; }
.nutrition-grid span { color:#777069; font-size:10px; line-height:1.25; }
.detail-price { display:block; margin-top:20px; }
@media (max-width:350px) { .nutrition-grid { gap:5px; } .nutrition-grid > div { padding:10px 2px; } .nutrition-grid strong { font-size:15px; } .nutrition-grid span { font-size:9px; } }
