/* EM's place — Flagstaff
   ------------------------------------------------------------------
   The brand already had its idea and nobody had built on it: a rising
   sun in the logo, "Mornings at Em's" across the menu, doors open 7 to 2.
   So the page is a morning. Every colour below was sampled off their own
   photographs after white-balancing them against the ceiling — the sage
   is the banquette, the butter is the dining room wall, the gold is the
   sun in their badge, the brick is the brick.
   ------------------------------------------------------------------ */

:root{
  --cream:#FAF6EC;       /* the dining room wall */
  --cream-2:#F1E9D7;     /* a half-step down, for alternating bands */
  --paper:#FFFDF8;
  --ink:#1D2A21;         /* the green door, the logo's line work */
  --ink-soft:#54604F;
  --sage:#9FB5A9;        /* the banquette */
  --sage-pale:#D7E2D9;
  --sage-deep:#3F5A4A;   /* the same sage, dark enough to read on cream */
  --sun:#C08A3E;         /* the sun in the badge — a graphic fill, never text */
  --sun-ink:#8A5A1E;     /* the same gold taken dark enough to read on cream:
                            #C08A3E measures 2.5:1 on this background, which
                            fails for any text at any size. */
  --sun-deep:#7F5219;    /* one step darker again, for gold text on the sage
                            cards. --sun-ink is 5.46:1 on cream but only
                            4.43:1 on --sage-pale, just under the floor. */
  --sun-pale:#F2DCB4;
  --brick:#A66A4B;
  --rule:#E2D8C2;

  --disp:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Instrument Sans",system-ui,-apple-system,sans-serif;
  --wide:74rem;
  --col:40rem;
}

*{box-sizing:border-box}
:root{
  /* This design is light by intent — the whole brand is morning light on
     cream. "only light" tells Chromium not to auto-darken it; plain "light"
     does not stop Auto Dark Theme, the only keyword is what does. */
  color-scheme:only light;
}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{overflow-x:hidden}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--sans);font-size:1.06rem;line-height:1.65;
  -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
img{max-width:100%;height:auto;display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;z-index:60;background:var(--ink);color:var(--cream);
      padding:.7rem 1.1rem;text-decoration:none;font-weight:600}
.skip:focus{left:.6rem;top:.6rem}
:focus-visible{outline:3px solid var(--sun);outline-offset:3px}

h1,h2,h3{font-family:var(--disp);font-weight:600;letter-spacing:-.02em;margin:0}

/* ---------------- masthead ---------------- */
.masthead{
  /* above the hero and anything else decorative that reaches upward */
  position:relative;z-index:2;
  max-width:var(--wide);margin:0 auto;
  padding:calc(1rem + env(safe-area-inset-top,0px)) 1.5rem .4rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.mark{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink)}
/* Em's badge. width/height are on the img too, so the header does not jump
   while it loads; height:auto here keeps the attribute height from fighting
   a width set in CSS. */
.mark img{flex:0 0 auto;display:block;width:78px;height:auto}
footer .mark img{width:100px}
/* The masthead flips with the hours, so it carries both inks and shows one.
   No-JS gets neither .lit nor .shut, and the page's base state is the cream
   one, so the dark-ink copy is the default and .shut swaps it.
   These carry img in the selector on purpose: `.mark img` above is a class
   plus a type, which outranks a bare `.mark-shut`, so display:block won and
   the page showed both inks side by side. */
.mark img.mark-shut{display:none}
.shut .mark img.mark-lit{display:none}
.shut .mark img.mark-shut{display:block}
/* and the same swap for the hero badge, which is not inside .mark */
.sunrise img.mark-shut{display:none}
.shut .sunrise img.mark-lit{display:none}
.shut .sunrise img.mark-shut{display:block}
.topnav{display:flex;gap:.2rem 1.4rem;flex-wrap:wrap;font-size:.88rem;font-weight:600}
.topnav a{
  color:var(--ink-soft);text-decoration:none;
  /* inline-flex with a min-height guarantees 44px whatever the font does;
     padding alone left these 39px tall, which is a miss on a phone. */
  display:inline-flex;align-items:center;min-height:44px;padding:.25rem 0;
}
.topnav a:hover{color:var(--sage-deep)}
/* inset box-shadow, not a border: an underline that costs no layout */
.topnav a.here{color:var(--ink);box-shadow:inset 0 -2px 0 var(--sun-ink)}

/* ---------------- the morning ---------------- */
.hero{
  /* z-index:0 is load-bearing: it makes the hero a stacking context so the
     warm light wash (::before, z-index:-1) sits behind the words but still in
     front of the page background. Without it the wash falls behind body and
     is never seen. */
  position:relative;z-index:0;
  max-width:var(--wide);margin:0 auto;
  padding:1rem 1.5rem 0;text-align:center;
}
/* Her badge itself, standing behind the headline where the sun was. Not a
   drawing of it: the same file the masthead uses, at hero sizes. */
.sunrise{
  position:relative;width:min(340px,62vw);aspect-ratio:1;margin:0 auto;
  /* The headline tucks into the foot of the badge. The overlap is a share of
     the mark, not a fixed rem, so it holds at every width instead of eating
     7% of it on a desktop and 11% on a phone. */
  margin-bottom:calc(min(340px,62vw) * -0.085);
}
.sunrise .sunmark{
  width:100%;height:100%;display:block;object-fit:contain;
}
.hero h1{
  position:relative;
  font-size:clamp(2.5rem,7.2vw,5rem);line-height:1.02;letter-spacing:-.035em;
}
.hero h1 em{font-style:italic;color:var(--sun-ink)}
.plainly{
  max-width:34rem;margin:1.1rem auto 0;color:var(--ink-soft);
  font-size:clamp(1.02rem,1.5vw,1.15rem);
}
.chip{
  display:inline-flex;align-items:center;gap:.5rem;margin:1.3rem auto 0;
  font-family:var(--sans);font-size:.85rem;font-weight:600;
  background:var(--paper);border:1px solid var(--rule);border-radius:999px;
  padding:.5rem 1rem;color:var(--ink);
}
.dot{width:9px;height:9px;border-radius:50%;background:var(--ink-soft);flex:0 0 auto}
.chip.is-open .dot{background:#2E8B57}
.acts{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin:1.5rem 0 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:700;font-size:.95rem;text-decoration:none;
  padding:.85rem 1.5rem;border-radius:999px;border:2px solid var(--ink);
  background:var(--ink);color:var(--cream);
}
.btn:hover{background:var(--sage-deep);border-color:var(--sage-deep)}
.btn-2{background:transparent;color:var(--ink)}
.btn-2:hover{background:var(--ink);color:var(--cream)}

/* the peaks, drawn across the page */
.ridge{display:block;width:100%;height:auto;margin:2.6rem 0 0;color:var(--sage)}
.ridge path,.ridge line{vector-effect:non-scaling-stroke}

/* ---------------- the room ---------------- */
.band{background:var(--cream-2)}
.wrap{max-width:var(--wide);margin:0 auto;padding:clamp(2.8rem,6vw,4.5rem) 1.5rem}
.eyebrow{
  font-family:var(--sans);font-size:.76rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--sun-ink);margin:0 0 .6rem;
}
h2{font-size:clamp(1.8rem,4.2vw,2.8rem);line-height:1.08}
.lede{max-width:46ch;color:var(--ink-soft);margin:.8rem 0 0}

.rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,1.8vw,1.4rem);margin-top:2.2rem}
.rooms figure{margin:0}
.rooms img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:3px}
.rooms figcaption{
  font-size:.82rem;color:var(--ink-soft);margin-top:.6rem;font-weight:500;
}
/* A gentle stagger, so the row reads as three moments and not one block.
   This is margin and not transform on purpose: the reveal below animates
   transform and resets it to none, which silently cancelled the stagger. */
.rooms figure:nth-child(2){margin-top:clamp(.6rem,2vw,1.8rem)}

/* ---------------- the menu ---------------- */
.menu-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);margin-top:2.4rem}
.card{background:var(--paper);border:1px solid var(--rule);border-radius:4px;padding:clamp(1.3rem,3vw,2.1rem)}
.card h3{
  font-size:1.42rem;margin:0 0 .3rem;display:flex;align-items:center;gap:.6rem;
}
.card .note{font-size:.88rem;color:var(--ink-soft);margin:0 0 1.4rem}

.dish{border-top:1px solid var(--rule);padding:1rem 0 .95rem;margin:0}
.dish:first-of-type{border-top:0;padding-top:.2rem}
.dish dt{
  font-family:var(--disp);font-weight:600;font-size:1.08rem;line-height:1.25;
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
}
.dish dt .price{
  font-family:var(--sans);font-weight:700;font-size:.98rem;color:var(--sage-deep);
  white-space:nowrap;
}
.dish dd{margin:.35rem 0 0;font-size:.95rem;line-height:1.55;color:var(--ink-soft)}

.sizes{display:flex;gap:1rem;flex-wrap:wrap;font-family:var(--sans);font-weight:700;
       font-size:.92rem;color:var(--sage-deep);white-space:nowrap}
.addons{border-top:1px solid var(--rule);margin-top:1.2rem;padding-top:1.1rem;
        font-size:.9rem;color:var(--ink-soft)}
.addons b{color:var(--ink);font-weight:700}
.advisory{font-size:.78rem;color:var(--ink-soft);margin:1.6rem 0 0;max-width:62ch}

/* the steam, over the coffee heading */
.steam{width:22px;height:26px;flex:0 0 auto;color:var(--sage)}
.steam path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* ---------------- visit ---------------- */
.visit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.6rem,4vw,3.2rem);margin-top:2rem;align-items:start}
.facts{margin:0}
.facts > div{display:grid;grid-template-columns:5.6rem 1fr;gap:1rem;padding:.85rem 0;border-top:1px solid var(--rule)}
.facts > div:first-child{border-top:0}
.facts dt{font-family:var(--sans);font-size:.76rem;font-weight:700;letter-spacing:.14em;
          text-transform:uppercase;color:var(--ink-soft);padding-top:.25rem}
.facts dd{margin:0}
.facts a{color:var(--sage-deep);text-decoration:none;border-bottom:2px solid var(--sage);
         display:inline-block;padding:.15rem 0}
.facts a:hover{color:var(--sun-deep);border-bottom-color:var(--sun-deep)}
.good{background:var(--sage-pale);border-radius:4px;padding:1.2rem 1.3rem;font-size:.96rem}
.good p{margin:0 0 .7rem}
.good p:last-child{margin:0}
.good a{color:var(--sage-deep);font-weight:600;border-bottom:2px solid var(--sage-deep);
        text-decoration:none;display:inline-block;padding:.3rem 0}
.good a:hover{color:var(--sun-deep);border-bottom-color:var(--sun-deep)}

/* ---------------- footer ---------------- */
footer{background:var(--ink);color:var(--cream)}
footer .wrap{padding-top:2.6rem;padding-bottom:2.8rem;text-align:center}
footer .mark{justify-content:center;color:var(--cream)}
.fine{font-size:.85rem;color:#C2CCBE;margin:.5rem 0 0;line-height:1.6}
.fine a{color:var(--sun-pale);display:inline-block;padding:.25rem 0}
.footnav{display:flex;justify-content:center;flex-wrap:wrap;gap:.1rem 1.3rem;margin:.9rem 0 0;
         font-size:.85rem;font-weight:600}
.footnav a{color:#C2CCBE;text-decoration:none;display:inline-block;padding:.4rem 0}
.footnav a:hover{color:var(--sun-pale)}
.built{margin-top:1.1rem;font-size:.8rem}
.built a{color:#C2CCBE;text-decoration:none;border-bottom:1px solid #4A5A4E;
         display:inline-block;padding:.35rem 0}
.built a:hover{color:var(--sun-pale)}

/* ---------------- page headers (every page but home) ---------------- */
.pagehead{max-width:var(--wide);margin:0 auto;padding:1.4rem 1.5rem 0;text-align:center}
.pagehead h1{font-size:clamp(2.05rem,5.2vw,3.4rem);line-height:1.06;margin:.25rem 0 0}
.pagehead .lede{max-width:48ch;margin:1rem auto 0}
.pagehead .ridge{margin-top:2.2rem}

/* ---------------- the three ways in, on the home page ---------------- */
.teasers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.2rem,2.6vw,2rem)}
.teaser{
  background:var(--paper);border:1px solid var(--rule);border-radius:4px;
  overflow:hidden;display:flex;flex-direction:column;
}
/* the menu card carries no photograph, so it is tinted instead of looking
   like a card whose image failed to load */
.teaser:first-child{background:var(--sage-pale);border-color:#C3D3C6}
.teaser:first-child .teaser-type{justify-content:center;flex:1;display:flex;flex-direction:column}
.teaser-shot{display:block}
.teaser-shot img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.teaser-type{padding:clamp(1.1rem,2.2vw,1.5rem)}
.teaser h2{font-size:clamp(1.16rem,2.1vw,1.46rem);line-height:1.16;margin:0 0 .7rem}
.teaser p{margin:0 0 1rem;color:var(--ink-soft);font-size:.95rem}
.teaser p:last-child{margin:0}
.peek{list-style:none;margin:0 0 1.2rem;padding:0}
.peek li{
  display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  border-top:1px solid #C3D3C6;padding:.6rem 0;font-size:.96rem;
}
.peek li b{font-weight:700;color:var(--sage-deep);white-space:nowrap}

/* ---------------- onward links ----------------
   The link that carries you to the next page. No "→" glyph: that arrow after
   link text is on every generated page going. This is a drawn rule instead —
   the same pencil line as the logo's lettering and the ridgeline — which
   lengthens when you point at it.

   display:inline-block is load-bearing, not cosmetic. As a plain inline box
   the vertical padding below does not reliably enter the hit area, and these
   measured 19-20px tall, under the 24px minimum tap target. */
.onward{
  display:inline-block;
  font-family:var(--sans);font-weight:600;font-size:.95rem;letter-spacing:.005em;
  color:var(--sage-deep);text-decoration:none;
  padding:.45rem 0;                 /* takes the hit box to ~34px */
}
.onward::after{
  content:"";display:inline-block;
  width:1.5rem;height:2px;background:currentColor;
  vertical-align:.26em;margin-left:.55rem;
}
.onward:hover,.onward:focus-visible{color:var(--sun-deep)}
.onward:hover::after,.onward:focus-visible::after{width:2.5rem}
/* Hover colour, measured on every background these links sit on:
     --brick    #A66A4B  4.07:1 on cream      — fails
     --sun-ink  #8A5A1E  5.46 cream / 4.43 on the sage card — fails there
     --sun-deep #7F5219  6.23 cream / 5.05 sage / 6.61 paper — passes everywhere
   The sage teaser card is the background that decides this, not the cream. */

.chapter-foot{margin:1.7rem 0 0}

/* ---------------- motion ----------------
   Layout never lives in here. Only movement does: the words, the grid and
   the ratios above are identical whether or not motion is allowed. */
@media(prefers-reduced-motion:no-preference){
  /* The rule still lengthens on hover with motion off — it just arrives at
     once. Hover answers something the reader did, so it stays either way. */
  .onward::after{transition:width .3s cubic-bezier(.2,.7,.3,1)}
  /* The badge rises into place once. It is one mark now, not a dome and a
     set of rays to bring up in sequence, so there is one movement. */
  .js .sunmark{transform:translateY(42px);opacity:0;animation:rise 1.5s cubic-bezier(.16,.84,.34,1) .15s forwards}
  .js .hero h1,.js .plainly,.js .chip,.js .acts{
    opacity:0;animation:lift .85s cubic-bezier(.16,.84,.34,1) forwards;
  }
  .js .hero h1{animation-delay:.42s}
  .js .plainly{animation-delay:.58s}
  .js .chip{animation-delay:.70s}
  .js .acts{animation-delay:.80s}

  /* the peaks draw themselves */
  .js .ridge path{stroke-dasharray:var(--len,2600);stroke-dashoffset:var(--len,2600);
                  animation:draw 2.6s cubic-bezier(.3,.7,.3,1) .5s forwards}

  /* a slow warm wash, like light crossing the room */
  .js .hero::before{
    content:"";position:absolute;inset:-10% -20% auto;height:70%;z-index:-1;
    /* pointer-events:none is the whole bug. This wash reaches 10% of the
       hero's height ABOVE the hero, straight across the masthead, and the
       hero is a stacking context, so it painted over the static nav and
       swallowed every tap on Menu, The room, Visit and Order ahead.
       z-index:-1 hides a box; it does not stop it catching a finger. */
    pointer-events:none;
    background:radial-gradient(60% 70% at 50% 0%,rgba(242,220,180,.65),rgba(242,220,180,0) 70%);
    animation:drift 26s ease-in-out infinite alternate;
  }
  /* `.anim` is set by app.js, and only once it has an IntersectionObserver in
     hand to take it off again. It is deliberately NOT `.js`: with `.js` the
     menu and the photographs started at opacity 0 the moment the inline head
     script ran, so any failure to load app.js left them permanently invisible.
     Nothing a customer needs may depend on a script arriving. */
  .anim .reveal{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s cubic-bezier(.16,.84,.34,1)}
  .anim .reveal.seen{opacity:1;transform:none}
  .anim .rooms figure:nth-child(2).reveal{transition-delay:.12s}
  .anim .rooms figure:nth-child(3).reveal{transition-delay:.24s}
  .js .steam path{stroke-dasharray:28;animation:curl 3.4s ease-in-out infinite}
  .js .steam path:nth-child(2){animation-delay:.5s}
  .js .steam path:nth-child(3){animation-delay:1s}

  @keyframes rise{to{transform:none;opacity:1}}
  @keyframes lift{to{opacity:1;transform:none}}
  @keyframes draw{to{stroke-dashoffset:0}}
  @keyframes drift{from{transform:translateX(-5%)}to{transform:translateX(5%)}}
  @keyframes curl{0%{stroke-dashoffset:28;opacity:0}
                  25%{opacity:.85}
                  100%{stroke-dashoffset:-28;opacity:0}}
}

/* ---------------- narrower ---------------- */
@media(max-width:62rem){
  .menu-grid{grid-template-columns:1fr}
  .visit-grid{grid-template-columns:1fr}
  .teasers{grid-template-columns:1fr}
  .teaser-shot img{aspect-ratio:3/2}
}
@media(max-width:46rem){
  .rooms{grid-template-columns:1fr}
  .rooms figure:nth-child(2){margin-top:0}
  .rooms img{aspect-ratio:3/2}
  /* Centred, so the badge reads as a sign over the nav below it. */
  .masthead{justify-content:center;text-align:center}
  /* 1.4rem put the five links 6px over a 390px screen, which wrapped "Order
     ahead" onto a third line and made the header 186px of an 844px phone.
     .8rem fits them on one line with 33px to spare -- enough that a webfont
     fallback with wider metrics still does not wrap -- and the header comes
     down to 138px. The 12.8px left between links keeps the tap targets
     clearly separate. */
  .topnav{justify-content:center;column-gap:.8rem}
  .acts{width:100%}
  .btn{flex:1 1 11rem}
  .facts > div{grid-template-columns:1fr;gap:.2rem}
  .facts dt{padding-top:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ─────────────────────────── the plates carousel ───────────────────────────
   A tray of dishes you push along. The scrolling is native scroll-snap, not
   script: it swipes correctly on a phone, it keeps working with JavaScript
   off, and the arrow buttons only nudge it one card further. Nothing here
   moves on its own — an auto-advancing carousel takes the reading speed out
   of the reader's hands, and this one is full of prices people are trying
   to read. */
.plates-wrap{padding:clamp(2rem,5vw,3.2rem) 0 clamp(1rem,3vw,2rem);background:var(--cream-2)}
.plates-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}
.plates-head h2{
  font-family:var(--disp);font-weight:600;
  font-size:clamp(1.5rem,4.4vw,2.2rem);line-height:1.05;color:var(--ink);
}
.plates-nav{display:flex;gap:.5rem;flex:none}
.pl-btn{
  width:48px;height:48px;border-radius:50%;    /* 48px: a thumb, not a cursor */
  border:2px solid var(--ink);background:var(--paper);color:var(--ink);
  font-size:1.1rem;line-height:1;cursor:pointer;
  display:grid;place-items:center;
}
.pl-btn:hover{background:var(--ink);color:var(--paper)}
.pl-btn[disabled],.pl-btn[disabled]:hover{
  /* Not opacity:.3 — that took the arrow to 3.11:1, unreadable rather than
     merely unavailable. A muted ink on the page colour reads as "end of the
     row" and still measures above the floor. */
  background:var(--cream);color:#666F61;border-color:#C3CBBF;cursor:default;
}

/* ── the pass ─────────────────────────────────────────────────────────────
   The dishes are set out along the counter they came off, which is what the
   heading above them already says. A plain row of equal cards is the default
   carousel on every restaurant site there is; this one is laid by hand.

   What makes it read that way is that nothing is quite square. Each plate
   carries its own slight angle and sits at its own depth on the counter, set
   in the markup so they never move between builds. The one in the middle
   straightens up and lifts, the way a plate does when it is picked up to be
   carried out, and the rail runs behind all of them.

   The scrolling itself is still the browser's: scroll-snap, no script, so it
   swipes properly on a phone and works with JavaScript off. The script only
   decides which plate is the one in the middle. */
.pass{position:relative}

/* the counter. Fades out at both ends rather than stopping dead, so it
   reads as a rail running past the frame instead of a drawn line. */
.pass::before{
  content:"";position:absolute;z-index:0;
  left:0;right:0;bottom:1.45rem;height:2px;
  background:linear-gradient(to right,
    rgba(0,0,0,0) 0%, var(--rule) 7%, var(--rule) 93%, rgba(0,0,0,0) 100%);
}
/* and its lip, catching the light */
.pass::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  left:0;right:0;bottom:calc(1.45rem + 2px);height:7px;
  background:linear-gradient(to bottom,
    rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 100%);
}

.plates{
  position:relative;z-index:1;
  list-style:none;margin:clamp(.5rem,1.6vw,.9rem) 0 0;
  display:flex;gap:clamp(.8rem,2vw,1.2rem);align-items:flex-end;
  overflow-x:auto;overscroll-behavior-x:contain;
  /* proximity, not mandatory. With centre alignment and mandatory snapping
     the browser has to come to rest ON a snap point, and the first plate
     cannot be centred without scrolling past zero -- so on load it jumped
     forward and cut the first plate in half. Proximity snaps when you let go
     near a plate and otherwise leaves the tray where it is. */
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  /* Room above for the lifted plate and below for its shadow. Without the
     top padding the lift is clipped: a box that scrolls on one axis clips
     the other, so the raised card would have its head cut off. */
  padding:1.15rem 0 2.4rem;
  /* --pad was never declared anywhere on this site, so both of these
     resolved to an invalid value and the shorthand's 0 won: the first plate
     has been sitting hard against the edge of the screen rather than lining
     up with the heading, which is what the rule was written to do. The page
     gutter is a literal 1.5rem in .wrap, so that is what this has to use. */
  padding-left:max(1.5rem,calc((100vw - var(--wide))/2 + 1.5rem));
  padding-right:max(1.5rem,calc((100vw - var(--wide))/2 + 1.5rem));
  scrollbar-width:thin;
}
.plates:focus-visible{outline:3px solid var(--sun-ink);outline-offset:4px}

.plate{
  /* a little smaller than they were: the dish is the point, not the slab */
  flex:0 0 min(70vw,17.5rem);
  scroll-snap-align:center;
  background:var(--paper);border:1px solid var(--rule);border-radius:3px;
  overflow:hidden;display:flex;flex-direction:column;align-self:stretch;
  transform:rotate(var(--tilt,0deg)) translateY(var(--drop,0px));
  transform-origin:50% 100%;
  box-shadow:0 9px 16px -13px rgba(44,38,25,.6);
}
/* the one in the middle, picked up */
.plate.up{
  transform:rotate(0deg) translateY(-13px);
  box-shadow:0 26px 34px -20px rgba(44,38,25,.55);
  z-index:2;
}
.pl-shot{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
.plate:last-child{flex-basis:min(78vw,23.5rem)}
.plate:last-child .pl-shot{aspect-ratio:3/2}
.pl-body{padding:clamp(.85rem,2.4vw,1.15rem);display:flex;flex-direction:column;gap:.55rem;flex:1}
.pl-name{
  font-family:var(--disp);font-weight:600;font-size:1.05rem;color:var(--ink);
  display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;
}
.pl-price{font-family:var(--sans);font-weight:700;font-size:.92rem;color:var(--sun-ink);white-space:nowrap}
.pl-say{
  margin:0;font-family:var(--disp);font-style:italic;font-weight:400;
  font-size:.96rem;line-height:1.45;color:var(--ink-soft);
  border-left:2px solid var(--sage);padding-left:.75rem;
}
.pl-say cite{
  display:block;margin-top:.4rem;font-family:var(--sans);font-style:normal;
  font-size:.74rem;letter-spacing:.06em;color:var(--ink-soft);
}
@media(prefers-reduced-motion:no-preference){
  .plates{scroll-behavior:smooth}
  .pl-btn{transition:background .16s ease,color .16s ease}
  .plate{transition:transform .55s cubic-bezier(.2,.8,.3,1), box-shadow .55s ease}
}
/* Asked for less movement: the plates sit square on the counter and stay
   there. The angles are the effect, so they go too -- a reader who turned
   motion down should get a tidy row, not a crooked one. */
@media(prefers-reduced-motion:reduce){
  .plate,.plate.up{transform:none;transition:none}
}

/* the photograph above the facts on the Visit page */
.visit-shot{margin:0 0 clamp(1.4rem,3.5vw,2.2rem);max-width:var(--col) ;}
.visit-shot img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:3px}
.visit-shot figcaption{
  margin-top:.55rem;font-family:var(--sans);font-size:.86rem;color:var(--ink-soft);
}
.pl-note{
  margin:0;font-family:var(--sans);font-size:.92rem;line-height:1.5;color:var(--ink-soft);
}


/* ─────────────────────── after hours ───────────────────────────────────
   The same brand with the lights off. `.shut` is set on <html> by the inline
   head script from the visitor's own clock, so the theme is decided before
   first paint and a cached page can never claim the lights are on at
   midnight.

   These are the day palette swapped end for end: the deep green that was the
   lettering becomes the room, and the cream that was the wall becomes the
   type. Measured against the room, the cards and the bands — the worst pair
   here is the brick at 6.20:1, against a 4.5:1 floor.                     */
.shut{
  color-scheme:only dark;

  --cream:#141A15;       /* the room, lights off */
  --cream-2:#1B231C;     /* bands */
  --paper:#1F291F;       /* cards, chips, carousel plates */

  --ink:#F2EEE2;         /* was the background, now the type   15.23:1 */
  --ink-soft:#B6BFB0;    /*                                     9.31:1 */

  --sage:#5C7265;
  --sage-pale:#2A3A2E;
  --sage-deep:#AECAB6;   /* links come up on a dark page       10.03:1 */

  --sun:#E0A858;
  --sun-ink:#E9BE84;     /* gold, lifted to carry text         10.24:1 */
  --sun-deep:#F3D5A6;    /* hover, lifted further              12.52:1 */
  --sun-pale:#3A2E1A;
  --brick:#D79878;       /*                                     7.28:1 */
  --rule:#36412F;
}
/* The warm wash is sunlight. After hours it reads as a lamp left on, so it
   pulls back rather than glowing like noon. */
.shut.js .hero::before{opacity:.45}
/* Photographs are the one thing that should not change: the room looks the
   way it looks. A touch less glare against a dark page, nothing more. */
.shut img{filter:brightness(.94)}

/* ── after hours: the places a straight token swap gets backwards ──────
   Two kinds of thing break when the palette inverts.

   1. Blocks that were ALREADY inverted in daylight. The footer is
      background:var(--ink) with color:var(--cream) — a dark panel on a light
      page. Swap the tokens and it becomes a LIGHT panel, while the hardcoded
      #C2CCBE text inside it stays light: 1.43:1, invisible. It is pinned
      here instead, a shade lifted off the page so it still reads as a
      separate block.

   2. Colours written as literals rather than tokens, which cannot follow the
      theme at all — the disabled carousel arrow measured 3.38:1 on the dark
      page because #666F61 was chosen against cream.                       */
.shut footer{background:#1F291F;color:#F2EEE2}
.shut .fine,
.shut .footnav a,
.shut .built a{color:#C8D2C4}
.shut .fine a,
.shut .footnav a:hover,
.shut .built a:hover{color:#E9BE84}
.shut .built a{border-bottom-color:#4A5A4E}

.shut .pl-btn{background:var(--paper);color:var(--ink);border-color:var(--ink)}
.shut .pl-btn:hover{background:var(--ink);color:var(--cream)}
.shut .pl-btn[disabled],
.shut .pl-btn[disabled]:hover{background:var(--cream);color:#7E8A7B;border-color:#3C4A3E}
