/* House of Bamboo menu page. Mirrors the printed menu (V2.2):
   red page, carved tiki strips down both sides, cream lettering.
   Fredoka and Lilita One stand in for the print fonts (Cubano, Barbieri). */
:root {
  --red: #a01b21;
  --red-dark: #8a1519;
  --cream: #fdf3e2;
  --yellow: #f6e46a;
  --coral: #e8654f;
  --jade: #4bb74a;     /* the Zombie Hand's green (Kirby art); names get a thin dark outline like the drawings */
  --outline: 0 1px 0 #1d0a06, 1px 0 0 #1d0a06, 0 -1px 0 #1d0a06, -1px 0 0 #1d0a06, 0 2px 3px rgba(0,0,0,0.35);
  --ink: #2a1a10;
  --strip: clamp(26px, 5vw, 44px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--red); color: var(--cream);
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif; font-weight: 500;
  line-height: 1.4; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--yellow); }
.skip-link { position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 0 0 8px 8px; z-index: 10; }
.skip-link:focus { transform: translate(-50%, 0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---- Tiki strips down both edges; the darker carved pattern sits outside the right strip ---- */
.page {
  min-height: 100vh;
  padding: 0 calc(var(--strip) + clamp(14px, 4vw, 40px));
  background:
    url(img/strip.webp) left clamp(4px, 2vw, 22px) top / var(--strip) auto repeat-y,
    url(img/strip.webp) right clamp(4px, 2vw, 22px) top / var(--strip) auto repeat-y;
  position: relative;
}
@media (min-width: 900px) {
  /* two matching pillars; the tapa fills the space between them */
  .page {
    background:
      url(img/strip.webp) left 22px top / var(--strip) auto repeat-y,
      url(img/strip.webp) right 22px top / var(--strip) auto repeat-y;
    padding-left: calc(22px + var(--strip) + 60px);
    padding-right: calc(22px + var(--strip) + 60px);
  }
}
/* Shaded tapa cloth, faint, between the two border strips */
.page::before {
  content: ""; position: fixed; top: 0; bottom: 0; z-index: 0; pointer-events: none;   /* fills the screen, stays put while the menu scrolls */
  left: calc(clamp(4px, 2vw, 22px) + var(--strip)); right: calc(clamp(4px, 2vw, 22px) + var(--strip));
  /* tapa panels at their true proportions, screen-tall, side by side; every other panel is mirrored so seams match */
  background: url(img/tapa-panels.webp) center top / auto 100% repeat-x;
  opacity: 0.55;
}
@media (min-width: 900px) { .page::before { left: calc(22px + var(--strip)); right: calc(22px + var(--strip)); } }
.page > * { position: relative; z-index: 1; }
main, .top, footer { max-width: 760px; margin: 0 auto; }

/* ---- Header ---- */
.top { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0.6rem; text-align: center; padding: 1.2rem 0 0.5rem; }
.top > .logo, .top > .soon, .top > .page-name { flex-basis: 100%; }
.back {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream); text-decoration: none; background: rgba(0,0,0,0.22); padding: 0.45em 0.9em; border-radius: 999px;
}
.back:hover { background: rgba(0,0,0,0.38); }
.page-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* the art title below names the page visually */
.logo { display: flex; justify-content: center; }
.logo img { display: block; width: clamp(110px, 22vw, 170px); margin-top: 0.4rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35)); }
.soon {
  justify-self: center; margin: 0.6rem auto 0; max-width: max-content; padding: 0.55em 1.2em; transform: rotate(-2deg);
  background: var(--yellow); color: var(--ink); border-radius: 6px; box-shadow: 0 4px 0 rgba(0,0,0,0.25);
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25;
}
.soon strong { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; letter-spacing: 0.06em; }
.soon span { font-size: 0.78rem; font-weight: 600; }

/* ---- Section titles (cut from the print art) ---- */
.art-h { margin: 2.4rem 0 1rem; text-align: center; line-height: 0; }
.art-h img { height: clamp(34px, 6.5vw, 50px); width: auto; }

/* ---- Food ---- */
.food { position: relative; }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; text-align: center; text-transform: uppercase; }
.dishes h3 { color: var(--jade); text-shadow: var(--outline); margin: 0; font-size: clamp(1rem, 2.4vw, 1.12rem); font-weight: 600; letter-spacing: 0.03em; }
.dishes h3 i { font-style: normal; font-weight: 500; color: var(--cream); text-shadow: none; }
.dishes h3 b { font-weight: 600; margin-left: 0.15em; }
.dishes p { margin: 0.15rem 0 0; font-size: clamp(0.88rem, 2.1vw, 0.98rem); letter-spacing: 0.02em; }
.dishes .add { color: var(--yellow); }
.dishes.two { grid-template-columns: 1fr 1fr; column-gap: 1.8rem; }
@media (max-width: 620px) { .dishes.two { grid-template-columns: 1fr; } }
.note { text-align: center; text-transform: uppercase; color: var(--yellow); font-weight: 600; letter-spacing: 0.04em; margin: 1.1rem 0 0; }

/* Illustrations that sit in the margins on wide screens, like the print */
.deco { display: none; position: absolute; pointer-events: none; }
@media (min-width: 1000px) {
  .deco { display: block; }
  /* margin art, spaced about every 350px down the food menu, alternating sides
     (Yipwon left, Mint right, Shield left, Skull right; the Dole Whip stays beside Desserts) */
  .yipwon { width: 120px; left: -150px; top: 40px; transform: rotate(-8deg); }
  .food > .mint { width: 195px; right: -215px; top: 380px; transform: rotate(10deg); }
  .food > .shield { width: 170px; left: -200px; top: 760px; transform: rotate(-6deg); }
  .food > .skull { width: 190px; right: -215px; top: 1090px; transform: rotate(8deg); }
  .dole { width: 150px; right: -40px; top: 2.2rem; }
}

.desserts { position: relative; }
.priced { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; text-transform: uppercase; text-align: center; display: grid; gap: 0.9rem; }
.priced li { font-weight: 600; letter-spacing: 0.03em; }
.priced li > span { color: var(--jade); text-shadow: var(--outline); }
.priced small { display: block; color: var(--cream); text-shadow: none; font-size: 0.82rem; font-weight: 500; font-style: italic; text-transform: none; }

.fine { margin: 2.4rem auto 0; max-width: 620px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.92; }
.fine p { margin: 0 0 0.6rem; }

/* ---- Cocktails ---- */
.cocktails { margin-top: 3.5rem; }
.cocktails.first { margin-top: 2rem; }
.banner { margin: 0 -2% 1.5rem; line-height: 0; text-align: center; }
.banner img { width: 100%; max-width: 640px; }
.drinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; }
.drinks li { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: center; }
.drinks li:nth-child(even) { grid-template-columns: 1fr 150px; }
.drinks li:nth-child(even) img { order: 2; }
.drinks img { width: auto; max-width: 150px; max-height: 210px; justify-self: center; }
.drinks div { text-align: center; }
.drinks h3 { color: var(--jade); text-shadow: var(--outline); margin: 0 0 0.35rem; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(1.45rem, 3.6vw, 1.85rem); letter-spacing: 0.01em; line-height: 1.1; }
.drinks p { margin: 0; text-transform: uppercase; font-size: clamp(0.84rem, 2vw, 0.95rem); letter-spacing: 0.02em; }
.drinks .morse { margin-top: 0.5rem; text-transform: none; letter-spacing: 0.12em; opacity: 0.75; word-spacing: 0.1em; }   /* wraps only between letters, never inside one */
@media (max-width: 560px) {
  .drinks li, .drinks li:nth-child(even) { grid-template-columns: 96px 1fr; gap: 0.9rem; }
  .drinks li:nth-child(even) img { order: 0; }
  .drinks img { max-width: 96px; max-height: 150px; }
  .drinks div { text-align: left; }
}

.bowls { margin-top: 3.4rem; text-align: center; }
.script-h { margin: 0; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; }
.limit { margin: -0.4rem 0 1.6rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; color: var(--yellow); }
.bowls ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.bowls li { display: flex; flex-direction: column; align-items: center; }
/* every bowl sits in the same-size box, bottom-aligned, so names line up in one row */
.bowls li img { height: 150px; width: 100%; object-fit: contain; object-position: center bottom; }
.bowls h3 { color: var(--jade); text-shadow: var(--outline); margin: 0.8rem 0 0.1rem; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(1.1rem, 2.5vw, 1.3rem); line-height: 1.1; white-space: nowrap; }   /* names stay on one line */
.bowls p { margin: 0; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.bowls p.desc { margin-top: 0.45rem; font-size: 0.8rem; letter-spacing: 0.02em; opacity: 0.95; }
@media (max-width: 560px) { .bowls ul { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Footer ---- */
footer { margin-top: 3.5rem; padding: 1.6rem 0 2.6rem; text-align: center; font-size: 0.85rem; border-top: 2px dashed rgba(253,243,226,0.3); }
footer p { margin: 0 0 0.5rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
footer a { color: var(--cream); }
.badge21 { display: inline-block; font-family: "Lilita One", sans-serif; letter-spacing: 0.06em; color: var(--yellow); text-transform: uppercase; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Publishing rules: balanced headings, no single-word last lines */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, small, label, summary, figcaption { text-wrap: pretty; }

@media (max-width: 420px) { .back { font-size: 0.72rem; letter-spacing: 0.05em; padding: 0.45em 0.75em; } }

/* Food | Cocktails tabs: always visible, stick to the top while scrolling */
.menu-tabs {
  position: sticky; top: 0.6rem; z-index: 5; display: flex; justify-content: center;
  width: max-content; margin: 1.4rem auto 0.4rem; padding: 4px; border-radius: 999px;
  background: rgba(29,10,6,0.82); box-shadow: 0 6px 18px rgba(0,0,0,0.35); backdrop-filter: blur(4px);
}
.menu-tabs a {
  font-family: "Lilita One", sans-serif; font-size: clamp(1.05rem, 3.2vw, 1.3rem); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; padding: 0.35em 1.3em; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.menu-tabs a:hover { color: var(--yellow); }
.menu-tabs a[aria-current="page"] { background: var(--jade); color: #1d0a06; }

/* Bottom-of-page link to the other menu */
.next-menu {
  display: block; max-width: 520px; margin: 3.2rem auto 0; text-align: center; text-decoration: none; color: var(--cream);
}
.next-menu img { width: 100%; max-width: 420px; height: auto; transition: transform 0.25s ease; }
.next-menu span {
  display: inline-block; margin-top: 0.6rem; font-family: "Lilita One", sans-serif; font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  color: var(--jade); text-shadow: var(--outline); letter-spacing: 0.02em;
}
.next-menu:hover img { transform: translateY(-3px) rotate(-1deg); }
.next-menu:hover span { color: var(--yellow); }
.next-menu.text-only { margin-top: 2.6rem; }
