/* Minami Cafe v3. A light palette between the room and the owner's old Carrd site: the printed menu's linen beige,
   off-white, warm grey-brown ink (Carrd #5E5050 family), a pale sage (the green wall, much paler) and honey wood as a small accent.
   No dark bands. The owner's own watercolours and line drawings carry the personality. System fonts only: no web-font weight. */
:root {
  --linen: #efe8d8;
  --oat: #f6f2e8;
  --paper: #fbfaf6;
  --sage-pale: #e2eadb;
  --sage: #c9d9bd;
  --sage-deep: #3f5f3a;
  --honey: #dfb06a;
  --honey-soft: #f6e6c6;
  --honey-deep: #7a5018;
  --ink: #5e5050;
  --ink-strong: #3f3535;
  --ink-soft: #685a58;
  --line: #d9cfba;
  --rail: #cdbfa6;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36em; /* about 36 Chinese characters per line */
}
:lang(ja) { --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.8 var(--sans);
  overflow-wrap: anywhere;
  overflow-x: clip;
}
body:lang(ja) { word-break: auto-phrase; line-break: strict; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 3px; }
section[id] { scroll-margin-top: 1rem; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 0; background: var(--honey); color: var(--ink-strong); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- headings and text ---------- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.4; margin: 0 0 .6em; color: var(--ink-strong); }
h1 { font-size: clamp(2rem, 5.6vw, 3rem); letter-spacing: .1em; }
h2 { font-size: 1.6rem; letter-spacing: .1em; }
h2::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .45rem; background: var(--honey); border-radius: 3px; }
h3 { font-size: 1.15rem; letter-spacing: .08em; color: var(--sage-deep); }
main p { margin: 0 0 1em; max-width: var(--measure); }
main li { max-width: var(--measure); }
.lead { font-size: 1.1rem; }
.prose { max-width: none; }
.more { margin-top: 1.25rem; }
.hint { font-size: 1rem; color: var(--ink-soft); margin-bottom: .75rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .45em 1.2em; border-radius: 8px;
  border: 1.5px solid var(--sage-deep); font-weight: 500; letter-spacing: .06em;
  text-decoration: none; line-height: 1.4;
}
.btn-sage { background: var(--sage); color: var(--ink-strong); border-color: var(--sage-deep); }
.btn-sage:hover { background: #b9cfab; }
.btn-quiet { background: transparent; color: var(--sage-deep); }
.btn-quiet:hover { background: var(--sage-pale); }
.btn-honey { background: var(--honey); border-color: #b98a44; color: var(--ink-strong); }
.btn-honey:hover { background: #e7bf80; }
.textlink { font-weight: 500; }

/* ---------- the owner's art ---------- */
.art { max-width: 100%; height: auto; pointer-events: none; }
.h-icon { display: inline-block; height: 1.7em; width: auto; max-width: none; vertical-align: -.5em; margin-right: .4em; mix-blend-mode: multiply; } /* multiply hides the paper tone of the scanned art on the cream page */ /* small coffee tree before a section heading */
.banner { margin: 0; }
.banner img { width: 100%; border-radius: 12px; }
.band-art { padding-block: 0; }
.section { position: relative; }

/* ---------- header: a thin rail of small lamps, nothing heavy ---------- */
.ceiling { position: relative; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.track { position: relative; height: 16px; overflow: hidden; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--rail); }
.spot { position: absolute; top: 6px; width: 14px; height: 8px; margin-left: -7px; background: var(--honey); border-radius: 2px 2px 8px 8px; }
.bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .5rem .8rem; }
.brand-h { margin: 0; font: inherit; letter-spacing: normal; color: inherit; } /* the home page's h1 is the brand link */
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink-strong); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; font-size: 1.75rem; line-height: 1.2; } /* name 1, minami cafe .62, Since .4: the proportions of the old intro title */
.bn-zh { font-weight: 500; letter-spacing: .1em; }
.bn-en { font-size: .62em; font-weight: 400; letter-spacing: .26em; color: var(--sage-deep); line-height: 1.3; }
.bn-since { font-size: .4em; font-weight: 400; letter-spacing: .2em; color: var(--honey-deep); line-height: 1.6; }
.brand img { width: 50px; height: 50px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ceiling nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.ceiling nav a { display: inline-block; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.ceiling nav a:hover { border-bottom-color: var(--honey); }
.ceiling nav a[aria-current="page"] { border-bottom-color: var(--honey); font-weight: 500; color: var(--ink-strong); }
.tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.langs { display: flex; flex: none; border: 1.5px solid var(--rail); border-radius: 8px; overflow: hidden; }
.langs button { white-space: nowrap; min-height: 44px; min-width: 44px; padding: 0 .75em; background: none; color: var(--ink); border: 0; font: inherit; font-size: 1rem; cursor: pointer; }
.langs button + button { border-left: 1px solid var(--rail); }
.langs button:hover { background: var(--oat); }
.langs button[aria-pressed="true"] { background: var(--sage); color: var(--ink-strong); font-weight: 500; }

/* ---------- top banner and intro ---------- */
.top-banner { margin: 0; background: var(--paper); }
.top-banner img { width: 100%; max-width: 1500px; margin-inline: auto; height: auto; } /* 1711x210 stripe: about 168px tall at 1366, never above its natural size */
.hero { background: var(--oat); padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-photo { margin: 0 0 1.5rem; width: min(100%, 560px); }
.hero-photo img { width: 100%; border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(94, 80, 80, .45); }
.hero-stack .lead { margin-inline: auto; font-size: 1rem; }
.hero-stack .actions { justify-content: center; margin-top: .5rem; }
.hero-art { width: 280px; margin: 1.5rem auto 0; }
.break-art { width: min(100%, 280px); margin: 1.75rem auto 0; }
.two .break-art { margin-left: 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.25rem, 6vw, 4rem); }
.section.tone { background: var(--sage-pale); }
.page-head { padding-bottom: 1rem; }
.item-name { display: block; font-weight: 500; font-size: 1.15rem; color: var(--ink-strong); }
.item-desc { display: block; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- menu ---------- */
.menu-section { background: var(--linen); }
.menu-intro { color: var(--ink-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.25rem; }
.tabs button { min-height: 44px; padding: .3em 1.1em; background: var(--paper); color: var(--sage-deep); border: 1.5px solid var(--sage-deep); border-radius: 999px; font: inherit; font-size: 1rem; letter-spacing: .06em; cursor: pointer; }
.tabs button:hover { background: var(--sage-pale); }
.tabs button[aria-selected="true"] { background: var(--sage); border-color: var(--sage-deep); color: var(--ink-strong); font-weight: 600; box-shadow: inset 0 -3px 0 var(--honey); }
.menu-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.75rem); }
.menu-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .5rem; }
.menu-head h3 { margin: 0; font-size: 1.35rem; color: var(--ink-strong); }
.doodle { flex: none; width: 56px; height: 56px; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.menu-note { color: var(--honey-deep); font-weight: 500; margin-bottom: .5rem; }
.menu-panel { --pc: 4.5rem; max-width: 46rem; }
.menu-legend, .item-row { display: grid; align-items: baseline; column-gap: .5rem; }
.menu-legend { grid-template-columns: minmax(0, 1fr) var(--pc) var(--pc); align-items: center; margin: 0; padding-bottom: .35rem; border-bottom: 1px solid var(--rail); font-size: 1rem; color: var(--ink-soft); }
.menu-legend .col { display: flex; justify-content: center; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-size: .9rem; font-weight: 600; color: var(--ink-strong); border: 1.5px solid var(--ink-soft); }
.badge.bh { background: var(--line); }
.badge.bi { background: var(--honey-soft); border-color: #b98a44; }
.menu-sub { margin: 1.25rem 0 0; font-size: 1.05rem; letter-spacing: .1em; color: var(--sage-deep); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: .8rem 0; border-bottom: 1px dotted var(--rail); max-width: none; }
.item-row.two-price { grid-template-columns: minmax(0, 1fr) var(--pc) var(--pc); }
.item-row.one-price { grid-template-columns: minmax(0, 1fr) 5.5rem; }
.item-main { min-width: 0; }
.p { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-strong); }
.two-price .p { text-align: center; }
.one-price .p { text-align: right; }
.house { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.house li { max-width: none; margin: 0; padding: .7rem 1rem; background: var(--honey-soft); border-radius: 10px; color: var(--ink-strong); }
.menu-credit { margin: 1.25rem 0 0; font-size: 1rem; color: var(--ink-soft); max-width: none !important; }

/* ---------- the room ---------- */
.room { background: var(--paper); }
.room-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; margin-bottom: 1.5rem; }
.room-grid figure { margin: 0; min-height: 0; }
.room-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.room-grid .r1 { grid-column: span 4; grid-row: span 2; }
.room-grid .r2 { grid-column: span 2; }
.room-grid .r3 { grid-column: span 2; }
.room-grid .r4 { grid-column: span 3; }
.room-grid .r5 { grid-column: span 3; }
.room-grid .r4 img { object-position: 50% 35%; }
.room .banner { margin-top: 1.75rem; }

/* ---------- take home ---------- */
.take-home { background: var(--oat); }
.take-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.take-grid figure { margin: 0; }
.take-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }
.take-grid .big { grid-column: 1 / -1; }
.take-grid .big img { height: 380px; object-position: 50% 60%; }

/* ---------- visit: hours table ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
.hours { max-width: 26rem; }
.hours th, .hours td { padding: .55rem .9rem; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 400; width: 45%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--ink-soft); }
.hours tr.today { background: var(--honey-soft); font-weight: 600; color: var(--ink-strong); }
.hours tr.today th::after { content: "今天"; margin-left: .6em; padding: .05em .55em; border-radius: 999px; background: var(--honey); color: var(--ink-strong); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
html:lang(en) .hours tr.today th::after { content: "Today"; }
html:lang(ja) .hours tr.today th::after { content: "今日"; }
.hours-note { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.visit dl { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .5rem 1rem; margin: 0; }
.visit dt { font-weight: 500; color: var(--ink-strong); }
.visit dd { margin: 0; }
.visit dd.dl-actions { grid-column: 1 / -1; margin-top: .75rem; }

/* ---------- course ---------- */
.course { background: var(--linen); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 12px; margin: 0 0 1.25rem; }
.duo figure { margin: 0; }
.duo img { width: 100%; border-radius: 10px; }
.order-box-wrap { padding-block: 1rem; }
.order-box { background: var(--honey-soft); border-left: 5px solid var(--honey); border-radius: 0 12px 12px 0; padding: 1.5rem clamp(1.1rem, 4vw, 2rem); }
.order-box h2 { color: var(--ink-strong); }
.order-box ol, .prose ol { margin: 0 0 1em; padding-left: 1.4em; max-width: var(--measure); }
.order-box li, .prose li { margin-bottom: .5em; }
.order-box .actions { margin-top: 1rem; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem 3rem; align-items: start; }
.two.flip { grid-template-columns: 300px minmax(0, 1fr); }
.side-photo { margin: 0; }
.side-photo img { border-radius: 10px; width: 100%; }
.tracks { display: grid; gap: 1.5rem; }
.tracks h3 { margin-bottom: .2em; }
.tracks p { margin-bottom: 0; }
.corner-art { margin-top: 1rem; width: 260px; }

/* ---------- tables (real text) ---------- */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 500; font-size: 1rem; color: var(--ink-soft); border-bottom: 2px solid var(--honey); }
.num { text-align: right; white-space: nowrap; padding-right: .25rem; }
.bean-table .group th { padding: 1.6rem 0 .4rem; font-weight: 500; letter-spacing: .12em; color: var(--sage-deep); border-bottom: 1px solid var(--sage-deep); }
.bean-table .bean-name { display: block; font-weight: 500; color: var(--ink-strong); }
.bean-table .bean-origin, .bean-table .bean-notes { display: block; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.bean-table .roast, .bean-table .process { font-size: 1rem; color: var(--ink-soft); white-space: nowrap; }
.bean-table td.bean { width: 44%; }
.spec { max-width: 30rem; }
.spec tbody th { font-weight: 400; }

/* ---------- footer ---------- */
.site-footer { background: var(--linen); color: var(--ink); padding: 1.25rem 0 2.5rem; font-size: 1rem; line-height: 1.8; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 .75em; max-width: none; }
.site-footer .credit { color: var(--ink-soft); }
.footer-art { margin: 0 0 1rem; width: 300px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .visit-grid, .two, .two.flip { grid-template-columns: minmax(0, 1fr); }
  .top-banner img { height: 100px; object-fit: cover; object-position: 50% 50%; } /* keeps the painted title whole */
  .menu-panel { --pc: 3.6rem; }
  .item-row.one-price { grid-template-columns: minmax(0, 1fr) 5rem; }
  .house { grid-template-columns: minmax(0, 1fr); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .room-grid .r1 { grid-column: 1 / -1; grid-row: span 1; grid-row-end: span 2; }
  .room-grid .r2, .room-grid .r3, .room-grid .r4, .room-grid .r5 { grid-column: span 1; grid-row: span 1; }
  .room-grid .r5 { grid-column: 1 / -1; }
  .take-grid { gap: 8px; }
  .take-grid img { height: 130px; }
  .take-grid .big img { height: 220px; }
  .side-photo { max-width: 260px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 200px; }
  .break-art { width: min(100%, 230px); }
  .ceiling nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0 1.1rem; }
  .brand { gap: .5rem; }
  .brand-text { font-size: 1.45rem; }
  .brand img { width: 40px; height: 40px; }
  .bar { flex-wrap: wrap; column-gap: .75rem; padding-block: .3rem .5rem; }
  .tools { margin-left: auto; }
  /* Phones: the intro already carries the LINE button, so the header keeps one compact row. */
  .tools .btn { display: none; }
  .spot.s2, .spot.s4 { display: none; }
  .visit dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .visit dd { margin-bottom: .9rem; }
  .doodle { width: 46px; height: 46px; }

  .bean-table, .bean-table tbody { display: block; }
  .bean-table thead { position: absolute; left: -9999px; }
  .bean-table tr { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "roast process" "bean bean" "p4 p2"; gap: .25rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .bean-table tr.group { display: block; padding: 0; border: 0; }
  .bean-table td { border: 0; padding: 0; }
  .bean-table td.roast { grid-area: roast; }
  .bean-table td.process { grid-area: process; text-align: right; }
  .bean-table td.bean { grid-area: bean; width: auto; }
  .bean-table td.num { text-align: left; font-weight: 500; }
  .bean-table td.num:nth-last-child(2) { grid-area: p4; }
  .bean-table td.num:last-child { grid-area: p2; }
  .bean-table td.num::before { content: attr(data-label) "  "; font-weight: 400; color: var(--ink-soft); font-size: 1rem; }
  .bean-table .group th { display: block; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
