/* Waroeng Om, the phone layout and the base for every device (d.css adds the desktop one). One system: 6 spacing steps, 6 type sizes, left aligned, native scrolling. */
@font-face{font-family:Rubik;src:url(/wp-content/themes/rdy/public/rubik.woff2) format("woff2");font-weight:300 900;font-display:swap}
:root{--yellow:#FFDE17;--cream:#FFFBEC;--ink:#231F20;--grey:#606161;--red:#ED1C24;--green:#086E38;--line:#E4DFCB;
  --out:cubic-bezier(.165,.84,.44,1);--g:20px;--s1:8px;--s2:16px;--s3:24px;--s4:40px;--s5:64px;--hdr:56px;
  --t-display:clamp(38px,11.3vw,48px);--t-title:clamp(30px,8.7vw,36px);--t-lead:20px;--t-body:16px;--t-label:14px;--t-ctl:15px;color-scheme:light}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;scroll-padding-top:calc(var(--hdr) + var(--s2));background:var(--cream);font-synthesis:none}
html:has(dialog[open]){overflow:hidden}
body{max-width:640px;margin:0 auto;background:var(--cream);color:var(--ink);font:400 var(--t-body)/1.5 Rubik,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
::selection{background:var(--yellow);color:var(--ink)}
a{color:inherit}
a,button{touch-action:manipulation}
button,.btn{-webkit-user-select:none;user-select:none}
a:active,button:active{opacity:.7}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
main:focus{outline:0}
img,video{display:block;width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
ul{list-style:none;padding:0}
.skip{position:absolute;left:var(--g);top:-100px;z-index:50;background:var(--ink);color:var(--cream);padding:12px 16px;border-radius:8px}
.skip:focus{top:8px}

/* One short cross-fade between pages (switched on in Shell.astro), with the header and WhatsApp button holding still, unless the menu covering them is open. Firefox just loads the page. */
@media (prefers-reduced-motion:no-preference){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation-duration:200ms}
  body>.hdr{view-transition-name:hdr}
  .wa-float{view-transition-name:wa}
  html:has(dialog[open]) :is(body>.hdr,.wa-float){view-transition-name:none}
}

/* Type */
.display,.title{font-weight:300;text-transform:lowercase;letter-spacing:.02em;text-wrap:balance}
.display{font-size:var(--t-display);line-height:1.1}
.title{display:block;font-size:var(--t-title);line-height:1.15}
.label{display:block;font-size:var(--t-label);line-height:1.3;letter-spacing:.06em;color:var(--grey)}

/* Header and menu */
.hdr{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:var(--hdr);padding:0 var(--g);background:var(--cream)}
.logo{display:flex;align-items:center;min-height:44px;margin-inline-start:-6px}
.logo svg{display:block;width:auto;height:40px}
.hdr__nav,.toc,.on-d{display:none} /* d.css shows them */
.hdr__btn{display:flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px} /* icons, because the word "menu" means food on this site; both end on the right gutter */
.menu{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border:0;padding:0;background:var(--cream);color:var(--ink);overflow:auto}
.menu::backdrop{background:var(--cream)}
/* Fades only: a rise would ghost its logo against the identical one in the header. z-index covers browsers without `overlay`, where it leaves the top layer as soon as it closes. */
.menu{z-index:70}
@media (prefers-reduced-motion:no-preference){
  .menu,.menu::backdrop{opacity:0;transition:opacity 150ms var(--out),display 150ms allow-discrete,overlay 150ms allow-discrete}
  .menu[open],.menu[open]::backdrop{opacity:1;transition-duration:250ms}
  @starting-style{.menu[open],.menu[open]::backdrop{opacity:0}}
}
.menu__nav{padding:var(--s3) var(--g) 0}
.menu__nav a{display:flex;align-items:center;min-height:64px;font-size:var(--t-title);font-weight:300;letter-spacing:.02em;text-transform:lowercase;text-decoration:none}
.menu__nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
.menu__info{padding:var(--s4) var(--g) var(--s4)}
.menu__info a{display:flex;align-items:center;min-height:44px;font-size:var(--t-ctl);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.25em}

/* Actions: yellow is the next step, a red underline is a link */
.act{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin-top:var(--s3)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 var(--s3);background:var(--yellow);font-size:var(--t-ctl);font-weight:500;letter-spacing:.04em;text-decoration:none;border-radius:999px}
.lnk{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-ctl);font-weight:500;letter-spacing:.04em;text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.25em}
.lnk[hidden]{display:none}
.btn--wa{background:var(--green);color:#fff}
@media (prefers-reduced-motion:no-preference){
  .btn,.fil button{transition:scale 100ms var(--out),background-color 150ms ease}
  .btn:active,.fil button:active{scale:.97}
}

/* The smallest phones: keep the second action clear of the WhatsApp button */
@media (max-width:369px){.hero .act{padding-inline-end:88px}}

/* Sections */
.sec{padding:var(--s5) var(--g) 0}
.sec>.label{margin-bottom:var(--s1)}
.sec>.title{margin-bottom:var(--s2)}
.sec p:not(.label){margin-top:var(--s2)}
.sec--top{padding-top:var(--s2)}
.scene{aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:var(--line)}
.scene--photo{aspect-ratio:3/2}
.kicker{margin-top:var(--s3);margin-bottom:var(--s1)} /* a label under a photo */
.lead{font-size:var(--t-lead);line-height:1.3;text-wrap:balance}
.film__cap{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);margin-top:var(--s1)}
.film__cap .lnk{flex:none}

/* Makan list and dish pages */
.back{padding:2px var(--g) 0} /* keeps the link 8px clear of the logo */
.dish{padding:var(--s4) var(--g) 0;scroll-margin-top:calc(var(--s2)*-1)} /* a jump lands right under the header, with the row above hidden */
.dish__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s2);min-height:96px;text-decoration:none}
.dish__head img{flex:none;width:96px;height:96px;object-fit:cover;border-radius:8px;background:var(--line)}
.dish__txt{min-width:0}
.dish__line{display:block;margin-top:var(--s1)}
.prices{margin-top:var(--s2)}
.prices__group{margin-top:var(--s3);font-size:var(--t-lead);font-weight:400;line-height:1.3;letter-spacing:.02em;text-transform:lowercase}
.prices__group+.prices{margin-top:var(--s1)}
.prices li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 var(--s2);padding-block:12px;border-top:1px solid var(--line)}
.prices li>span:first-child{flex:1 1 60%} /* a long price range drops below the name instead of squeezing it */
.prices small{display:block;margin-top:2px;font-size:var(--t-label);line-height:1.4;color:var(--grey)}
.prices__val{flex:none;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
main>.prices__note{padding:var(--s3) var(--g) 0}
.prices__note{font-size:var(--t-label);color:var(--grey)}

/* Cabang: cards sit closer than sections, the crop keeps the tables and the Jember glass in frame, the two actions fit one row at 320px */
.sec.cab{padding-top:var(--s4)}
.cab .scene{object-position:50% 78%}
.cab__act{display:grid;grid-template-columns:1fr 1fr;gap:var(--s1);margin-top:var(--s2)}
.cab__act .btn{padding-inline:var(--s1);text-align:center}
.cab>.scene+.title{margin-top:var(--s3)} /* only Jember has a kicker to carry this gap */

/* Galeri: filters, then a two-column grid. The current filter is an ink fill: it is neither a next step (yellow) nor a link (red) */
.act.fil{gap:var(--s1)}
.fil button{min-height:44px;padding:0 var(--s2);border:1px solid var(--ink);border-radius:999px;font-size:var(--t-ctl);font-weight:500;letter-spacing:.04em}
.fil button span{font-weight:400}
.fil [aria-pressed=true]{background:var(--ink);color:var(--cream)}
.fil+.label{margin-top:var(--s3)}
.gal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3) var(--s2);margin-top:var(--s3)}
.label+.gal{margin-top:0}
.gal .card{display:block}
.gal img{background:var(--line)}
.gal .card b{font-size:var(--t-body)} /* 20px wraps to four lines in a 132px column on a 320px phone */
.gal__end{white-space:nowrap}

/* Legal pages: plain reading. The extra line height keeps links on neighbouring lines apart, and their padding widens the tap area towards the 27px line */
.prose{max-width:65ch;line-height:1.7;overflow-wrap:anywhere}
.prose a{padding-block:4px;text-decoration-color:var(--red);text-underline-offset:.25em}
.prose h2{margin-top:var(--s4);font-size:var(--t-lead);font-weight:400;line-height:1.3;letter-spacing:.02em}
.prose h2 .label{margin-bottom:var(--s1)}
.prose h3{margin-top:var(--s3);font-size:var(--t-body);font-weight:500;line-height:1.3;letter-spacing:.02em}

/* Hero */
:root{--hero-h:clamp(420px,calc(100svh - var(--hdr) - 32px),760px)}
/* Scroll walks it: hero.js gives the pin its extra height, so without it the page simply has no extra scroll */
.pin{height:calc(var(--hero-h) + var(--pin,0vh))}
.pin .hero{position:sticky;top:min(var(--hdr),calc(100svh - var(--hero-h)))} /* on a screen shorter than the hero, its bottom stays in view: that's where the words and buttons are */
.hero{display:flex;flex-direction:column;height:var(--hero-h)}
.hero__media{position:relative;flex:1;min-height:0;overflow:hidden;container-type:size}
/* The still uses the canvas's own scale, so the swap barely shows: a metre is min(16.875% of the stage's height, 1/5.4 of its width), the still is 8.587 m tall, its right edge and its ground (80% of its height) match the canvas's */
.hero__media img{--h:calc(8.587*min(16.875cqh,18.52cqw));position:absolute;top:calc(80cqh - .8*var(--h));right:0;left:auto;width:auto;max-width:none;height:var(--h);object-fit:fill}
.hero__media canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.hero__media canvas.is-on{opacity:1}
@media (prefers-reduced-motion:no-preference){.hero__media canvas.is-on{transition:opacity 200ms ease-out}}
.hero__txt{padding:var(--s3) var(--g) 0}

/* Menu cards: a native swipe row with the next card peeking */
.row{display:flex;gap:var(--s2);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline-start:var(--g);margin-inline:calc(var(--g)*-1);padding-inline:var(--g);scrollbar-width:none}
.row::-webkit-scrollbar{display:none}
.card{flex:0 0 72%;scroll-snap-align:start;text-decoration:none}
.card img{aspect-ratio:4/5;object-fit:cover;border-radius:8px}
.card b{display:block;margin-top:var(--s1);font-size:var(--t-lead);font-weight:400;line-height:1.3;letter-spacing:.02em;text-transform:lowercase}
.card--wide img{aspect-ratio:3/2}

/* Next chapter and footer */
.next{display:block;margin-top:var(--s5);padding:var(--s4) var(--g);background:var(--yellow);text-decoration:none}
.next .label{color:var(--ink)}
.foot{padding:var(--s4) var(--g) var(--s3);overflow:hidden}
.foot__nav{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);margin-bottom:var(--s1)}
.foot__nav a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-ctl);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.25em}
.foot .label{padding-bottom:64px} /* clear of the WhatsApp button */
.tag{margin-bottom:var(--s3);font-size:var(--t-lead);line-height:1.3}
.tag strong{font-weight:500}
