/* www.learnalef.com: Alef Hebrew Learning System (Nov 2026).
   Look follows The Hebrew School: background #fffef9, store gray #e0e0db, Recoleta and Poppins. */

@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;
  --gray: #e0e0db;
  --ink: #000;
  --soft: rgba(0,0,0,.62);
  --serif: "Recoleta", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 40px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, calc(36.1px + 0.59vw), 43.65px); line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.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 { background: var(--bg); }
.site-header .bar { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; width: 108px; line-height: 0; }
.logo svg { width: 100%; height: auto; display: block; }
.nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--sans); font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent; line-height: 1.6; }
.nav a:hover { border-bottom-color: currentColor; }

/* Buttons */
.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; }

/* Hero (store gray, as on the old Alef store) */
.hero { background: var(--gray); padding: 96px var(--pad) 0; }
.hero .in { max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; }
.alef-word { display: block; }
.alef-word svg { display: block; width: 594px; max-width: 100%; height: auto; }
.hero .tag { font-size: clamp(24px, 3.02vw, 38.7px); line-height: 1.15; margin-top: 16px; }
.hero .sub { font-family: var(--sans); font-weight: 300; font-size: 17px; margin-top: 18px; max-width: 560px; }
.hero .button { margin-top: 30px; }

/* Slideshow */
.fade-show { background: linear-gradient(var(--gray) 0 62%, var(--bg) 62%); padding: 80px var(--pad) 0; }
.fade-show .frame { position: relative; width: 88%; max-width: 1126px; margin: 0 auto; aspect-ratio: 2500 / 1687; }
.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; }

/* How it works */
.how { max-width: var(--max); margin: 120px auto 0; padding: 0 var(--pad); }
.how h2 { text-align: center; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.steps li { background: #fff; border: 1px solid var(--gray); padding: 34px 30px 30px; }
.steps .n { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: #000; color: #fff; font-family: var(--sans); font-weight: 500; border-radius: 50%; }
.steps h3 { font-size: 24px; line-height: 1.3; margin: 18px 0 10px; }
.steps p { font-family: var(--sans); font-weight: 300; font-size: 15.5px; line-height: 1.75; }

/* Books */
.products { max-width: var(--max); margin: 130px auto 0; padding: 0 var(--pad); scroll-margin-top: 20px; }
.products h2 { text-align: center; }
.products .ship { text-align: center; font-family: var(--sans); font-weight: 300; margin: 8px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 40px auto 0; }
.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; }
.card .ph img.alt { display: none; }
@media (hover: hover) { .card:hover .ph img.main { display: none; } .card:hover .ph img.alt { display: block; } }
.kick { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.card .kick { margin-top: 22px; }
.card .t { font-family: var(--sans); font-weight: 500; font-size: 21px; line-height: 1.35; margin-top: 2px; }
.card .blurb { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.6; margin-top: 4px; }
.card .p { font-family: var(--sans); font-size: 16px; margin-top: 8px; }
.more-info { text-align: center; padding: 140px var(--pad) 0; }
.marquee { overflow: hidden; padding: 120px 0 100px; 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 page */
.product { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 0; }
.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: 48px; align-items: start; }
.gallery { display: grid; grid-template-columns: 50px 1fr; gap: 10px; min-width: 0; }
.thumbs { display: flex; flex-direction: column; gap: 17px; }
.thumbs button { padding: 0; border: 0; background: #fff; width: 50px; height: 50px; cursor: pointer; opacity: .55; }
.thumbs button.on { opacity: 1; outline: 1px solid #000; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.stage { position: relative; background: #fff; aspect-ratio: 1; min-width: 0; }
.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: 8px; } .stage .next { right: 8px; }
.info { font-family: var(--sans); font-weight: 300; font-size: 15.2px; line-height: 1.9; min-width: 0; }
.info h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 3.4vw, 43.5px); line-height: 1.25; margin: 4px 0 12px; }
.info .price { font-weight: 400; font-size: 19px; margin-bottom: 26px; }
.info .buy { width: 100%; margin-top: 26px; font-size: 15.5px; padding: 17px 20px; }
.order-note { font-size: 13px; margin-top: 12px; line-height: 1.6; color: var(--soft); }
.also { margin-top: 110px; padding-bottom: 130px; }

/* Footer */
.site-footer { background: var(--gray); margin-top: 0; padding: 60px var(--pad) 64px; }
.foot-cols { max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.foot-cols .label { font-weight: 600; margin-bottom: 12px; }
.site-footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 404 */
.notfound { text-align: center; padding: 120px var(--pad) 140px; }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); }
.notfound p { margin-top: 24px; }

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  :root { --pad: 22px; }
  .site-header .bar { padding: 20px var(--pad); }
  .logo { width: 84px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero { padding-top: 56px; }
  .fade-show { padding-top: 50px; }
  .fade-show .frame { width: 100%; }
  .how { margin-top: 80px; }
  .how h2, .products h2, .products .ship { text-align: left; }
  .steps { margin-top: 30px; }
  .products { margin-top: 90px; }
  .grid, .grid.two { grid-template-columns: 1fr; gap: 50px; }
  .more-info { padding-top: 100px; text-align: left; }
  .marquee { padding: 80px 0 70px; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; flex-wrap: wrap; gap: 10px; order: 2; }
  .also { margin-top: 80px; padding-bottom: 90px; }
  .foot-cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
  .fade-show img { transition: none; }
}
