/* =========================================================
   EMPIRE CRAFT HOUSE

   Colour: the house's own. Black sign, cream lettering, yellow wall.
     The red at the foot of the columns appears only as the band under a yellow slab.
   Type: headlines in Roman capitals, like the sign (Bona Nova SC).
     Everything else in one plain sans made for Vietnamese (Be Vietnam Pro).
   Photographs: inside the bar in colour, untouched. Outside, printed in ink on the yellow.
   Flat slabs, square corners, nothing decorative.
   ========================================================= */
/* The two typefaces are served from the fonts folder (both are free to host: SIL Open Font License).
   Each is split into Latin and Vietnamese parts, and a browser fetches only the parts a page uses. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bona Nova SC"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bona-nova-sc-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Bona Nova SC"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bona-nova-sc-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bona Nova SC"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bona-nova-sc-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #120D0A;
  --cream: #F2E8D2;
  --ochre: #C98F1E;
  --oxide: #A3443A;

  --pad: clamp(1.25rem, 6vw, 5.5rem);
  --gap: clamp(2.75rem, 9svh, 6.5rem);
  --sign: 80px;
  --rule: color-mix(in srgb, currentColor 24%, transparent);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --roman: "Bona Nova SC", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: var(--sign); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif; font-weight: 400;
  font-size: clamp(1.0625rem, .95rem + .35vw, 1.1875rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--cream); color: var(--ink); padding: .9rem 1.2rem; font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- type ---------- */
.fit { container-type: inline-size; }
.giant, .title, .plate__name, .foot__cheers { font-family: var(--roman); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.giant { line-height: 1.02; font-size: min(calc(100cqi / var(--n, 8)), 10rem); }
.title { line-height: 1.06; font-size: clamp(1.9rem, 5.2vw, 5.25rem); text-wrap: balance; }
.fact { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.body { max-width: 36ch; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .38em; }
.link:hover { text-decoration-thickness: 4px; }
br.st { display: none; }

/* headings rise into place once */
.js [data-arrive] { clip-path: inset(0 0 100% 0); transform: translateY(.25em); transition: clip-path .8s var(--ease), transform .8s var(--ease); }
.js [data-arrive].is-in { clip-path: inset(-.3em -.1em -.3em -.1em); transform: none; }

/* ---------- the sign over the door ---------- */
.sign {
  position: sticky; top: 0; z-index: 10; height: var(--sign);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad); background: var(--ink); color: var(--cream);
}
.sign__logo, .sign__logo a { display: block; flex: none; }
.sign__logo img { height: 58px; width: auto; }
.sign__nav { display: flex; gap: clamp(.4rem, 2.6vw, 2.6rem); }
.sign__nav a {
  display: grid; place-items: center; min-height: 48px; padding: 0 .35rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.sign__nav a:hover, .sign__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .55em; }

/* ---------- 1. the door ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: calc(100svh - var(--sign)); background: var(--ochre); color: var(--ink);
  border-bottom: 12px solid var(--oxide);
  transition: background-color 1.2s ease, color 1.2s ease;
}
.hero__photo { grid-column: 2; grid-row: 1 / 3; position: relative; overflow: hidden; background: var(--ink); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: filter 1.2s ease; }
.hero__line { grid-column: 1; grid-row: 1; align-self: end; container-type: inline-size; padding: clamp(1.6rem, 4.5vw, 4.5rem) clamp(1.6rem, 4.5vw, 4.5rem) 0; }
.hero__line .giant { white-space: nowrap; font-size: min(calc(100cqi / 5.85), 10rem); }
.hero__slab { grid-column: 1; grid-row: 2; padding: clamp(1.1rem, 2.2vw, 2rem) clamp(1.6rem, 4.5vw, 4.5rem) clamp(1.6rem, 4.5vw, 4.5rem); }
.door { max-width: 32ch; }
.door .fact { display: block; font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: .09em; }
.door .fact:empty { display: none; }
.hero__slab .link { display: inline-block; margin-top: clamp(.6rem, 1.4vw, 1.2rem); padding: .7rem 0; }
/* lights off: when the bar is closed the yellow goes dark and the headline says so */
.is-closed .hero { background: var(--ink); color: var(--cream); }
.is-closed .hero__photo img { filter: brightness(.42); }

/* ---------- 2. the house ---------- */
.house { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: calc(var(--gap) * 1.25) var(--pad); }
.house__logo { width: min(100%, 520px); }
.house .title { font-size: clamp(1.9rem, 4vw, 3.7rem); }
.house .body { margin-top: clamp(1.1rem, 2vw, 1.8rem); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }
.house .house__vi { margin-top: .9rem; font-size: inherit; line-height: 1.55; }

/* ---------- 3. on tap ---------- */
.tap-room { background: var(--cream); color: var(--ink); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--gap) var(--pad); align-items: start; }
.tap-room__head { position: sticky; top: calc(var(--sign) + 2rem); }
.tap-room__head .fact { margin-top: .5rem; }
.tap-room__head .body { margin-top: 1.2rem; }
.tap-room__photo { margin-top: 2rem; aspect-ratio: 4 / 3; overflow: hidden; }
.tap-room__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0 60%; }
.taps { border-top: 2px solid var(--ink); }
.tap { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; row-gap: .15rem; padding: 1.2rem 0 1.2rem 1.5rem; border-bottom: 1px solid var(--rule); }
/* the colour of the beer in the glass, down the edge of its row */
.tap::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 8px; background: var(--beer, var(--ochre)); transform-origin: top; transition: transform .6s var(--ease); }
.js .tap:not(.is-in)::before { transform: scaleY(0); }
.tap__name, .tap__abv { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.25; }
.tap__abv { font-variant-numeric: tabular-nums; }
.tap__note { grid-column: 1 / -1; }

/* ---------- 4. the kitchen: plates on the pass ---------- */
.kitchen { background: var(--ink); color: var(--cream); }
.kitchen__head { padding: var(--gap) var(--pad); }
.kitchen__head .fact { margin-top: .6rem; }
.kitchen__head .body { margin-top: 1.2rem; }
.plate {
  position: sticky; top: var(--sign); height: calc(100svh - var(--sign));
  display: grid; grid-template-columns: 58fr 42fr; background: var(--ink);
}
.plate__photo { overflow: hidden; min-height: 0; }
.plate__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.plate__text { align-self: start; padding: clamp(1.6rem, 4.5vw, 4.5rem); }
.plate__name { line-height: 1.04; font-size: clamp(2rem, 4.4vw, 4.4rem); text-wrap: balance; }
.plate__note { margin-top: .9rem; max-width: 26ch; font-size: clamp(1.0625rem, 1.5vw, 1.35rem); }

/* ---------- 5. visit ---------- */
.visit { background: var(--ochre); color: var(--ink); padding: var(--gap) var(--pad); border-bottom: 12px solid var(--oxide); position: relative; }
.visit > .fact { margin-top: .9rem; }
.visit__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); margin-top: calc(var(--gap) * .7); align-items: start; }
/* the house from the street, as an ink print on its own yellow */
.visit__print img { width: 100%; filter: grayscale(1) brightness(1.5) contrast(1.6); mix-blend-mode: multiply; }
.facts { border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { padding-top: .2em; }
.phones a { display: block; width: fit-content; padding: .2rem 0; font-weight: 700; font-size: 1.25em; letter-spacing: .03em; text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.btn {
  display: inline-grid; place-items: center; min-height: 56px; margin-top: 2rem; padding: 0 2rem;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- 6. good to know ---------- */
.know { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--gap) var(--pad) 0; align-items: start; }
.know__list { border-top: 2px solid var(--cream); }
.know__list > div { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.know__list dt { font-weight: 700; }
.know__list dd { margin-top: .25rem; max-width: 52ch; }

/* ---------- the foot ---------- */
.foot { padding: var(--gap) var(--pad) clamp(2rem, 5vw, 3rem); }
.foot__cheers { color: var(--ochre); line-height: 1.1; font-size: clamp(2.1rem, 7vw, 6rem); }
.foot__facts { display: flex; flex-wrap: wrap; gap: 0 clamp(1.4rem, 4vw, 3rem); margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.foot__facts li { padding: .8rem 0; }
.foot__small { margin-top: 1.2rem; font-size: .875rem; }

/* ---------- stacked: phones and tablets ---------- */
@media (max-width: 1099px) {
  br.st { display: inline; }
  /* the photograph fills the screen and the line sits in its dark corner */
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero__photo { grid-column: 1; grid-row: 1; height: clamp(420px, 72svh, 900px); }
  .hero__photo img { object-position: 42% 100%; }
  .hero__line { grid-column: 1; grid-row: 1; align-self: start; z-index: 1; color: var(--cream); padding: clamp(1.1rem, 4vw, 2.5rem) var(--pad) 0; }
  .hero__line .giant { font-size: min(calc(100cqi / 5.6), 8rem); text-shadow: 0 2px 28px rgba(18, 13, 10, .55); }
  .hero__slab { grid-row: 2; padding: 1.25rem var(--pad) 1.4rem; }

  .house, .tap-room, .visit__in, .know { grid-template-columns: 1fr; }
  .know { gap: 1.6rem; }
  .house { gap: 2rem; }
  .tap-room__head { position: static; }
  .tap-room__photo { margin: 1.6rem calc(var(--pad) * -1) 0; }
  .tap { padding-left: 1.25rem; }

  .plate { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .plate__text { padding: 1.2rem var(--pad) 1.5rem; }

  .visit__print { margin: 0 calc(var(--pad) * -1); }
  .btn { width: 100%; }
}
@media (max-width: 599px) {
  :root { --sign: 62px; }
  .sign { padding: 0 1rem; }
  .sign__logo img { height: 44px; }
  .sign__nav a { letter-spacing: .08em; padding: 0 .3rem; }
}
/* the narrowest phones: the sign still fits on one line */
@media (max-width: 359px) {
  .sign { padding: 0 .7rem; gap: .5rem; }
  .sign__logo img { height: 34px; }
  .sign__nav { gap: 0; }
  .sign__nav a { font-size: .75rem; letter-spacing: .03em; padding: 0 .25rem; }
}
/* a phone on its side: the plates would be too short to stack, so they simply follow one another */
@media (max-height: 520px) {
  .plate { position: static; height: auto; min-height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-arrive] { clip-path: none; transform: none; }
}
