/* MESO Cafe
   ---------------------------------------------------------------
   Palette is built off the blue-green of Mesopotamian tile and the
   amber in the mural, not the cream-and-terracotta default.
   Type is one grotesque doing the work, with a serif italic held
   back for a single job: the fortunes.
   --------------------------------------------------------------- */

:root {
  --paper: #fbf8f3;
  --paper-deep: #f0e9dd;
  --ink: #1b2a2e;
  --ink-soft: #506468;
  --tile: #155e63;
  --tile-deep: #0d4145;
  --saffron: #d99a2b;
  --clay: #a8442e;
  --rule: rgba(27, 42, 46, .16);
  --rule-light: rgba(255, 255, 255, .22);

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --quote: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing. Without it the height attribute on each
   <img> stays a definite length and aspect-ratio is ignored. */
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.skip-link:focus { top: 1rem; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tile);
  color: #fff;
}

.masthead-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.wordmark {
  font-family: var(--quote);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .005em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark em { font-weight: 400; font-style: italic; }

.nav-desktop { display: flex; gap: 1.6rem; }

.nav-desktop a {
  font-size: .97rem;
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { border-bottom-color: var(--saffron); }
.nav-desktop a[aria-current="page"] { border-bottom-color: #fff; }

.nav-mobile { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.15rem;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
}

.btn-primary { background: var(--tile); color: #fff; }
.btn-primary:hover { background: var(--tile-deep); }

.btn-quiet { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }

.btn-order {
  background: var(--saffron);
  color: var(--ink);
  padding: .55rem 1rem;
}
.btn-order:hover { background: #eeb043; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-deep); }

.btn .ext { font-size: .85em; opacity: .7; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  font-variation-settings: "opsz" 72;
  max-width: 14ch;
}

.hero-lead {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}

/* The one piece of the brand worth building the page around. */
.fortune {
  position: absolute;
  left: -1.5rem;
  bottom: -1.75rem;
  width: min(19rem, 88%);
  padding: 1.35rem 1.4rem 1.1rem;
  background: var(--clay);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(27, 42, 46, .18);
}

.fortune-label {
  margin: 0 0 .5rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}

.fortune-text {
  margin: 0;
  font-family: var(--quote);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.32;
  transition: opacity .18s ease;
}
.fortune.is-swapping .fortune-text { opacity: 0; }

.fortune-next {
  margin-top: .9rem;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.fortune-next:hover { border-bottom-color: #fff; }

/* ---------- Facts bar ---------- */

.facts {
  border-block: 1px solid var(--rule);
  background: var(--paper-deep);
}

.facts p {
  max-width: 62ch;
  margin: 0 auto;
  padding: 1.6rem var(--gutter);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---------- Generic section ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--rule); }

.section-head { margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); font-variation-settings: "opsz" 48; }
.section-head p { margin-top: .6rem; max-width: 52ch; color: var(--ink-soft); }

.section-more { margin-top: 2rem; }

/* ---------- Menu ---------- */

.menu-jump {
  position: sticky;
  top: 64px;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.menu-jump ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .65rem var(--gutter);
  list-style: none;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-jump ul::-webkit-scrollbar { display: none; }

.menu-jump a {
  white-space: nowrap;
  font-size: .93rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.menu-jump a:hover { color: var(--tile); }

.menu-block { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); scroll-margin-top: 120px; }
.menu-block:first-of-type { border-top: 0; }

.menu-block-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-variation-settings: "opsz" 40; }
.menu-block-head p { margin-top: .5rem; max-width: 54ch; color: var(--ink-soft); font-size: .97rem; }

.menu-items {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}

.menu-items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}

.menu-item-name h3 { font-size: 1.06rem; font-weight: 600; }
.menu-item-name p { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.star { color: var(--saffron); }

.menu-item-price {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.menu-note { margin-top: 1.1rem; font-size: .88rem; color: var(--ink-soft); }

.notice {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--saffron);
}
.notice h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.notice p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Text pages ---------- */

.page-intro {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter) clamp(1.75rem, 4vw, 2.75rem);
}

.page-intro-media {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-intro h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); font-variation-settings: "opsz" 64; max-width: 18ch; }
.page-intro p { margin-top: 1.1rem; max-width: 54ch; font-size: 1.08rem; color: var(--ink-soft); }
.page-intro-image img { width: 100%; aspect-ratio: 5 / 4; border-radius: 2px; }

.prose { max-width: 62ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; }

/* The sleeve fortunes, set as a specimen rather than described. */
.sleeve-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.sleeve-list li {
  padding: 1.15rem .25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--quote);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.figure { margin: 2rem 0; max-width: 420px; }
.figure img { width: 100%; aspect-ratio: 4 / 5; border-radius: 2px; }
.figure figcaption { margin-top: .6rem; font-size: .88rem; color: var(--ink-soft); }

.pull {
  margin: 2.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--saffron);
  font-family: var(--quote);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
}

.photo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.photo-row img { width: 100%; aspect-ratio: 4 / 5; border-radius: 2px; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery li { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; }
.gallery li:nth-child(1),
.gallery li:nth-child(6) { grid-column: span 2; }
.gallery li:nth-child(1) img,
.gallery li:nth-child(6) img { aspect-ratio: 2 / 1; }

.instagram-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--paper-deep);
}
.instagram-strip h2 { font-size: 1.3rem; }
.instagram-strip p { margin-top: .3rem; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Visit ---------- */

.visit-strip {
  background: var(--tile);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.visit-strip-text {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  max-width: calc(var(--wrap) / 2);
  margin-left: auto;
  width: 100%;
}
.visit-strip-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-variation-settings: "opsz" 48; }
.visit-address { margin-top: 1.1rem; font-size: 1.12rem; }
.visit-landmark { margin-top: .4rem; color: rgba(255, 255, 255, .74); font-size: .97rem; }
.visit-strip-image img { width: 100%; height: 100%; min-height: 260px; max-height: 420px; }
.visit-strip .btn-quiet { border-color: var(--rule-light); color: #fff; }
.visit-strip .btn-quiet:hover { border-color: #fff; }
.visit-strip .btn-primary { background: #fff; color: var(--ink); }
.visit-strip .btn-primary:hover { background: var(--paper-deep); }

.hours-list { margin: 1.5rem 0 0; }
.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .3rem 0;
  font-size: .95rem;
}
.hours-list dt { color: inherit; opacity: .8; }
.hours-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours-list-wide { max-width: 20rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-card { padding: 1.5rem; border: 1px solid var(--rule); }
.contact-card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.contact-card p { font-size: .97rem; color: var(--ink-soft); }
.contact-card a { margin-top: .75rem; display: inline-block; }

.map { margin-top: 2.5rem; border: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--tile-deep);
  color: #fff;
}

.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-wordmark { font-family: var(--quote); font-size: 1.65rem; font-weight: 500; line-height: 1; margin-bottom: .9rem; }
.footer-wordmark em { font-weight: 400; font-style: italic; }
.footer-lead p { max-width: 34ch; color: rgba(255, 255, 255, .74); font-size: .95rem; }
.footer-block h2 { font-size: .98rem; margin-bottom: .85rem; }
.footer-block a { color: rgba(255, 255, 255, .82); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-block a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.footer-block p { font-size: .95rem; color: rgba(255, 255, 255, .82); }
.footer-fine { margin-top: .9rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }

.footer-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Mobile thumb bar ---------- */

.thumb-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero h1 { max-width: 18ch; }
  .hero-media { margin-bottom: 2.5rem; }
  .fortune { left: 0; bottom: -1.5rem; }
  .page-intro-media, .split, .visit-strip { grid-template-columns: 1fr; }
  .visit-strip-text { max-width: none; margin-left: 0; }
  .visit-strip-image { order: -1; }
  .visit-strip-image img { max-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { padding-bottom: 56px; }

  .nav-desktop, .masthead .btn-order { display: none; }

  .nav-mobile { display: block; margin-left: auto; }
  .nav-mobile summary {
    list-style: none;
    width: 40px;
    height: 40px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 5px;
    cursor: pointer;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; width: 22px; height: 2px; background: #fff; }
  .nav-mobile nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    background: var(--tile);
    border-top: 1px solid var(--rule-light);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav-mobile nav a {
    padding: .85rem 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--rule-light);
    font-size: 1.05rem;
  }
  .nav-mobile nav a:last-child { border-bottom: 0; }

  .menu-items { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row li:last-child { grid-column: span 2; }
  .photo-row li:last-child img { aspect-ratio: 2 / 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery li:nth-child(1),
  .gallery li:nth-child(6) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-base { flex-direction: column; gap: .35rem; }
  .map iframe { height: 340px; }

  .thumb-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--tile-deep);
  }
  .thumb-bar a {
    padding: 1rem 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    border-right: 1px solid var(--rule-light);
  }
  .thumb-bar a:last-child { border-right: 0; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery li:nth-child(1),
  .gallery li:nth-child(6) { grid-column: auto; }
  .gallery li img,
  .gallery li:nth-child(1) img,
  .gallery li:nth-child(6) img { aspect-ratio: 4 / 3; }
  .fortune { position: static; width: 100%; margin-top: 1rem; box-shadow: none; }
  .hero-media { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
