* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color: #000;
  background: #fff;
  font-size: 18px;
  line-height: 1.45;
}

a { color: inherit; }
.italic { font-style: italic; }
img { display: block; width: 100%; height: auto; }

/* --- top bar --- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 10px 16px 8px;
}
.bar_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bar_title {
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.langs { display: flex; gap: 6px; flex-shrink: 0; }
.langs button {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 10px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.langs button.active { background: #000; color: #fff; }

/* --- layout --- */
main, .foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  /* kept modest: the hand-lettered hero image above is the real title */
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 16px 0 4px;
}
h2 {
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.text p { margin: 0 0 1em; }

section { margin-bottom: 72px; }

/* spread headline words evenly over the lines, so no word hangs alone */
h2 { text-wrap: balance; }

/* --- route list --- */
.route { margin-top: 20px; }
.label { font-weight: 700; margin-bottom: 8px; }
.route ol { list-style: none; margin: 0; padding: 0; }
.route li { margin-bottom: 6px; }
.route a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF6A13;
  color: #000;
  font-weight: 900;
}
.num { width: 32px; height: 32px; border-radius: 50%; }

/* --- stops --- */
.place {
  font-style: italic;
  font-size: 18px;
}
.stop img { margin-bottom: 20px; }
/* --- footer --- */
.foot {
  padding-bottom: 40px;
  font-size: 15px;
}

/* hebrew */
[dir="rtl"] body { font-family: 'Archivo', Arial, sans-serif; }

/* --- route tracker (in the top bar) --- */
.tracker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.tracker ol {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.tracker a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  color: #000;
  transition: background .2s, color .2s;
}
.tracker a.done { background: #000; color: #fff; }
.tracker a.current { background: #FF6A13; border-color: #FF6A13; color: #000; }
/* --- google maps link --- */
.map_link {
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* --- clickable illustrations + full-screen view --- */
img.zoomable { cursor: zoom-in; }
body.no_scroll { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox_close {
  position: fixed;
  top: 10px;
  inset-inline-end: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 10px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.foot_links { display: flex; flex-direction: column; gap: 6px; }

/* phone held upright: show the (wide) illustration at full screen height and swipe sideways */
@media (max-aspect-ratio: 1/1) {
  .lightbox {
    display: block;
    overflow: auto;
    padding: 56px 0 0;
    -webkit-overflow-scrolling: touch;
  }
  .lightbox img {
    height: calc(100% - 4px);
    max-height: none;
    max-width: none;
  }
}

/* the last stop's "circle is closed" line */
.circle_note { font-weight: 700; margin-top: 24px; }

/* --- slides (phones) --- */
.slide_nav { display: none; }
body.slides .slide { display: none; }
body.slides .slide.active { display: block; }
body.slides section { margin-bottom: 40px; }
body.slides .foot { display: none; }
body.slides.show_foot .foot { display: block; }
body.slides { padding-bottom: 84px; } /* room for the buttons */
body.slides .slide_nav {
  display: flex;
  gap: 10px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
}
.slide_nav button {
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 12px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.slide_nav .slide_prev { flex: 0 0 auto; }
.slide_nav .slide_prev[hidden] { display: none; }
.slide_nav .slide_next { flex: 1 1 auto; background: #000; color: #fff; }

/* a little air between the tracker and the stop title */
.stop { padding-top: 16px; }

/* --- route map (Google My Maps) --- */
.map_frame {
  display: block;
  width: 100%;
  height: min(65vh, 560px);
  border: 0;
  background: #eee;
}
.map_open { margin: 10px 0 0; }

/* --- desktop: title | stop counter (centered) | languages, all in one row --- */
@media (min-width: 761px) {
  html { scroll-padding-top: 80px; }
  .bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
  .bar_top { display: contents; }
  .bar_title { grid-column: 1; grid-row: 1; }
  .tracker { grid-column: 2; grid-row: 1; margin-top: 0; }
  .langs { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* the route map under each stop, zoomed in on that place */
.map_stop { height: min(50vh, 420px); }

/* number in front of each stop title (same orange circle as the tracker) */
.title_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  margin-inline-end: 0.25em;
  border-radius: 50%;
  background: #FF6A13;
  color: #000;
  font-size: 0.8em;
  vertical-align: 0.08em;
}
.stop img { margin-top: 4px; }

/* "where it is" block at the end of each stop */
.where { margin-top: 32px; }
.where_head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 10px;
}

/* hand-lettered title picture above the h1 */
.hero {
  margin-top: 24px;
}

/* h1: "title by authors" as one sentence */
h1 { text-wrap: balance; margin-bottom: 24px; }

/* Studio 18 logo in the footer */
.foot_logo { display: inline-block; margin: 12px 0 0; }
.foot_logo img { width: 93px; height: auto; }
