@font-face {
  font-family: "Aharoni HR";
  src: url("font/aharoni-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Abril Display";
  src: url("font/abril-display-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --black-2: #151514;
  --white: #eeece8;
  --dim: #9c9994;
  --faint: #605d59;
  --red: #e21d1c;
  --line: rgba(238, 236, 232, 0.14);
  --glow: 0 0 0.05em rgba(255, 255, 250, 0.6), 0 0 0.4em rgba(255, 255, 245, 0.22), 0 0 1.2em rgba(255, 255, 240, 0.1);
  --display: "Aharoni HR", "Arial Hebrew", Arial, sans-serif;
  --text: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --italic: "Abril Display", "Times New Roman", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  /* the vertical title strip pinned to the left edge (image ratio 143:1295) */
  --rail-h: min(88vh, 940px);
  --rail-w: calc(var(--rail-h) * 0.1104);
  --rail-x: clamp(12px, 1.8vw, 28px);
  --rail-space: calc(var(--rail-w) + var(--rail-x) + clamp(14px, 2vw, 32px));
}

* { box-sizing: border-box; }
html { background: var(--black); overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- the vertical title, pinned while scrolling ---------- */
.rail {
  position: fixed;
  left: var(--rail-x);
  top: 50%;
  transform: translateY(-50%);
  height: var(--rail-h);
  width: var(--rail-w);
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 245, 0.18));
}
.rail img { width: 100%; height: 100%; }

/* ---------- stage: photo + dates, like the poster ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
.photo {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  height: 100vh;
  margin: 0;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 30%;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0) 22%),
    linear-gradient(to left, rgba(10, 10, 10, 0) 72%, var(--black));
}
.tour {
  grid-column: 1;
  grid-row: 1;
  padding-inline: var(--gutter);
  padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px);
  min-width: 0;
}

/* ---------- dates ---------- */
.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--white); }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 20px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.25s, padding 0.25s;
}
.shows li:last-child .row { border-bottom: 0; }
.row .l1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
}
.row time { font-variant-numeric: tabular-nums; }
.row .l2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-top: 5px;
  font-size: 16px;
  color: var(--dim);
}
.row .cta {
  font-family: var(--display);
  font-size: 16px;
  white-space: nowrap;
}
a.row .cta {
  background: var(--white);
  color: var(--black);
  padding: 9px 16px 7px;
  transition: box-shadow 0.25s;
}
a.row.info .cta { background: none; color: var(--white); border: 1px solid var(--white); }
a.row:hover { background: var(--black-2); padding-inline: 12px; }
a.row:hover .cta { box-shadow: 0 0 26px rgba(255, 255, 245, 0.45); }
a.row:hover .l1 { text-shadow: var(--glow); }
.row .cta.soon { color: var(--dim); font-family: var(--text); font-size: 15px; }
.show.soldout .l1 { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.show.soldout .cta { color: var(--red); font-size: 18px; }
.show.next .l1 { text-shadow: var(--glow); }
.next-mark {
  align-self: center;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px 2px rgba(226, 29, 28, 0.7);
}
.empty { padding: 36px 0; color: var(--dim); font-size: 19px; }

/* ---------- sections after the stage: one grid, thin white rule between each ---------- */
.block {
  margin-inline: var(--gutter) var(--rail-space);
  border-top: 1px solid var(--white);
  padding-block: clamp(40px, 6vw, 88px);
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 18px;
  text-decoration: none;
  background: var(--white);
  color: var(--black);
  padding: 11px 20px 9px;
  white-space: nowrap;
  transition: box-shadow 0.25s;
}
.btn:hover { box-shadow: 0 0 30px rgba(255, 255, 245, 0.45); }

.album {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(20px, 3vw, 40px);
  align-items: flex-end;
}
.album img { width: min(100%, 620px); aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 80px rgba(255, 255, 245, 0.06); }

.closing { margin-block: 0; }
.closing img { width: 100%; max-height: 86vh; object-fit: cover; object-position: 50% 40%; }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px);
}
.links a {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 1;
  text-decoration: none;
  direction: ltr;
  transition: text-shadow 0.3s;
}
.links a span { font-size: 0.4em; vertical-align: 0.8em; margin-inline-start: 0.08em; color: var(--dim); font-style: normal; }
.links a:hover { text-shadow: var(--glow); }

/* ---------- admin ---------- */
.admin {
  background: var(--white);
  color: var(--black);
  padding-inline: var(--gutter) var(--rail-space);
  padding-block: 24px 28px;
  font-family: var(--text);
  font-size: 15px;
  position: relative;
  z-index: 60;
}
.admin h2 { font-family: var(--display); margin: 0 0 4px; font-size: 26px; }
.admin .hint { margin: 0 0 16px; color: #444; max-width: 72ch; }
.admin-table-wrap { overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; min-width: 980px; }
.admin th { text-align: right; font-weight: 600; font-size: 13px; color: #444; padding: 6px; border-bottom: 1px solid #0a0a0a33; }
.admin td { padding: 5px 6px; border-bottom: 1px solid #0a0a0a1a; vertical-align: middle; }
.admin tr.past td { opacity: 0.45; }
.admin input[type="text"], .admin input[type="url"], .admin input[type="date"], .admin select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #0a0a0a40;
  background: #fff;
  color: var(--black);
  border-radius: 2px;
}
.admin input[type="url"] { direction: ltr; text-align: left; }
.admin .c-date { width: 150px; }
.admin .c-cta { width: 130px; }
.admin .c-sm { width: 60px; text-align: center; }
.admin button {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  padding: 7px 14px;
  border-radius: 2px;
}
.admin button.primary { background: var(--black); color: var(--white); }
.admin button.x { border: none; padding: 4px 8px; font-size: 18px; line-height: 1; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.admin-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 18px; margin-top: 18px; }
.admin-links label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
.admin .status { font-size: 14px; }
.admin .pw { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.admin .pw input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #0a0a0a40; border-radius: 2px; width: 160px; background: #fff; color: var(--black); }
.admin .status.err { color: #b3180f; }
/* the admin needs the full width; the title strip steps aside */
.is-admin .rail { display: none; }
.is-admin .admin { padding-inline: var(--gutter); }

@media (max-width: 860px) {
  :root {
    --rail-h: min(52svh, 430px);
    --rail-x: 10px;
    --rail-space: calc(var(--rail-w) + 22px);
  }
  body { font-size: 16px; }
  .stage { display: block; }

  /* first screen: full-bleed photo with the title strip on its left edge */
  .photo {
    position: relative;
    height: min(86svh, 760px);
    min-height: 520px;
  }
  .photo img { object-position: 50% 22%; }
  .photo::after {
    background:
      linear-gradient(to right, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0) 26%),
      linear-gradient(to bottom, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 0.5) 75%, var(--black) 99%);
  }
  .tour {
    position: relative;
    z-index: 2;
    margin-top: -64px;
    padding-inline: var(--gutter) var(--rail-space);
    padding-block: 0 40px;
  }

  /* rows: tight, one rhythm, compact action on the left */
  .row { column-gap: 12px; padding: 14px 0 12px; }
  .row .l1 { font-size: clamp(20px, 5.8vw, 26px); gap: 2px 9px; }
  .row time { font-size: 0.8em; opacity: 0.92; }
  .row .l2 { font-size: 14px; gap: 0 9px; margin-top: 3px; }
  .row .cta { font-size: 13px; }
  a.row .cta { padding: 7px 10px 5px; }
  .row .cta.soon { font-size: 13px; }
  .show.soldout .cta { font-size: 15px; }
  a.row:hover { padding-inline: 0; background: none; }
  a.row:active { background: var(--black-2); }

  .block { padding-block: 36px; }
  .album { gap: 18px; }
  .closing img { aspect-ratio: 1; max-height: none; }
  .links { flex-direction: column; gap: 4px; padding-block: 28px 56px; }
  .links a { font-size: clamp(50px, 15vw, 76px); align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .row, a.row .cta, .btn, .links a { transition: none; }
}
