/* ============================================================================
   LECKER ASIA — port of leckerasia.com (Squarespace) to plain static HTML/CSS/JS
   ----------------------------------------------------------------------------
   REBUILD 3: carbon-copy pass. Every column width, font size, and header
   position below is a measured value pulled from the live site via CDP
   getBoundingClientRect on a 1425px-wide viewport (1440 minus scrollbar) —
   not eyeballed. See preview/ for the reference screenshots this was built
   against.

   FONT: the real site uses Adobe Fonts (Typekit) "motor" for nav/body/
   display and "granville" for the menu-board serif logotype. Both are
   commercial Adobe Fonts served through the client's own Typekit kit —
   we cannot legally self-host or hotlink either (it's tied to their
   subscription, not redistributable). Inconsolata (self-hosted, open
   license) is the closest free substitute for "motor" by direct visual
   comparison (condensed, tall x-height, single-story g with a curled
   tail — see preview/font-compare.png). Source Serif 4 stands in for
   "granville" on the menu-board title only.

   MEASURED TYPE SCALE (desktop, 1425px viewport):
     display  67.84px   (hero tagline, address, email/phone)
     h2       47.104px  (Our Story section headings)
     lede     36.736px  (Our Story intro + body paragraphs)
     body     19.456px  (nav, default copy)

   MEASURED COLUMN WIDTHS:
     --w-narrow  664px   hero text/photo, address, email/phone
     --w-wide    1001px  intro paragraph, map, menu board
     --w-meta    551px   Our Story left column (meta/heading/date)
     full-bleed photos sit in the 43px page gutter (1339px content on 1425)

   MOTION CONTRACT (house rule — do not regress)
   - Every element is FULL-OPACITY and complete AT REST.
   - Reveal is pure polish: a self-terminating fade-up that only ENDS at
     opacity:1. No .in class -> stays visible. No JS -> visible.
     prefers-reduced-motion -> everything static and complete.
   ========================================================================== */

@font-face {
  font-family: 'Inconsolata';
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/inconsolata-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-serif-4-var.woff2) format('woff2');
}

:root {
  --bg:        #ffffff;
  --ink:       #000000;
  --ink-dim:   #555555;
  --ink-faint: #8a8a8a;
  --line:      #dddddd;
  --tint:      #fafafa;
  --shadow:    rgba(0,0,0,.10);

  --font:  "Inconsolata", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease:  cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 3vw, 43px);
  --maxw:   1339px;   /* full-bleed content width (viewport minus 43px gutter each side) */

  /* measured type scale, expressed in rem off a 16px root */
  --fs-display: clamp(2.4rem, 3vw + 1.6rem, 4.24rem);   /* 67.84px at desktop */
  --fs-h2:      clamp(1.8rem, 2vw + 1.2rem, 2.944rem);  /* 47.104px */
  --fs-lede:    clamp(1.15rem, 1vw + 1rem, 2.296rem);   /* 36.736px */
  --fs-body:    1.216rem;                                /* 19.456px */

  /* measured column widths. --w-narrow is widened slightly from the measured
     664px: Inconsolata (the open substitute for the licensed "motor" font)
     renders ~7% wider per character at the same point size, which wrapped
     "Good food, good mood." to two lines at the literal measured width. */
  --w-narrow: 720px;
  --w-wide:   1001px;
  --w-meta:   551px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-dim); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.col-narrow { max-width: var(--w-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.col-wide   { max-width: var(--w-wide);   margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--tint); }

.eyebrow { margin: 0 0 8px; font-size: .95rem; color: var(--ink-dim); text-align: center; }
h1, h2 {
  margin: 0; font-family: var(--font); font-weight: 400;
  line-height: 1.1; color: var(--ink);
}
h3, h4 { font-family: var(--font); font-weight: 700; color: var(--ink); }

.section-head { text-align: center; }
/* margin-block only — NOT the margin shorthand. .lede is combined with
   .col-wide on the Our Story intro (`class="lede col-wide"`); .col-wide
   centers via margin-inline:auto, and a plain `margin:0` here would reset
   that back to 0, flattening the box to the left edge. Learned this one
   the hard way — verified via getBoundingClientRect (x was 0, not centered). */
.lede { margin-block: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-dim); }

.textlink { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink-dim); }

/* ==========================================================================
   HEADER — measured against the live site: nav starts at the page gutter,
   wordmark is a true center (grid column, not flex auto-margin), Instagram
   is a 34x34 icon-only button, a (non-functional) language toggle sits to
   its right, matching what's actually there.
   ========================================================================== */
.site-header { position: relative; z-index: 50; background: var(--bg); }
.site-header__inner {
  max-width: none; margin-inline: 0;
  padding: 33px var(--gutter) 33px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
}
/* Header type runs bigger + tighter-tracked than body copy: Inconsolata (the
   open substitute for the licensed "motor" font) has a shorter x-height and
   wider default spacing at a matched px size, which read as small/loose
   next to the reference. Compensating with size + negative tracking rather
   than just matching the raw measured px value literally. */
.site-nav { display: flex; align-items: center; gap: 0; justify-self: start; font-size: 1.4rem; letter-spacing: -.02em; }
.navlink { font-size: 1em; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 0 12px; }
.navlink:first-child { padding-left: 0; }
.navlink.is-active { text-decoration: underline; text-underline-offset: 3px; }
.navlink:hover { color: var(--ink-dim); }

.brand { justify-self: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.65rem; letter-spacing: -.02em; white-space: nowrap; }

.header-icons { display: flex; align-items: center; gap: 18px; justify-self: end; font-size: 1.4rem; letter-spacing: -.02em; }
.header-icons .ig { width: 24px; height: 24px; color: var(--ink); }
.header-icons a { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.header-icons a:hover { color: var(--ink-dim); }
.lang-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 1em; color: var(--ink); text-decoration: none; }
.lang-toggle:hover { color: var(--ink-dim); }
.lang-toggle svg { width: 9px; height: 9px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; justify-self: end;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); }

.mobile-nav { display: none; }
.mobile-nav.open {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line);
}
.mobile-nav a { font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.mobile-nav a.is-active { text-decoration: underline; text-underline-offset: 3px; }
.mobile-nav .mobile-lang { display: flex; gap: 20px; margin-top: 8px; font-size: .95rem; color: var(--ink-dim); }

@media (max-width: 860px) {
  .site-nav, .header-icons { display: none; }
  .hamburger { display: flex; }
  .site-header__inner { grid-template-columns: auto 1fr auto; padding-block: 20px; }
  .brand { justify-self: start; }
}

/* ==========================================================================
   HERO (home) — image and headline share the SAME 664px column, centered,
   exactly like the source (not a two-column grid).
   ========================================================================== */
.hero { text-align: center; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 64px); }
.hero__photo { max-width: var(--w-narrow); margin: 0 auto clamp(24px, 4vw, 40px); }
.hero__photo img { width: 100%; height: auto; }
.hero__name {
  margin: 0 auto; font-weight: 400; font-size: var(--fs-display); line-height: 1.12; color: var(--ink);
  max-width: var(--w-narrow);
}
.hero__links { margin: clamp(28px, 4vw, 44px) 0 0; font-size: var(--fs-body); }
.hero__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hero__links a:hover { color: var(--ink-dim); }
.hero__links .sep { margin: 0 10px; color: var(--ink-faint); }
.hero__contact { margin: 14px 0 0; font-size: var(--fs-body); }
.hero__contact a { color: var(--ink); text-decoration: none; }
.hero__contact a:hover { text-decoration: underline; }

/* ==========================================================================
   SITE LINKS — repeated "Menu · Reservations · Location + contact" footer.
   ========================================================================== */
.site-links { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter); }
.site-links__nav { font-size: var(--fs-body); }
.site-links__nav a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-links__nav a:hover { color: var(--ink-dim); }
.site-links__nav .sep { margin: 0 10px; color: var(--ink-faint); }
.site-links__contact { margin: 14px 0 0; font-size: var(--fs-body); }
.site-links__contact a { color: var(--ink); text-decoration: none; }
.site-links__contact a:hover { text-decoration: underline; }
.site-links__hours { margin: 8px 0 0; font-size: .85rem; color: var(--ink-faint); }

/* ==========================================================================
   VALUE TRIO (disclosed addition beyond 1:1 — kept minimal/plain)
   ========================================================================== */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.vitem { padding-top: 16px; border-top: 1px solid var(--ink); }
.vitem__no { font-weight: 700; font-size: .95rem; color: var(--ink-dim); }
.vitem h3 { margin: 10px 0 8px; font-size: 1.05rem; line-height: 1.25; }
.vitem p { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* ==========================================================================
   OUR STORY — carbon-copy grid: full-bleed photo, then a 2-column row
   (551px meta/heading/date column, centered text) + (remaining-width
   body paragraph, left-aligned). Motion is a plain scroll-reveal fade-up
   per block (same .reveal mechanism used elsewhere) — NOT a pinned/scrub
   crop, because that mechanism can't coexist with full-bleed photos at
   their real aspect ratio without cropping them, which is what the source
   never does.
   ========================================================================== */
.story-photo-full { width: 100%; height: auto; }
.story-row {
  display: grid; grid-template-columns: var(--w-meta) 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(32px, 5vw, 56px);
}
.story-meta { text-align: center; }
.story-meta .eyebrow { margin-bottom: 0; }
.story-meta h2 { font-size: var(--fs-h2); margin: 8px 0; }
.story-meta .date { font-size: var(--fs-body); color: var(--ink-dim); }
.story-copy { font-size: var(--fs-lede); line-height: 1.35; color: var(--ink); }
.story-copy b { font-weight: 700; }

@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; gap: 20px; }
}

.story-teaser { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-teaser__fig img { width: 100%; height: auto; }
@media (max-width: 780px) {
  .story-teaser { grid-template-columns: 1fr; gap: 20px; }
  .story-teaser__fig { max-width: 340px; margin: 0 auto; }
}

/* ==========================================================================
   MENU — bordered board matches the real page's ~1001px column width.
   ========================================================================== */
.menu-board { max-width: var(--w-wide); margin-inline: auto; border: 1px solid var(--ink); }
.menu-board__head { text-align: center; padding: clamp(28px, 5vw, 48px) 20px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--ink); }
.menu-board__title { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: .12em; font-size: clamp(1.8rem, 5vw, 3.2rem); }
.menu-board__sub { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(.95rem, 1.6vw, 1.2rem); color: var(--ink-dim); }

.menu-cols { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 0; }
.menu-railcell { display: flex; align-items: center; justify-content: center; padding: 0 6px; border-right: 1px solid var(--line); }
.menu-rail { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .78rem; letter-spacing: .18em; color: var(--ink-dim); white-space: nowrap; }
.menu-colbody { padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 24px); }
.menu-colbody + .menu-railcell { border-left: 1px solid var(--line); border-right: 0; }

.menu-cat { margin-bottom: clamp(24px, 3.5vw, 36px); }
.menu-cat:last-child { margin-bottom: 0; }
.menu-item { margin-bottom: 14px; }
.menu-item:last-child { margin-bottom: 0; }
.menu-item__row { display: flex; align-items: baseline; gap: 10px; }
.menu-item__name { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.menu-item__spacer { flex: 1; }
.menu-item__price { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.menu-item__desc { margin: 3px 0 0; font-size: .85rem; color: var(--ink-dim); line-height: 1.5; }
.menu-item__tags { display: inline-flex; gap: 4px; }
.tag { font-size: .62rem; font-weight: 700; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 50%; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }

.menu-note { margin: 0; padding: 16px 20px; border-top: 1px solid var(--ink); text-align: center; font-size: .82rem; color: var(--ink-dim); line-height: 1.8; }

@media (max-width: 780px) {
  .menu-cols { grid-template-columns: 1fr; }
  .menu-railcell { display: none; }
  .menu-colbody { border-top: 1px solid var(--line); }
  .menu-colbody:first-child { border-top: 0; }
}

/* ==========================================================================
   RESERVATIONS — matches measured spacing: email + phone H1s stacked
   tightly (~110px apart), body-size paragraph below, same 664px column.
   ========================================================================== */
.res { text-align: center; }
.res__email { margin: 0; font-weight: 400; font-size: var(--fs-display); word-break: break-word; line-height: 1.15; }
.res__phone { margin: 8px 0 0; font-weight: 400; font-size: var(--fs-display); line-height: 1.15; }
.res__phone a, .res__email a { color: var(--ink); text-decoration: none; }
.res__phone a:hover, .res__email a:hover { text-decoration: underline; }
.res__note { margin: clamp(20px, 3vw, 32px) auto 0; font-size: var(--fs-body); color: var(--ink-dim); }
.res__toggle { margin-top: clamp(20px, 3vw, 32px); }
.res__toggle button {
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: none;
  border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px;
}
.res__toggle button:hover { color: var(--ink-dim); }
.res__result { display: none; margin: 16px auto 0; padding: 16px 18px; border: 1px solid var(--line); font-size: .9rem; line-height: 1.6; }
.res__result.show { display: block; }

/* ==========================================================================
   LOCATION — map is a constrained 1001px column (NOT full-bleed), matching
   the measured iframe box exactly. Address uses the same display style as
   the hero tagline.
   ========================================================================== */
.map-frame { position: relative; aspect-ratio: 1001 / 479; width: 100%; background: var(--tint); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-address { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(16px, 3vw, 32px); }
.loc-address h1 { font-size: var(--fs-display); max-width: var(--w-narrow); margin-inline: auto; }
.hours-wrap { max-width: 26rem; margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 48px); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-table td:last-child { text-align: right; }
.hours-note { text-align: center; font-size: .8rem; color: var(--ink-faint); padding-bottom: clamp(24px, 4vw, 40px); }

/* ==========================================================================
   MICRO-MOTION
   ========================================================================== */
.navlink, .textlink, a { transition: color .15s var(--ease); }

/* ==========================================================================
   MOTION — reveal is polish only. Resting state is always fully visible.
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: reveal-in .6s var(--ease) both; }
  @keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  .trio .vitem.in:nth-child(2) { animation-delay: .08s; }
  .trio .vitem.in:nth-child(3) { animation-delay: .16s; }

  .hero__photo, .hero__name, .hero__links, .hero__contact { animation: hero-rise .7s var(--ease) both; }
  .hero__photo   { animation-delay: 0s; }
  .hero__name    { animation-delay: .08s; }
  .hero__links   { animation-delay: .18s; }
  .hero__contact { animation-delay: .24s; }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 780px) {
  .trio { grid-template-columns: 1fr; gap: 0; }
  .vitem { border-top: none; padding-top: 0; margin-top: 24px; }
  .vitem:first-child { margin-top: 0; }
  .vitem { border-top: 1px solid var(--ink); padding-top: 18px; margin-top: 26px; }
}
