/* THE FOUR DOORS UNDER THE SEARCH (owner 2026-10-07/08): Torah = rabbis & speakers, Music = artists, Sefarim = books, WhatsApp = chats.
   One look for the computer home (app/home-doors.tsx) and the phone home (public/m.html). Colours come from the page around it
   (the computer's --gold-500 / --cream-50, the phone's --goldtext), so both looks and both themes keep working.
   The sefer covers: the leather photographs from the owner's sefer kit (2026-10-08) with ArtScroll-style lettering - Cinzel
   Decorative for the English title, Cinzel for the credit line, Stam Ashkenaz CLM for the Hebrew, Drugulin CLM for the volume
   names (Culmus fonts: GPL with the font exception, fonts/CULMUS-LICENSE.txt). */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-600-700-latin.woff2") format("woff2"); font-weight: 600 700; font-display: swap }
@font-face { font-family: "Cinzel Decorative"; src: url("/fonts/cinzel-decorative-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "Stam Ashkenaz"; src: url("/fonts/stam-ashkenaz-clm.ttf") format("truetype"); font-display: swap }
@font-face { font-family: "Drugulin"; src: url("/fonts/drugulin-clm-bold.otf") format("opentype"); font-weight: 700; font-display: swap }

.hdoors { --hd-gold: var(--goldtext, var(--gold-500, #ffc24d)); --hd-green: #3ccf7a; display: grid; gap: 26px; margin: 18px 0 30px; min-width: 0 }
.hdoor { min-width: 0 }
.hdoor > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px }
.hdoor h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 600 20px/1.2 "Sora", "Avenir Next", system-ui, sans-serif }
.hdoor h2 small { font: 500 13.5px "Manrope", system-ui, sans-serif; opacity: .65 }
.hdoor header a, .hdoor header [data-href] { color: var(--hd-gold); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer }
.hdoor header a:hover { text-decoration: underline }
.hd-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent) }
.hd-track { display: flex; gap: 22px; width: max-content; padding-block: 6px 2px; animation: hd-slide var(--dur, 90s) linear infinite }
.hdoor:nth-child(even) .hd-track { animation-direction: reverse }
.hd-strip:hover .hd-track, .hd-strip:focus-within .hd-track { animation-play-state: paused }
@keyframes hd-slide { to { transform: translateX(-50%) } }
.hd-face, .hd-chat, .hd-sefer { flex: none; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; color: inherit; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; font: inherit }
.hd-face { width: 96px }
.hd-face img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; transition: border-color .15s, transform .15s; background: rgba(127,127,127,.15) }
.hd-face:hover img, .hd-face:focus-visible img { border-color: var(--hd-gold); transform: translateY(-2px) }
.hd-face:focus-visible, .hd-chat:focus-visible, .hd-sefer:focus-visible { outline: 0 }
.hd-face span, .hd-chat span { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.hd-chat { width: 104px; position: relative }
.hd-chat img, .hd-chat .hd-ph { width: 78px; height: 78px; border-radius: 20px; object-fit: cover; border: 2px solid transparent; transition: border-color .15s }
.hd-chat:hover img, .hd-chat:focus-visible img { border-color: var(--hd-green) }
.hd-chat .hd-ph { display: grid; place-items: center; background: rgba(60,207,122,.12); color: var(--hd-green); font: 700 26px "Sora", sans-serif }
.hd-chat em { position: absolute; top: -6px; left: 62px; background: var(--hd-green); color: #04130a; font: 700 11px "Manrope", sans-serif; font-style: normal; border-radius: 999px; padding: 2px 7px }
.hd-sefer span { font-size: 12.5px; line-height: 1.3; opacity: .7; max-width: 140px }
.hd-sefer span b { display: block; color: var(--hd-gold); font-weight: 600; opacity: 1 }

/* a sefer: the leather photograph, and the lettering pressed into it. EVERY WORD SITS INSIDE THE GOLD FRAME (owner 2026-10-08 2:05 AM:
   "fix the words on the sfarim it shows a really poor attnetion to detail when you cant figure out how to fit the words on the icon").
   The lettering is a column inside the frame (no fixed spots that collide), and hdFit() (home-doors.tsx / m.html) measures every line
   after the fonts arrive and shrinks it until it fits its width and its number of lines (data-fit). */
.hd-book { position: relative; height: 210px; background-size: cover; background-repeat: no-repeat; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); transition: transform .18s; --fw: 128px }
.hd-book.one { width: 128px; background-image: url("/sefer-covers/sefer-single.webp") } .hd-book.set { width: 210px; background-image: url("/sefer-covers/sefer-set.webp") }
.hd-sefer:hover .hd-book, .hd-sefer:focus-visible .hd-book { transform: translateY(-3px) }
.hd-foil { background: linear-gradient(178deg, #fff4cf 0%, #f0cf7a 28%, #c1903a 55%, #f3d68c 78%, #a87828 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 -0.5px 0 rgba(40,10,5,.85)) drop-shadow(0 0.6px 0 rgba(255,236,190,.3)) }
/* the frame's inside: 20% in from each side, clear of the shaped corners */
.hd-cover { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fw); box-sizing: border-box; pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: calc(var(--fw) * .22) calc(var(--fw) * .2) calc(var(--fw) * .17) }
.hd-cover p { margin: 0; width: 100%; text-align: center; overflow-wrap: normal; word-break: keep-all }
.hd-en { font: 700 calc(var(--fw) * .112)/1.04 "Cinzel Decorative", "Cinzel", Georgia, serif; letter-spacing: .01em }
.hd-sub { margin-top: calc(var(--fw) * .035) !important; font: 600 calc(var(--fw) * .036)/1.3 "Cinzel", Georgia, serif; color: #efe3c4; letter-spacing: .06em; text-transform: uppercase; opacity: .92 }
.hd-mid { flex: 1; width: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center }
.hd-top { font: calc(var(--fw) * .1)/1.05 "Stam Ashkenaz", "Frank Ruhl Libre", serif; direction: rtl; color: #7c4a1e; -webkit-text-stroke: .6px #f0cd7c }
.hd-he { font: calc(var(--fw) * .21)/1.02 "Stam Ashkenaz", "Frank Ruhl Libre", serif; direction: rtl; color: #7c4a1e; -webkit-text-stroke: .9px #f0cd7c;
  text-shadow: 0 1px 0 rgba(255,214,140,.22), 0 -1px 1px rgba(0,0,0,.55) }
.hd-book.one .hd-he { font-size: calc(var(--fw) * .25) }
.hd-cover .hd-rule { width: 78%; height: 5px; margin: calc(var(--fw) * .045) 0 calc(var(--fw) * .03); display: flex; justify-content: center; align-items: center; gap: 3px }
.hd-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #d9b25c 40%, #d9b25c 60%, transparent) }
.hd-rule b { width: 3.5px; height: 3.5px; transform: rotate(45deg); background: #e2bd67 }
.hd-vhe { font: 700 calc(var(--fw) * .072)/1.15 "Drugulin", "Frank Ruhl Libre", serif; direction: rtl }
.hd-ven { font: 700 calc(var(--fw) * .042)/1.2 "Cinzel", Georgia, serif; letter-spacing: .1em; text-transform: uppercase }
.hd-pub { font: 700 calc(var(--fw) * .036)/1 "Cinzel", Georgia, serif; letter-spacing: .22em }
/* the spines: a black label with the title, the volume's label, and a gold medallion with its number */
.hd-spine { position: absolute; top: 0; height: 100%; width: 12.28%; pointer-events: none }
.hd-s-label, .hd-s-vol { position: absolute; left: 17%; right: 17%; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px }
.hd-s-label { height: 25%; } .hd-s-vol { top: 56.6%; height: 6.6%; left: 14%; right: 14% }
.hd-s-label p, .hd-s-vol p { margin: 0; width: 100%; text-align: center; word-break: keep-all }
.hd-s-he { font: 5.6px/1.05 "Stam Ashkenaz", serif; direction: rtl }
.hd-s-en { font: 700 3px/1.15 "Cinzel", serif; letter-spacing: .04em }
.hd-s-vhe { font: 700 4px/1.05 "Drugulin", serif; direction: rtl; color: #f3e6c7 }
.hd-s-ven { font: 700 2.1px/1.1 "Cinzel", serif; color: #e8dcc0; letter-spacing: .03em }
.hd-s-num { position: absolute; top: 64.6%; left: 31%; right: 31%; margin: 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c2, #d9ae55 45%, #9c7124); display: grid; place-items: center;
  font: 800 4.6px/1 Georgia, serif; color: #3a1608; box-shadow: 0 0 0 .5px #6b4a12 }

/* the phone: rows you swipe (a moving row fights a finger), a little smaller */
@media (max-width: 700px) {
  .hdoors { gap: 22px }
  .hd-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; -webkit-overflow-scrolling: touch }
  .hd-strip::-webkit-scrollbar { display: none }
  .hd-track { animation: none; gap: 14px; padding-inline: 2px }
  .hd-track .hd-dup { display: none !important }
  .hd-face { width: 78px } .hd-face img { width: 66px; height: 66px }
  .hd-chat { width: 84px } .hd-chat img, .hd-chat .hd-ph { width: 62px; height: 62px; border-radius: 16px } .hd-chat em { left: 48px }
  .hd-book { height: 160px; --fw: 97.5px } .hd-book.one { width: 97.5px } .hd-book.set { width: 160px }
  .hdoor h2 { font-size: 18px }
}
@media (prefers-reduced-motion: reduce) {
  .hd-track { animation: none } .hd-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none }
  .hd-track .hd-dup { display: none !important }
}

/* the phone's search bar at the top of its home: one tap opens the phone's one search (the same one in the dock) */
.hd-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 0 16px; height: 50px; border-radius: 14px; border: 1.5px solid var(--hd-gold, #ffc24d);
  background: rgba(127,127,127,.08); font: 500 15px "Manrope", system-ui, sans-serif; opacity: .95; cursor: pointer }
.hd-search span { color: var(--goldtext, #ffc24d); font-size: 20px; line-height: 1 }
