/* Drashati: the site's one stylesheet, on look.css's tokens and parts. Hebrew, right to left. */
:root {
  --display: 'Archivo Black', 'Noto Sans Hebrew', system-ui, sans-serif;
  --text: 'Space Mono', 'Noto Sans Hebrew', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --heb: 'Noto Sans Hebrew', system-ui, sans-serif;
  --paper: #fbfaf6;
  --ink-soft: #2b2b2b;
  --h1: clamp(2.35rem, 6.4vw, 4.6rem);
  --h2: clamp(1.8rem, 4.6vw, 3.4rem);
  --rhythm: clamp(3.2rem, 7vw, 6.5rem);
  --bad: #b42318;
}
html { scroll-padding-top: 80px; }
body { font-family: var(--heb); font-size: 1.04rem; line-height: 1.65; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { font-weight: 900; font-synthesis: none; letter-spacing: -0.01em; }
h1 { line-height: 1; }
.latin, .num, .price-n { font-family: var(--display); font-weight: 400; }
.brand-name { font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: -0.01em; }
a { text-decoration-thickness: 2px; }
p { max-width: 62ch; }
.skip { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: #000; color: #fff; z-index: 99; white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .6rem 1rem; }
html, body { overflow-x: clip; }
p, li, .hint { text-wrap: pretty; }
.what-grid > *, .price-grid > *, .shot .body > * { min-width: 0; }
.carousel-dots { gap: 0; }
.carousel-dots button { width: 44px; height: 44px; background: transparent; position: relative; border-radius: 0; }
.carousel-dots button::before { content: ''; position: absolute; top: 18px; height: 8px; inset-inline: 16px; background: #000; transition: inset .3s, background .3s; }
.carousel-dots button[aria-current="true"] { width: 44px; background: transparent; }
.carousel-dots button[aria-current="true"]::before { inset-inline: 6px; background: var(--accent); }
.arr { animation: arr .4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes arr { from { opacity: 0; transform: translateY(14px); } }
.top .link { white-space: nowrap; }
@media (max-width: 440px) { .top .link .i { display: none; } .top .link { padding-inline: .35rem; } .top .brand { font-size: 1.1rem; } .top .brand img { width: 34px; height: 34px; } }
.acct .card h2 { line-height: 1.2; margin-bottom: .6rem; }
.draft-title { font-weight: 900; font-size: 1.25rem; margin-bottom: .5em; }

/* the bar on every page */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: var(--bw) solid #000; }
.top { padding-block: .7rem; }
.top .brand { text-transform: none; font-size: 1.3rem; }
.top .brand img { width: 40px; height: 40px; border: 2px solid #000; border-radius: 0; background: #fff; }
.top nav, .top .acts { display: flex; align-items: center; gap: .6rem; }
.top .link { color: #000; font-weight: 700; text-decoration: none; padding: .5rem .6rem; min-height: 44px; display: inline-flex; align-items: center; }
.top .link:hover { text-decoration: underline; }
.top .btn { min-height: 46px; padding: 0 1em; font-size: .95rem; }

/* buttons in Hebrew */
.btn { font-family: var(--heb); font-weight: 900; letter-spacing: 0; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn.white { background: #fff; color: #000; }
.btn.small { min-height: 44px; padding: 0 .9em; font-size: .92rem; box-shadow: 4px 4px 0 #000; }
.btn.small:hover { box-shadow: 6px 6px 0 #000; }
.btn.danger { background: var(--bad); color: #fff; }
[dir="rtl"] .i-nudge { transform: scaleX(1); }
[dir="rtl"] a:hover .i-nudge, [dir="rtl"] .btn:hover .i-nudge { transform: translateX(-4px); }

/* the highlighter: a quoted verse or Rashi */
mark, .hl { background: var(--accent); color: #fff; padding: .05em .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.on-accent mark { background: #fff; color: var(--accent); }
.verse { font-family: var(--heb); font-weight: 700; }
cite.ref { font-style: normal; font-family: var(--heb); font-size: .78em; font-weight: 700; white-space: nowrap; border: 2px solid #000; padding: 0 .3em; margin-inline-start: .3em; background: #fff; color: #000; vertical-align: .1em; }

/* ---- the front page ---- */
.hero { position: relative; }
.hero-band { background: var(--accent); color: #fff; padding-block: clamp(1.6rem, 4vw, 3rem) clamp(9rem, 16vw, 12rem); border-bottom: var(--bw) solid #000; }
.hero h1 { color: #fff; max-width: 21ch; margin-bottom: .35em; }
.hero h1 mark { background: #fff; color: var(--accent); padding: 0 .12em; }
.hero .sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 50ch; color: #fff; margin-bottom: 1.3rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.cta-row .note { font-weight: 700; display: inline-flex; gap: .4em; align-items: center; }
.hero .btn { background: #fff; color: #000; }
.shot-wrap { margin-top: clamp(-10rem, -14vw, -7.5rem); position: relative; z-index: 2; }
.shot { max-height: 600px; background: #fff; }
.shot .bar { background: #000; color: #fff; border-bottom: 0; font-family: var(--heb); font-weight: 700; justify-content: space-between; }
.shot .bar .badge { background: #fff; color: #000; }
.shot .body { display: grid; gap: 1.4rem; max-height: 540px; overflow: hidden; }
.shot .inputs { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35em; border: 2px solid #000; padding: .25em .6em; font-weight: 700; font-size: .92rem; background: var(--bg-2); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rows li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 2px solid #000; align-items: baseline; }
.rows li:last-child { border-bottom: 0; }
.rows .k { font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.rows .v { font-weight: 900; font-size: 1.08rem; }
.rows .v small { font-weight: 400; color: var(--ink-2); font-family: var(--mono); font-size: .85rem; }
.parsha-big { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .95; font-weight: 900; margin: .1em 0 .2em; }
.parsha-big .hl { padding: 0 .15em; }
.summary { font-size: 1rem; }
.draft { border: var(--bw) solid #000; background: var(--paper); padding: 1rem 1.2rem; }
.draft h3 { font-size: 1.25rem; margin-bottom: .5em; }
.draft p { font-size: 1.02rem; }
.shot .more { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; }
@media (min-width: 900px) {
  .shot .body { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
@media (max-width: 899px) { .shot .draft { display: none; } }

/* what sets it apart: the quotes and their check */
.what-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 960px) { .what-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 56ch; }
.paper { background: var(--paper); border: var(--bw) solid #000; box-shadow: var(--card-shadow); padding: clamp(1.1rem, 2.4vw, 1.8rem); min-height: 100%; }
.paper .who { font-weight: 700; color: var(--ink-2); font-size: .9rem; display: flex; gap: .4em; align-items: center; margin-bottom: .4rem; }
.paper h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.paper p { font-size: 1.04rem; line-height: 1.8; }
.carousel .slide { --slide: 100%; }
.carousel-nav [data-prev], .carousel-nav [data-next] { box-shadow: 4px 4px 0 #000; }
.ledger { border: var(--bw) solid #000; background: #fff; box-shadow: var(--card-shadow); }
.ledger h3 { background: #000; color: #fff; margin: 0; padding: .8rem 1rem; font-size: 1.05rem; display: flex; gap: .5em; align-items: center; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .6rem; padding: .7rem 1rem; border-top: 2px solid #000; }
.ledger li:first-child { border-top: 0; }
.ledger .s { grid-row: span 2; color: var(--good); }
.ledger .s.no { color: var(--bad); }
.ledger .q { font-weight: 700; }
.ledger .r { font-size: .86rem; color: var(--ink-2); }
.ledger li.drop .q { text-decoration: line-through; text-decoration-thickness: 2px; }
.ledger .foot { padding: .8rem 1rem; border-top: var(--bw) solid #000; background: var(--bg-2); font-size: .9rem; margin: 0; max-width: none; }

/* how: three steps side by side */
#how { background: var(--bg-2); border-block: var(--bw) solid #000; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: var(--bw) solid #000; padding: var(--pad); box-shadow: var(--card-shadow); }
.steps .i-box { border: 2px solid #000; border-radius: 0; background: var(--accent); color: #fff; }
.steps .step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.steps h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 0; }
.steps p { margin: 0; }

/* price and questions */
.price-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 960px) { .price-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.plan { border: var(--bw) solid #000; box-shadow: var(--card-shadow); background: #fff; }
.plan .top-strip { background: var(--accent); color: #fff; padding: 1.1rem 1.3rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-n { font-size: clamp(3.6rem, 9vw, 6rem); line-height: .9; }
.plan .per { font-weight: 900; font-size: 1.2rem; }
.plan ul { list-style: none; margin: 0; padding: 1.1rem 1.3rem .4rem; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li .i { color: var(--accent); margin-top: .25em; }
.plan .go { padding: 1rem 1.3rem 1.4rem; display: grid; gap: .7rem; }
.plan .go .btn { width: 100%; }
.plan .terms { font-weight: 700; font-size: .92rem; margin: 0; }
#faq h3 { font-size: 1.4rem; }
.qa { border: var(--bw) solid #000; background: #fff; margin-bottom: .8rem; }
.qa summary { cursor: pointer; padding: .9rem 1rem; font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { transition: transform .2s; }
.qa[open] summary .i { transform: rotate(45deg); }
.qa[open] summary { background: var(--bg-2); border-bottom: 2px solid #000; }
.qa p { padding: .8rem 1rem; margin: 0; }
.more-link { font-weight: 900; display: inline-flex; gap: .4em; align-items: center; color: #000; min-height: 44px; }

/* the band */
.band { background: #000; color: #fff; padding-block: clamp(2.6rem, 6vw, 4.5rem); overflow: hidden; }
.band .row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; margin: 0; max-width: 18ch; }
.band .btn { background: var(--accent); color: #fff; border-color: #fff; box-shadow: 6px 6px 0 #fff; }
.band .btn:hover { box-shadow: 9px 9px 0 #fff; }
.parshiot { margin-top: 2rem; font-weight: 900; font-size: 1.15rem; color: #fff; opacity: .75; }
.parshiot > div > span { white-space: nowrap; }

/* footer */
.site-foot { background: #fff; color: #000; border-top: var(--bw) solid #000; padding-block: 2rem 2.4rem; font-size: .95rem; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-start; justify-content: space-between; }
.site-foot .brand { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; color: #000; text-decoration: none; }
.site-foot .brand img { width: 44px; height: 44px; border: 2px solid #000; }
.site-foot a { color: #000; font-weight: 700; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.site-foot .links a { min-height: 44px; display: inline-flex; align-items: center; }
.site-foot .credit { color: var(--ink-2); font-size: .85rem; margin-top: 1rem; max-width: 80ch; }
.syng-legal-links a { padding: .6rem .1rem; display: inline-block; }

/* ---- inner pages ---- */
.page-head { background: var(--accent); color: #fff; padding-block: clamp(1.8rem, 4vw, 3rem); border-bottom: var(--bw) solid #000; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: .2em; }
.page-head p { color: #fff; margin: 0; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.2rem; }
.prose p, .prose li { font-size: 1.05rem; }
.form-card { background: #fff; border: var(--bw) solid #000; box-shadow: var(--card-shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.form-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.form-card .btn { width: 100%; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 700; min-height: 44px; }
.check input { width: 24px; height: 24px; min-height: 0; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; border: 0; padding: 0; margin: 0 0 1rem; }
.seg legend { font-weight: 700; margin-bottom: .35em; padding: 0; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: var(--bw) solid #000; font-weight: 700; cursor: pointer; background: #fff; text-align: center; padding: .3rem .5rem; }
.seg input:checked + span { background: var(--accent); color: #fff; box-shadow: 4px 4px 0 #000; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.msg { border: var(--bw) solid #000; padding: .8rem 1rem; font-weight: 700; margin: 1rem 0; background: var(--bg-2); }
.msg.err { background: #fde8e6; border-color: var(--bad); color: var(--bad); }
.msg.ok { background: #e7f4ec; border-color: var(--good); color: var(--good); }
.hint { font-size: .9rem; color: var(--ink-2); margin-top: .3rem; }
.page main { min-height: 50vh; }

/* ---- the app ---- */
.app-wrap { padding-block: 1.6rem 4rem; }
.kid-card { border: var(--bw) solid #000; box-shadow: var(--card-shadow); background: #fff; margin-bottom: 2rem; }
.kid-card .head { background: var(--accent); color: #fff; padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.kid-card .head h1, .kid-card .head h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
.kid-card .inner { padding: 1.2rem; display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .kid-card .inner { grid-template-columns: 1fr 1fr; } }
.steps-live { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.steps-live li { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.steps-live li.wait { color: var(--ink-2); }
.steps-live li.done .i { color: var(--good); }
.speech-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 1.5rem; }
.speech-item { display: block; color: #000; text-decoration: none; border: var(--bw) solid #000; background: #fff; padding: 1rem; box-shadow: 6px 6px 0 #000; transition: transform .12s, box-shadow .12s; }
.speech-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #000; }
.speech-item h3 { font-size: 1.2rem; margin-bottom: .3em; }
.speech-item .meta { font-size: .88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.new-kinds { display: flex; flex-wrap: wrap; gap: .7rem; }
.upsell { border: var(--bw) solid #000; background: var(--tint); padding: 1.1rem 1.2rem; box-shadow: 6px 6px 0 #000; margin: 1.4rem 0; display: grid; gap: .7rem; }
.upsell h3 { margin: 0; font-size: 1.3rem; }
.upsell p { margin: 0; }
.speech { background: var(--paper); border: var(--bw) solid #000; box-shadow: var(--card-shadow); padding: clamp(1.1rem, 3vw, 2.2rem); }
.speech h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.speech .para { margin: 0 0 1.1em; font-size: 1.12rem; line-height: 1.9; max-width: 68ch; }
.speech .s { cursor: default; border-radius: 0; }
.speech.editable .s { cursor: pointer; }
.speech.editable .s:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.speech .s.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); outline: 2px solid #000; }
.tools { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.2rem; }
.line-tools { display: flex; flex-wrap: wrap; gap: .5rem; border: var(--bw) solid #000; background: #fff; padding: .7rem; margin: .4rem 0 1rem; box-shadow: 4px 4px 0 #000; }
.line-tools textarea { min-height: 5.5em; }
.checked { display: flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--good); }
.flag { color: var(--bad); font-weight: 700; display: flex; gap: .5rem; align-items: center; }
.sources { margin-top: 1.6rem; border-top: var(--bw) solid #000; padding-top: 1rem; }
.sources h2 { font-size: 1.3rem; }
.sources ol { padding-inline-start: 1.2rem; display: grid; gap: .7rem; }
.sources .t { font-weight: 700; font-size: 1.05rem; }
.empty { border: var(--bw) dashed #000; padding: 1.4rem; text-align: center; background: #fff; }
.reader { position: fixed; inset: 0; z-index: 60; background: #fff; overflow: auto; }
.reader .rbar { position: sticky; top: 0; background: #000; color: #fff; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .7rem var(--gutter); }
.reader .clock { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; }
.reader .rtext { width: min(100% - 2 * var(--gutter), 860px); margin: 2rem auto 40vh; }
.reader .rtext p { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.75; margin: 0 0 1.2em; opacity: .45; transition: opacity .3s; max-width: none; }
.reader .rtext p.now { opacity: 1; }
.reader .btn { box-shadow: 4px 4px 0 #fff; border-color: #fff; }
.toast { position: fixed; bottom: 1rem; inset-inline: 1rem; margin-inline: auto; max-width: 520px; z-index: 70; background: #000; color: #fff; padding: .9rem 1.1rem; font-weight: 700; border: 3px solid #fff; box-shadow: 6px 6px 0 var(--accent); }
.row-gap { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.acct section { padding-block: 0; margin-bottom: 1.6rem; }
.acct .card h2 { font-size: 1.4rem; display: flex; gap: .5rem; align-items: center; }

@media print {
  .topbar, .site-foot, .tools, .line-tools, .no-print, .upsell, .kid-card, .crumbs, .toast { display: none !important; }
  body { background: #fff; }
  .speech { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .speech .para { font-size: 16pt; line-height: 1.8; max-width: none; }
  mark { background: none; color: #000; font-weight: 700; border-bottom: 2px solid #000; }
  cite.ref { border: 0; }
}
