/* ==========================================================================
   Sherif’s Bar · Glasmalergasse 2, Zürich
   Identity: the cream menu cards on the bar, the cowboy hat and the
   "Sheriff" sign behind the counter, red cabinets, beer coasters.
   Attitude from Enoteca della Valpolicella: cream + near-black editorial,
   lowercase nav, roman-numeral chapters, tilted photo cards, scroll story.
   ========================================================================== */
:root {
  /* palette */
  --cream: #f4ebd9;      /* the printed menu paper */
  --paper: #fbf6ea;
  --ink: #120f0d;        /* near-black, warm */
  --ink-2: #4b4139;
  --night: #0f0d0c;
  --red: #c4262e;        /* red cabinets, the car nose behind the bar */
  --red-deep: #8f1a20;
  --brass: #c99b4a;      /* the sheriff star */
  --zh-blue: #123f8c;    /* Zürich street sign */
  --line: rgba(18, 15, 13, .2);
  --line-l: rgba(244, 235, 217, .18);

  /* type */
  --f-slab: "Alfa Slab One", "Rockwell", Georgia, serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-hand: "Caveat", "Segoe Script", cursive;

  --gut: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-mono); font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .5rem 1rem; background: var(--ink); color: var(--cream); transition: top .3s; }
.skip:focus { top: 1rem; }

.note { font-family: var(--f-hand); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; color: var(--red); transform: rotate(-2.5deg); }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; overflow: hidden; isolation: isolate; text-decoration: none; font-family: var(--f-mono); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; transition: color .45s var(--ease), border-color .45s; }
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--cream); }
.btn--red::before { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink::before { background: var(--red); }
.btn--line { border: 1.5px solid var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--cream); }

/* intro */
.intro { display: none; }
.js .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--cream); }
.intro__in { display: grid; justify-items: center; gap: .6rem; }
.intro__star { width: 92px; height: 92px; fill: var(--brass); }
.intro__word { font-family: var(--f-slab); font-size: clamp(3.2rem, 9vw, 7rem); line-height: 1; overflow: hidden; }
.intro__sub { font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(244, 235, 217, .6); }

/* header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 70px; margin: 0 var(--gut); background: var(--cream);
  box-shadow: 0 1px 0 var(--ink), calc(-1 * var(--gut)) 0 0 var(--cream), var(--gut) 0 0 var(--cream);
  font-size: .88rem; text-transform: lowercase;
}
.hdr__index, .hdr__cta { text-decoration: none; letter-spacing: .06em; }
.hdr__cta { justify-self: end; position: relative; }
.hdr__cta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.6rem); }
.nav a { position: relative; text-decoration: none; letter-spacing: .04em; padding: .2rem 0; }
.nav a span { font-size: .72em; color: var(--red); margin-right: .2rem; }
.nav a::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -6px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5c12-3 22-3 34 0s24 2 36-1 18-2 28 0M8 7c20-3 44-2 70-1' fill='none' stroke='%23c4262e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { clip-path: inset(0 0 0 0); }
.hdr__menu { display: none; justify-self: end; font-family: var(--f-mono); text-transform: lowercase; letter-spacing: .06em; padding: .4rem .2rem; }

.overlay { position: fixed; inset: 0; z-index: 95; display: grid; align-content: center; gap: 2.5rem; padding: 6rem var(--gut) 2rem; background: var(--ink); color: var(--cream); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.77, 0, .18, 1), visibility 0s .8s; }
.menu-open .overlay { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.77, 0, .18, 1), visibility 0s; }
.overlay a { display: flex; align-items: baseline; gap: 1rem; padding: .3rem 0; text-decoration: none; font-family: var(--f-slab); font-size: clamp(2.4rem, 11vw, 5rem); line-height: 1.05; }
.overlay a span { font-family: var(--f-mono); font-size: .9rem; color: var(--brass); min-width: 2.2rem; }
.overlay__foot { font-size: .9rem; color: rgba(244, 235, 217, .7); }
.menu-open .hdr__menu { color: var(--red); }

/* hero */
.hero { position: relative; padding: 7.8rem var(--gut) 5rem; text-align: center; }
.hero__pre { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.6rem; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.hero__side { font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.hero__side--l { justify-self: start; text-align: left; }
.hero__side--r { justify-self: end; text-align: right; }
.hero__title { font-family: var(--f-slab); font-weight: 400; font-size: clamp(3.6rem, 12.6vw, 13.5rem); line-height: .92; letter-spacing: -.01em; }
.hero__word { display: block; overflow: hidden; padding: 0 .02em .06em; }
.hero__word .ch { display: inline-block; }
.hero__note { margin-top: .4rem; }
.hero__cardwrap { position: relative; width: min(38vw, 32rem); margin: 3rem auto 0; }
.hero__card { position: relative; padding: 14px 14px 0; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(18, 15, 13, .55), 0 2px 0 rgba(18, 15, 13, .05); transform: rotate(-2.4deg); }
.hero__reel { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.hero__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__reel img.is-on { opacity: 1; }
.hero__card figcaption { padding: .7rem 0 .9rem; font-family: var(--f-hand); font-size: 1.45rem; font-weight: 600; color: var(--ink-2); }
.badge { position: absolute; right: -5.4rem; top: 2.5rem; width: 10.5rem; height: 10.5rem; display: grid; place-items: center; z-index: 2; border-radius: 50%; background: var(--cream); box-shadow: 0 18px 36px -16px rgba(18, 15, 13, .55); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__ring text { font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; fill: var(--ink); }
.badge__star { width: 64%; height: 64%; fill: var(--brass); filter: drop-shadow(0 6px 10px rgba(18, 15, 13, .3)); }
.badge__num { position: absolute; font-family: var(--f-slab); font-size: 1.35rem; color: var(--ink); }
.hero__info { position: absolute; left: var(--gut); top: 64vh; display: grid; justify-items: start; gap: 1rem; text-align: left; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; letter-spacing: .04em; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9b948b; flex: none; }
.status.is-open .status__dot { background: #2f9e57; box-shadow: 0 0 0 4px rgba(47, 158, 87, .18); }

/* chapter heads */
.chapter { position: relative; padding: clamp(5rem, 10vw, 9rem) var(--gut); }
.ch-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.ch-head__side { justify-self: start; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.ch-head__title { font-family: var(--f-slab); font-weight: 400; font-size: clamp(2.8rem, 9vw, 9.5rem); line-height: .95; letter-spacing: -.01em; }
.ch-num { display: inline-block; font-size: .32em; vertical-align: .9em; margin-right: .1em; color: var(--red); }
.ch-head .note { grid-column: 1 / -1; justify-self: center; }
.ch-head--dark .ch-head__side { color: rgba(244, 235, 217, .7); }
.ch-head--dark .ch-num { color: var(--brass); }
.ch-head--dark .note { color: #ff6a5f; }

/* II die bar */
.chapter--bar { padding-top: clamp(3rem, 6vw, 5rem); }
.bar__text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); max-width: 68rem; margin: 0 auto; line-height: 2; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 3rem); max-width: 74rem; margin: clamp(4rem, 8vw, 7rem) auto 0; align-items: start; }
.tcard { padding: 12px 12px 0; background: var(--paper); box-shadow: 0 26px 50px -28px rgba(18, 15, 13, .55); }
.tcard__m { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.tcard__m img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.tcard figcaption { padding: .55rem 0 .7rem; font-family: var(--f-hand); font-weight: 600; font-size: 1.35rem; color: var(--ink-2); text-align: center; }
.tcard--1 { transform: rotate(-4deg); margin-top: 2rem; }
.tcard--2 { transform: rotate(2.6deg); margin-top: 7rem; }
.tcard--3 { transform: rotate(-1.6deg); }

/* marquee band */
.band { overflow: hidden; background: var(--red); color: var(--cream); padding: 1.1rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band__track { display: flex; width: max-content; will-change: transform; }
.band__track span { display: inline-flex; align-items: center; font-family: var(--f-slab); font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.1; white-space: nowrap; padding-right: .6em; }
.band__track span::after { content: "★"; margin-left: .6em; font-size: .5em; color: var(--brass); }

/* III karte */
.chapter--karte { background: var(--night); color: var(--cream); overflow: clip; }
.menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); max-width: 84rem; margin: 0 auto; align-items: start; }
.page {
  position: relative; padding: 1.6rem 1.6rem 1.3rem; background: var(--cream); color: var(--ink);
  background-image: radial-gradient(rgba(18, 15, 13, .05) 1px, transparent 1px); background-size: 4px 4px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
}
.page--house { transform: rotate(-1.6deg); }
.page--top { transform: rotate(1.2deg); margin-top: 3rem; }
.page--shots { transform: rotate(-.8deg); margin-top: 1rem; }
.page__h { font-family: var(--f-slab); font-weight: 400; font-size: 1.55rem; line-height: 1.1; text-align: center; padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 1.5px solid var(--ink); }
.drinks li { position: relative; display: grid; gap: 0; padding: .42rem 0; border-bottom: 1px dashed var(--line); }
.drinks b { font-weight: 700; font-size: .95rem; line-height: 1.4; letter-spacing: .02em; }
.drinks b em { font-style: normal; font-weight: 400; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-left: .4rem; }
.drinks i { font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.drinks li.is-special b { color: var(--red); }
.stamp { position: absolute; right: -.4rem; top: .1rem; width: 2.3rem; height: 2.3rem; fill: var(--brass); transform: rotate(12deg); }
.drinks--names { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
.drinks--names li { padding: .7rem 0; }
.page__foot { margin-top: 1rem; font-size: .82rem; line-height: 1.5; color: var(--ink-2); font-style: italic; }

/* IV abend */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 84rem; margin: 0 auto; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.tile { position: relative; padding: 2rem 1.6rem 2.2rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: transparent; transition: background .5s var(--ease), color .5s var(--ease); }
.tile svg { width: 5.6rem; height: 5.6rem; margin-bottom: 3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease); }
.tile h3 { font-family: var(--f-slab); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.1; margin-bottom: .7rem; }
.tile p { font-size: .92rem; line-height: 1.6; }
.tile:hover { background: var(--red); color: var(--cream); }
.tile:hover svg { transform: rotate(-12deg) scale(1.08); }

/* V stimmen */
.chapter--stimmen { background: var(--night); color: var(--cream); overflow: clip; }
.coasters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.6rem); max-width: 84rem; margin: 0 auto; }
.coaster {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .8rem;
  padding: 16%; background: var(--cream); color: var(--ink);
  box-shadow: inset 0 0 0 9px var(--cream), inset 0 0 0 11px var(--red), inset 0 0 0 15px var(--cream), inset 0 0 0 16px var(--red), 0 30px 50px -25px rgba(0, 0, 0, .9);
}
.coaster blockquote p { font-size: clamp(.82rem, .95vw, 1rem); line-height: 1.5; font-weight: 700; }
.coaster figcaption { font-family: var(--f-hand); font-size: 1.15rem; font-weight: 600; color: var(--red); }
.coaster--1 { transform: rotate(-8deg); }
.coaster--2 { transform: rotate(5deg) translateY(2rem); }
.coaster--3 { transform: rotate(-3deg) translateY(-.5rem); }
.coaster--4 { transform: rotate(7deg) translateY(1.6rem); }
.no-js .coaster, .coaster.is-live { transition: transform .7s var(--ease); }
.coaster.is-live:hover { transform: rotate(0) scale(1.04); }
.score { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .4rem 1.2rem; margin-top: clamp(4rem, 7vw, 6rem); }
.score__n { font-family: var(--f-slab); font-size: clamp(4rem, 9vw, 8rem); line-height: .9; color: var(--cream); }
.score__s { font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--brass); letter-spacing: .1em; }
.score__t { width: 100%; text-align: center; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 235, 217, .7); }

/* VI besuch */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; max-width: 84rem; margin: 0 auto; }
.visit__sign { display: grid; justify-items: center; gap: 1.2rem; }
.zsign { display: inline-flex; align-items: center; padding: 1.1rem 2.2rem; background: var(--zh-blue); color: #fff; border-radius: 6px; box-shadow: inset 0 0 0 5px var(--zh-blue), inset 0 0 0 8px #fff, 0 24px 40px -22px rgba(18, 15, 13, .6); transform: rotate(-3deg); }
.zsign__name { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 3.4rem); letter-spacing: .01em; line-height: 1.1; }
.visit__plz { font-family: var(--f-hand); font-weight: 600; font-size: 2rem; color: var(--red); transform: rotate(-3deg); }
.visit__addr { font-family: var(--f-slab); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; margin-bottom: 1.2rem; }
.visit__info .status { margin-bottom: 1.4rem; }
.hours { width: 100%; max-width: 30rem; border-collapse: collapse; margin-bottom: 2rem; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px dashed var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 700; }
.visit__cta { display: flex; flex-wrap: wrap; gap: .6rem; }

/* footer */
.ftr { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) var(--gut) 2rem; background: var(--night); color: var(--cream); text-align: center; }
.ftr__star { width: clamp(4rem, 8vw, 6.5rem); height: auto; aspect-ratio: 1; fill: var(--brass); margin: 0 auto 1rem; display: block; }
.ftr__word { font-family: var(--f-slab); font-size: clamp(4rem, 18vw, 19rem); line-height: .9; letter-spacing: -.01em; }
.ftr__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-l); font-size: .88rem; color: rgba(244, 235, 217, .75); text-align: left; }
.ftr__credit { margin-top: 1.4rem; font-size: .8rem; color: rgba(244, 235, 217, .6); text-align: left; }
.ftr__credit a { color: var(--brass); }

/* JS initial states */
.js .hero__word .ch { transform: translateY(110%); }
.js .hero__pre, .js .hero__side, .js .hero__note, .js .hero__info { opacity: 0; }
.js .hero__card { opacity: 0; }
.js .badge { opacity: 0; }

/* responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr__cta { display: none; }
  .hdr__menu { display: inline-block; }
  .hdr { grid-template-columns: 1fr auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coasters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; gap: 2rem; }
  .coaster blockquote p { font-size: clamp(.82rem, 2.2vw, 1rem); }
  .menus { grid-template-columns: 1fr 1fr; }
  .page--shots { grid-column: 1 / -1; max-width: 36rem; justify-self: center; }
}
@media (max-width: 760px) {
  .hero { padding-top: 6.2rem; }
  .hero__row { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
  .hero__title { grid-column: 1 / -1; grid-row: 1; font-size: clamp(3rem, 18.5vw, 7rem); }
  .hero__side { font-size: .72rem; }
  .hero__cardwrap { width: min(80vw, 22rem); margin-top: 2.2rem; }
  .badge { right: -2.6rem; top: auto; bottom: 18%; width: 7.6rem; height: 7.6rem; }
  .badge__num { font-size: 1rem; }
  .hero__info { position: static; justify-items: center; margin-top: 2.4rem; text-align: center; }
  .ch-head { grid-template-columns: 1fr; }
  .ch-head__side { justify-self: center; }
  .bar__text { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .tcard--3 { grid-column: 1 / -1; width: 70%; justify-self: center; }
  .tcard--2 { margin-top: 3rem; }
  .menus { grid-template-columns: 1fr; }
  .page--house, .page--top, .page--shots { transform: rotate(-.6deg); margin-top: 0; }
  .page--top { transform: rotate(.6deg); }
  .tiles { grid-template-columns: 1fr; }
  .tile svg { margin-bottom: 1.4rem; }
  .coasters { grid-template-columns: 1fr; max-width: 20rem; }
  .coaster--2, .coaster--4 { transform: rotate(5deg); }
  .coaster blockquote p { font-size: .95rem; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .drinks--names { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .intro { display: none; }
  .js .hero__word .ch { transform: none; }
  .js .hero__pre, .js .hero__side, .js .hero__note, .js .hero__info, .js .hero__card, .js .badge { opacity: 1; }
}
