/* Low Hours: concept site by Joyware Studio.
   A riso flyer wheatpasted on the plywood outside the bar.
   Fonts are self-hosted under the SIL Open Font License (see fonts/OFL-*.txt). */

@font-face {
  font-family: "Dela Gothic One";
  src: url("fonts/dela-gothic-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Inks and paper */
  --pink: #ff48b0;        /* fluorescent pink flood */
  --blue: #006cb0;        /* riso blue on paper */
  --ink: #161c62;         /* blue overprinted on pink */
  --yellow: #ffe800;      /* reserved: tonight */
  --paper: #fbf8f1;       /* the sheet where no ink landed */
  --wall: #2b2723;
  --contact: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.35);

  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.25rem);
  --sheet-pad: clamp(1.25rem, 5vw, 2.75rem);
  --perf: 2px dashed currentColor;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; scrollbar-color: var(--pink) var(--wall); }

body {
  margin: 0;
  background-color: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

:focus-visible { outline: 3px dashed currentColor; outline-offset: 4px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Way back to the Joyware concept list, set straight on the wall. */
.concept-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: -0.6rem;
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.concept-nav a { color: var(--paper); text-decoration-color: rgba(251, 248, 241, 0.5); }
.concept-nav a:hover { color: var(--pink); text-decoration-color: currentColor; }
@media (max-width: 639px) { .concept-nav .credit { display: none; } }

/* The wall and its sheets */
.wall {
  display: grid;
  gap: 1.25rem;
  padding: clamp(0.75rem, 3vw, 2.5rem) var(--gutter) 2rem;
  max-width: 76rem;
  margin: 0 auto;
}

.sheet {
  position: relative;
  padding: var(--sheet-pad);
  box-shadow: var(--contact);
  isolation: isolate;
  /* Wrinkles, paste sheen and paper tooth printed over every sheet's ink. */
  background-image: url("img/paper.webp");
  background-size: cover;
  background-blend-mode: multiply;
}
.sheet-pink { background-color: var(--pink); color: var(--ink); }
.sheet-paper { background-color: var(--paper); color: var(--ink); }
.sheet-blue { background-color: var(--blue); color: var(--paper); }

/* Sheets pasted later sit over the bottom of the ones before. */
.sheet-hero { position: relative; z-index: 1; transform: rotate(-0.8deg); }
.sheet-hero .face { box-shadow: none; container-type: inline-size; }
.sheet-hero { filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.sheet-room { z-index: 2; transform: rotate(0.6deg); }
.sheet-menu { z-index: 3; margin-top: -2.25rem; transform: rotate(-0.4deg); }
.sheet-book { z-index: 4; margin-top: -2rem; transform: rotate(0.5deg); }

/* Hero sheet */
.name {
  position: relative;
  font-family: var(--display);
  font-size: clamp(3rem, 20cqi, 9rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
}
.name span { display: block; }
/* The blue pass landed a hair off the knockout: a sliver of paper shows. */
.name::before {
  content: attr(data-ink);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--paper);
  transform: translate(-0.035em, -0.03em);
  word-spacing: 100vw;
}

.tagline {
  margin-top: 1rem;
  font-family: var(--text);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem);
  line-height: 1.2;
}

/* Photos are two-ink riso separations made by design/low-hours/make-assets.js. */
.duo { margin: 1.5rem 0 0; }
.duo img { width: 100%; object-fit: cover; }
.duo-hero img { aspect-ratio: 4 / 3; object-position: 50% 55%; }
.duo-room img { aspect-ratio: 3 / 2; }
.duo-menu img { aspect-ratio: 4 / 3; }

.offer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 0.9rem + 2.4vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.tonight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.where { font-weight: 600; line-height: 1.35; }

/* The tonight stamp: inked through rubber grain onto a pasted yellow patch.
   Its form carries the state; yellow marks it as tonight. */
.patch { position: relative; display: inline-block; padding: 0.55rem 0.7rem; }
.patch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  box-shadow: var(--contact);
  transform: rotate(2.5deg);
}
.stamp {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-3deg);
  -webkit-mask-image: url("img/stamp-mask.png");
  mask-image: url("img/stamp-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.stamp[data-state="open"] { background: var(--ink); color: var(--yellow); }
.stamp[data-state="last-call"] {
  background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, transparent 6px 12px);
  color: var(--ink);
}
.stamp[data-state="last-call"] span { background: var(--yellow); padding: 0 0.25em; }
.stamp[data-state="closed"] { background: transparent; color: var(--ink); border-style: dashed; }

/* Tear-off tabs: separate strips cut up to the perforation, each hanging at its own
   angle with a torn bottom edge, so the wall shows through the slits. */
.tabs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 6px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.75rem 0.4rem 0.9rem;
  border-top: var(--perf);
  background-color: var(--pink);
  background-image: url("img/paper.webp");
  background-size: 600px auto;
  background-blend-mode: multiply;
  color: var(--ink);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform-origin: 50% 0;
  -webkit-mask-image: url("img/tab-edge.png");
  mask-image: url("img/tab-edge.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background-color 0.2s var(--ease);
}
.tabs .tab:nth-child(1) { transform: rotate(0.6deg); }
.tabs .tab:nth-child(2) { transform: rotate(-1.1deg); }
.tabs .tab:nth-child(3) { transform: rotate(0.9deg); }
.tabs .tab:nth-child(4) { transform: rotate(-0.6deg); }
.tab:hover { background-color: #f03aa2; }
.tab-reserve { background-color: var(--ink); color: var(--pink); font-size: 1.15rem; }
.tab-reserve:hover { background-color: #0e1347; }
.tabs .tab.is-torn { transform: translate(0.4rem, 1.5rem) rotate(9deg); opacity: 0; }

/* Room sheet */
.sheet-room h2, .sheet-menu h2, .sheet-book h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sheet-room h2 { color: var(--blue); }
.room-body { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 40rem; font-size: 1.15rem; }

/* Menu sheet */
.menu-note { margin-top: 1rem; max-width: 36rem; font-size: 1.1rem; }
.menu-cols { display: grid; gap: 2.5rem; margin-top: 2rem; }
.menu-col { display: grid; align-content: start; }
.menu-col h3 {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.menu-col h3:not(:first-child) { margin-top: 2rem; }
.items { list-style: none; margin: 0; padding: 0; }
.items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: var(--perf);
  border-bottom-color: rgba(251, 248, 241, 0.55);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
}
.items small { display: block; margin-top: 0.15rem; font-size: 0.85rem; font-weight: 600; font-stretch: 85%; letter-spacing: 0.08em; text-transform: uppercase; }
.price { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* Book sheet */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1.15rem;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.9;
}
.steps strong { font-weight: 800; }

.press {
  margin-top: 1.75rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  border: 0;
  background: var(--ink);
  color: var(--pink);
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.press:hover { background: #0e1347; }
.press:active { transform: translateY(2px) rotate(-1deg); }

.visit { margin-top: 3rem; padding-top: 2rem; border-top: var(--perf); display: grid; gap: 1.5rem; }
.hours { margin: 0; display: grid; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.5rem;
  border-bottom: var(--perf);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.hours dt { font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.hours dd { margin: 0; font-weight: 500; }
.hours .is-today { background: var(--yellow); }
.hours .is-today dt::after { content: " · today"; font-weight: 600; text-transform: none; letter-spacing: 0; }
address { font-style: normal; display: grid; gap: 0.3rem; font-size: 1.15rem; font-weight: 600; }

/* Concept notice: a paper sticker slapped on the wall */
.sticker {
  position: relative;
  z-index: 5;
  margin-top: -1.5rem;
  justify-self: start;
  max-width: 34rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-1.5deg);
  box-shadow: var(--contact);
  background-image: url("img/paper.webp");
  background-size: 700px auto;
  background-blend-mode: multiply;
  font-size: 0.98rem;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 5.5rem;
}
.sticker a { font-weight: 700; }
.credits { font-size: 0.9rem; }

/* A pasted Reserve strip that follows on phones */
.strip {
  position: fixed;
  inset: auto 0.75rem calc(0.6rem + env(safe-area-inset-bottom)) 0.75rem;
  z-index: 20;
  display: grid;
  box-shadow: var(--contact);
  transform: translateY(150%) rotate(-0.8deg);
  transition: transform 0.4s var(--ease);
}
.strip .tab { min-height: 3.5rem; border-top: 0; -webkit-mask-image: none; mask-image: none; }
.strip.is-visible { transform: rotate(-0.8deg); }

/* Booking dialog: a paper sticker over everything */
.note {
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 1.75rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-1deg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}
.note::backdrop { background: rgba(43, 39, 35, 0.75); }
.note h2 { font-family: var(--display); font-size: 1.8rem; line-height: 1; text-transform: uppercase; margin-bottom: 1rem; color: var(--blue); }
.note p { margin-bottom: 0.9rem; }
.note a { font-weight: 700; }
.note form { margin: 0; }
.note .press { margin-top: 0.5rem; }

@media (min-width: 900px) {
  .wall {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
  .sheet-room { margin-top: 3rem; }
  .duo-hero img { aspect-ratio: 2 / 1; object-position: 50% 72%; }
  .wall { padding-top: 0.75rem; }
  .concept-nav { margin-bottom: -0.9rem; }
  .sheet-hero .offer { margin-top: 1rem; }
  .sheet-hero .tonight { margin-top: 1rem; }
  .sheet-hero .duo { margin-top: 1.1rem; }
  .sheet-menu, .sheet-book { grid-column: 1 / -1; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .sheet-book { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 3.5rem; }
  .sheet-book > h2, .sheet-book > .steps, .sheet-book > .press { grid-column: 1; }
  .sheet-book > .press { justify-self: start; }
  .visit { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; border-top: 0; }
  .strip { display: none; }
  .sticker { margin-bottom: 1rem; }
  .sheet-menu { margin-top: -2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
