/* Kona V2: home (index.html) and menu (our-menu/) page rules. Loaded after site.css on every page,
   so every rule is scoped to a class these two pages set: .cafe (their sections) and .menu-sec. */

/* splits: the picture fills the section's content window at desktop, so each section ends on its padding */
@media (min-width:1024px){
  .cafe .split>.frame{height:calc(100svh - var(--padt) - var(--padb) - var(--bar));max-height:none}
}

/* home: favourites, three dish rows beside the lead dish large */
.favs{display:grid;grid-template-columns:repeat(12,1fr);gap:0 24px;align-items:start}
.favs__list{grid-column:1/7}
.fav-lead{grid-column:7/13}
.favs__list ul{border-top:1px solid var(--line)}
.fav-row{display:flex;align-items:center;gap:var(--s-5);padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.fav-row__img{flex:none;width:120px;height:120px;border-radius:var(--r-sm);overflow:clip;background:var(--surface)}
.fav-row__img img,.fav-lead__img img{width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--ease)}
.fav-n{font:500 var(--t-h3)/1.1 var(--font-display);text-transform:uppercase;transition:color 150ms var(--ease)}
.fav-row .dots{flex:1;margin-right:var(--s-2);border-bottom:1px dotted #B9B4AE;min-width:12px;align-self:center}
.favs__more{margin:var(--s-5) 0 0}
.favs__more .link{display:inline-flex;align-items:center;min-height:44px}
.fav-lead{display:block;color:var(--ink);text-decoration:none}
.fav-lead__img{display:block;aspect-ratio:1/1;border-radius:var(--r-md);overflow:clip;background:var(--surface)}
.fav-lead__t{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-4);padding-top:var(--s-4)}
.fav-row:hover,.fav-lead:hover{color:var(--ink)}
.fav-row:hover .fav-n,.fav-lead:hover .fav-n{color:var(--brown)}
@media (hover:hover) and (pointer:fine){html:not([data-motion="off"]) :is(.fav-row,.fav-lead):hover img{transform:scale(1.03)}}
@media (max-width:1023px){
  .favs{grid-template-columns:1fr;gap:var(--s-6)}
  .favs__list,.fav-lead{grid-column:1/-1}
  .fav-lead__img{aspect-ratio:4/3}
}
@media (max-width:639px){
  .fav-row{gap:var(--s-4)}
  .fav-row__img{width:88px;height:88px}
  .fav-n{font-size:22px}
}

/* headings sit under the hero's h1 on a phone (h1 34px there) */
@media (max-width:639px){.cafe h2{font-size:30px}.cafe h3{font-size:22px}}

/* menu: the h2 across the top, then one row from line to line: the list columns and the photographs as the last column */
.menu-sec .section-head{margin-bottom:var(--s-5);max-width:none}
.menu-sec .section-head .t-lead{max-width:62ch}
.menu-sec .jumps{margin:-8px 0 var(--s-4)}
.menu-row{display:grid;grid-template-columns:repeat(12,1fr);gap:0 24px;align-items:stretch}
.menu-row.k2>*{grid-column:span 4}
.menu-row.k3>*{grid-column:span 3}
.mcol{min-width:0}
.mcol>.msec+.msec{margin-top:var(--s-5)}
.msec-t{margin:0;font:500 24px/1.1 var(--font-display);color:var(--brown);text-transform:uppercase}
.mi-n{font:600 16px/1.35 var(--font-text)}
.menu-sec .mi{padding:6px 0}
.menu-sec .mi-note{text-wrap:pretty}
.menu-photos{display:flex;flex-direction:column;gap:24px;min-height:420px}
.menu-photos .frame{position:relative;flex:1;height:auto;max-height:none;min-height:0}
.menu-photos .frame img{position:absolute;inset:0;width:100%;height:100%}
.mcol{align-self:stretch}
@media (min-width:1024px){
  /* the row takes the rest of the content window, so the photographs run down to the section's padding */
  .menu-sec>.wrap{display:flex;flex-direction:column;height:100%}
  .menu-sec .menu-row{flex:1;min-height:0}
}
@media (max-width:1023px){
  .menu-row,.menu-row.k3{grid-template-columns:repeat(2,1fr);gap:var(--s-5) 24px}
  .menu-row>*,.menu-row.k2>*,.menu-row.k3>*{grid-column:auto}
  .menu-row>.menu-photos{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);min-height:0}
  .menu-photos.n1{grid-template-columns:1fr}
  .menu-photos .frame img{position:static;aspect-ratio:4/5;height:auto}
  .menu-photos.n1 .frame img{aspect-ratio:4/3}
}
@media (max-width:639px){
  .menu-row,.menu-row.k3{grid-template-columns:1fr;gap:0}
  .menu-row>.mcol+.mcol .msec:first-child{margin-top:0}
  .menu-row>.menu-photos,.menu-photos.n1{grid-template-columns:1fr;margin-top:var(--s-6)}
  .menu-photos .frame img,.menu-photos.n1 .frame img{aspect-ratio:4/5}
}
