/* ==========================================================================
   Gekkeikan site.css
   Built 1:1 from the InDesign comps (trim 2560 x N pt = 1280 x N CSS px).

   COORDINATE SYSTEM
   -----------------
   Every position below is the exact comp coordinate in "comp pixels"
   (1 comp px = 2 PDF points). The whole page is scaled by --u so the
   design stays pixel-identical at any viewport width:

       --u = 100vw / 1280      ->  1.000 at a 1280px viewport
                                   1.500 at 1920px

   The scale is capped at 1.5 (a 1920px viewport). Past that the stage keeps
   its 1920px measure and centers, so the type does not keep growing on a
   large monitor. Below 1280px the comp layout is not used at all: the
   single-column layout takes over, so the type never scales down.

   TEXT BASELINES
   --------------
   `top` on a text block is the comp's glyph-box top (ascender line).
   .tx corrects for CSS half-leading so the baseline lands exactly:
       shift = (fmet * font-size - line-height) / 2
   --fmet is the font's (ascender - descender) in ems.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */
:root {
  --u: min(calc(100vw / 1280), 1.5px);   /* capped at a 1920px stage */

  --dark:  #231F20;   /* nav + footer bar            */
  --tan:   #A58C76;   /* divider band + headings     */
  --ink:   #231F20;   /* body copy                   */
  --paper: #FFFFFF;
  /* sampled from the supplied button reference, a shade cooler than --tan.
     Point it at var(--tan) if it should match the section bands exactly. */
  --btn:       #9F8B7B;
  --btn-hover: #8A7767;

  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  /* Circular Std is a licensed Lineto face used in the footer contact block.
     Drop your licensed webfont in and it is picked up automatically;
     Poppins stands in until then. */
  --alt: "Circular Std", "CircularStd", "Poppins", var(--sans);
  /* Minion Pro sets the two photo captions on page 4. Source Serif 4 stands
     in: same foundry lineage, and subset to 41 characters it costs 12 kB. */
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;

  --fmet: 1.219;      /* Montserrat asc-desc  (968 + 251) / 1000 */
  --fmet-alt: 1.50;   /* Poppins (Circular Std stand-in)         */
  --fmet-serif: 1.371;/* Source Serif 4 (Minion Pro stand-in)     */

  /* Tracking measured off the comps: InDesign's tracking does not survive
     into the font metrics, so each run carries the delta that makes its
     rendered width match the artwork exactly. */
  --tr-body-135: -0.00200em;
  --tr-body-125: -0.00500em;
  --tr-nav:      -0.00610em;
  --tr-black:    -0.03020em;
  --tr-sub-175:  -0.03200em;   /* page 4 subheads   */
  --tr-label-15: -0.01250em;   /* YESTERDAY / TODAY */
  --tr-body-p4:  -0.02550em;   /* page 4 body: the History comp tracks tighter
                                  than pages 1-3, which use --tr-body-125 */
  --tr-body-p5:  -0.02200em;   /* page 5 body, fit on 19 full comp lines */
  --tr-note-75:  -0.01500em;   /* page 5 PLEASE NOTE block */
}

/* ---------- reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--dark); color: #fff; padding: 10px 18px; font-size: 14px;
}
.skip:focus { left: 0; }

/* ---------- stage ------------------------------------------------------- */
.stage {
  position: relative;
  width: calc(1280 * var(--u));
  margin: 0 auto;            /* centers once the scale caps at 1920px */
  overflow: hidden;
}
.page-home     .stage { height: calc(2160.0 * var(--u)); }
.page-p2 .stage { height: calc(2984.5 * var(--u)); }
.page-p3  .stage { height: calc(2181.0 * var(--u)); }

/* A grouping wrapper that generates no box, so its children keep their own
   comp coordinates on desktop. It becomes a real layout box on mobile. */
.pair { display: contents; }

/* absolutely-placed comp element (div, img or <picture>) */
.el { position: absolute; display: block; }
picture.el > img { width: 100%; height: 100%; display: block; }

/* text block: font-size / line-height / width come from the page rules */
.tx {
  position: absolute;
  font-weight: 400;
  font-size: var(--fs);
  line-height: var(--lh);
  /* half-leading correction + a 1px optical nudge measured against the comps */
  margin-top: calc((var(--fmet) * var(--fs) - var(--lh)) / 2 + var(--ty, 1) * var(--u));
  letter-spacing: var(--ls, 0);
  /* The comps hyphenate at line ends, as print does. That reads as an error on
     screen, so the copy wraps naturally instead: each block's width matches the
     comp's measure, so the rag stays very close, but no word is ever split. */
  white-space: normal;
}
.tx p + p { margin-top: var(--lh); }

/* desktop-only forced line break + hyphen (removed on mobile) */
.b { display: inline; }
.hy::after { content: "\2010"; }

/* ==========================================================================
   HEADER  (comp: Page 1 / Page 3. Page 2's header art is ~20% smaller,
   standardized here so the masthead is identical site-wide)
   ========================================================================== */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 40;
  height: calc(63 * var(--u));
  background: var(--dark);
}
.nav__brand {
  position: absolute;
  left: calc(155.25 * var(--u));
  top:  calc(9 * var(--u));
  display: flex; align-items: center;
  gap: calc(17 * var(--u));
}
 /* logo marks are the supplied vector (GEK-Logo_WHITE.ai) split into its two
    pieces; heights follow the true art aspect (1.10054 / 6.14748) */
.nav__emblem   { width: calc(54.25 * var(--u));  height: calc(49.294 * var(--u)); }
.nav__wordmark { width: calc(132.5 * var(--u));  height: calc(21.554 * var(--u));
                 position: relative; top: calc(0.5 * var(--u)); }

/* Each item is pinned to its comp x so the run matches the artwork exactly. */
.nav__menu {
  position: absolute;
  left: 0; top: calc(25.49 * var(--u));
  width: calc(1280 * var(--u)); height: calc(15.25 * var(--u));
  color: #fff;
  font-size: calc(12.5 * var(--u));
  line-height: calc(15.25 * var(--u));
  letter-spacing: var(--tr-nav);
  /* the comp sets Regular; 600 was chosen for legibility on the dark bar.
     Montserrat is variable, so any value 100-900 works here. */
  font-weight: var(--nav-weight, 600);
  white-space: nowrap;
  /* full-width box only so items can be pinned to their comp x, but it must not
     intercept clicks aimed at the brand lockup underneath it */
  pointer-events: none;
}
.nav__menu a { position: absolute; top: 0; pointer-events: auto; }
.nav__menu a:nth-child(1) { left: calc(423.50 * var(--u)); }
.nav__menu a:nth-child(2) { left: calc(482.63 * var(--u)); }
.nav__menu a:nth-child(3) { left: calc(568.44 * var(--u)); }
.nav__menu a:nth-child(4) { left: calc(682.05 * var(--u)); }
.nav__menu a:nth-child(5) { left: calc(818.05 * var(--u)); }
.nav__menu a { transition: color .2s ease, background-color .2s ease; }
.nav__menu a:hover,
.nav__menu a:focus-visible,
.nav__menu [aria-current="page"] { color: var(--tan); }

/* Shop Now is the only link on the site that sells anything, so it is pulled
   out of the run of brand pages and set as a button on the right. The four
   brand pages then group together and the commercial link sits on its own,
   which does as much work as the button itself. Its right inset matches the
   brand lockup's left inset. */
.nav__menu a.nav__shop {
  left: auto; right: calc(106.5 * var(--u)); top: calc(-7 * var(--u));
  padding: calc(7 * var(--u)) calc(15 * var(--u));
  background: var(--tan); color: var(--dark); font-weight: 700;
}
.nav__menu a.nav__shop:hover,
.nav__menu a.nav__shop:focus-visible { background: #fff; color: var(--dark); }

.nav__toggle { display: none; }

/* ==========================================================================
   FOOTER  (comp: Page 1. Pages 2 and 3 each drew it slightly differently;
   standardized on Page 1, the most generous of the three)
   ========================================================================== */
.ftr {
  position: absolute; left: 0; right: 0;
  height: calc(447 * var(--u));
  background: var(--dark);
  color: #fff;
  z-index: 30;
}
.page-home     .ftr { top: calc(1713.0 * var(--u)); }
.page-p2 .ftr { top: calc(2537.5 * var(--u)); }
.page-p3  .ftr { top: calc(1734.0 * var(--u)); }

/* everything inside the footer is positioned relative to the footer top,
   using the Page-1 comp offsets minus 1713 */
/* the footer lockup is one link back to the homepage */
.ftr__brand { position: absolute; left: 0; top: 0; width: calc(638 * var(--u)); height: 100%; }
.ftr__brand:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.ftr__emblem   { left: calc(253.125 * var(--u)); top: calc(120 * var(--u));
                 width: calc(144.75 * var(--u)); height: calc(131.526 * var(--u)); }
.ftr__wordmark { left: calc(175 * var(--u));     top: calc(280.875 * var(--u));
                 width: calc(301 * var(--u));    height: calc(48.964 * var(--u)); }

.ftr__rule {
  left: calc(638.5 * var(--u)); top: calc(6 * var(--u));
  width: calc(2 * var(--u)); height: calc(423 * var(--u));
  background: #fff;
}

.ftr__contact {
  left: calc(682.5 * var(--u)); top: calc(125.41 * var(--u));
  width: calc(300 * var(--u));
  --fs: calc(12.5 * var(--u)); --lh: calc(15 * var(--u));
  --ls: var(--tr-nav);
}
.ftr__email {
  left: calc(729.4 * var(--u)); top: calc(185.26 * var(--u));
  --fs: calc(12.5 * var(--u)); --lh: calc(16.5 * var(--u));
  --ls: -0.03357em;
  font-weight: 900;
}
.ftr__email a:hover, .ftr__email a:focus-visible { text-decoration: underline; }

.ftr__addr {
  left: calc(1003.5 * var(--u)); top: calc(103.38 * var(--u));
  width: calc(240 * var(--u));
  font-family: var(--alt);
  font-style: normal;              /* <address> defaults to italic */
  --fmet: var(--fmet-alt);
  --fs: calc(15 * var(--u)); --lh: calc(18 * var(--u));
}
.ftr__addr b { font-weight: 800; }
.ftr__addr p + p { margin-top: calc(18 * var(--u)); }
/* Per-line tracking so each line's width matches the comp while Poppins
   stands in for Circular Std. Set them all to 0 once Circular is installed. */
.ftr__addr .a1 { letter-spacing: -0.05566em; }
.ftr__addr .a2 { letter-spacing: -0.02055em; }
.ftr__addr .a3 { letter-spacing: -0.02559em; }
.ftr__addr .a4 { letter-spacing: -0.04434em; }

.ftr__legal {
  left: calc(690 * var(--u)); top: calc(299.87 * var(--u));
  --fs: calc(10 * var(--u)); --lh: calc(13.2 * var(--u));
  --ls: var(--tr-black);
  font-weight: 900;
  white-space: nowrap;
}

/* ==========================================================================
   SHARED PIECES
   ========================================================================== */
.band {                      /* 25px tan section divider */
  left: 0; width: calc(1280 * var(--u)); height: calc(25 * var(--u));
  background: var(--tan);
  z-index: 20;
}
.vrule {                     /* hairline tan column divider */
  width: calc(0.5 * var(--u));
  background: var(--tan);
  z-index: 15;
}
.sec-title {                 /* tan section headline */
  --ty: 0;
  color: var(--tan);
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- call to action --------------------------------------------- */
/* Solid tan block, white uppercase Montserrat Bold, square corners, matching
   the supplied button reference (306 x 80 at 2x = 153 x 40 comp px). */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: calc(153 * var(--u));
  height: calc(40 * var(--u));
  padding: 0 calc(22 * var(--u));
  background: var(--btn);
  color: #fff;
  font-size: calc(12.5 * var(--u));
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease;
}
.cta:hover { background: var(--btn-hover); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The legal links carried over from us.gekkeikan.com. No comp draws these, so
   they are kept deliberately quiet and sit in the empty band the comp leaves
   below the drink-responsibly line. */
.ftr__links {
  left: calc(690 * var(--u)); top: calc(340 * var(--u));
  width: calc(560 * var(--u));
  --fs: calc(11 * var(--u)); --lh: calc(15 * var(--u));
  --ls: 0.02em;
  display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)) calc(16 * var(--u));
  color: rgba(255, 255, 255, .72);
}
.ftr__links a { transition: color .2s ease; }
.ftr__links a:hover, .ftr__links a:focus-visible { color: var(--tan); }
.ftr__links a + a { position: relative; }
.ftr__links a + a::before {
  content: "";
  position: absolute; left: calc(-8.5 * var(--u)); top: 50%;
  width: calc(1 * var(--u)); height: calc(1 * var(--u));
  background: rgba(255, 255, 255, .45); border-radius: 50%;
}
.ftr__copy {
  left: calc(690 * var(--u)); top: calc(372 * var(--u));
  --fs: calc(11 * var(--u)); --lh: calc(15 * var(--u));
  --ls: 0.02em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

/* ==========================================================================
   PAGE 1: index.html   (comp: GEKWeb Page 1_V7)
   ========================================================================== */
.p1-hero    { left: 0; top: calc(58.5 * var(--u));
              width: calc(1280 * var(--u)); height: calc(679.1 * var(--u)); z-index: 1; }
.p1-mist    { left: 0; top: calc(732 * var(--u));
              width: calc(1280.6 * var(--u)); height: calc(488.3 * var(--u)); z-index: 2; }
.p1-bottles { left: calc(8.3 * var(--u)); top: calc(447.5 * var(--u));
              width: calc(535.8 * var(--u)); height: calc(758.7 * var(--u)); z-index: 3; }

.p1-lede    { left: calc(544.1 * var(--u)); top: calc(779 * var(--u)); z-index: 4;
              white-space: nowrap; }
.p1-lede span { display: block; font-weight: 400; }
.p1-lede .l1 { color: #fff;
               font-size: calc(27.9 * var(--u)); line-height: calc(33.2 * var(--u));
               letter-spacing: -0.00915em;
               margin-top: calc((var(--fmet) * 27.9 * var(--u) - 33.2 * var(--u)) / 2); }
.p1-lede .l2 { color: var(--ink); margin-left: calc(0.8 * var(--u));
               font-size: calc(26.5 * var(--u)); line-height: calc(33.2 * var(--u));
               letter-spacing: -0.01215em; }

.p1-copy  { left: calc(548.5 * var(--u)); top: calc(876 * var(--u));
            width: calc(650 * var(--u)); z-index: 4;
            --fs: calc(13.5 * var(--u)); --lh: calc(21.5 * var(--u));
            --ls: var(--tr-body-135); }

.p1-band  { top: calc(1218 * var(--u)); }

.p1-title { left: calc(363.6 * var(--u)); top: calc(1283.16 * var(--u));
            --fs: calc(32 * var(--u)); --lh: calc(39 * var(--u));
            --ls: -0.00282em; }

.p1-copy2 { left: calc(82.5 * var(--u)); top: calc(1351.49 * var(--u));
            width: calc(495 * var(--u));
            --fs: calc(13.5 * var(--u)); --lh: calc(21.5 * var(--u));
            --ls: var(--tr-body-135); }

.p1-vrule { left: calc(637.75 * var(--u)); top: calc(1356 * var(--u));
            height: calc(357 * var(--u)); }

.p1-map   { left: calc(670.5 * var(--u)); top: calc(1336.2 * var(--u));
            width: calc(551.8 * var(--u)); height: calc(353.1 * var(--u)); }

/* ==========================================================================
   PAGE 2: slow-life.html   (comp: GEKWeb PAGE 2_V4.2)
   ========================================================================== */
.p2-hero    { left: 0; top: calc(57 * var(--u));
              width: calc(1280 * var(--u)); height: calc(631.1 * var(--u)); z-index: 1; }
.p2-title1  { left: calc(241 * var(--u)); top: calc(714.76 * var(--u));
              --fs: calc(41.5 * var(--u)); --lh: calc(50.6 * var(--u));
              --ls: -0.01474em; }
.p2-copy    { left: calc(107.5 * var(--u)); top: calc(786.49 * var(--u));
              width: calc(466 * var(--u));
              --fs: calc(13.5 * var(--u)); --lh: calc(17.5 * var(--u));
              --ls: var(--tr-body-135); }
.p2-friends { left: calc(561 * var(--u)); top: calc(756.5 * var(--u));
              width: calc(677.1 * var(--u)); height: calc(451.6 * var(--u)); z-index: 3; }

.p2-band    { top: calc(1232 * var(--u)); }
.p2-title2  { left: calc(374.36 * var(--u)); top: calc(1286.96 * var(--u));
              --fs: calc(41.5 * var(--u)); --lh: calc(50.6 * var(--u));
              --ls: -0.00840em; z-index: 21; }
/* nudged 20px below the comp's 1226.9 so the heading is not sitting on the
   board. The client asked for air there and the artwork leaves none */
.p2-board   { left: calc(143.1 * var(--u)); top: calc(1246.9 * var(--u));
              width: calc(962.5 * var(--u)); height: calc(530.4 * var(--u)); z-index: 1; }
.p2-copy2   { left: calc(105 * var(--u)); top: calc(1671 * var(--u));
              /* 575 not the comp's 556: without hyphenation this paragraph
                 needs one line less to clear the paella beneath it. Still clears
                 the barbecue tray's artwork to the right. */
              width: calc(575 * var(--u));
              --fs: calc(13.5 * var(--u)); --lh: calc(17.5 * var(--u));
              --ls: var(--tr-body-135); z-index: 5; }
.p2-bbq     { left: calc(681 * var(--u)); top: calc(1680.5 * var(--u));
              width: calc(499.5 * var(--u)); height: calc(333 * var(--u)); z-index: 2; }
.p2-paella  { left: calc(41 * var(--u)); top: calc(1965 * var(--u));
              width: calc(623.7 * var(--u)); height: calc(467.3 * var(--u)); z-index: 3; }
/* V4.3 replaced the bottle+blossom art with a larger product-line image,
   repositioned and drawn above the copy (transparent where the text sits) */
.p2-product { left: calc(304.5 * var(--u)); top: calc(1624.5 * var(--u));
              width: calc(1070.4 * var(--u)); height: calc(1070.4 * var(--u)); z-index: 6; }

/* ==========================================================================
   PAGE 3: sake-secrets.html   (comp: GEKWeb Page 3_V3.3)
   ========================================================================== */
.p3-hero   { left: 0; top: calc(38.3 * var(--u));
             width: calc(1280 * var(--u)); height: calc(853.3 * var(--u)); z-index: 1; }
.p3-rock   { left: calc(-0.8 * var(--u)); top: calc(633 * var(--u));
             width: calc(1281.7 * var(--u)); height: calc(1092.9 * var(--u)); z-index: 2; }

.p3-lede   { top: calc(687.49 * var(--u)); left: 0; width: calc(1280 * var(--u));
             z-index: 4; white-space: nowrap; }
.p3-lede span { display: block; font-weight: 400; position: absolute; }
.p3-lede .l1 { color: var(--tan); left: calc(86.72 * var(--u)); top: 0;
               font-size: calc(27.9 * var(--u)); line-height: calc(34 * var(--u));
               letter-spacing: -0.01768em;
               margin-top: calc((var(--fmet) * 27.9 * var(--u) - 34 * var(--u)) / 2); }
.p3-lede .l2 { color: var(--ink); left: calc(111.13 * var(--u)); top: calc(33.16 * var(--u));
               font-size: calc(26.5 * var(--u)); line-height: calc(34 * var(--u));
               letter-spacing: -0.00954em;
               margin-top: calc((var(--fmet) * 26.5 * var(--u) - 34 * var(--u)) / 2); }

.p3-copy   { left: calc(97.5 * var(--u)); top: calc(785.49 * var(--u));
             width: calc(545 * var(--u));
             --fs: calc(12.5 * var(--u)); --lh: calc(21.5 * var(--u));
             --ls: var(--tr-body-125); z-index: 5; }

.p3-bottles { left: calc(-0.8 * var(--u)); top: calc(1248 * var(--u));
              width: calc(709.1 * var(--u)); height: calc(343.7 * var(--u)); z-index: 6; }
.p3-vrule   { left: calc(637.75 * var(--u)); top: calc(1348.5 * var(--u));
              height: calc(364.5 * var(--u)); }

.p3-share  { top: calc(1417.47 * var(--u)); left: 0; width: calc(1280 * var(--u));
             z-index: 5; white-space: nowrap; color: var(--tan); }
.p3-share span { display: block; position: absolute; font-weight: 400;
                 font-size: calc(32 * var(--u)); line-height: calc(39 * var(--u));
                 margin-top: calc((var(--fmet) * 32 * var(--u) - 39 * var(--u)) / 2); }
.p3-share .l1 { left: calc(816.06 * var(--u)); top: 0; letter-spacing: 0; }
.p3-share .l2 { left: calc(779.79 * var(--u)); top: calc(37.5 * var(--u)); letter-spacing: -0.00367em; }

.p3-copyR  { left: calc(711 * var(--u)); top: calc(1535.99 * var(--u));
             width: calc(495 * var(--u));
             --fs: calc(12.5 * var(--u)); --lh: calc(21.5 * var(--u));
             --ls: var(--tr-body-125); z-index: 6; }

.p3-cta    { left: calc(958.25 * var(--u)); top: calc(1665 * var(--u));
             transform: translateX(-50%); z-index: 7; }
.p3-band   { top: calc(1728 * var(--u)); }

/* ==========================================================================
   PAGE 4: magical-history.html   (comp: GEK-Web PAGE 4-History_V6)

   The only page set in columns. The story threads left column top to bottom,
   then right column top to bottom, so a block that grows a line cannot push
   the next one: each is placed at its own comp coordinate and the gaps below
   were checked by hand after hyphenation came out.
   ========================================================================== */
.page-p4 .stage { height: calc(2801 * var(--u)); }
.page-p4 .ftr   { top:    calc(2354 * var(--u)); }

/* The comp insets this one with margins, unlike the heroes on pages 1 to 3.
   Run full width to match them: the frame keeps its comp height and the photo
   is re-cropped to the wider band, so nothing below it moves. It still tucks
   its top edge behind the nav bar, and z-index keeps it there. */
.p4-header  { left: 0; top: calc(23.84 * var(--u));
              width: calc(1280 * var(--u)); height: calc(579.77 * var(--u));
              z-index: 1; }

/* The headlines on pages 1, 2, 3 and 5 are baked into their photographs in a
   Trajan-style inscriptional Roman, set over the picture. Page 4's comp put its
   title below the hero in Montserrat, which made it the odd one out. It now
   sits on the hero in Cinzel, cut from the same Roman capital model, with the
   same two-weight hierarchy the others use: the operative word large, the rest
   smaller beneath it. It stays live text rather than artwork, so it remains a
   real <h1> and does not shrink with the picture on a phone. */
.p4-title   { left: 0; top: calc(150 * var(--u));
              width: calc(1280 * var(--u)); text-align: center;
              font-family: 'Cinzel', 'Source Serif 4', Georgia, serif;
              --fmet: 1.36; --ty: 0; z-index: 4;
              --fs: calc(86 * var(--u)); --lh: calc(92 * var(--u));
              --ls: 0.010em;
              color: #fff;
              text-shadow: 0 calc(2 * var(--u)) calc(26 * var(--u)) rgba(0, 0, 0, .58);
              pointer-events: none; }
.p4-title .l1, .p4-title .l2 { display: block; }
.p4-title .l2 { font-size: calc(43 * var(--u)); line-height: calc(54 * var(--u));
                letter-spacing: 0.045em; }

.p4-h1, .p4-h2, .p4-h3 {
  font-weight: 700; --ty: 0; white-space: nowrap; z-index: 5;
  --fs: calc(17.5 * var(--u)); --lh: calc(21.5 * var(--u));
  --ls: var(--tr-sub-175);
}
.p4-h1 { left: calc(105.00 * var(--u)); top: calc(721.88 * var(--u)); }
.p4-h2 { left: calc(770.00 * var(--u)); top: calc(764.04 * var(--u)); }
.p4-h3 { left: calc(700.00 * var(--u)); top: calc(1665.04 * var(--u)); }

/* V6 justifies every frame, where V5 justified only the first. The measures
   here are wide enough (65 to 75 characters) that justification without
   hyphenation does not open rivers. */
.p4-copyL1, .p4-copyL2, .p4-copyL3,
.p4-copyR1, .p4-copyR2, .p4-copyR3, .p4-copyR4 {
  --fs: calc(12.5 * var(--u)); --lh: calc(17.5 * var(--u));
  --ls: var(--tr-body-p4); z-index: 5;
  text-align: justify;
}
.p4-copyL1 { left: calc(105.00 * var(--u)); top: calc(758.34 * var(--u));  width: calc(421 * var(--u)); }
.p4-copyL2 { left: calc(103.50 * var(--u)); top: calc(1062.50 * var(--u)); width: calc(468 * var(--u)); }
.p4-copyL3 { left: calc(103.50 * var(--u)); top: calc(1599.00 * var(--u)); width: calc(482 * var(--u)); }
.p4-copyR1 { left: calc(770.00 * var(--u)); top: calc(715.50 * var(--u));  width: calc(420 * var(--u)); }
.p4-copyR2 { left: calc(770.00 * var(--u)); top: calc(803.00 * var(--u));  width: calc(420 * var(--u)); }
.p4-copyR3 { left: calc(700.00 * var(--u)); top: calc(1424.00 * var(--u)); width: calc(485 * var(--u)); }
.p4-copyR4 { left: calc(700.00 * var(--u)); top: calc(1704.00 * var(--u)); width: calc(485 * var(--u)); }

/* V6 moves the poster right and sets it smaller, from a new 415px source */
.p4-poster  { left: calc(562.67 * var(--u)); top: calc(717.00 * var(--u));
              width: calc(158.66 * var(--u)); height: calc(233.60 * var(--u)); z-index: 6;
              box-shadow: calc(5 * var(--u)) calc(5 * var(--u)) calc(10 * var(--u)) rgba(35, 31, 32, .38); }
.p4-brewery { left: calc(716.69 * var(--u)); top: calc(1072.67 * var(--u));
              width: calc(448.31 * var(--u)); height: calc(299.97 * var(--u)); z-index: 3; }
.p4-okura   { left: calc(105.00 * var(--u)); top: calc(1249.29 * var(--u));
              width: calc(432.45 * var(--u)); height: calc(275.81 * var(--u)); z-index: 3; }
.p4-ledgers { left: calc(-1.45 * var(--u)); top: calc(1875.50 * var(--u));
              width: calc(762.40 * var(--u)); height: calc(424.32 * var(--u)); z-index: 3; }
.p4-antique { left: calc(600.00 * var(--u)); top: calc(1835.00 * var(--u));
              width: calc(561.59 * var(--u)); height: calc(483.65 * var(--u)); z-index: 4; }

/* photo captions, the comp's Minion Pro */
.p4-cap { font-family: var(--serif); --fmet: var(--fmet-serif); --ty: 0; z-index: 6;
          --fs: calc(13.73 * var(--u)); --lh: calc(16.48 * var(--u));
          text-align: center; }
/* Source Serif 4 sets a little wider than the comp's Minion Pro. Tracking it
   back to the comp's exact line width made the captions look cramped, so they
   keep their natural fit and are centered on the picture instead: the width
   differs by a few px, which nobody can see, and the letterfit stays right. */
.p4-capbrewery { left: calc(716.69 * var(--u)); top: calc(1393.57 * var(--u));
                 width: calc(448.31 * var(--u)); white-space: nowrap; }
.p4-capokura   { left: calc(105 * var(--u)); top: calc(1546.91 * var(--u));
                 width: calc(447 * var(--u)); text-align: center; }

/* the two column dividers are grey here, not the tan used elsewhere */
.p4-vrule1, .p4-vrule2 { background: #939598; }
.p4-vrule1 { left: calc(643 * var(--u)); top: calc(983.0 * var(--u));  height: calc(934.5 * var(--u)); }
.p4-vrule2 { left: calc(642 * var(--u)); top: calc(2039.0 * var(--u)); height: calc(278.5 * var(--u)); }

/* Two deliberate departures from the comp, both drafting slips in the artwork.
   The comp sets these labels 3.5px apart vertically and about 8 and 16px left
   of the bottles they name, so they read as misaligned. Here they share one
   baseline (the average of the comp's two) and each is centred on the true
   centre of its own bottle, measured off the artwork: 877.08 and 1038.84. */
.p4-yesterday, .p4-today {
  --fs: calc(15 * var(--u)); --lh: calc(18 * var(--u));
  --ls: var(--tr-label-15); white-space: nowrap; z-index: 6;
  top: calc(2296.24 * var(--u));
  width: calc(120 * var(--u)); margin-left: calc(-60 * var(--u));
  text-align: center;
}
.p4-yesterday { left: calc(869.58 * var(--u)); }
.p4-today     { left: calc(1031.34 * var(--u)); }

/* ==========================================================================
   PAGE 5: tasting-room.html   (comp: GEK-Web Page 5_V2)

   The lightest page in the set. One band of rice texture carries the whole
   upper half, and everything else sits on white.
   ========================================================================== */
.page-p5 .stage { height: calc(2492 * var(--u)); }
.page-p5 .ftr   { top:    calc(2045 * var(--u)); }

/* Hero tucks its top edge behind the nav bar, as on pages 1 to 4. */
.p5-hero { left: 0; top: calc(59 * var(--u));
           width: calc(1280 * var(--u)); height: calc(586.67 * var(--u));
           z-index: 1; }

/* The rice band is not placed at full strength in the comp: regressing the
   comp render against the source gives about 31% over white, consistent on
   all three channels. That is baked into the file, so this frame is an
   ordinary picture and needs no opacity layer under the body copy. */
.p5-rice { left: 0; top: calc(643.89 * var(--u));
           width: calc(1280 * var(--u)); height: calc(679.83 * var(--u));
           z-index: 0; }
.p5-rice img { object-fit: cover; }

/* Both display lines are centred on the 640 axis in the comp. */
.p5-title, .p5-title2 {
  left: 0; width: calc(1280 * var(--u)); text-align: center;
  --ty: 0; z-index: 4;
}
.p5-title  { top: calc(675.00 * var(--u));
             --fs: calc(27.9 * var(--u)); --lh: calc(33.5 * var(--u));
             --ls: -0.02250em; color: var(--tan); }
.p5-title2 { top: calc(708.16 * var(--u));
             --fs: calc(26.5 * var(--u)); --lh: calc(31.8 * var(--u));
             --ls: -0.02500em; }

.p5-h2 { left: calc(80.50 * var(--u)); top: calc(1125.82 * var(--u));
         --fs: calc(23 * var(--u)); --lh: calc(27.6 * var(--u));
         --ls: -0.00900em; --ty: 0; color: var(--tan);
         white-space: nowrap; z-index: 5; }

.p5-copyL1, .p5-copyL2, .p5-copyL3, .p5-resv {
  --fs: calc(12.5 * var(--u)); --lh: calc(21.5 * var(--u));
  --ls: var(--tr-body-p5); z-index: 5;
}
.p5-copyL1 { left: calc(80.50 * var(--u)); top: calc(779.00 * var(--u));  width: calc(404 * var(--u)); }
.p5-copyL2 { left: calc(80.50 * var(--u)); top: calc(1177.98 * var(--u)); width: calc(404 * var(--u)); }
.p5-copyL3 { left: calc(80.50 * var(--u)); top: calc(1586.48 * var(--u)); width: calc(404 * var(--u)); }

/* The reservations block is the only centred body copy on the site. The comp
   centres it on 967.6, but the interior photo above it is centred on 947 and
   the hours and the house rules on 955 and 957.5. Four near-misses in one
   column read as a mistake, so the whole column is now set on the photo's
   centre, 947. */
.p5-resv { left: calc(743.50 * var(--u)); top: calc(1832.00 * var(--u));
           width: calc(407 * var(--u)); text-align: center; }
.p5-resv b { font-weight: 700; --ls: -0.06050em; letter-spacing: -0.06050em; }
.p5-resv a { color: inherit; }
.p5-resv a:hover, .p5-resv a:focus-visible { text-decoration: underline; }

/* Tasting room address. Michelle asked for it on the page as well as in the
   footer. Set centred on the reservations centre line (x 967.6), between the
   opening hours and the party-of-ten note, so the right-hand column reads
   book / when / where / exceptions. The directions link opens Google Maps in
   a new tab: no map embed, so no third-party script and no consent question. */
/* The practical column had no head of its own: the h1 is the lifestyle line
   and the only h2 sits in the left column. This labels the block, so the
   address, the hours and the button read as one unit rather than as three
   stray pieces under a photo. Same treatment as the page's other h2. */
.p5-h3 { left: calc(743.50 * var(--u)); top: calc(1440.00 * var(--u));
         width: calc(407 * var(--u)); text-align: center;
         --fs: calc(23 * var(--u)); --lh: calc(27.6 * var(--u));
         --ls: -0.00900em; --ty: 0; color: var(--tan); z-index: 5; }

.p5-addr { left: calc(743.50 * var(--u)); top: calc(1500.00 * var(--u));
           width: calc(407 * var(--u)); text-align: center;
           --fs: calc(12.5 * var(--u)); --lh: calc(21.5 * var(--u));
           --ls: var(--tr-body-p5); z-index: 5; }
.p5-addr .street { font-weight: 700; letter-spacing: -0.06050em; display: block; }
.p5-addr .dir { display: inline-block; color: var(--tan); text-decoration: none;
                border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.p5-addr .dir:hover, .p5-addr .dir:focus-visible { color: var(--ink); }

/* Opening hours. The comp left-aligns both season headings on 865.5 and sets
   the day and the time as two columns, at 883.5 and 955.5. */
.p5-hours { left: calc(857.50 * var(--u)); top: calc(1575.00 * var(--u));
            width: calc(300 * var(--u));
            --fs: calc(12.5 * var(--u)); --lh: calc(21.5 * var(--u));
            --ls: var(--tr-body-p5); --ty: 0; z-index: 5; }
.p5-hours .season { font-weight: 900; letter-spacing: var(--tr-black); }
.p5-hours .season + dl { margin-top: 0; }
.p5-hours dl { display: grid; grid-template-columns: calc(72 * var(--u)) auto;
               margin: 0; padding-left: calc(18 * var(--u)); }
.p5-hours dt, .p5-hours dd { margin: 0; }
.p5-hours dl + .season { margin-top: var(--lh); }

.p5-pond { left: calc(512.57 * var(--u)); top: calc(768.00 * var(--u));
           width: calc(738.01 * var(--u)); height: calc(415.42 * var(--u));
           z-index: 3; }
/* The supplied artwork feathers into the background through a wide alpha
   vignette. Carried as a mask instead of an alpha channel the picture
   compresses as ordinary RGB, which is 485 kB lighter at the retina step.
   Without mask support the photo simply shows its own edges. */
.p5-pond img {
  -webkit-mask-image: url(../img/p5-pond-mask.png);
          mask-image: url(../img/p5-pond-mask.png);
  -webkit-mask-size: 100% 100%;  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.p5-room { left: calc(747.00 * var(--u)); top: calc(1205.50 * var(--u));
           width: calc(400 * var(--u)); height: calc(200 * var(--u));
           z-index: 4;
           box-shadow: calc(3.85 * var(--u)) calc(3.85 * var(--u))
                       calc(9 * var(--u)) rgba(35, 31, 32, .34); }

.p5-bottles { left: calc(13.00 * var(--u)); top: calc(1344.67 * var(--u));
              width: calc(547.17 * var(--u)); height: calc(233.56 * var(--u));
              z-index: 3; }
.p5-glass   { left: calc(562.50 * var(--u)); top: calc(1566.41 * var(--u));
              width: calc(210.43 * var(--u)); height: calc(154.10 * var(--u));
              z-index: 3; }

/* House rules. Set one sentence per line, as the comp does: the breaks are
   editorial, not the result of a measure. The comp drops its last three lines
   from 7.5 to 7 px, which is InDesign fitting a frame rather than a decision,
   so the block is set at one size here. */
.p5-note { left: calc(699.00 * var(--u)); top: calc(1940.00 * var(--u));
           width: calc(496 * var(--u)); text-align: center;
           --fs: calc(7.5 * var(--u)); --lh: calc(9 * var(--u));
           --ls: var(--tr-note-75); z-index: 5; }
.p5-note .l { display: block; }

/* the comp's one hairline: between the bottle line-up and the hours, stopping
   at the top of the sake glass. Same x and top as the page 3 rule. */
.p5-vrule { left: calc(637.75 * var(--u)); top: calc(1348.5 * var(--u));
            height: calc(235.5 * var(--u)); }

.p5-band { top: calc(2020 * var(--u)); }

/* ---------- hero parallax ------------------------------------------------ */
/* site.js adds .is-parallax to a hero frame and drives the transform on the
   image inside it. The frame keeps its exact comp box and clips, so the drift
   stays inside the artwork and nothing below it moves. The class is only ever
   added by the script, so with JS off the heroes are plain pictures. */
.is-parallax { overflow: hidden; }
.is-parallax > img { backface-visibility: hidden; }

/* ---------- scroll reveal ------------------------------------------------ */
/* The hidden state is only ever applied under .has-reveal, which site.js adds.
   No JS, no hiding: the page renders fully visible either way. */
.has-reveal .rv {
  opacity: 0;
  transform: translateY(calc(18 * var(--u)));
  transition: opacity .75s ease, transform .75s cubic-bezier(.22, .61, .25, 1);
  will-change: opacity, transform;
}
/* the display headings settle a little more slowly than the copy */
.has-reveal .p1-lede.rv,
.has-reveal .p3-lede.rv,
.has-reveal .p3-share.rv,
.has-reveal .sec-title.rv {
  transform: translateY(calc(24 * var(--u)));
  transition-duration: 1s;
}
.has-reveal .rv.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* The page-3 CTA is centerd on its column with translateX(-50%), so `transform`
   is doing layout work here, not only animation. The reveal must carry that
   translation through every state; without it the button jumps half its own
   width to the right the moment it reveals. Desktop only: below the breakpoint
   the CTA is a flow item and `.cta { transform: none }` is the correct rule. */
@media (min-width: 1280px) {
  .has-reveal .p3-cta.rv       { transform: translate(-50%, calc(18 * var(--u))); }
  .has-reveal .p3-cta.rv.is-in { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal .rv { opacity: 1; transform: none; transition: none; }
}
@media print {
  .has-reveal .rv { opacity: 1; transform: none; }
}
@media (min-width: 1280px) {
  @media (prefers-reduced-motion: reduce) { .has-reveal .p3-cta.rv { transform: translateX(-50%); } }
  @media print                            { .has-reveal .p3-cta.rv { transform: translateX(-50%); } }
}

/* ==========================================================================
   DOC PAGES: contact, policies, cookie-policy

   No comp draws these. They keep the site's masthead, footer and measure, and
   otherwise behave like ordinary prose: the stage runs in flow instead of
   holding a fixed comp grid, so the page is as long as its content.
   ========================================================================== */
.page-doc .stage { height: auto; overflow: visible; }
.page-doc .nav   { position: relative; inset: auto; }
.page-doc .ftr   { position: relative; top: auto; height: calc(447 * var(--u)); }

.page-doc main {
  padding: calc(74 * var(--u)) calc(40 * var(--u)) calc(96 * var(--u));
}
.doc__head { max-width: calc(760 * var(--u)); margin: 0 auto calc(40 * var(--u)); }
.doc__title {
  color: var(--tan); font-weight: 400;
  font-size: clamp(28px, calc(41.5 * var(--u)), 62px);
  line-height: 1.15; letter-spacing: -0.0155em;
}
.doc__intro {
  margin-top: calc(14 * var(--u));
  font-size: clamp(15px, calc(15 * var(--u)), 22px); line-height: 1.65;
  color: rgba(35, 31, 32, .74);
}

.doc__body { max-width: calc(760 * var(--u)); margin: 0 auto; }
.doc__body h2 {
  font-weight: 700; color: var(--ink);
  font-size: clamp(17px, calc(17.5 * var(--u)), 25px); line-height: 1.3;
  letter-spacing: var(--tr-sub-175);
  margin: calc(42 * var(--u)) 0 calc(12 * var(--u));
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body p,
.doc__body li {
  font-size: clamp(15px, calc(13.5 * var(--u)), 20px); line-height: 1.75;
  color: var(--ink);
}
.doc__body p + p { margin-top: calc(14 * var(--u)); }
.doc__body ul { margin: calc(12 * var(--u)) 0; padding-left: 1.2em; list-style: disc; }
.doc__body li + li { margin-top: calc(6 * var(--u)); }
.doc__body a { color: var(--tan); border-bottom: 1px solid rgba(165, 140, 118, .45);
               transition: color .2s ease, border-color .2s ease; }
.doc__body a:hover, .doc__body a:focus-visible { color: var(--ink); border-color: currentColor; }
.doc__body hr { border: 0; height: 1px; background: rgba(35, 31, 32, .12);
                margin: calc(38 * var(--u)) 0; }
.doc__body address { font-style: normal; }

/* a quiet framed aside, used for the address block and for editorial notes */
.doc__note {
  border-left: calc(2 * var(--u)) solid var(--tan);
  padding: calc(14 * var(--u)) 0 calc(14 * var(--u)) calc(20 * var(--u));
  margin: calc(24 * var(--u)) 0;
}

/* cookie table */
.doc__table { width: 100%; overflow-x: auto; margin: calc(18 * var(--u)) 0; }
.doc__table table { border-collapse: collapse; width: 100%; min-width: 460px; }
.doc__table th, .doc__table td {
  text-align: left; vertical-align: top;
  padding: calc(9 * var(--u)) calc(12 * var(--u)) calc(9 * var(--u)) 0;
  border-bottom: 1px solid rgba(35, 31, 32, .12);
  font-size: clamp(13px, calc(12 * var(--u)), 17px); line-height: 1.55;
}
.doc__table th { font-weight: 700; }
.doc__table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- contact form ------------------------------------------------- */
.form { margin-top: calc(28 * var(--u)); }
.form__row { margin-bottom: calc(20 * var(--u)); }
.form label {
  display: block; margin-bottom: calc(7 * var(--u));
  font-size: clamp(12px, calc(12 * var(--u)), 15px); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.form .req { color: var(--tan); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  font-size: clamp(15px, calc(14 * var(--u)), 19px); line-height: 1.5;
  padding: calc(11 * var(--u)) calc(13 * var(--u));
  border: 1px solid rgba(35, 31, 32, .28); border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { min-height: calc(150 * var(--u)); resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--btn);
  box-shadow: 0 0 0 calc(2 * var(--u)) rgba(159, 139, 123, .22);
}
.form input:user-invalid, .form textarea:user-invalid { border-color: #9a3b34; }
/* the honeypot: a real field, off screen, that only a bot fills in */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px;
            overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: calc(18 * var(--u));
                 flex-wrap: wrap; margin-top: calc(26 * var(--u)); }
/* A .cta is an <a> on most of the site, which already shows a hand. The two
   real buttons, the contact form and Book a table, need it stated. */
button.cta { border: 0; cursor: pointer; font-family: inherit; }
.form button.cta[disabled] { opacity: .55; cursor: default; }
.form__status { font-size: clamp(14px, calc(13 * var(--u)), 17px); line-height: 1.5; }
.form__status[data-state="ok"]  { color: #2c6b46; }
.form__status[data-state="err"] { color: #9a3b34; }

@media (max-width: 1279px) {
  .page-doc .stage { position: static; width: 100%; height: auto; }
  .page-doc .nav   { position: sticky; }
  .page-doc .ftr   { position: static; height: auto; }
  .page-doc main   { padding: 34px 20px 56px; }
  .doc__head, .doc__body { max-width: 672px; }
  .doc__title { line-height: 1.15; }
  .doc__body h2 { margin: 34px 0 10px; }
  .doc__body p + p { margin-top: 13px; }
  .doc__note { border-left-width: 2px; padding: 12px 0 12px 16px; margin: 20px 0; }
  .form__row { margin-bottom: 18px; }
  .form textarea { min-height: 150px; }
}

/* ==========================================================================
   404: the comp header, then a flow body. Netlify serves /404.html itself.
   ========================================================================== */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 .stage {
  position: relative; width: 100%; height: auto;
  flex: 1 0 auto; display: flex; flex-direction: column;
  padding-top: calc(63 * var(--u));        /* clears the comp nav */
}

.page-404 main {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(20 * var(--u));
  padding: clamp(64px, calc(130 * var(--u)), 200px) 24px;
  text-align: center;
}
.page-404 main > * { width: 100%; }

.page-404 .e-code {
  font-size: clamp(56px, calc(96 * var(--u)), 132px); line-height: 1;
  font-weight: 400; color: var(--tan); letter-spacing: .02em;
}
.page-404 .e-title {
  font-size: clamp(21px, calc(30 * var(--u)), 40px); line-height: 1.25;
  font-weight: 400; color: var(--ink); letter-spacing: .01em;
  text-wrap: balance; max-width: 18em; margin-inline: auto;
}
.page-404 .e-body {
  font-size: clamp(14px, calc(15 * var(--u)), 19px); line-height: 1.7;
  color: var(--ink); max-width: 32em; margin-inline: auto;
}
.page-404 .e-links {
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center;
  margin-top: calc(8 * var(--u));
}
.page-404 .e-links a {
  width: auto;
  font-size: clamp(12px, calc(13 * var(--u)), 16px); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tan);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color .2s ease;
}
.page-404 .e-links a:hover, .page-404 .e-links a:focus-visible { color: var(--ink); }

.page-404 .ftr {
  position: static; height: auto; flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: calc(16 * var(--u)) calc(34 * var(--u));
  padding: calc(38 * var(--u)) 24px;
  text-align: center;
}
.page-404 .ftr__brand {
  position: static; width: auto; height: auto;
  display: flex; align-items: center; gap: calc(16 * var(--u));
}
.page-404 .ftr__emblem   { position: static; width: calc(70 * var(--u));  height: auto; }
.page-404 .ftr__wordmark { position: static; width: calc(180 * var(--u)); height: auto; }
.page-404 .ftr__legal {
  position: static; white-space: normal; margin: 0; max-width: 40em;
  font-size: clamp(10px, calc(10 * var(--u)), 13px); line-height: 1.6;
}

@media (max-width: 1279px) {
  .page-404 .stage { padding-top: 0; }
  .page-404 .ftr__emblem   { width: 70px;  height: auto; }
  .page-404 .ftr__wordmark { width: 180px; height: auto; margin-top: 0; }
}

/* ==========================================================================
   MOBILE / TABLET: below 1280px the comp grid is dropped for a single
   column. (The comp layout scales with the window, so below its 1280px
   design width the type shrinks with it: 10px body copy at 1024px, which
   is about as small as it should get; below that, real mobile type wins.)
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --u: 1px; }

  body { font-size: 16px; }

  .stage,
  .page-home .stage,
  .page-p2 .stage,
  .page-p3 .stage,
  .page-p4 .stage,
  .page-p5 .stage { position: static; width: 100%; height: auto; }

  /* every comp-positioned element returns to normal flow */
  .el, .tx, .nav, .ftr,
  .nav__brand, .nav__menu,
  .ftr__emblem, .ftr__wordmark, .ftr__rule,
  .ftr__contact, .ftr__email, .ftr__addr, .ftr__legal,
  .ftr__links, .ftr__copy {
    position: static;
    left: auto; right: auto; top: auto;
    width: auto; height: auto;
    margin-top: 0;
    white-space: normal;
  }

  /* drop the comp's hard line breaks and hyphenation */
  .b { display: none; }
  .hy::after { content: ""; }

  /* ---- header ---- */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; position: sticky; top: 0; z-index: 100;
  }
  .nav__brand { display: flex; align-items: center; gap: 12px; }
  .nav__emblem   { width: 38px;  height: 34.53px; }
  .nav__wordmark { width: 104px; height: 16.92px; top: 0; }

  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: #fff;
                      transition: transform .25s ease, opacity .25s ease; }
  .nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    display: none; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--dark);
    padding: 8px 20px 22px;
    font-size: 14px; letter-spacing: .08em;
    font-weight: var(--nav-weight, 600);
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .nav[data-open="true"] .nav__menu { display: flex; }
  .nav__menu a {
    position: static; left: auto; top: auto;   /* undo the comp pinning */
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav__menu a:last-child { border-bottom: 0; }
  /* Shop Now keeps its button treatment in the open menu, full width at the
     bottom, rather than reading as one more line in the list */
  .nav__menu a.nav__shop {
    right: auto; top: auto;
    margin-top: 14px; padding: 13px 0; border-bottom: 0;
    background: var(--tan); color: var(--dark);
    text-align: center; font-weight: 700;
  }

  /* ---- content ---- */
  /* flex so the stack can be reordered: in the comps some images sit *beside*
     their headline, and stacking them in source order puts two pictures
     back-to-back under the hero. Order below reads headline, image, copy. */
  .stage > main { display: flex; flex-direction: column; }

  .page-home .p1-hero    { order: 1; }
  .page-home .p1-lede    { order: 2; }
  .page-home .p1-bottles { order: 3; }
  .page-home .p1-copy    { order: 4; }
  .page-home .p1-band    { order: 5; }
  .page-home .p1-title   { order: 6; }
  .page-home .p1-copy2   { order: 7; }
  .page-home .p1-map     { order: 8; }

  .page-p2 .p2-hero    { order: 1; }
  .page-p2 .p2-title1  { order: 2; }
  .page-p2 .p2-friends { order: 3; }
  .page-p2 .p2-copy    { order: 4; }
  .page-p2 .p2-band    { order: 5; }
  .page-p2 .p2-title2  { order: 6; }
  .page-p2 .p2-board   { order: 7; }
  .page-p2 .p2-copy2   { order: 8; }
  .page-p2 .p2-bbq     { order: 9; }
  .page-p2 .p2-cluster { order: 10; }

  .page-p3 .p3-hero    { order: 1; }
  .page-p3 .p3-lede    { order: 2; }
  .page-p3 .p3-rock    { order: 3; }
  .page-p3 .p3-copy    { order: 4; }
  .page-p3 .p3-bottles { order: 5; }

  /* Page 4 threads left column then right column on desktop. On one column it
     reads in story order, alternating copy and picture so no two images ever
     sit back to back. */
  .page-p4 .p4-header      { order: 1; }
  .page-p4 .p4-title       { order: 2; }
  .page-p4 .p4-h1          { order: 3; }
  .page-p4 .p4-copyL1      { order: 4; }
  .page-p4 .p4-copyL2      { order: 5; }
  .page-p4 .p4-okura       { order: 6; }
  .page-p4 .p4-capokura    { order: 7; }
  .page-p4 .p4-copyL3      { order: 8; }
  .page-p4 .p4-poster      { order: 9; }
  .page-p4 .p4-copyR1      { order: 10; }
  .page-p4 .p4-h2          { order: 11; }
  .page-p4 .p4-copyR2      { order: 12; }
  .page-p4 .p4-brewery     { order: 13; }
  .page-p4 .p4-capbrewery  { order: 14; }
  .page-p4 .p4-copyR3      { order: 15; }
  .page-p4 .p4-h3          { order: 16; }
  .page-p4 .p4-copyR4      { order: 17; }
  .page-p4 .p4-ledgers     { order: 18; }
  .page-p4 .p4-antique     { order: 19; }
  .page-p4 .p4-labels      { order: 20; }

  /* Page 5. The rice band is a desktop device: below the breakpoint the copy
     sits on white, so the band is dropped rather than stretched. */
  .page-p5 .p5-rice    { display: none; }
  .page-p5 .p5-hero    { order: 1; }
  .page-p5 .p5-title   { order: 2; }
  .page-p5 .p5-title2  { order: 3; }
  .page-p5 .p5-copyL1  { order: 4; }
  .page-p5 .p5-pond    { order: 5; }
  .page-p5 .p5-h2      { order: 6; }
  .page-p5 .p5-copyL2  { order: 7; }
  .page-p5 .p5-room    { order: 8; }
  .page-p5 .p5-bottles { order: 9; }
  .page-p5 .p5-copyL3  { order: 10; }
  .page-p5 .p5-glass   { order: 11; }
  .page-p5 .p5-h3      { order: 12; }
  .page-p5 .p5-addr    { order: 13; }
  .page-p5 .p5-hours   { order: 14; }
  .page-p5 .p5-reserve { order: 15; }
  .page-p5 .p5-resv    { order: 16; }
  .page-p5 .p5-note    { order: 17; }
  .page-p5 .p5-band    { order: 18; }

  .page-p3 .p3-share   { order: 6; }
  .page-p3 .p3-copyR   { order: 7; }
  .page-p3 .p3-cta     { order: 8; }
  .page-p3 .p3-band    { order: 9; }

  .el img, img.el, picture.el > img { width: 100%; height: auto; }
  .el { width: 100%; height: auto; }
  /* fixed-size marks must beat the img.el rule above */
  .nav img.nav__emblem   { width: 38px;  height: 34.53px; }
  .nav img.nav__wordmark { width: 104px; height: 16.92px; top: 0; }
  .ftr__brand { position: static; width: auto; height: auto;
                display: flex; flex-direction: column; align-items: center;
                gap: 20px; }
  .ftr img.ftr__emblem   { width: 96px;  height: 87.23px; }
  .ftr img.ftr__wordmark { width: 210px; height: 34.16px; margin-top: 0; }

  .tx {
    font-size: 16px; line-height: 1.65;
    letter-spacing: 0;
    padding: 0 22px;
    max-width: 42em;
    margin-left: auto; margin-right: auto;
  }
  .tx p + p { margin-top: 1.1em; }
  /* the single mobile column is too narrow to justify without rivers */
  .tx { text-align: left; }

  .sec-title, .p1-lede, .p3-lede, .p3-share {
    padding: 0 22px; text-align: center; max-width: none;
  }
  /* headings scale with the viewport, because a fixed 24px read small on a tablet */
  .p1-lede span, .p3-lede span, .p3-share span {
    position: static; display: block;
    font-size: clamp(22px, 3.9vw, 34px); line-height: 1.25;
    letter-spacing: 0; margin: 0 0 4px;
  }
  .p1-lede .l1 { color: var(--tan); }
  .p1-title, .p2-title1, .p2-title2, .p4-title {
    font-size: clamp(24px, 4.4vw, 40px); line-height: 1.2;
  }

  /* the CTA closes the invitation, so on mobile it follows the whole of it */
  .cta {
    align-self: center; width: auto; height: auto; transform: none;
    min-width: 0; max-width: calc(100% - 44px);
    padding: 15px 26px; margin: 6px auto 34px;
    font-size: 13px; white-space: normal; text-align: center;
  }

  .band { height: 14px; width: 100%; }
  .vrule { display: none; }

  /* stack order + rhythm */
  .stage > main > * { margin: 0 auto 34px; }
  .stage > main > .band { margin: 38px 0 24px; }
  .p1-title, .p2-title1, .p2-title2, .p3-share { margin-bottom: 14px; }
  .p1-hero, .p2-hero, .p3-hero, .p1-mist { margin-bottom: 0; }
  .p1-mist { display: none; }               /* mist backdrop is decorative */
  /* Cut-outs use their trimmed variants here (see the <source media> tags), so
     a centerd product shot actually looks centerd. Each is bounded by viewport
     height as well as width: the third value is (max-height x aspect ratio). */
  .p1-bottles  { max-width: min(100%, 280px, 31vh); }   /* trimmed 0.685 */
  .p2-product  { max-width: min(100%, 380px, 46vh); }   /* trimmed 1.011 */
  .p3-bottles  { max-width: min(100%, 250px, 29vh); }   /* trimmed 0.720 */
  .p1-bottles, .p3-bottles, .p2-product { margin: 22px auto 30px; }

  /* Photography keeps the same 22px gutter as the copy, so nothing bleeds to
     the edge except the heroes. */
  /* Photographic plates run edge to edge, like the heroes. Only the cut-out
     product shots below stay inset. They are objects on white, and gutters
     are what keep them from reading as a full-bleed image. */
  .p2-friends, .p2-board, .p1-map {
    max-width: 100%; width: 100%; margin: 18px auto 30px;
  }
  /* The barbecue tray is a cut-out on white, the same family as the paella and
     the bottles: full-bleed it dwarfed them. It shares their measure now and
     stays the largest of the three without swamping the group. */
  .p2-bbq { max-width: min(calc(100% - 28px), 560px); margin: 24px auto 6px; }
  .p3-rock { max-width: 100%; width: 100%; margin: 0 auto 30px; }

  /* The paella and the bottle line-up are side by side in the comp, so they
     stay side by side here rather than stacking into two lone cut-outs. */
  /* ---- page 4 ---- */
  /* Subheads sit tight to the copy they introduce, so they get their own
     rhythm rather than the 34px the stack gives everything else. */
  .p4-h1, .p4-h2, .p4-h3 {
    font-size: clamp(18px, 2.6vw, 22px); line-height: 1.25;
    letter-spacing: 0; font-weight: 700;
    max-width: min(100% - 40px, 672px); margin: 10px auto 12px;
  }
  .p4-copyL1, .p4-copyL2, .p4-copyR1, .p4-copyR2, .p4-copyR3, .p4-copyR4 {
    letter-spacing: 0; text-align: left;   /* the one justified frame goes ragged */
    font-size: 16px; line-height: 1.65;
    max-width: min(100% - 40px, 672px); margin: 0 auto 26px;
  }
  .p4-copyL1 p + p, .p4-copyL2 p + p, .p4-copyR1 p + p,
  .p4-copyR2 p + p, .p4-copyR3 p + p, .p4-copyR4 p + p { margin-top: 1.1em; }

  /* the header is a full photographic plate; everything else is a picture on
     white and keeps its gutters */
  .p4-header { max-width: 100%; width: 100%; margin: 0 auto 26px; }
  .p4-okura, .p4-brewery {
    max-width: min(calc(100% - 28px), 560px); margin: 8px auto 6px;
  }
  .p4-poster {
    max-width: min(calc(100% - 40px), 240px, 46vh);
    margin: 14px auto 30px; box-shadow: 4px 4px 12px rgba(35, 31, 32, .34);
  }
  .p4-ledgers { max-width: min(calc(100% - 20px), 560px); margin: 18px auto 4px; }
  .p4-antique { max-width: min(calc(100% - 40px), 340px, 44vh); margin: 6px auto 4px; }

  .p4-cap {
    font-size: 13px; line-height: 1.4; letter-spacing: 0;
    max-width: min(calc(100% - 40px), 560px); margin: 0 auto 30px;
    text-align: center; opacity: .78;
  }

  /* the two labels belong under their own bottle, so they share one row */
  /* Each label sits at the centre of its own bottle, measured off the artwork
     (48.0% and 76.8% across the picture), so it stays put at any size. */
  .p4-labels {
    display: block; position: relative; height: 1.4em; width: 100%;
    max-width: min(calc(100% - 40px), 340px, 44vh);
    margin: 0 auto 34px; order: 19;
  }
  .p4-yesterday, .p4-today {
    position: absolute; top: 0; width: 8em; margin-left: -4em;
    font-size: 13px; letter-spacing: .06em; line-height: 1.4;
    text-align: center; margin-top: 0;
  }
  .p4-yesterday { left: 48.0%; }
  .p4-today     { left: 76.8%; }

  /* ---- footer legal links ---- */
  .ftr__links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 18px; font-size: 13px; line-height: 1.4; letter-spacing: .02em;
    max-width: calc(100% - 40px); margin: 26px auto 10px; text-align: center;
  }
  .ftr__copy {
    font-size: 12px; line-height: 1.4; letter-spacing: .02em;
    text-align: center; margin: 0 auto 8px; white-space: normal;
  }

  .p2-cluster {
    display: grid; grid-template-columns: 1.02fr 0.98fr;
    align-items: center; gap: 8px;
    max-width: min(calc(100% - 28px), 560px);
    margin: 6px auto 30px;
  }
  .p2-cluster .p2-paella,
  .p2-cluster .p2-product { max-width: 100%; margin: 0; }

  /* ---- footer ---- */
  .ftr {
    padding: 44px 22px 40px;
    display: flex; flex-direction: column; align-items: center; gap: 26px;
    text-align: center;
  }
  .ftr__emblem   { width: 96px; height: 87.23px; }
  .ftr__wordmark { width: 210px; height: 34.16px; margin-top: 0; }
  .ftr__rule     { display: none; }
  .ftr__contact, .ftr__email, .ftr__addr, .ftr__legal {
    max-width: 34em; padding: 0; font-size: 14px; line-height: 1.6;
  }
  .ftr__addr { font-size: 15px; }
  .ftr__addr p + p { margin-top: 1em; }
  .ftr__addr .a1, .ftr__addr .a2,
  .ftr__addr .a3, .ftr__addr .a4 { letter-spacing: 0; }
  .ftr__legal { font-size: 11px; line-height: 1.5; opacity: .85; }

  /* ---- page 4 ---- */
  /* the title sits ON the hero at desktop widths; in the single column it
     drops below the picture, so it needs ink rather than white, and a size
     that belongs to a phone */
  .page-p4 .p4-title {
    color: var(--dark); text-shadow: none;
    font-size: 34px; line-height: 1.1; letter-spacing: .02em;
    padding: 0 22px; text-align: center;   /* no margin of its own: the page
       title sits 34px under the header photo, the same as every other page */
  }
  .page-p4 .p4-title .l2 { font-size: 21px; line-height: 1.25; letter-spacing: .05em;
                           margin-top: 4px; }

  /* ---- page 5 ----
     The page follows the same mobile rhythm as the rest of the site: 34px
     between blocks, a headline centred with 14px under it so it binds to what
     ranged left. Page 5 was the only page whose headlines were still left
     aligned, and the only one whose images and button carried margins of their
     own, which gave one column gaps of 0, 26, 44, 52 and 68. */

  /* the two display lines read as one heading on a phone */
  .page-p5 .p5-title,
  .page-p5 .p5-title2 { text-align: center; }
  .page-p5 .p5-title  { font-size: clamp(22px, 3.9vw, 34px); line-height: 1.2;
                        margin-bottom: 2px; }
  .page-p5 .p5-title2 { font-size: clamp(19px, 3.4vw, 29px); line-height: 1.25; }

  /* Both section headings. Centred, like every other tan display heading on
     the site, and left on the flat 34px rhythm rather than given margins of
     their own. The bold black subheads on page 4 stay ranged left with the
     copy they introduce: that is the difference between a display heading and
     a subhead, not an inconsistency. */
  .page-p5 .p5-h2,
  .page-p5 .p5-h3     { text-align: center; white-space: normal;
                        font-size: clamp(21px, 3.4vw, 28px); line-height: 1.3; }

  /* cut-outs stay inset; the photographs run full bleed */
  .page-p5 .p5-bottles { max-width: min(100%, 460px); margin: 0 auto 34px; }
  .page-p5 .p5-glass   { max-width: min(100%, 190px, 26vh); margin: 0 auto 34px; }
  .page-p5 .p5-pond    { margin: 0 auto 34px; }
  .page-p5 .p5-room    { box-shadow: none; }

  .page-p5 .p5-hours   { width: auto; max-width: 20em; font-size: 16px;
                         line-height: 1.7; }
  .page-p5 .p5-hours dl { grid-template-columns: 7.5em auto; padding-left: 0; }
  /* only the second season gets a break above it. The first one sat 1.2em
     down as well, which pushed the block off the 34px rhythm. */
  .page-p5 .p5-hours dl + .season { margin-top: 1.2em; }

  .page-p5 .p5-addr    { text-align: center; margin-top: 0; font-size: 16px; }

  /* the button gets equal air on both sides. It carried 52 above and 0 below,
     so it sat on top of the paragraph under it. */
  .page-p5 .p5-reserve { position: static; width: auto; margin: 6px auto 40px; }

  /* ranged left with the rest of the body copy. Five centred lines on a phone
     are hard to read, and it was the only centred paragraph on mobile. */
  .page-p5 .p5-resv    { text-align: left; }
  .page-p5 .p5-note    { font-size: 12px; line-height: 1.55; opacity: .85;
                         max-width: 34em; }
  .page-p5 .p5-note .l { display: block; margin-top: .5em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   DEMO: tasting room booking dialog  (tasting-room-demo.html only)

   A panel over the page, not a block inside it. The comp's largest clear gap
   is about 25px tall, so an embedded widget would push the hours, the glass
   and the house rules out of place. Floating it leaves the page untouched and
   makes the choice of booking service a change inside the dialog.
   ========================================================================== */
/* Centred under the interior photo, on its centre line (x 947), with the
   opening hours below. The comp leaves only 22px there, so on this page the
   hours, the reservations note, the house rules, the tan band and the footer
   all move down 49px to make the room. Uses the site's own .cta, so it is the
   same button as everywhere else. */
.p5-reserve { position: absolute; z-index: 6;
              left: calc(868 * var(--u)); top: calc(1760 * var(--u)); }

/* the right-hand stack, shifted 78px to give the button room to breathe:
   28px of air above it, 32px below, before the opening hours start */
.page-demo .p5-hours { top: calc(1506 * var(--u)); }
.page-demo .p5-resv  { top: calc(1672 * var(--u)); }
.page-demo .p5-note  { top: calc(1772 * var(--u)); }
.page-demo .p5-band  { top: calc(1851 * var(--u)); }
.page-demo .ftr      { top: calc(1876 * var(--u)); }
.page-demo .stage    { height: calc(2323 * var(--u)); }

.resv { position: fixed; inset: 0; z-index: 100;
        display: flex; align-items: center; justify-content: center; padding: 20px; }
.resv[hidden] { display: none; }
.resv__scrim { position: absolute; inset: 0; background: rgba(35, 31, 32, .62); }
.resv__panel {
  position: relative; z-index: 1;
  width: min(660px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; padding: 30px 34px 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
}
.resv__x {
  position: absolute; right: 12px; top: 8px;
  background: none; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: #6b6b6b;
}
.resv__x:hover { color: var(--ink); }
.resv__demo {
  margin: -6px 0 14px; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: #9a9a9a;
}
.resv__title {
  font-size: 25px; line-height: 1.2; letter-spacing: -.01em;
  color: var(--tan); font-weight: 400; text-transform: uppercase;
}
.resv__lede { margin-top: 9px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.resv__controls { margin-top: 18px; max-width: 220px; }
.resv__controls .form__row { margin-bottom: 0; }

/* the days the room is open, not a month grid nobody can use */
.resv__days { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.resv__day {
  flex: 1 1 0; min-width: 62px; cursor: pointer;
  background: #fff; border: 1px solid #d9d3cc; padding: 9px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: inherit; color: var(--ink); transition: border-color .15s, background .15s;
}
.resv__day:hover { border-color: var(--tan); }
.resv__day .dow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.resv__day .dom { font-size: 21px; line-height: 1.1; font-weight: 700; }
.resv__day .mon { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.resv__day[aria-current="true"] { background: var(--tan); border-color: var(--tan); color: #fff; }
.resv__day[aria-current="true"] .dow,
.resv__day[aria-current="true"] .mon { color: rgba(255,255,255,.86); }

.resv__seats-note { margin-top: 18px; font-size: 13px; color: #6b6b6b; }

/* the whole point of the demo: what is actually free */
.resv__slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px; margin-top: 10px;
}
.resv__slot {
  cursor: pointer; background: #fff; border: 1px solid #d9d3cc;
  padding: 9px 6px; font-family: inherit; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color .15s, background .15s;
}
.resv__slot:hover:not([disabled]) { border-color: var(--tan); background: #faf7f4; }
.resv__slot .t { font-size: 15px; font-weight: 700; }
.resv__slot .n { font-size: 11px; letter-spacing: .04em; color: #7a7a7a; }
.resv__slot.is-low .n { color: #9a5b24; }
.resv__slot[disabled] { cursor: default; background: #f5f3f1; border-color: #e6e2de; color: #b0aca8; }
.resv__slot[disabled] .n { color: #b0aca8; }

.resv__big {
  margin-top: 18px; padding: 13px 15px; background: #f4efe9;
  border-left: 3px solid var(--tan);
  font-size: 14px; line-height: 1.55; color: var(--ink);
}
.resv__big a { color: var(--tan); text-decoration: underline; }

.resv__summary { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.resv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.resv__back {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #7a7a7a;
}
.resv__back:hover { color: var(--ink); }
.resv .form { margin-top: 18px; }
.resv .form__row { margin-bottom: 15px; }
.resv .form input, .resv .form select, .resv .form textarea { font-size: 15px; }

@media (max-width: 1279px) {
  /* in the single column the button belongs with the hours, not floating */
  .page-demo .p5-reserve { position: static; order: 12; margin: 6px auto 0; width: auto; }
  .resv__panel { padding: 26px 18px 22px; max-height: 92vh; }
  .resv__grid { grid-template-columns: 1fr; }
  .resv__slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  /* six chips do not divide evenly into a phone, and the odd one out wrapping
     to a full-width row reads as a mistake. Scroll them instead. */
  .resv__days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
                -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .resv__day { flex: 0 0 auto; min-width: 58px; }
}

/* ==========================================================================
   RESERVATIONS LIGHTBOX (live)
   The TableAgent widget is an iframe at a fixed 736px. Dropped into the page
   it would push the hours and the house rules out of the comp, so it opens in
   the same lightbox the demo used. Two other reasons it stays here: the src is
   attached on first open, so no third-party request is made until a guest asks
   for one, and changing booking provider later is a change inside this panel.
   ========================================================================== */
.resv--embed .resv__panel { width: min(560px, 100%); max-height: 92vh; padding: 24px 22px 18px; }
.resv--embed .resv__lede { margin-bottom: 16px; }
.resv__frame { max-width: 100%; overflow-x: auto; background: #fff; }
.resv__frame iframe { display: block; border: 0; width: 100%;
                      min-width: 375px; height: 736px; }
.resv__alt { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: #6b6b6b; }
.resv__alt a { color: var(--tan); }
body.is-resv-open { overflow: hidden; }

@media (max-width: 1279.98px) {
  .resv--embed .resv__panel { padding: 24px 12px 16px; }
}
