/* Rangoon Tea House
   Palette: teak slats and cream sign letters from the shopfront, brown from the logo,
   Burmese lacquerware (deep brown, lacquer red), tea-leaf green. */
:root {
  --teak: #C38E4F;
  --teak-deep: #9C6A33;
  --logo-brown: #5A3F33;
  --lacquer: #2A1914;
  --lacquer-2: #3A231B;
  --lacquer-red: #8F2D1F;
  --leaf: #3F6B3A;
  --cream: #F5E9D2;
  --tea: #E8D4B4;
  --paper: #F3E7D3;
  --ink: #2E1E1A;
  --ink-soft: #5E4A40;
  --card: #FBF5EA;
  --line: rgba(59, 36, 48, .18);

  --f-brand: "Comfortaa", "Varela Round", "Trebuchet MS", sans-serif;
  --f-head: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Karla", "Segoe UI", Roboto, Arial, sans-serif;
  --f-my: "Noto Sans Myanmar", "Myanmar Text", "Padauk", sans-serif;
  --f-ar: "Noto Naskh Arabic", "Geeza Pro", Arial, serif;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #22150F; --tea: #2C1C15; --card: #301F18;
    --ink: #F1E4D0; --ink-soft: #CDB8A0; --line: rgba(241, 228, 208, .16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #22150F; --tea: #2C1C15; --card: #301F18;
  --ink: #F1E4D0; --ink-soft: #CDB8A0; --line: rgba(241, 228, 208, .16);
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--lacquer); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teak); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--f-head); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--lacquer); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem var(--pad); background: var(--lacquer); color: var(--cream);
  border-bottom: 3px solid var(--teak-deep);
}
.nav-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 1.05rem/1 var(--f-brand); }
.nav nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.8rem); }
.nav nav a { text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--teak); }
.nav .nav-call { background: var(--lacquer-red); padding: .5rem 1rem; border-radius: 999px; color: var(--cream); }
.nav .nav-call:hover { background: #A63826; color: var(--cream); }
@media (max-width: 680px) { .nav-brand span { display: none; } }
@media (max-width: 420px) { .nav-num { display: none; } .nav nav { gap: .9rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #82552C; color: var(--cream); }
.slats, .foot-slats {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 236, 200, .12), rgba(255, 236, 200, 0) 40%, rgba(40, 18, 6, .38)),
    repeating-linear-gradient(90deg, #8A5A2F 0 15px, #976536 15px 19px, #6E4522 19px 21px, #82552C 21px 24px);
}
.foot-slats {
  background:
    linear-gradient(180deg, rgba(255, 236, 200, .25), rgba(255, 236, 200, 0) 40%, rgba(60, 30, 10, .30)),
    repeating-linear-gradient(90deg, #CB9757 0 15px, #D6A465 15px 19px, #B98146 19px 21px, #C38E4F 21px 24px);
}
/* warm spotlight, like the downlights over the sign */
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 32% 30%, rgba(255, 214, 150, .32), rgba(255, 214, 150, 0) 70%); pointer-events: none; }
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 8vw, 6.5rem) var(--pad) clamp(4.5rem, 9vw, 7rem);
}
.sign {
  position: relative;
  padding: clamp(1rem, 2.6vw, 1.9rem) clamp(1rem, 3vw, 2.2rem);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14px 14px, #B8862F 0 4px, #6E4522 4.5px 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 14px) 14px, #B8862F 0 4px, #6E4522 4.5px 5.5px, transparent 6px),
    radial-gradient(circle at 14px calc(100% - 14px), #B8862F 0 4px, #6E4522 4.5px 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #B8862F 0 4px, #6E4522 4.5px 5.5px, transparent 6px),
    linear-gradient(160deg, #FFF8EA, #F1E1C3 70%, #E8D2AC);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 -3px 0 rgba(120, 80, 40, .18) inset, 0 18px 30px rgba(30, 12, 2, .45), 0 3px 6px rgba(30, 12, 2, .3);
}
.sign h1 { line-height: 0; position: relative; }
.sign-logo { width: 100%; }
.hero-lede { color: #FBF1DE; text-shadow: 0 1px 2px rgba(40, 18, 6, .4); max-width: 40ch; margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 1.75rem; font: 400 clamp(1.15rem, 1.9vw, 1.4rem)/1.45 var(--f-head); }
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* steam from the kettle spout */
.steam { position: absolute; left: clamp(1rem, 3vw, 2.2rem); margin-left: -1%; bottom: 50%; width: 5.5%; overflow: visible; pointer-events: none; }
.steam path { fill: none; stroke: rgba(150, 120, 95, .55); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }

/* the board of pinned dish photos */
.hero-board { position: relative; height: clamp(360px, 38vw, 470px); }
.pin {
  position: absolute; margin: 0; width: 64%;
  background: #FFFBF3; padding: .6rem .6rem .5rem; border-radius: 3px;
  box-shadow: 0 14px 24px rgba(50, 22, 4, .32), 0 2px 4px rgba(50, 22, 4, .2);
}
.pin img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pin figcaption { font: 700 .95rem/1 var(--f-brand); color: var(--logo-brown); padding: .6rem .1rem .15rem; }
.pin::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(245, 233, 210, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.pin--a { top: 0; left: 0; transform: rotate(-5deg); z-index: 2; }
.pin--b { top: 14%; right: 0; transform: rotate(4deg); z-index: 1; }
.pin--c { bottom: 0; left: 18%; transform: rotate(-1.5deg); z-index: 3; width: 58%; }
.awning { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--lacquer); box-shadow: 0 -2px 0 rgba(255, 220, 160, .35); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-board { height: clamp(300px, 80vw, 420px); max-width: 520px; width: 100%; margin: 0 auto; }
}

/* one orchestrated moment: the sign switches on, then the kettle starts steaming */
@media (prefers-reduced-motion: no-preference) {
  .sign { animation: sign-on 1.4s ease-out .15s both; }
  @keyframes sign-on {
    0% { filter: brightness(.5) saturate(.6); }
    14% { filter: brightness(1.1); }
    22% { filter: brightness(.6) saturate(.7); }
    38%, 100% { filter: brightness(1); }
  }
  .steam path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: steam 4.5s ease-in-out 1.6s infinite; }
  .steam path:nth-child(2) { animation-delay: 2.6s; }
  .steam path:nth-child(3) { animation-delay: 3.4s; }
  @keyframes steam {
    0% { stroke-dashoffset: 120; opacity: 0; transform: translateY(0); }
    25% { opacity: .9; }
    70% { stroke-dashoffset: 0; opacity: .45; }
    100% { stroke-dashoffset: -60; opacity: 0; transform: translateY(-14px); }
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none;
  font: 700 1rem/1.1 var(--f-body); border: 2px solid transparent;
}
.btn--lacquer { background: var(--lacquer); color: var(--cream); }
.btn--lacquer:hover { background: var(--lacquer-red); }
.btn--cream { background: var(--cream); color: var(--lacquer); border-color: var(--logo-brown); }
.btn--cream:hover { background: #fff; }
.btn--leaf { background: var(--leaf); color: #fff; }
.btn--leaf:hover { background: #335A2F; }
.btn--plain { border-color: currentColor; color: inherit; background: transparent; }
.btn--plain:hover { background: rgba(127, 90, 60, .12); }

/* ---------- Story ---------- */
.story {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
}
.story-photo { position: relative; margin: 0; }
.story-photo img { border-radius: 10px; box-shadow: 12px 12px 0 var(--teak-deep); }
.stamp { position: absolute; right: -34px; bottom: -34px; width: clamp(120px, 14vw, 160px); transform: rotate(-12deg); }
.stamp circle { fill: var(--lacquer-red); stroke: var(--cream); stroke-width: 3; }
.stamp text { fill: var(--cream); font: 700 15px var(--f-brand); letter-spacing: .06em; }
.stamp .stamp-year { font: 400 40px var(--f-head); letter-spacing: 0; }
.story-text { max-width: 60ch; }
.story-text h2 { margin-bottom: 1.25rem; }
.story-text p { line-height: 1.7; color: var(--ink-soft); }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.facts li { border-top: 3px solid var(--teak-deep); padding-top: .8rem; }
.facts strong { display: block; font: 400 1.15rem/1.2 var(--f-head); margin-bottom: .25rem; }
.facts span { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { max-width: 420px; margin-right: 34px; }
  .story-photo img { box-shadow: 8px 8px 0 var(--teak-deep); }
  .stamp { right: -26px; bottom: -26px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Tea counter ---------- */
.tea { background: var(--lacquer); color: var(--cream); position: relative; overflow: hidden; }
.tea::before { /* lacquerware rim */
  content: ""; position: absolute; inset: 0 0 auto; height: 10px;
  background: repeating-linear-gradient(90deg, var(--lacquer-red) 0 28px, #B8862F 28px 32px);
}
.tea-inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.tea-text h2 { color: #FBF1DE; margin-bottom: 1.1rem; }
.tea-text > p { max-width: 46ch; color: #D9C5AA; line-height: 1.7; margin-bottom: 2rem; }
.tea-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 460px; }
.tea-btn {
  cursor: pointer; text-align: left; border-radius: 14px; padding: .8rem 1rem;
  background: var(--lacquer-2); color: var(--cream); border: 2px solid rgba(245, 233, 210, .18);
  display: flex; flex-direction: column; gap: .1rem;
}
.tea-btn span { font: 700 1.45rem/1.6 var(--f-my); }
.tea-btn small { font: 500 .95rem/1.2 var(--f-body); color: #CDB394; }
.tea-btn:hover { border-color: rgba(245, 233, 210, .5); }
.tea-btn[aria-pressed="true"] { background: var(--cream); color: var(--lacquer); border-color: var(--cream); }
.tea-btn[aria-pressed="true"] small { color: var(--lacquer-red); }

.tea-glass-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.tea-glass { width: clamp(130px, 16vw, 200px); height: auto; }
#tea-liquid { transition: fill .7s ease; }
#tea-cond { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.4); transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.tea-card h3 { font: 400 1.75rem/1.15 var(--f-head); color: #FBF1DE; margin-bottom: .4rem; }
.tea-card p { color: #D9C5AA; margin-bottom: 1.2rem; }
.tea-meter { margin: 0; display: grid; gap: .7rem; }
.tea-meter div { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .75rem; }
.tea-meter dt { font-size: .95rem; color: #D9C5AA; }
.tea-meter dd { margin: 0; }
.bar { display: block; height: 10px; border-radius: 99px; background: rgba(245, 233, 210, .14); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: #D9A15A; border-radius: inherit; transition: width .6s cubic-bezier(.3, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { #tea-liquid, #tea-cond, .bar::after { transition: none; } }
@media (max-width: 860px) { .tea-inner { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .tea-glass-wrap { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Menu ---------- */
.menu { background: var(--tea); padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad); }
.menu-head, .chips, .dishes { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 1.75rem; }
.menu-head p { max-width: 42ch; margin: 0; color: var(--ink-soft); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem 1rem; margin-bottom: 1rem; scrollbar-width: thin; }
.chip {
  flex: none; cursor: pointer; min-height: 44px; padding: .55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 500 .98rem/1 var(--f-body);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--lacquer); border-color: var(--lacquer); color: var(--cream); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--teak); border-color: var(--teak); color: #22150F; } }

.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.5rem); }
.dish { display: flex; flex-direction: column; }
.dish img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 8px; background: var(--card); }
.dish-body { padding: .9rem .1rem 0; }
.dish-cat { margin: 0 0 .25rem; font-size: .85rem; color: var(--teak-deep); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dish-cat { color: var(--teak); } }
.dish h3 { font: 400 1.35rem/1.2 var(--f-head); }
.dish-my { display: block; font: 400 1rem/1.7 var(--f-my); color: var(--ink-soft); }
.dish-body p:last-child { margin: .35rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.dish[hidden] { display: none; }
.dish--feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: clamp(.25rem, 1vw, .75rem);
  background: var(--card); border-radius: 14px;
}
.dish--feature .dish-body { padding: 0; max-width: 40ch; }
.dish--feature h3 { font-size: clamp(2rem, 4vw, 3rem); }
.dish--feature .dish-my { font-size: 1.3rem; margin-top: .2rem; }
.dish--feature .dish-body p:last-child { font-size: 1.1rem; margin-top: .75rem; }
@media (max-width: 720px) { .dish--feature { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch;
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad);
}
.visit-info h2 { margin-bottom: 1rem; }
.visit-hint { display: flex; align-items: center; gap: .75rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.visit dl { margin: 0 0 2rem; }
.visit dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.visit dl div:last-child { border-bottom: 1px solid var(--line); }
.visit dt { font-weight: 700; }
.visit dd { margin: 0; color: var(--ink-soft); }
.visit dd a { color: var(--ink); font-weight: 700; }
.map { min-height: 400px; border-radius: 12px; overflow: hidden; background: var(--tea); border: 6px solid var(--teak); }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Footer: the sign again, on the slat wall ---------- */
.foot { position: relative; overflow: hidden; text-align: center; color: #2E1A20; padding: 3.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); border-top: 14px solid var(--lacquer); }
.foot > *:not(.foot-slats) { position: relative; }
.foot-logo { width: min(560px, 90%); margin: 0 auto 1rem; filter: drop-shadow(4px 6px 8px rgba(60, 28, 6, .3)); }
.foot-ar { font: 500 1.2rem/1.6 var(--f-ar); margin-bottom: 1.25rem; color: var(--lacquer); }
.foot-small { font-size: .95rem; margin-bottom: .5rem; color: #2E1A20; }
.foot a { font-weight: 700; color: var(--lacquer); }
@media (max-width: 520px) {
  .hero-board { height: 108vw; }
  .pin { width: 68%; }
  .pin--a { left: 3%; }
  .pin--b { right: 2%; top: 10%; }
  .pin--c { left: 20%; width: 60%; }
}
