/* frame.css: Mama Su only (desktop v1, 2026-10-23). Desktop (>= 64rem) only; phones and tablets are unchanged.
   Howard's Mama Su mock (doors.pdf p4), followed as closely as our rules allow (Caelan 2026-10-23): dark wood header (small name,
   Menu / The room / About Mama / Visit, phone, red Order online); hero = the lantern-room photo in a thick dark-wood frame with a
   brass inner line, our MA/MA/SU mark, "American Chinese, under the lanterns.", the intro, Order online and the one neon pill;
   the aged-paper About Mama band; "The room. Every panel, a poster." wood-framed photo grid (v7: no captions); then Menu,
   Visit and the footer as on the other doors. Mock palette: wood #2a140d, lantern red #d22b1f, aged paper #eadcc0, brass #b8893b.
   Fonts FONT-SPEC-2026-11-03: Roboto (headlines, OFL), JetBrains Mono (body/meta, OFL), Helvetica stack (buttons/nav, system).
   Left out: the mock's drawn lanterns (no-AI rule; the photo carries the real ones),
   its "See the menu" button (no approved, shareable menu link), its "Mockup, not live" tag and "Photo to take" notes.
   The OPEN DAILY pill stays the only glow; the hours section (with its own pill) is hidden from 64rem so there is one neon. */
/* FONT-SPEC-2026-11-03: DM Serif / League Spartan / Work Sans retired. Roboto via door_block; JetBrains via tokens; Helvetica system for UI. */
/* round 2 (Caelan 2026-10-25): Contact email on its own line below the label, every width */
#visit .contacts .label { display: block; margin-bottom: 0.25rem; }
.ms-wm, .ms-hdr-cta, .ms-nav-desk, .ms-hero, .ms-about, .ms-story, .ms-room, .ms-visit-icon, .ms-room-mark, .ms-about-foot { display: none; }

@media (min-width: 64rem) {
  :root {
    --font-heading: var(--font-display); /* Roboto from door block */
    --font-body: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --ms-label: var(--font-ui); /* buttons/nav/UI = Helvetica stack; meta can stay mono via --font-body */
    --ms-wood: #2a140d; --ms-wood-2: #241009; --ms-red: #d22b1f; --ms-red-text: #e0473b; --ms-paper: #eadcc0; --ms-brass: #b8893b;
    --ms-ink: #2a140d; --ms-ink-2: #4a3226; --ms-logo-red: #d02827;  /* logo red = the MA/MA/SU mark fill */
    --ms-c: min(calc(100% - 2 * clamp(32px, 6vw, 120px)), 1200px);
    --ms-gap: clamp(12px, 1.1vw, 18px);
  }
  body { background-color: var(--ms-wood); }
  h1, h2, h3, .heading { font-weight: var(--font-display-weight, 400); font-variation-settings: normal; font-synthesis: none; letter-spacing: var(--font-display-tracking, 0.06em); text-transform: var(--font-display-transform, uppercase); }
  .label { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.08em; }
  .ms-c { width: var(--ms-c); margin-inline: auto; }
  .ms-lbl { font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 1rem; color: var(--ms-paper); }

  /* The subtle vertical wood grain behind the dark sections (CSS only, no image) */
  .site-header, .ms-hero, .ms-room {
    background-color: var(--ms-wood);
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 7px, rgba(255,235,200,0.015) 7px 9px, transparent 9px 16px);
  }

  /* Header: name | four links | phone + Order online, one row */
  .site-header .wrap { width: var(--ms-c); max-width: none; padding: 0.9rem 0; margin-inline: auto; flex-wrap: nowrap; gap: 2rem; }
  .site-header .placeholder--logo { display: none; }
  .ms-wm { display: block; flex: none; font-family: var(--ms-label); font-weight: 700; font-size: 1.07rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--ms-paper); padding-top: 0.15em; }   /* v7: 0.95 -> 1.07rem (+12.6%) */
  .site-nav li:not(.ms-nav-desk) { display: none; }
  .site-nav .ms-nav-desk { display: list-item; }
  .site-nav ul { flex-wrap: nowrap; gap: clamp(1.25rem, 2.4vw, 2.5rem); font-family: var(--font-ui); font-weight: var(--font-ui-weight); font-size: 0.8125rem; letter-spacing: var(--font-ui-tracking); text-transform: var(--font-ui-transform); }
  .site-nav a { color: var(--ms-paper); opacity: 0.86; }
  .site-nav a:hover { opacity: 1; }
  .ms-hdr-cta { display: flex; flex: none; align-items: center; gap: 1.5rem; }
  .ms-tel { font-family: var(--ms-label); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-decoration: none; color: var(--ms-paper); opacity: 0.86; padding-top: 0.15em; }

  /* Square red button (mock MS-4) */
  .ms-btn { display: inline-block; background: var(--ms-red); color: #fff; border: 2px solid var(--ms-red); border-radius: 0; padding: 0.8em 1.6em 0.7em; font-family: var(--font-ui); font-weight: var(--font-ui-weight); font-size: 0.8125rem; letter-spacing: var(--font-ui-tracking); text-transform: var(--font-ui-transform); text-decoration: none; line-height: 1.1; }
  .ms-btn:hover { background: #b8231a; border-color: #b8231a; }
  .ms-hdr-cta .ms-btn { padding: 0.75em 1.35em 0.65em; font-size: 0.75rem; }

  /* Wood frame with a brass inner line (mock MS-1) */
  .ms-frame { position: relative; margin: 0; background: var(--ms-wood-2); border: 7px solid #3a1d12; box-shadow: 0 0 0 1px #160905, 0 18px 40px rgba(0,0,0,0.45); }
  .ms-frame::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(184,137,59,0.75); pointer-events: none; }
  .ms-frame picture, .ms-frame img { display: block; width: 100%; height: 100%; }
  .ms-frame img { object-fit: cover; }

  /* Hero: framed photo left, mark + headline right; fits the first screen at 1280x800 / 1440x900 / 1920x1080 */
  main > .hero { display: none; }
  #hours { display: none; }
  /* v2 (2026-10-23): portrait P19 panel, full 2:3 frame, height from the viewport (Zoo Thai v7 approach) */
  .ms-hero { --ms-hpad: clamp(1.25rem, 3.5vh, 3rem); --ms-fh: clamp(26rem, calc(100vh - 4rem - 1px - 2 * var(--ms-hpad)), 62rem);
             display: block; padding: var(--ms-hpad) 0; border-bottom: 1px solid var(--color-line); }
  @supports (height: 1svh) { .ms-hero { --ms-fh: clamp(26rem, calc(100svh - 4rem - 1px - 2 * var(--ms-hpad)), 62rem); } }
  .ms-hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
  .ms-hero-photo { height: var(--ms-fh); width: calc(var(--ms-fh) * 2 / 3); aspect-ratio: auto; }
  .ms-hero-text { max-width: 34rem; text-align: center; }   /* v8 (Caelan 3:26 PM): one centred stack on the mark's axis */
  .ms-mark { width: clamp(6.7rem, min(13.4vw, 19vh), 11.6rem); margin: 0 auto clamp(1rem, 2.6vh, 1.75rem); }  /* v4: centred, ~+40%; v7: +12% (Caelan 3:16 PM) -> <= 11.6rem = 185.6 CSS px = the 334 px source at 1.8x density (no larger same-design export exists; L04 is a different design) */
  .ms-mark img { width: 100%; height: auto; }
  .ms-hero h1 { font-size: clamp(2.9rem, 1.2rem + 3.3vw, 5rem); line-height: 1.02; color: var(--ms-paper); margin: 0 auto clamp(1rem, 2.4vh, 1.5rem); max-width: 14ch; text-wrap: balance; }  /* FONT-SPEC: Roboto uppercase + 0.06em needs a wider measure than DM Serif title-case so CTAs stay above the 1280x800 fold */
  .ms-hero h1 em, .ms-about h2 em { font-style: italic; color: var(--ms-red-text); }
  .ms-intro { font-size: clamp(1rem, 0.85rem + 0.3vw, 1.125rem); line-height: 1.6; color: var(--ms-paper); opacity: 0.9; max-width: 26rem; margin: 0 auto clamp(1.25rem, 3vh, 2rem); text-wrap: balance; }
  .ms-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin: 0 0 clamp(1.25rem, 3vh, 2rem); }
  .ms-pill { margin: 0; }
  .ms-pill .open-sign__light { font-family: var(--ms-label); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.55em 1.15em 0.45em; }

  /* About Mama: aged-paper band */
  .ms-about { display: block; background: var(--ms-paper); color: var(--ms-ink); padding: clamp(4rem, 8vw, 7rem) 0; border-bottom: 0; }
  .ms-about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .ms-about .ms-lbl { color: #a3221a; }
  .ms-about h2 { font-size: clamp(3rem, 1.4rem + 3.2vw, 4.75rem); line-height: 1.02; color: var(--ms-ink); margin: 0 0 0.75rem; }
  .ms-about h2 em { color: var(--ms-ink); display: block; }   /* v2: dark brown; the L05 logo above carries the red */
  .ms-about-logo { display: block; width: 100%; margin: 0; }   /* ~ the width of the "always right." line */
  .ms-about-logo img { display: block; width: 100%; height: auto; }
  .ms-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  /* v2: header L19 U mark beside the wordmark (165 px source -> 2rem = 32 CSS px tall) */
  .ms-wm { display: inline-flex; align-items: center; gap: 0.6rem; }
  .ms-wm-icon { display: block; height: 2.25rem; flex: none; margin: -0.15em 0 0; }   /* v7: 2 -> 2.25rem (+12.5%); 165 px source = 2.3x */
  .ms-wm-icon img { display: block; height: 100%; width: auto; }
  /* v2: L18 takeout box accent in Menu & order (374 px source -> <= 9rem = 144 CSS px tall) */
  /* v4 (Caelan 2:17 PM): L18 box under the Contact block in Visit, cream on wood (374 px source -> 7.5rem = 120 CSS px tall) */
  /* 2026-10-25 (Caelan): the box becomes the snake (same cream), centred in the Contact column; 488 px source -> 120 CSS px = 4x */
  .ms-visit-icon { display: block; height: 7.5rem; margin: 1.75rem 0 0; }
  .ms-visit-icon picture { display: block; height: 100%; }
  .ms-visit-icon img { display: block; height: 100%; width: auto; margin-inline: auto; transform: translateX(6%); }
  /* round 2 (Caelan 2026-10-25): snake and box swap. Contact = the cream rice box again, centred in the column, with the same
     6% optical shift the About box had (its body's alpha centroid sits ~5-6% left of the art's centre: the chopsticks lean right). */
  .ms-sub { font-family: var(--font-heading); font-style: normal; font-size: clamp(1.25rem, 0.9rem + 0.6vw, 1.6rem); color: var(--ms-ink-2); margin: 0; max-width: none; letter-spacing: var(--font-display-tracking, 0.06em); text-transform: none; }
  .ms-about-body p { font-size: clamp(1rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--ms-ink-2); max-width: 42rem; margin: 0 0 1.15rem; }
  .ms-about-body .ms-story-close { color: var(--ms-ink); }
  .ms-about-body .ms-tag { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; font-family: var(--ms-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #a3221a; }
  .ms-tag::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; flex: none; }


  /* Our Story (Ryan verbatim, 2026-11-09 tmpl-fonts only): aged-paper band, existing type/colours */
  .ms-story { display: block; background: var(--ms-paper); color: var(--ms-ink); padding: clamp(4rem, 8vw, 7rem) 0; border-bottom: 0; }
  .ms-story .ms-lbl { color: #a3221a; }
  .ms-story h2 { font-size: clamp(2.75rem, 1.3rem + 2.8vw, 4.25rem); line-height: 1.04; color: var(--ms-ink); margin: 0 0 1.5rem; max-width: 12ch; }
  .ms-story-body { max-width: 42rem; }
  .ms-story-body p { font-size: clamp(1rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--ms-ink-2); margin: 0 0 1.15rem; }
  .ms-story-close { font-family: var(--font-body); font-style: italic; font-size: clamp(1rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--ms-ink); margin: 1.75rem 0 0 !important; }

  /* The room: wood-framed panel grid, mixed sizes; v7: captions removed (Caelan 3:17 PM), alt text kept */
  .ms-room { display: block; padding: clamp(4rem, 8vw, 7rem) 0; }
  .ms-room-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin: 0 0 clamp(2rem, 3.5vw, 3rem); }
  .ms-room h2 { font-size: clamp(2.75rem, 1.3rem + 2.8vw, 4.25rem); line-height: 1.04; color: var(--ms-paper); margin: 0; max-width: 12ch; }
  /* v4: cream L19 U accent replaces the room intro line (wood background, so cream; 165 px source -> 4.5rem = 72 CSS px tall) */
  /* 2026-10-25 (Caelan): "allign the U ... to be more centered" with the heading: the title div is unwrapped (display: contents) so the
     label is row 1 and the h2 row 2; the U sits in row 2, centred on the two-line h2. Same size, same right edge. */
  .ms-room-title { display: contents; }
  .ms-room-head { row-gap: 0; }
  .ms-room-head .ms-lbl { grid-column: 1; grid-row: 1; }
  .ms-room-head h2 { grid-column: 1; grid-row: 2; }
  .ms-room-mark { display: block; grid-column: 2; grid-row: 2; justify-self: end; align-self: center; height: 4.5rem; margin: 0; }
  .ms-room-mark img { display: block; height: 100%; width: auto; }
  /* v5 (Caelan 2:48 PM): "always right." + the sub line removed (kept for screen readers in .ms-vh); the red L18 box sits
     under the red L05 logo as one lockup, centred on the logo's axis, upright. Height = 2.7em of the h2 size, capped at
     11.6rem (185.6 CSS px: the 374 px source stays >= 2x). The box art is portrait (217x374), so at the cap it is ~28% of
     the logo width; wider would mean upscaling. */
  .ms-about-lockup { width: 6.84em; max-width: 100%; font-size: clamp(3rem, 1.4rem + 3.2vw, 4.75rem); }   /* same em basis as the h2 logo */
  .ms-about-lockup h2 { font-size: 1em; margin: 0; }
  /* snake v2 (Caelan 2026-10-25 "20 % bigger ... keep it centered on the mama su logo"): height 1.07em -> 1.284em (+20%), same
     0.3em gap above. Centre: the logo's outline box + letters span 3-1178 of the 1200px art (centre 49.208%); the hard drop-shadow
     is offset right/down to 1196 (centre with shadow 49.958%). The snake's ink is its whole box (centred, symmetric), so it moves
     left by (50% - 49.208%) of the 6.84em logo = 0.0542em to sit on the outline+letters centre. */
  .ms-about-box { display: block; height: 1.284em; width: fit-content; margin: 0.3em auto 0; position: relative; left: -0.0542em; }   /* round 2 (Caelan 2026-10-25): the red snake (same height and centring; symmetric, so no optical shift) */   /* v7 (Caelan 3:16 PM): logo +20% (5.7 -> 6.84em), box = ~62% of the logo height so the logo dominates */   /* optical centring: the box body's alpha centroid sits 6.1% left of the art's bbox centre (chopsticks lean right) */
  .ms-about-box img { display: block; height: 100%; width: auto; }
  .ms-room-intro { font-size: clamp(1rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.6; color: var(--ms-paper); opacity: 0.85; margin: 0 0 0.4rem; max-width: 26rem; }
  .ms-room .ms-c { container-type: inline-size; }
  /* v6: outer columns (a) wider than the middle (b) so the two tall tiles are exactly 3:4 (a = 0.75 x (2b + gap)); middle squares stay 1:1,
     the table stays (2b+gap):b (~2:1), row 3 stays 4:3 (height = 0.75 x (a + b + gap)). Total = 2a + 2b + 3gap = 100cqw -> b = (100cqw - 4.5gap) / 5. */
  .ms-grid { display: grid; --ms-b: calc((100cqw - 4.5 * var(--ms-gap)) / 5); --ms-a: calc(0.75 * (2 * var(--ms-b) + var(--ms-gap)));
             grid-template-columns: var(--ms-a) var(--ms-b) var(--ms-b) var(--ms-a); grid-template-rows: var(--ms-b) var(--ms-b) calc((var(--ms-a) + var(--ms-b) + var(--ms-gap)) * 0.75); grid-auto-rows: var(--ms-b); gap: var(--ms-gap); }
  .ms-tile:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .ms-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ms-tile:nth-child(3) { grid-column: 3; grid-row: 1; }
  .ms-tile:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; }
  .ms-tile:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
  .ms-tile:nth-child(6) { grid-column: 1 / span 2; grid-row: 3; }
  .ms-tile:nth-child(7) { grid-column: 3 / span 2; grid-row: 3; }
  .ms-tile picture { position: absolute; inset: 0; }

  /* The doors' shared sections below, in the mock's type */
  #menu, #visit { border-bottom: 1px solid var(--color-line); }
  #menu .wrap, #visit .wrap, .door-footer .wrap { width: var(--ms-c); max-width: none; padding-inline: 0; }
  #menu h2, #visit h2, .door-footer .heading { color: var(--ms-paper); }
  /* 2026-10-25 (Caelan): Menu & order, Visit and the footer "Mama Su" heading +20% ("not huge but a little bit"); Sister doors becomes
     its own band in the same format (divider, section padding, the same heading, body-size links); the endorse line is gone. */
  #menu h2, #visit h2, .door-footer .heading { font-size: calc(1.2 * var(--step-3)); }
  .ms-footer { padding-bottom: 0; }
  .ms-footer > .wrap { padding-bottom: var(--space-7); }
  .ms-sisters { border-top: var(--border-width) solid var(--color-line); padding: var(--space-7) 0; font-size: var(--step-0); }
  .ms-sisters .heading { margin: 0 0 var(--space-5); text-align: center; }   /* = #menu h2 / #visit h2; round 2: centred, logo row below */
  .ms-sisters { text-align: center; }
  #menu h3, #visit h3 { font-family: var(--ms-label); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ms-paper); }
}
