/* Sekiz Musluk: a dark room. One deep bottle-green ground from top to bottom, bone type in one serif, and in it
   a few lit things. Brass is the only accent; each beer's own colour appears as a swatch and one fine line. */
:root {
  --bg: #0c1612;
  --surface: #121f1a;
  --ink: #e6e2d8;
  --muted: #a9ab9f;
  --accent: #b8985a;
  --line: #2b3832;
  --m: max(clamp(1.125rem, 3.4vw, 3.5rem), calc((100vw - 110rem) / 2));
  --step-label: 1rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-row: clamp(1.125rem, .93rem + .82vw, 1.5rem);
  --step-name: clamp(1.5rem, 1.1rem + 1.5vw, 1.875rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  --gap: clamp(6.5rem, 13vw, 12rem);
  --col: 34%;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.6 "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif; font-optical-sizing: auto; font-kerning: normal; font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
th, td { padding: 0; font-weight: 400; text-align: left; }
a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; text-decoration-thickness: .0625rem; transition: text-decoration-color .8s var(--ease), color .8s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: .125rem solid var(--accent); outline-offset: .25rem; }
::selection { background: var(--ink); color: var(--bg); }
.vh { position: absolute; width: .0625rem; height: .0625rem; margin: -.0625rem; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -6rem; z-index: 20; background: var(--ink); color: var(--bg); padding: .8rem 1.1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

h2 { font-weight: 400; font-size: var(--step-head); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
/* Labels: small letterspaced capitals, as on a printed list. */
.tap-table thead th, .match-facts dt, .week-h, .closing-text h3 { font-size: var(--step-label); font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.link { display: inline-block; padding: .7rem 0; text-decoration-color: var(--accent); }
.link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.btn { display: inline-flex; align-items: center; min-height: 3.25rem; padding: .6rem 1.75rem; background: var(--ink); color: var(--bg); font-size: 1.1875rem; text-decoration: none; white-space: nowrap; border-radius: .125rem; transition: background-color .9s var(--ease), transform .9s var(--ease); }
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.985); transition-duration: .2s; }

/* ---------- first screen: one photograph, then the name ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero-photo { height: 58svh; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: zoom 60s ease-in-out infinite alternate; }
@keyframes zoom { from { scale: 1; } to { scale: 1.1; } }
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; column-gap: clamp(1.25rem, 2.8vw, 3rem); padding: .6rem var(--m); }
.top a { min-width: 2.75rem; padding: .85rem 0; text-align: center; }
/* The strip sits above the name: the name's tall letter boxes reach up behind it. */
.hero-strip { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.75rem var(--m) 1.5rem; }
.hero-strip .lead { max-width: 40ch; font-size: var(--step-row); line-height: 1.4; text-wrap: pretty; }
/* The name is set at a smaller optical size than its real size, so its hairlines stay drawn. */
.name { margin-top: auto; padding: 0 var(--m) 1.5rem; font-size: 15.4vw; font-weight: 400; font-variation-settings: "opsz" 30; line-height: .85; letter-spacing: -.02em; white-space: nowrap; }
.name-line { display: inline-block; transform-origin: left bottom; }
.name-line span { display: inline-block; }

/* ---------- the draught list, set like a wine list ---------- */
/* Each list lies on a sheet one tone lighter than the room, like a menu card on a dark bar. */
.taps { margin-top: var(--gap); padding: clamp(4rem, 8vw, 7.5rem) var(--m) clamp(3.5rem, 7vw, 6.5rem); background: var(--surface); scroll-margin-top: 0; }
.sec-head { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); align-items: baseline; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head p { max-width: 44ch; color: var(--muted); }
.tap-table { display: block; width: 100%; }
.tap-table thead, .tap-table tbody { display: block; }
.tap-table tr { position: relative; display: grid; grid-template-columns: calc(var(--col) - 1.5rem) minmax(0, 1fr) 7.5rem 7.5rem; column-gap: 1.5rem; align-items: baseline; border-bottom: .0625rem solid var(--line); }
.tap-table thead th { padding-bottom: .9rem; white-space: nowrap; }
.tap-table .t-ph, .t-p { text-align: right; }
.tap { grid-template-areas: "name style p33 p50" "note note . ."; padding: 1.5rem 0 1.4rem; transition: border-color .9s var(--ease); }
.t-name { grid-area: name; font-size: var(--step-name); line-height: 1.15; }
.t-swatch { display: inline-block; width: .5rem; height: .5rem; margin-right: .875rem; background: var(--beer); vertical-align: .22em; }
.t-style { grid-area: style; font-size: var(--step-row); line-height: 1.3; }
.t-note { grid-area: note; margin-top: .35rem; padding-left: 1.375rem; font-style: italic; color: var(--muted); }
.t-p button { all: unset; box-sizing: border-box; display: inline-block; min-width: 3.5rem; margin: -.65rem 0; padding: .65rem 0 .65rem 1rem; font-size: var(--step-row); line-height: 1.3; color: var(--muted); text-align: right; white-space: nowrap; cursor: pointer; transition: color .9s var(--ease); }
.t-p button:hover, .t-p button[aria-pressed="true"] { color: var(--ink); }
.t-p button:focus-visible { outline: .125rem solid var(--accent); outline-offset: 0; }
/* The line: drawn from the name to the price that was chosen, in the beer's own colour. */
.t-gauge { position: absolute; left: 0; right: 0; bottom: -.0625rem; height: .125rem; pointer-events: none; }
.t-gauge span { display: block; height: 100%; background: var(--beer); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform 2.4s var(--ease); }
.taps-foot { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); align-items: baseline; padding-top: 1.6rem; font-size: var(--step-row); line-height: 1.35; }
.readout { font-style: italic; color: var(--muted); min-height: 1.35em; }
.tasting { display: flex; justify-content: space-between; gap: 2rem; }
.tasting em { margin-right: .35em; }
.tasting-price { white-space: nowrap; }

/* ---------- a part of the menu: one screen for its photograph, then the list at one size ---------- */
.part { margin-top: var(--gap); scroll-margin-top: 0; }
.chapter { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(1.5rem, 3vw, 3rem); min-height: 100svh; padding: clamp(1.75rem, 3vw, 2.75rem) var(--m); }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); clip-path: inset(1.25rem); transition: clip-path 2.6s var(--ease); }
.chapter.in::before { clip-path: inset(0); }
.chapter h2 { grid-column: 1; grid-row: 1; align-self: start; padding: .5rem 0 0 1.25rem; }
.ch-photo { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: min(76svh, 48rem); max-width: 78vw; aspect-ratio: 3 / 4; overflow: hidden; }
.ch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ch-say { grid-column: 1; grid-row: 2; align-self: end; max-width: 30ch; padding: 0 0 .5rem 1.25rem; }
.ch-link { grid-column: 3; grid-row: 2; justify-self: end; align-self: end; margin-right: 1.25rem; }
.lineup { display: block; width: 100%; padding: clamp(1rem, 3vw, 2.5rem) var(--m) clamp(4rem, 8vw, 7.5rem); background: var(--surface); font-size: var(--step-row); line-height: 1.35; scroll-margin-top: 1rem; }
.lineup tbody { display: block; }
.lineup tr { display: grid; grid-template-columns: calc(var(--col) - 1.5rem) minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: baseline; }
.lineup th, .lineup td { padding: .44em 0; }
.l-head { position: sticky; top: 0; z-index: 1; margin-top: clamp(3rem, 5vw, 4.5rem); background: var(--surface); }
.lineup tbody:first-of-type .l-head { margin-top: 0; }
.lineup .l-head th { grid-column: 1 / span 2; padding: .9em 0 .7em; color: var(--accent); }
.lineup .l-unit { align-self: center; text-align: right; font-size: var(--step-label); letter-spacing: .16em; color: var(--muted); }
.l-head-note { margin-left: 1em; font-size: var(--step-body); font-style: italic; color: var(--muted); }
.l-desc { font-style: italic; color: var(--muted); }
.l-price { text-align: right; white-space: nowrap; padding-left: 1rem; }
.closing { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); align-items: end; padding: 0 var(--m) clamp(4rem, 8vw, 7.5rem); background: var(--surface); }
.closing-text { grid-column: 1; grid-row: 1; max-width: 28ch; padding-right: 1.5rem; }
.closing-text h3 { margin-bottom: 1rem; }
.closing-photo { grid-column: 2; justify-self: end; width: min(100%, 40rem); aspect-ratio: 5 / 4; overflow: hidden; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* ---------- match nights: the facts at the side, the paragraph from the shared line ---------- */
.match { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); row-gap: clamp(4rem, 8vw, 7.5rem); padding: var(--gap) var(--m) 0; scroll-margin-top: -4rem; }
.match-facts { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.match-p { max-width: 46ch; font-size: var(--step-row); line-height: 1.42; text-wrap: pretty; }
.match-main .link { margin-top: 1.25rem; }
.week-h { align-self: start; padding-top: .55rem; }
.week-h span { display: block; }
.week { display: grid; grid-template-columns: repeat(2, minmax(0, 21rem)); column-gap: clamp(2rem, 5vw, 5rem); }
.week-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .5rem 0; color: var(--muted); }
.week-list li span:first-child, .week-list .on { color: var(--ink); }

/* ---------- bookings: a card on a photograph of the street ---------- */
.visit { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; min-height: 100svh; margin-top: var(--gap); padding: 3.75rem var(--m); }
.visit-photo { position: absolute; inset: 0; overflow: hidden; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.card { position: relative; display: grid; gap: 1rem; width: min(23.75rem, 100%); padding: 2rem 2rem 0; background: var(--ink); color: var(--bg); border-radius: .125rem; }
.card h2 { font-size: var(--step-name); line-height: 1.1; letter-spacing: -.01em; margin-bottom: .25rem; }
.card :focus-visible { outline-color: var(--bg); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .15rem 0; }
.hours td { text-align: right; }
.card-phone { font-size: var(--step-row); }
.card-btn { display: grid; place-items: center; min-height: 3.5rem; margin: .75rem -2rem 0; background: var(--bg); color: var(--ink); font-size: 1.1875rem; text-decoration: none; border-radius: 0 0 .125rem .125rem; transition: background-color .9s var(--ease), color .9s var(--ease); }
.card-btn:hover { background: var(--surface); color: var(--accent); }

/* ---------- the close: the facts, then the name again ---------- */
.foot { padding: var(--gap) var(--m) 1.5rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; color: var(--muted); }
.foot-cols strong { color: var(--ink); font-weight: 400; }
.foot-cols a { display: inline-block; }
.nb { white-space: nowrap; }
.foot .name { margin-top: clamp(4.5rem, 10vw, 9rem); padding: 0; }
.legal { margin-top: 2.25rem; max-width: 58ch; color: var(--muted); }

/* ---------- motion: slow fades and one slow zoom. Nothing follows the pointer. ---------- */
.js [data-rise] > * { opacity: 0; transform: translateY(.875rem); }
.js [data-rise].in > * { opacity: 1; transform: none; transition: opacity 1.5s var(--ease) calc(var(--i, 0) * 70ms), transform 1.8s var(--ease) calc(var(--i, 0) * 70ms), border-color .9s var(--ease); }
.js [data-rise].in.at-once > * { transition: none; }
.js [data-open] img { opacity: 0; transform: scale(1.06); }
.js [data-open].in img { opacity: 1; transform: none; transition: opacity 2.4s var(--ease), transform 3.2s var(--ease); }
.js .chapter .ch-photo img { opacity: .001; transform: scale(.92); }
.js .chapter.in .ch-photo img { opacity: 1; transform: none; transition: opacity 2.2s var(--ease), transform 3s var(--ease); }
.js .chapter > h2, .js .chapter > p, .js .chapter > a { opacity: 0; }
.js .chapter.in > h2, .js .chapter.in > p, .js .chapter.in > a { opacity: 1; transition: opacity 2s var(--ease) .5s, color .8s var(--ease), text-decoration-color .8s var(--ease); }
.js .hero-photo { opacity: 0; }
.js .hero-strip > *, .js .hero .name-line span { opacity: 0; transform: translateY(.875rem); }
.js.ready .hero-photo { opacity: 1; transition: opacity 2.6s var(--ease); }
.js.ready .hero-strip > * { opacity: 1; transform: none; transition: opacity 2s var(--ease) .5s, transform 2.2s var(--ease) .5s, background-color .9s var(--ease); }
.js.ready .hero .name-line span { opacity: 1; transform: none; transition: opacity 2.2s var(--ease) .25s, transform 2.4s var(--ease) .25s; }
.js.ready .hero .name-line span + span { transition-delay: .45s; }
/* The name answers the scroll by a few per cent: it settles as the first screen leaves and as the last arrives. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .name-line { animation: settle linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .foot .name-line { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes settle { to { scale: .94; } }
@keyframes arrive { from { scale: .94; } to { scale: 1; } }

/* ---------- tablets ---------- */
@media (max-width: 56.24rem) {
  :root { --col: 38%; }
  .tap-table tr { grid-template-columns: calc(var(--col) - 1.25rem) minmax(0, 1fr) 5.75rem 5.75rem; column-gap: 1.25rem; }
  .chapter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; row-gap: 2rem; min-height: 0; padding: 3.5rem var(--m) 3rem; }
  .ch-photo { grid-column: 1; grid-row: 2; justify-self: center; width: 62%; height: auto; }
  .ch-say { grid-row: 3; max-width: 34ch; }
  .ch-link { grid-column: 1; grid-row: 4; justify-self: start; margin: -1.25rem 0 0 1.25rem; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); line-height: 2.75rem; }
  .foot-cols a { min-width: 2.75rem; }
}
/* ---------- phones ---------- */
@media (max-width: 40rem) {
  .hero-photo { height: 44svh; }
  .top { column-gap: 1.25rem; }
  .top a:not(.top-lang):not([href="#icecek"]):not(.skip) { display: none; }
  .hero-strip { display: grid; gap: 1.25rem; padding: 1.25rem var(--m) 1.25rem; }
  .hero-strip .btn { justify-content: center; }
  .name { font-size: 27vw; line-height: .9; padding-bottom: 1.125rem; }
  .name-line { display: inline-flex; flex-direction: column; }
  .sec-head { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .tap-table thead { position: absolute; width: .0625rem; height: .0625rem; overflow: hidden; clip-path: inset(50%); }
  .tap-table tbody tr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name name name" "style p33 p50" "note note note"; column-gap: 1rem; row-gap: .1rem; padding: 1.35rem 0 1.25rem; }
  .tap-table tbody .t-p button { min-width: 0; padding-left: .25rem; }
  .tap-table tbody .t-p button::before { content: attr(data-cl) " cl"; margin-right: .55em; font-size: 1rem; color: var(--muted); }
  .t-note { padding-left: 0; margin-top: .2rem; }
  .taps-foot { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .chapter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; row-gap: 1.5rem; min-height: 0; padding: 2.5rem var(--m) 2.25rem; }
  .chapter::before { clip-path: inset(.625rem); }
  .chapter h2, .ch-say { padding-left: .625rem; }
  .ch-photo { grid-column: 1; grid-row: 2; justify-self: center; width: 80%; height: auto; }
  .ch-say { grid-row: 3; max-width: none; padding-right: .625rem; }
  .ch-link { grid-column: 1; grid-row: 4; justify-self: start; margin: -1rem 0 0 .625rem; }
  .lineup tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "desc desc"; column-gap: 1rem; padding: .5rem 0; }
  .lineup th, .lineup td { padding: 0; }
  .l-name { grid-area: name; }
  .l-price { grid-area: price; }
  .l-desc { grid-area: desc; font-size: var(--step-body); }
  .lineup .l-head { grid-template-areas: "name price"; padding: 0; }
  .lineup .l-head th { grid-area: name; padding: .8rem 0 .5rem; }
  .lineup .l-unit { grid-area: price; }
  .l-head-note { display: block; margin: .1rem 0 0; }
  .closing { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .closing-photo { grid-column: 1; grid-row: 1; width: 100%; }
  .closing-text { grid-row: 2; max-width: none; padding-right: 0; }
  .match { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .match-facts { grid-template-columns: 1fr 1fr; margin-top: 1.75rem; }
  .week-h { padding-top: 0; margin-bottom: -1.5rem; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .visit { display: block; min-height: 0; padding: 0; }
  .visit-photo { position: relative; inset: auto; height: 70svh; }
  .card { width: auto; margin: -5rem var(--m) 0; }
  .card-btn { min-height: 3.5rem; }
  .foot .name { margin-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] > *, .js [data-open] img, .js .chapter .ch-photo img, .js .chapter > h2, .js .chapter > p, .js .chapter > a, .js .hero-photo, .js .hero-strip > *, .js .hero .name-line span { opacity: 1; transform: none; }
  .chapter::before { clip-path: inset(0); }
}
