/* =========================================================
   Tamcha  |  modern-retro: flat matcha green + cream,
   condensed caps, checker strips, hard edges
   ========================================================= */

/* ---- Self-hosted fonts (latin subsets from Google Fonts, OFL) ---- */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/bebasneue-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("../assets/fonts/dmsans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap; src: url("../assets/fonts/dmsans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --matcha: #5b8c2a;
  --matcha-deep: #2f541e;
  --matcha-dark: #223d17;
  --cream: #f4f3ec;
  --ink: #1c2a14;
  --ink-soft: #4b5a42;
  --lime: #b7d13a;

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --check: clamp(10px, 1.4vw, 18px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .95; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
figure > picture { height: 100%; }
figure img { width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h2 { font-size: clamp(2.8rem, 7vw, 6rem); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--matcha-dark); color: var(--cream); padding: 10px 16px; border-radius: var(--pill);
}
.skip:focus { top: 16px; }

/* Two rows of alternating squares, like the edge of a diner floor */
.checker {
  height: calc(var(--check) * 2);
  background: conic-gradient(var(--matcha-dark) 25%, transparent 0 50%, var(--matcha-dark) 0 75%, transparent 0) 0 0 / calc(var(--check) * 2) calc(var(--check) * 2);
}
.checker-cream { background-image: conic-gradient(var(--cream) 25%, transparent 0 50%, var(--cream) 0 75%, transparent 0); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px 10px; border-radius: var(--pill);
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; line-height: 1; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 2px solid var(--matcha-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn-dark { background: var(--matcha-dark); color: var(--cream); }
.btn-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-line { color: var(--matcha-dark); }
.btn-line:hover { background: var(--matcha-dark); color: var(--cream); }

/* ---- Announce + nav ---- */
.announce {
  text-align: center; padding: 10px var(--gutter) 8px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
}
.nav-links {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 10px; padding-bottom: 4px;
}
.nav { padding: 0 var(--gutter); }
.nav .wrap { padding-left: 0; padding-right: 0; }
.nav-links a {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0;
}
.nav-links a:hover { color: var(--matcha); }

/* ---- Masthead + hero ---- */
.masthead {
  font-family: var(--font-display); text-transform: uppercase; text-align: center; white-space: nowrap;
  font-size: calc((100vw - 2 * var(--gutter)) / 2.42); line-height: .78; letter-spacing: -0.01em;
  color: var(--matcha-dark); padding-top: .06em; margin-bottom: -0.02em;
}
@media (min-width: 1440px) { .masthead { font-size: calc((1440px - 80px) / 2.42); } }

.hero-stage { position: relative; }
.hero-img { width: 100%; height: clamp(360px, 62vh, 720px); object-fit: cover; }
.hero-box {
  position: absolute; left: 0; top: 0; width: min(440px, 38%);
  background: var(--matcha); color: var(--cream);
  padding: clamp(20px, 2.6vw, 36px) var(--gutter);
}
.hero-logo { width: clamp(72px, 8vw, 110px); margin-bottom: 18px; }
.hero-title { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 22px; }

.hero-in { animation: rise .9s var(--ease) both; }
.hero-box.hero-in { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* ---- Statement ---- */
.statement { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 120px); }
.statement-text {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1; max-width: 24ch; margin-bottom: 28px;
}

/* ---- Menu: one dark panel, giant words as tabs ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel { padding: clamp(56px, 8vw, 120px) 0; }
.panel-dark { background: var(--matcha-dark); color: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .3em; margin-bottom: clamp(24px, 4vw, 56px); font-size: clamp(2.5rem, 10.5vw, 10rem); }
.tab {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1em; line-height: .9; text-transform: uppercase;
  color: var(--cream); opacity: .3;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.tab:hover { opacity: .7; }
.tab.is-active { color: var(--lime); opacity: 1; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.panel-grid[hidden] { display: none; }
.panel-grid > *, .story-grid > *, .visit-grid > * { min-width: 0; }
.panel-photo { position: sticky; top: 32px; aspect-ratio: 1216 / 1312; overflow: hidden; }
.panel-lede { max-width: 40ch; font-size: 1.1rem; opacity: .85; margin-bottom: 24px; }
.tabpanel { cursor: default; }
.tabpanel.is-active { animation: rise .6s var(--ease) both; }

.items { counter-reset: item; }
.item { counter-increment: item; position: relative; padding: 18px 0 16px 3.2rem; border-top: 1px solid rgba(244, 243, 236, 0.35); }
.item::before {
  content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 22px;
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; color: var(--lime);
}
.item:last-child { border-bottom: 1px solid rgba(244, 243, 236, 0.35); }
.item h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: .01em; margin-bottom: 4px; transition: color .3s var(--ease); }
.item:hover h3 { color: var(--lime); }
.item p { font-size: .98rem; opacity: .8; }

/* ---- Story ---- */
.story { padding: clamp(64px, 10vw, 140px) 0; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-copy .h2 { color: var(--matcha-dark); margin-bottom: 28px; }
.story-copy p { max-width: 46ch; margin-bottom: 18px; font-size: 1.1rem; color: var(--ink-soft); }
.story-copy .story-sign { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: var(--matcha); }
.story-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.story-girl { width: clamp(120px, 14vw, 180px); margin-top: 24px; animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 90%; }

/* ---- Gallery: edge-to-edge strip ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.g { aspect-ratio: 3 / 4; overflow: hidden; }
.g img { transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.05); }

/* ---- Visit ---- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.visit-info { padding: clamp(40px, 6vw, 88px) 0; }
.visit-lede { font-size: clamp(2.8rem, 7vw, 6rem); color: var(--matcha-dark); margin-bottom: 24px; }
.visit-address { font-style: normal; font-size: 1.2rem; max-width: 34ch; margin-bottom: 8px; }
.visit-map { display: inline-block; font-weight: 500; color: var(--matcha-deep); margin-bottom: 28px; }
.hours { margin: 0 0 40px; display: grid; gap: 10px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-soft); }
.visit-order { background: var(--matcha-dark); color: var(--cream); padding: clamp(24px, 3vw, 40px); }
.visit-order h3 { font-size: 2.4rem; color: var(--lime); margin-bottom: 8px; }
.visit-order p { opacity: .85; margin-bottom: 22px; }
.order-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: var(--pill); background: #fff;
  transition: transform .35s var(--ease);
}
.brand-btn:hover { transform: translateY(-3px); }
.brand-btn .ico { width: 28px; height: 28px; }
.brand-btn-wide { width: auto; padding: 0 22px; }
.brand-btn-wide .ico-wordmark { width: 92px; height: 20px; }
.visit-photo { height: 100%; min-height: 420px; overflow: hidden; }

/* ---- Footer ---- */
.footer { background: var(--matcha); color: var(--cream); }
.footer-inner { padding-top: 40px; padding-bottom: 28px; text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: clamp(40px, 6vw, 80px); }
.footer-links a {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none;
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase;
}
.footer-links a:hover { color: var(--matcha-dark); }
.footer-links .ico { width: 1.1em; height: 1.1em; }
.footer-wordmark { width: clamp(200px, 30vw, 420px); margin: 0 auto 8px; }
.footer-hindi { font-size: 1.3rem; letter-spacing: .3em; margin-bottom: 12px; }
.footer-line { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.footer .checker { margin-bottom: env(safe-area-inset-bottom, 0px); }

/* ---- Scroll reveal ---- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .panel-grid, .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .panel-photo { position: static; }

  /* Caption box drops under the photo so it never covers the drinks */
  .hero-img { height: auto; aspect-ratio: 897 / 449; }
  .hero-box { position: static; width: 100%; }

  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .g { flex: 0 0 78%; scroll-snap-align: start; }

  .visit-info { padding-bottom: 0; }
  .visit-photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; margin: 0 calc(var(--gutter) * -1); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .story-girl { animation: none; }
}
