/* Mimico website — layout on top of brand.css (tokens). Recipe R2, Jour default.
   Rules: 4-px spacing scale, radius 0 (arch/circle/pill excepted), no shadows, no gradients. */
@import url("brand.css?v=d5a37a8e");

*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.skip { position: absolute; left: var(--sp-4); top: -64px; background: var(--noir); color: var(--ivory); padding: var(--sp-3) var(--sp-4); z-index: 20; }
.skip:focus { top: var(--sp-4); }

.wrap { width: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--sp-6); } }
@media (min-width: 1080px) { .wrap { padding: 0 var(--sp-7); } }

/* type helpers */
.eyebrow { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tracking-label); text-transform: uppercase; margin: 0; }
.ka { font-family: var(--font-ka); font-weight: 400; }
.ka-sub { font-family: var(--font-ka-display); font-weight: 500; font-size: var(--fs-lead); line-height: var(--lh-heading); margin: 0; }
.muted { color: var(--text-muted); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-body); max-width: var(--max-measure); margin: 0; }
.lead + .lead { margin-top: var(--sp-3); }
.lead.ka { font-size: var(--fs-body); }

/* nav */
.nav { border-bottom: var(--hairline) solid var(--rule); background: var(--bg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--sp-4); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.04em; text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-3); }
.wordmark svg { width: 24px; height: 24px; }
.nav ul { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nav a.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; border-bottom: var(--hairline) solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { border-bottom-color: var(--rule); }

.nav .nav-ka { display: none; margin-left: var(--sp-2); font-size: var(--fs-caption); letter-spacing: 0; text-transform: none; }
@media (min-width: 720px) { .nav .nav-ka { display: inline; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 var(--sp-6); font-family: var(--font-text); font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; border: var(--hairline) solid var(--green); background: var(--green); color: var(--ivory); border-radius: 0; transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.btn:hover { background: var(--noir); border-color: var(--noir); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--noir); }
.btn.ghost:hover { background: var(--noir); color: var(--ivory); }
.btn .ka { font-weight: 400; letter-spacing: 0.04em; text-transform: none; margin-left: var(--sp-3); }
.btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.theme-dark .btn, .section.dark .btn { background: var(--amber); border-color: var(--amber); color: var(--noir); }
.theme-dark .btn:hover, .section.dark .btn:hover { background: var(--ivory); border-color: var(--ivory); }

/* hero */
.hero { padding: var(--sp-8) 0; }
.hero .wrap { display: grid; gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-display); margin: var(--sp-5) 0 var(--sp-4); }
.hero .arch { width: 100%; max-width: 440px; aspect-ratio: 3 / 4; justify-self: center; }
.hero .arch img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .hero { padding: var(--sp-9) 0; }
  .hero .wrap { grid-template-columns: 7fr 5fr; gap: var(--sp-8); }
  .hero h1 { font-size: var(--fs-display); }
}
.checker-band { height: 24px; }

/* sections */
.section { padding: var(--sp-8) 0; }
@media (min-width: 720px) { .section { padding: var(--sp-9) 0; } }
.section.alt { background: var(--surface); }
.section.dark { background: var(--moss); color: var(--ivory); --rule: var(--ivory); --text: var(--ivory); --text-muted: var(--greige); }
.section.dark h2 { color: var(--amber); }
.section > .wrap > .rule-double { margin-bottom: var(--sp-8); }
.section h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-2); }
.section .sec-head { margin-bottom: var(--sp-5); }
.sec-head .eyebrow { margin-bottom: var(--sp-3); }
.two { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } .two.flip > :first-child { order: 2; } }
.two .arch { aspect-ratio: 3 / 4; width: 100%; max-width: 400px; justify-self: center; }
.two .arch img { width: 100%; height: 100%; object-fit: cover; }

/* menu rows: name — leader — price; description in italic below */
.menu-list { list-style: none; margin: 0; padding: 0; }
.item { margin: 0 0 var(--sp-3); }
.item .row { display: flex; align-items: baseline; gap: var(--sp-2); }
.item .n { font-weight: 500; font-size: 18px; }
.item .k { font-family: var(--font-ka); font-weight: 400; font-size: var(--fs-small); margin-left: var(--sp-2); }
.item .p { font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; min-width: var(--sp-5); text-align: right; }
.item .d { font-style: italic; font-size: var(--fs-small); line-height: 1.3; margin: var(--sp-1) 0 0; padding-right: var(--sp-7); }
.item .dk { font-family: var(--font-ka); font-style: normal; font-size: var(--fs-caption); margin-top: 0; }
.note { font-size: var(--fs-small); font-style: italic; margin: var(--sp-3) 0 0; }
.note .ka { font-style: normal; font-size: var(--fs-caption); display: block; }

/* menu page */
.page-head { padding-block: var(--sp-8) var(--sp-5); text-align: center; }
.page-head h1 { font-size: var(--fs-h1); margin: var(--sp-3) 0 var(--sp-2); }
.page-head .cup { width: 48px; height: 48px; margin: 0 auto; display: block; }
.chips { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: var(--hairline) solid var(--rule); }
.chips ul { display: flex; gap: var(--sp-2); list-style: none; margin: 0; padding: var(--sp-3) var(--sp-4); overflow-x: auto; scrollbar-width: none; max-width: var(--max-content); margin-inline: auto; }
.chips ul::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); border: var(--hairline) solid var(--rule); border-radius: var(--radius-pill); white-space: nowrap; text-decoration: none; font-weight: 500; font-size: var(--fs-caption); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.chip:hover { background: var(--noir); color: var(--ivory); }
.menu-body { padding-block: var(--sp-7) var(--sp-8); }
.menu-cols { display: grid; gap: var(--sp-7); }
@media (min-width: 720px) { .menu-cols { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); } }
.msec { scroll-margin-top: var(--sp-10); margin-bottom: var(--sp-7); }
.msec h2 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-h3); border-bottom: var(--heavy) solid var(--rule); padding-bottom: var(--sp-2); margin-bottom: var(--sp-4); }
.msec h2 small { font-family: var(--font-ka); font-weight: 400; font-size: var(--fs-small); letter-spacing: 0; white-space: nowrap; }
.age { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: var(--heavy) solid var(--rule); border-radius: 50%; font-family: var(--font-text); font-weight: 500; font-size: var(--fs-caption); margin-left: var(--sp-2); vertical-align: middle; letter-spacing: 0; }
.free { border: var(--heavy) solid var(--rule); padding: var(--sp-5); margin-bottom: var(--sp-7); }
.free b { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-heading); display: block; margin-bottom: var(--sp-2); }
.free p { margin: 0; }
.free .ka { display: block; font-size: var(--fs-small); margin-top: var(--sp-2); }
.fine { border-top: var(--hairline) solid var(--rule); padding-top: var(--sp-3); font-size: var(--fs-small); display: grid; gap: var(--sp-2); }
@media (min-width: 720px) { .fine { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); } }
.fine .ka { font-size: var(--fs-caption); }

/* visit block (Noir mood: moss ground, amber heading) */
.visit dl { margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-5); }
.visit dt { margin-bottom: var(--sp-1); color: var(--greige); }
.visit dd { margin: 0; font-size: var(--fs-lead); line-height: 1.3; }
.visit dd .ka { display: block; font-size: var(--fs-body); margin-top: var(--sp-1); }
.visit .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* footer (noir) */
.foot { background: var(--noir); color: var(--ivory); --rule: var(--ivory); padding: var(--sp-8) 0 var(--sp-7); text-align: center; }
.foot .cup { width: 48px; height: 48px; margin: 0 auto var(--sp-3); display: block; }
.foot .wm { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: 0.04em; margin: 0; }
.foot .desc { margin: var(--sp-2) 0 0; }
.foot .desc .ka { display: block; font-size: var(--fs-small); margin-top: var(--sp-1); }
.foot .rule-double { margin: var(--sp-6) auto; max-width: 320px; }
.foot ul { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: center; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: var(--fs-small); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; }
.foot ul a:hover { color: var(--amber); }
.foot .legal { font-size: var(--fs-caption); color: var(--greige); margin: 0; }

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

/* staff recipe book (/staff/): same tokens, no new values */
.staff-note { border: var(--heavy) solid var(--rule); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-7); font-size: var(--fs-small); }
.staff-note p { margin: 0; }
.staff-note p + p { margin-top: var(--sp-2); }
.basics { list-style: none; margin: 0 0 var(--sp-7); padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .basics { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); } }
.basics b { display: block; font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-heading); }
.basics span { font-size: var(--fs-small); }
.recipes { display: grid; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .recipes { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); } }
.recipe { border-top: var(--hairline) solid var(--rule); padding-top: var(--sp-4); break-inside: avoid; }
.recipe h3 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-lead); margin: 0 0 var(--sp-3); }
.recipe h3 small { font-family: var(--font-ka); font-weight: 400; font-size: var(--fs-small); }
.recipe .eyebrow { margin: var(--sp-3) 0 var(--sp-1); }
.recipe ul, .recipe ol { margin: 0; padding-left: var(--sp-5); font-size: var(--fs-small); }
.recipe li { margin-bottom: var(--sp-1); }
.recipe .specs { list-style: none; padding: 0; }
.recipe .specs li { font-variant-numeric: tabular-nums; font-weight: 500; border-bottom: var(--hairline) solid var(--rule); padding-bottom: var(--sp-1); }
@media print { .nav, .chips, .foot, .skip { display: none; } }
.sec-h { font-size: var(--fs-h3); border-bottom: var(--heavy) solid var(--rule); padding-bottom: var(--sp-2); margin-bottom: var(--sp-4); }

/* Jour is the default mood: do not follow the visitor's OS dark mode (brand.css would flip to Noir) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: var(--ivory); --surface: var(--cream); --text: var(--noir); --text-muted: var(--walnut); --rule: var(--noir); --brand: var(--green); }
}

/* about */
.two.top { align-items: start; }
.quote { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-heading); margin: var(--sp-3) 0 var(--sp-5); }
.prose { max-width: var(--max-measure); }
.prose p { margin: 0 0 var(--sp-3); }
.prose p.ka { font-size: var(--fs-small); }
.two.top .free { margin-bottom: 0; }

/* links inside the dark visit block */
.visit dd a { text-decoration: underline; text-underline-offset: 4px; }
.visit dd a:hover { color: var(--amber); }

/* /qr/: open on the café tablet, guests scan the screen */
.qr-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sp-6) var(--sp-4); gap: var(--sp-3); }
.qr-page .cup { width: 48px; height: 48px; }
.qr-page .wm { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); letter-spacing: 0.04em; margin: 0; }
.qr-frame { width: min(80vw, 48vh, 560px); aspect-ratio: 1; border: var(--heavy) solid var(--noir); background: var(--ivory); margin: var(--sp-3) 0; }
.qr-frame svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.qr-url { font-weight: 500; letter-spacing: 0.04em; margin: 0; }

.section.dark .btn.ghost { background: transparent; color: var(--amber); border-color: var(--amber); }
.section.dark .btn.ghost:hover { background: var(--amber); color: var(--noir); }

/* Bodoni Moda has an optical-size axis; the browser picks the highest-contrast cut at large sizes, where the hairlines
   (serifs, e-bars, & tail) all but vanish. Pin the sturdiest cut: still Bodoni Moda, brand-compliant. */
h1, h2, h3, .wordmark, .wm, .quote, .free b, .staff h3 { font-optical-sizing: none; font-variation-settings: "opsz" 6; }
