/* ============================================================
   Meraki · TOKENS
   Every value the site uses. Built from the Meraki brand kit:
   black and white, blue only as an accent, Meraki Text for all type.
   A value that is not here does not go on a page.

   Light only: white paper, black ink, on every phone and laptop.

   Load order: tokens → base → components → app
   ============================================================ */

@font-face{
  font-family:'Meraki Text';
  src:url('/fonts/meraki-text-regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Meraki Text';
  src:url('/fonts/meraki-text-medium.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;
}

:root{
  color-scheme:light;

  /* 1 · COLOUR. Paper and ink. Blue is the accent and nothing else. */
  --paper:#ffffff;         /* the page */
  --ink:#000000;           /* what you read */
  --ink-2:#6b6b6b;         /* what explains it. 5.3:1 on paper */
  --line:rgba(0,0,0,.13);  /* hairline between rows */
  --line-strong:#000000;   /* the rule under a heading */
  --dot:rgba(0,0,0,.11);   /* the menu's dot paper */
  --accent:#2460a7;        /* Meraki Blue: the open dot, the slow bar */
  --button:#000000;        /* the one solid button */
  --button-ink:#ffffff;
  --skel:rgba(0,0,0,.06);  /* a tile still loading */
  --focus:#2460a7;

  /* 2 · TYPE. Meraki Text only. Size first, weight second, colour third. */
  --font:'Meraki Text',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --w-reg:400;
  --w-med:500;              /* labels, prices, buttons */

  --fs-title:44px;          /* a page title: Menu */
  --fs-statement:28px;      /* the one sentence about Meraki */
  --fs-house:30px;          /* a house name */
  --fs-feature:24px;        /* a special on the home page, a menu group */
  --fs-sub:20px;            /* the slow bar line */
  --fs-body:16px;           /* menu rows, what you read */
  --fs-meta:14px;           /* descriptions, addresses */
  --fs-small:13px;          /* links, small notes */
  --fs-label:11px;          /* spaced capitals: MENU, HOUSES */

  --lh:1.5;
  --lh-tight:1.05;
  --track-tight:-.025em;
  --track-label:.16em;
  --track-wide:.42em;       /* THE COFFEE HOUSE */

  /* 3 · SPACE */
  --s-0:0;
  --s-1:4px;
  --s-2:8px;
  --s-3:12px;
  --s-4:16px;
  --s-5:20px;
  --s-6:24px;
  --s-7:32px;
  --s-8:48px;
  --s-9:72px;
  --s-10:96px;

  --gutter-l:max(24px, env(safe-area-inset-left, 0px));
  --gutter-r:max(24px, env(safe-area-inset-right, 0px));
  --column:600px;           /* the reading column on wide screens */
  --hit:44px;               /* smallest thing you can tap */

  /* 4 · SHAPE. Square, like the boxed wordmark. */
  --r:0;
  --dot-size:6px;

  /* 5 · MOTION */
  --dur-fast:140ms;
  --dur:240ms;
  --ease:cubic-bezier(.2,0,0,1);
  --press:.96;
}

/* ============================================================
   Meraki · BASE
   Reset, type defaults, focus ring, reduced motion.
   Every number comes from tokens.css.
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
[hidden]{display:none !important;}

html{
  background:var(--paper);
  color:var(--ink);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:var(--s-10);
}
body{
  min-height:100vh;
  min-height:100dvh;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  font-size:var(--fs-body);
  font-weight:var(--w-reg);
  line-height:var(--lh);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-kerning:normal;
}
::selection{background:var(--ink);color:var(--paper);}

h1,h2,h3{font-size:inherit;font-weight:var(--w-reg);line-height:var(--lh-tight);text-wrap:balance;}
p{text-wrap:pretty;}
ul,ol{list-style:none;}
a{color:inherit;text-decoration:none;}
img,svg{display:block;max-width:100%;}
img{height:auto;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation;}

:focus{outline:none;}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;}
[disabled],[aria-disabled="true"]{opacity:.4;cursor:not-allowed;}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

@keyframes m-shimmer{from{opacity:1;}50%{opacity:.55;}to{opacity:1;}}
@keyframes m-fade{from{opacity:0;}to{opacity:1;}}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ============================================================
   Meraki · COMPONENTS
   Every shape the site uses. Each one is on ui/demo.html.
   ============================================================ */

/* ---- COLUMN: phone width on a phone, a calm column on a laptop ---- */
.col{
  width:100%;
  max-width:calc(var(--column) + var(--s-6) * 2);
  margin-inline:auto;
  padding-left:var(--gutter-l);
  padding-right:var(--gutter-r);
}

/* ---- LABEL: spaced capitals, the menu's voice ---- */
.label{
  font-size:var(--fs-label);
  letter-spacing:var(--track-label);
  text-transform:uppercase;
  font-weight:var(--w-med);
  line-height:1.3;
}
.label--muted{color:var(--ink-2);}
.label--accent{color:var(--accent);}
.label--wide{letter-spacing:var(--track-wide);padding-left:var(--track-wide);}

.muted{color:var(--ink-2);}
.num{font-variant-numeric:tabular-nums;font-weight:var(--w-med);}

/* ---- BAR: the top row of links ---- */
.bar{
  display:flex;align-items:center;justify-content:space-between;
  height:60px;
}
.bar__link{
  min-height:var(--hit);
  display:inline-flex;align-items:center;gap:var(--s-2);
}

/* ---- TEXT LINK: words and a small arrow, underline on hover ---- */
.tlink{
  min-height:var(--hit);
  display:inline-flex;align-items:center;gap:6px;
  font-size:var(--fs-small);font-weight:var(--w-med);
  text-decoration:underline;text-decoration-color:transparent;
  text-underline-offset:4px;text-decoration-thickness:1px;
  transition:text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tlink:hover{text-decoration-color:currentColor;}
.tlink:active{color:var(--ink-2);}
.tlink svg{width:12px;height:12px;flex:none;transition:transform var(--dur-fast) var(--ease);}
.tlink:hover svg{transform:translate(2px,0);}
.tlink--out:hover svg{transform:translate(1px,-1px);}
.tlink--quiet{font-weight:var(--w-reg);color:var(--ink-2);}
.tlink--meta{font-size:var(--fs-meta);}

/* ---- BUTTON: the one solid thing on a page ---- */
.btn{
  width:100%;height:56px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:var(--button);color:var(--button-ink);
  font-size:15px;font-weight:var(--w-med);
  transition:transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.btn svg{width:14px;height:14px;flex:none;}
.btn--inline{width:auto;height:52px;padding:0 var(--s-7);}
.btn--line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);}
.btn--line:hover{opacity:1;background:var(--ink);color:var(--paper);}
.btn:hover{opacity:.86;}
.btn:active{transform:scale(var(--press));}
.btn[aria-busy="true"]{opacity:.7;cursor:progress;}
.btn[aria-busy="true"] .btn__icon{animation:m-shimmer 1s var(--ease) infinite;}

/* ---- OPEN DOT ---- */
.dot{
  width:var(--dot-size);height:var(--dot-size);border-radius:50%;
  background:var(--accent);flex:none;display:inline-block;
}
.dot--off{background:var(--ink-2);}
.status{display:inline-flex;align-items:center;gap:var(--s-2);font-size:12px;font-weight:var(--w-med);}

/* ---- COVER: Menu 2.0's front page ---- */
.cover{
  min-height:min(100svh, 860px);
  display:flex;flex-direction:column;
  background-color:var(--paper);
  background-image:radial-gradient(circle, var(--dot) 1px, transparent 1.3px);
  background-size:26px 26px;
  background-position:13px 13px;
}
.cover__mid{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:var(--s-5);padding:var(--s-8) 0;
}
.cover__mid h1{display:block;}
.cover__mark{width:min(240px, 64vw);height:auto;color:var(--ink);fill:currentColor;}
.cover__mid .btn{margin-top:var(--s-6);}
.cover__open{
  align-self:center;margin-bottom:var(--s-6);
  min-height:var(--hit);padding:0 var(--s-4);
  display:inline-flex;align-items:center;gap:10px;
  font-size:var(--fs-small);
}
.cover__open b{font-weight:var(--w-med);}
.cover__foot{display:flex;align-items:center;justify-content:space-between;height:60px;}

/* ---- PHOTO: full bleed, no frame ---- */
.photo{display:block;width:100%;object-fit:cover;background:var(--skel);}
.photo--tall{aspect-ratio:2/3;}
.photo--wide{aspect-ratio:3/2;}
@media (min-width:700px){
  .photo--tall{aspect-ratio:auto;height:min(92vh, 980px);}
  .photo--wide{aspect-ratio:auto;height:min(70vh, 620px);}
}

/* ---- FILM: the espresso video, full bleed, loads when it nears the screen ---- */
.film{background:var(--skel);}
.film__video{display:block;width:100%;aspect-ratio:1;object-fit:cover;}
@media (min-width:700px){.film__video{aspect-ratio:16/9;max-height:92vh;}}

/* ---- SECTION spacing ---- */
.sec{padding-block:var(--s-10) var(--s-9);}
.sec--tight{padding-top:0;}
.sec__head{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);min-height:var(--hit);}

.statement{
  margin-top:var(--s-5);
  font-size:var(--fs-statement);line-height:1.2;letter-spacing:-.022em;
  text-wrap:balance;
}

/* ---- AWARD: one quiet line ---- */
.award{
  margin-top:var(--s-8);padding-top:var(--s-4);
  border-top:1px solid var(--line);
  display:flex;justify-content:space-between;align-items:flex-start;gap:var(--s-4);
}
.award__meta{font-size:var(--fs-small);line-height:1.45;color:var(--ink-2);text-align:right;}

/* ---- LIST: rows split by hairlines ---- */
.list{display:flex;flex-direction:column;border-bottom:1px solid var(--line);}
.list > *{border-top:1px solid var(--line);}

/* ---- HOUSE ---- */
.house{
  padding-block:var(--s-6);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s-4);align-items:start;
}
.house__info{display:flex;flex-direction:column;gap:var(--s-2);min-width:0;}
.house__name{font-size:var(--fs-house);line-height:1;letter-spacing:var(--track-tight);}
.house__meta{font-size:var(--fs-meta);color:var(--ink-2);line-height:1.45;}
.house__info .house__meta + .house__meta{margin-top:calc(var(--s-1) * -1);}
.house__acts{display:flex;flex-direction:column;align-items:flex-end;}

/* ---- TAKEAWAY: one line under Houses once phones are in ---- */
.takeaway{margin-top:var(--s-2);font-size:var(--fs-meta);line-height:1.45;color:var(--ink-2);}

/* ---- SPECIAL: a feature row on the home page ---- */
.special{
  padding-block:22px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s-4);align-items:baseline;
}
.special__name{font-size:var(--fs-feature);line-height:1.05;letter-spacing:-.02em;}
.special__desc{margin-top:6px;font-size:var(--fs-meta);line-height:1.45;color:var(--ink-2);}
.special__price{font-size:15px;}

/* ---- SLOW BAR: the V60 note with its stipple drawing ---- */
.slowbar{
  display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:var(--s-5);align-items:center;
}
.slowbar__text{display:flex;flex-direction:column;gap:var(--s-2);min-width:0;}
.slowbar__line{font-size:var(--fs-sub);line-height:1.2;letter-spacing:-.015em;}
.slowbar__art{width:92px;height:136px;object-fit:contain;}

/* ---- FEED: Instagram tiles, edge to edge, 2px apart ---- */
.feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;}
.feed a{display:block;position:relative;overflow:hidden;background:var(--skel);}
.feed img{width:100%;aspect-ratio:1;object-fit:cover;transition:transform var(--dur) var(--ease);}
.feed a:hover img{transform:scale(1.03);}
.feed__tile--skel{aspect-ratio:1;background:var(--skel);animation:m-shimmer 1.4s var(--ease) infinite;}
@media (min-width:700px){.feed{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* ---- TABS: menu sections, sticky under the top ---- */
.tabs{
  position:sticky;top:env(safe-area-inset-top, 0px);z-index:5;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.tabs__row{
  display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.tabs__row::-webkit-scrollbar{display:none;}
.tabs__tab{
  flex:none;height:46px;display:flex;align-items:center;
  color:var(--ink-2);
  transition:color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tabs__tab:hover{color:var(--ink);}
.tabs__tab[aria-current="true"]{color:var(--ink);box-shadow:inset 0 -1.5px 0 var(--ink);}

/* ---- MENU ---- */
.mgroup{padding-top:var(--s-8);}
.mgroup__head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s-4);}
.mgroup__title{font-size:var(--fs-feature);line-height:1;letter-spacing:-.02em;}
.mgroup .list{margin-top:14px;}
.mrow{padding-block:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s-4);align-items:baseline;}
.mrow__name{font-size:var(--fs-body);}
.mrow__note{color:var(--ink-2);font-size:var(--fs-meta);}
.mrow__desc{display:block;margin-top:var(--s-1);font-size:var(--fs-meta);line-height:1.4;color:var(--ink-2);}
.mrow__price{font-size:15px;}
.msection{padding-top:var(--s-9);}
.msection:first-of-type{padding-top:var(--s-7);}
.msection__title{font-size:var(--fs-label);}

.pagehead{padding-block:var(--s-8) 36px;}
.pagehead__title{font-size:var(--fs-title);line-height:1;letter-spacing:-.03em;}
.pagehead__sub{margin-top:var(--s-3);font-size:var(--fs-small);color:var(--ink-2);}

/* ---- FOOT ---- */
.foot{
  padding-block:var(--s-9) 56px;
  border-top:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;gap:var(--s-5);text-align:center;
}
.foot__mark{width:40px;height:40px;fill:currentColor;}
.foot__links{display:flex;gap:var(--s-6);}
.foot__copy{font-size:var(--fs-label);color:var(--ink-2);}

/* ---- NOTE: small grey line ---- */
.note{font-size:12px;color:var(--ink-2);}
