/* Reishit — design mockup v1. One stylesheet for home + article. */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #15203a;
  --ink-2: #47506a;
  --rule: #d9cfbb;
  --accent: #b23a2b;        /* weekday: pomegranate */
  --accent-soft: #f3ddd4;
  --on-accent: #fff;
  --olive: #5d6b3a;
  --sky: #2c5d7c;
  --plum: #6a2f45;
  --saffron: #d49a2a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: 24px;
}
/* The site lives on Jewish time: the accent follows the week and the year. */
:root[data-mode="shabbat"] { --accent: #c9891c; --accent-soft: #f6e6c4; --on-accent: #15203a; }
:root[data-mode="hanukkah"] { --accent: #1f4e8c; --accent-soft: #d9e4f3; --on-accent: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.he { font-family: var(--hebrew); direction: rtl; unicode-bidi: isolate; }
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.meta { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }

/* ---------- today bar ---------- */
.today { background: var(--ink); color: #e9e4d8; font-family: var(--sans); font-size: 14px; }
.today .wrap { display: flex; gap: 22px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.today b { color: #fff; font-weight: 600; }
.today .he { font-size: 17px; color: #fff; }
.today .flame { color: var(--saffron); }
.today .loc { margin-left: auto; border-bottom: 1px dotted #8b93a8; }

/* ---------- masthead ---------- */
.mast .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; padding-bottom: 20px; }
.mast .left, .mast .right { display: flex; gap: 22px; align-items: center; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.mast .right { justify-content: flex-end; }
.mast .right a + a { padding-left: 22px; border-left: 1px solid var(--rule); }
.logo { display: flex; align-items: baseline; gap: 12px; }
.logo .en { font-family: var(--serif); font-weight: 700; font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.logo .en i { color: var(--accent); font-style: normal; }
.logo .he { font-size: 30px; color: var(--accent); line-height: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); transition: transform .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* ---------- nav band ---------- */
.nav { background: var(--ink); border-top: 1px solid #2a3654; }
.nav .wrap { display: flex; justify-content: space-between; }
.nav a { color: #fff; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; padding: 18px 4px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.trending { font-family: var(--sans); font-size: 15px; text-align: center; padding: 14px 0; color: var(--ink-2); }
.trending b { color: var(--ink); }
.trending a { margin: 0 10px; border-bottom: 1px solid var(--rule); }
.trending a:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 520px; background: var(--ink); color: #fff; overflow: hidden; }
.hero .panel { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; position: relative; }
.hero .panel .ghost-he { position: absolute; right: -10px; bottom: -70px; font-size: 300px; line-height: 1; color: #fff; opacity: .05; pointer-events: none; }
.hero .kicker { color: var(--saffron); }
.hero h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -.015em; }
.hero .dek { font-size: 21px; color: #d5d9e4; }
.hero .meta { color: #aab2c6; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .photo { overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero:hover .photo img { transform: scale(1.03); }

/* ---------- section head ---------- */
section { padding: 64px 0 0; }
.shead { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 16px; margin-bottom: 28px; }
.shead h2 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.shead a { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--accent); }
.shead a:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-lead { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.card { display: block; transition: transform .2s; }
.card:hover { transform: translateY(-2px); }
.card .pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .pic img { transform: scale(1.03); }
.card .kicker { display: block; margin: 18px 0 8px; }
.card h3 { font-size: 27px; line-height: 1.14; font-weight: 700; letter-spacing: -.01em; }
.card.big h3 { font-size: 40px; line-height: 1.06; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 18px; }
.card .meta { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.listen { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); }
.listen::before { content: ""; width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Typographic cover: for every piece that has no photograph. */
.cover { aspect-ratio: 3 / 2; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; color: #fff; background: var(--plum); }
.cover.olive { background: var(--olive); }
.cover.sky { background: var(--sky); }
.cover.ink { background: var(--ink); }
.cover.accent { background: var(--accent); color: var(--on-accent); }
.cover .he { position: absolute; right: 16px; top: -24px; font-size: 190px; font-weight: 700; line-height: 1; opacity: .2; white-space: nowrap; transition: transform .5s; }
.card:hover .cover .he { transform: translateX(-8px); }
.cover .line { position: relative; font-size: 23px; line-height: 1.25; font-style: italic; max-width: 22ch; }

.stack { display: grid; gap: 28px; align-content: start; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--rule); transition: transform .2s; }
.row:last-child { border: 0; padding-bottom: 0; }
.row:hover { transform: translateY(-2px); }
.row .pic, .row .cover { aspect-ratio: 1; }
.row .pic { overflow: hidden; }
.row .pic img { width: 100%; height: 100%; object-fit: cover; }
.row .cover { padding: 0; }
.row .cover { display: grid; place-items: center; }
.row .cover .he { position: static; font-size: 62px; opacity: .55; }
.row h3 { font-size: 23px; line-height: 1.16; font-weight: 700; }
.row .kicker { display: block; margin-bottom: 6px; }

/* ---------- daily learning ---------- */
.daily { background: var(--ink); color: #fff; margin-top: 72px; padding: 56px 0 64px; }
.daily .shead { border-color: #fff; }
.daily .shead a { color: var(--saffron); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #33405f; border: 1px solid #33405f; }
.tile { background: var(--ink); padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; transition: background .2s; }
.tile:hover { background: #1c2a4a; }
.tile .kicker { color: var(--saffron); }
.tile .he { font-size: 44px; line-height: 1.1; }
.tile h3 { font-size: 25px; font-weight: 700; line-height: 1.15; }
.tile p { color: #b9c0d2; font-size: 17px; }
.tile .go { margin-top: auto; font-family: var(--sans); font-size: 14px; font-weight: 700; color: #fff; }
.tile .go::after { content: " →"; display: inline-block; transition: transform .2s; }
.tile:hover .go::after { transform: translateX(4px); }
.bar { height: 4px; background: #33405f; }
.bar i { display: block; height: 100%; background: var(--saffron); }

/* ---------- ask ---------- */
.ask { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.ask h2 { font-size: 52px; line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }
.ask .lede { margin: 18px 0 26px; font-size: 21px; color: var(--ink-2); }
.qa { border-top: 3px solid var(--ink); }
.qa a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule); transition: transform .2s; }
.qa a:hover { transform: translateX(4px); }
.qa .q { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--accent); line-height: .9; }
.qa h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
.qa .meta { margin-top: 6px; }

/* ---------- holiday ---------- */
.holiday { background: var(--accent-soft); margin-top: 72px; padding: 56px 0 64px; }
.holiday .top { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.count { font-family: var(--serif); font-weight: 700; font-size: 170px; line-height: .8; color: var(--accent); letter-spacing: -.04em; }
.holiday h2 { font-size: 46px; line-height: 1.04; font-weight: 700; }
.holiday .top p { font-size: 21px; margin-top: 10px; color: var(--ink-2); max-width: 46ch; }

/* ---------- listen strip ---------- */
.audio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
.audio a { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--rule); padding: 18px 20px; transition: transform .2s, border-color .2s; }
.audio a:hover { transform: translateY(-2px); border-color: var(--ink); }
.play { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: background .2s; }
.play::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.audio a:hover .play { background: var(--accent); }
.audio h3 { font-size: 21px; line-height: 1.2; font-weight: 600; }

/* ---------- signup ---------- */
.signup { margin-top: 72px; background: var(--ink); color: #fff; padding: 64px 0; }
.signup .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup h2 { font-size: 44px; line-height: 1.05; font-weight: 700; }
.signup p { color: #c3c9d8; margin-top: 12px; font-size: 20px; }
.signup form { display: flex; gap: 10px; }
.signup input { flex: 1; min-width: 0; font: 17px var(--sans); padding: 14px 18px; border-radius: 999px; border: 2px solid #55617f; background: transparent; color: #fff; }
.signup input::placeholder { color: #8f98b0; }
.signup .wa { margin-top: 16px; font-family: var(--sans); font-size: 15px; color: #c3c9d8; }
.signup .wa a { color: #fff; font-weight: 700; border-bottom: 2px solid var(--saffron); }

/* ---------- footer ---------- */
footer { padding: 48px 0 100px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
footer a { display: block; padding: 4px 0; }
footer a:hover { color: var(--accent); }
footer .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; }

/* ---------- mode switch (mockup only) ---------- */
.modes { position: fixed; right: 16px; bottom: 16px; z-index: 9; background: var(--card); border: 1px solid var(--ink); border-radius: 999px; padding: 5px; display: flex; gap: 4px; font-family: var(--sans); font-size: 13px; box-shadow: 0 6px 24px rgba(21, 32, 58, .18); }
.modes button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- article ---------- */
.crumbs { font-family: var(--sans); font-size: 14px; color: var(--ink-2); padding: 22px 0 0; }
.crumbs a { border-bottom: 1px solid var(--rule); }
.crumbs span { margin: 0 8px; }
.ahead { max-width: 900px; margin: 0 auto; padding: 36px var(--gutter) 0; text-align: center; }
.ahead h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.03; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 18px; }
.ahead .dek { font-size: 24px; line-height: 1.4; color: var(--ink-2); }
.byline { display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 26px; font-family: var(--sans); font-size: 15px; text-align: left; }
.byline .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-family: var(--hebrew); font-size: 24px; }
.byline b { display: block; font-size: 16px; }
.byline span { color: var(--ink-2); }
.player { max-width: 760px; margin: 30px auto 0; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 22px 8px 8px; font-family: var(--sans); font-size: 15px; }
.player .track { height: 4px; background: var(--rule); border-radius: 2px; margin-top: 8px; }
.player .track i { display: block; width: 18%; height: 100%; background: var(--accent); border-radius: 2px; }
.afig { max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gutter); }
.afig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.abody { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 72px; justify-content: center; padding-top: 48px; }
.prose { font-size: 21px; line-height: 1.62; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 34px; line-height: 1.12; font-weight: 700; margin-top: 1.6em; letter-spacing: -.01em; }
.prose .first::first-letter { float: left; font-size: 92px; line-height: .8; font-weight: 700; padding: 8px 12px 0 0; color: var(--accent); }
.brief { background: var(--accent-soft); border-left: 5px solid var(--accent); padding: 22px 26px; font-size: 19px; }
.brief h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.brief ul { margin: 0; padding-left: 20px; }
.brief li + li { margin-top: 6px; }
.verse { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 26px 0; text-align: center; }
.verse .he { display: block; font-size: 34px; line-height: 1.5; }
.verse .en { display: block; margin-top: 12px; font-style: italic; font-size: 22px; }
.verse cite { display: block; margin-top: 10px; font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--accent); }
.src { border-bottom: 2px solid var(--accent); font-weight: 600; white-space: nowrap; }
.src:hover { background: var(--accent-soft); }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 26px; border-left: 3px solid var(--ink); font-size: 26px; line-height: 1.35; font-style: italic; }
.aside { font-family: var(--sans); font-size: 15px; display: grid; gap: 28px; align-content: start; position: sticky; top: 24px; align-self: start; }
.box { border-top: 3px solid var(--ink); padding-top: 14px; }
.box h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.box ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.box li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.box li::before { content: counter(s); font: 700 14px var(--sans); color: var(--ink-2); padding-top: 3px; }
.box li.now { font-weight: 700; }
.box li.now::before { color: var(--accent); }
.box .btn { width: 100%; justify-content: center; }
.box p { color: var(--ink-2); margin-bottom: 12px; }
.trust { max-width: 720px; margin-top: 48px; border-top: 3px solid var(--ink); padding-top: 20px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; font-family: var(--sans); font-size: 16px; }
.trust .ava { width: 72px; height: 72px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-family: var(--hebrew); font-size: 36px; }
.trust b { font-family: var(--serif); font-size: 24px; display: block; }
.trust p { color: var(--ink-2); margin-top: 6px; }
.trust .note { margin-top: 12px; font-size: 14px; }
.trust .note a { border-bottom: 1px solid var(--accent); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .grid-lead, .ask, .signup .wrap, .abody { grid-template-columns: 1fr; }
  .hero .photo { order: -1; aspect-ratio: 16 / 9; }
  .hero .panel { padding: 36px 28px 44px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .audio { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .nav .wrap { overflow-x: auto; gap: 26px; justify-content: flex-start; }
  .nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .mast .wrap { grid-template-columns: 1fr auto; }
  .mast .left { display: none; }
  .mast .right a:not(.icon) { display: none; }
  .logo .en { font-size: 34px; }
  .logo .he { font-size: 24px; }
  .today .loc { margin-left: 0; }
  .today .wrap { gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
  .trending { display: none; }
  .grid3, .tiles { grid-template-columns: 1fr; }
  .card.big h3 { font-size: 30px; }
  .row { grid-template-columns: 96px 1fr; gap: 14px; }
  .row .cover .he { font-size: 40px; }
  .shead { flex-direction: column; gap: 6px; }
  .shead h2 { font-size: 28px; }
  .afig img { aspect-ratio: 3 / 2; }
  .ask h2, .holiday h2, .signup h2 { font-size: 34px; }
  .holiday .top { grid-template-columns: 1fr; gap: 16px; }
  .count { font-size: 110px; }
  .signup form { flex-direction: column; }
  .audio a { grid-template-columns: 48px 1fr; }
  .audio a .meta { display: none; }
  .play { width: 48px; height: 48px; }
  .prose { font-size: 19px; }
  .verse .he { font-size: 26px; }
  .player { border-radius: 20px; }
  .byline { justify-content: flex-start; }
  .ahead { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .today, .nav, .trending, .player, .aside, .modes, .signup, footer, .mast .left, .mast .right { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .abody { display: block; }
}
