/* The Hebrew School: plain rebuild of the Squarespace look (Nov 2026).
   Colors, fonts and sizes measured from the live thehebrewschool.org site. */

@font-face { font-family: "Recoleta"; src: url("../fonts/Recoleta-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Recoleta"; src: url("../fonts/Recoleta-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Recoleta"; src: url("../fonts/Recoleta-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Recoleta"; src: url("../fonts/Recoleta-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #fffef9;          /* site background, hsl(50,100%,98.8%) */
  --ink: #000;
  --light: #e0e0db;       /* "light" section color used on the Alef store */
  --serif: "Recoleta", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 40px;            /* page side padding (header, footer, wide headings) */
  --max: 1280px;
  --h1: clamp(32px, calc(30.3px + 2.48vw), 62.08px);
  --h2: clamp(32px, calc(36.1px + 0.59vw), 43.65px);
  --h3: clamp(26px, calc(26.56px + 0.615vw), 34.43px);
  --h4: clamp(18px, calc(17.76px + 0.1vw), 19.07px);
  --large: clamp(20px, calc(19.52px + 0.2045vw), 22.14px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.8;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--h1); line-height: 1.232; }
h2 { font-size: var(--h2); line-height: 1.3; }
h3 { font-size: var(--h3); line-height: 1.333; }
h4 { font-size: var(--h4); line-height: 1.389; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.large { font-size: var(--large); line-height: 1.8; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; background: #000; color: #fff; padding: 12px 20px; font-family: var(--sans); z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.site-header .bar {
  max-width: var(--max); margin: 0 auto; padding: 29px var(--pad) 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; width: 79px; height: 80px; }
.logo img { width: 79px; height: 80px; object-fit: contain; }
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 19px; }
.nav a, .menu-overlay nav a {
  font-family: var(--serif); font-weight: 600; text-decoration: none; line-height: 1.8;
  border-bottom: 1px solid transparent;
}
.nav a { font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.social { display: flex; gap: 19px; align-items: center; }
.social a { display: block; width: 20px; height: 20px; }
.social svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.burger { display: none; background: none; border: 0; padding: 8px 6px; width: 47px; height: 37px; cursor: pointer; color: var(--ink); }
.burger span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 15; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.menu-overlay nav { display: flex; flex-direction: column; align-items: center; gap: 23px; }
.menu-overlay nav a { font-size: 33px; line-height: 1; }
.menu-overlay .social a { width: 25px; height: 25px; }
.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Page blocks ---------- */
main { display: block; }
.block { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
main > .space-sm { margin-top: 60px; }
main > .space { margin-top: 120px; }
main > .space-lg { margin-top: 240px; }
main > .space-md { margin-top: 200px; }
.center { text-align: center; }

.hero-img { max-width: var(--max); margin: 55px auto 0; padding: 0 var(--pad); }
.hero-img img { width: 88%; max-width: 1126px; margin: 0 auto; }

/* image + text side by side (Squarespace "card" image blocks) */
.split {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 540fr 160fr 540fr; align-items: center;
}
.split > .media { grid-column: 1; }
.split > .copy { grid-column: 3; }
.split.flip > .media { grid-column: 3; grid-row: 1; }
.split.flip > .copy { grid-column: 1; grid-row: 1; }
.split .media img { width: 100%; }
.copy h3 { margin-bottom: 34px; }
.copy .large { margin-bottom: 15px; }

.button {
  display: inline-block; background: #000; color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em;
  padding: 21px 42px; text-align: center;
}
.button:hover { opacity: .8; }
.button.lg { font-size: 17.5px; padding: 22px 41px; }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--max); margin: 152px auto 0; padding: 43px var(--pad) 60px; }
.site-footer h4 { margin-bottom: 35px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.foot-cols .label { font-weight: 600; margin-bottom: 15px; }
.foot-cols p { line-height: 1.8; }
.site-footer a, .text-links a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- Details collage / store slideshow ---------- */
.fade-show { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.fade-show .frame { position: relative; width: 88%; max-width: 1126px; margin: 0 auto; aspect-ratio: 1123 / 675; }
.fade-show img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.fade-show img.on { opacity: 1; }

/* ---------- Why page ---------- */
.why-banner { max-width: var(--max); margin: 0 auto; padding: 0 38px; }
.why-banner img { width: 100%; height: 417px; object-fit: cover; }
.why-copy { font-size: 16px; }

/* ---------- Contact ---------- */
.contact { max-width: var(--max); margin: 60px auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 97px; align-items: start; }
.contact h2 { margin: 30px 0 34px; }
.contact .intro { max-width: 480px; }
.contact .social { margin-top: 30px; gap: 12px; }
.contact .social a { width: 20px; height: 20px; }
.form { font-family: var(--sans); font-weight: 300; margin-top: 24px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form .title { font-size: 16px; line-height: 1.8; padding: 0; margin-bottom: 4px; display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: block; }
.form .cap { font-size: 12px; display: block; margin-bottom: 6px; }
.form .req { color: rgba(0,0,0,.6); margin-left: .5em; }
.form .field { margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 6px 0; height: 40px; outline: none;
}
.form textarea { height: 100px; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-width: 2px; }
.form .button { margin-top: 6px; padding: 21px 45px; }
.form-note { font-size: 13px; margin-top: 14px; line-height: 1.6; }

/* ---------- Donate ---------- */
.donate { max-width: 900px; margin: 96px auto 0; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.donate h2 { margin-bottom: 32px; }
.donate .button { margin-top: 18px; padding: 21px 45px; }

/* ---------- Alef viewer ---------- */
.alef-embed { max-width: var(--max); margin: 70px auto 0; padding: 0 var(--pad); }
.alef-embed iframe { display: block; width: 100%; aspect-ratio: 2450 / 1702; height: auto; border: 1px solid #777; }

/* ---------- Store ---------- */
.store-page { background: var(--light); }
.store-page .site-header, .store-page .site-footer-wrap { background: var(--bg); }
.store-page .site-footer { margin-top: 0; padding-top: 88px; }
.store-top { max-width: var(--max); margin: 0 auto; padding: 107px 91px 0; }
.alef-word { width: 594px; max-width: 100%; display: block; }
.alef-word svg { display: block; width: 100%; height: auto; }
.store-top .tag { font-size: clamp(24px, 3.02vw, 38.7px); line-height: 1; margin-top: 13px; }
.store-show { margin-top: 104px; }
.store-show .frame { background: transparent; }
.products { max-width: var(--max); margin: 57px auto 0; padding: 0 var(--pad); }
.products h2 { text-align: center; margin-bottom: 7px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { text-decoration: none; display: block; }
.card .ph { aspect-ratio: 1; background: #fff; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card .ph img.alt { display: none; }
.card:hover .ph img.main { display: none; }
.card:hover .ph img.alt { display: block; }
.card .t { font-family: var(--sans); font-weight: 500; font-size: 19.07px; line-height: 1.4; letter-spacing: -0.01em; margin-top: 25px; }
.card .p { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.2; margin-top: 8px; }
.more-info { text-align: center; padding: 320px 0 0; }
.marquee { overflow: hidden; padding: 160px 0 110px; white-space: nowrap; }
.marquee .track { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee span { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 9.65vw, 123.5px); line-height: 1.4; letter-spacing: -0.01em; padding-right: .35em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* product pages */
.product { max-width: var(--max); margin: 0 auto; padding: 46px 40px 120px; }
.crumbs { font-family: var(--sans); font-weight: 300; font-size: 14.5px; margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 6px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 39px; align-items: start; }
.gallery { display: grid; grid-template-columns: 50px 1fr; gap: 10px; }
.thumbs { display: flex; flex-direction: column; gap: 17px; }
.thumbs button { padding: 0; border: 0; background: #fff; width: 50px; height: 50px; cursor: pointer; opacity: .6; }
.thumbs button.on { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.stage { position: relative; background: #fff; aspect-ratio: 541 / 722; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.stage img.on { display: block; }
.stage .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; width: 44px; height: 70px; padding: 10px; }
.stage .arrow svg { width: 100%; height: 100%; stroke: #000; fill: none; stroke-width: 1.2; }
.stage .prev { left: 14px; } .stage .next { right: 14px; }
.info { font-family: var(--sans); font-weight: 300; font-size: 15.2px; line-height: 1.9; }
.info h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(30px, 3.4vw, 43.5px); line-height: 1.4; letter-spacing: 0; margin-bottom: 14px; }
.info .price { font-weight: 400; font-size: 18.4px; margin-bottom: 30px; }
.info p { margin-bottom: 1.2em; }
.info .button { width: 100%; margin-top: 8px; font-size: 15.5px; padding: 16px 20px; }
.order-note { font-size: 13px; margin-top: 12px; line-height: 1.6; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px var(--pad) 0; }
.notfound p { margin-top: 24px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .nav-right { gap: 24px; }
  .contact { gap: 48px; }
}
@media (max-width: 799px) {
  :root { --pad: 23px; }
  .site-header .bar { padding: 23px var(--pad) 24px; }
  .nav-right .nav, .nav-right .social { display: none; }
  .burger { display: block; margin-right: -6px; }
  .hero-img { margin-top: 36px; }
  .hero-img img { width: 100%; }
  main > .space { margin-top: 70px; }
  main > .space-lg { margin-top: 130px; }
  main > .space-md { margin-top: 110px; }
  .split, .split.flip { grid-template-columns: 1fr; padding: 0 var(--pad); }
  .split > .media, .split.flip > .media { grid-column: 1; grid-row: 1; }
  .split > .copy, .split.flip > .copy { grid-column: 1; grid-row: 2; margin-top: 42px; }
  .copy h3 { margin-bottom: 26px; }
  .site-footer { margin-top: 110px; }
  .foot-cols { grid-template-columns: 1fr; gap: 30px; }
  .fade-show .frame { width: 100%; }
  .why-banner { padding: 0 var(--pad); }
  .why-banner img { height: 200px; }
  .contact { grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
  .donate { grid-template-columns: 1fr; margin-top: 40px; padding: 0 var(--pad); }
  .donate .media { grid-row: 1; }
  .store-top { padding: 60px var(--pad) 0; }
  .store-show { margin-top: 60px; }
  .grid { grid-template-columns: 1fr; gap: 50px; }
  .more-info { padding: 150px var(--pad) 0; text-align: left; }
  .products h2 { text-align: left; }
  .marquee { padding: 90px 0 70px; }
  .product { padding: 30px var(--pad) 80px; }
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; flex-wrap: wrap; gap: 10px; order: 2; }
  .alef-embed { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .fade-show img { transition: none; }
}
