/* TorahScrollForSale.com – shared styles. Contrast checked to WCAG 2.1 AA. */
:root{
  --ink:#142033; --paper:#FBFAF7; --sand:#F1EEE6; --line:#DCD8CC;
  --muted:#4A5264; --gold:#A06F1E; --gold-light:#D9B26A; --green:#1E6E47;
  --display:"Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --body:"Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.6}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--ink)} a:hover{color:var(--gold)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:12px 16px;z-index:100}
.skip:focus{left:16px;top:16px}
.wrap{max-width:1240px;margin:0 auto;padding-inline:24px}
h1,h2,h3{font-family:var(--display);line-height:1.15;text-wrap:balance;margin:0}
h2{font-size:clamp(1.9rem,4vw,2.5rem);font-weight:700}
p{margin:0}
.eyebrow{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#7E5510}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border-radius:6px;font-weight:700;text-decoration:none;border:0;cursor:pointer;font:inherit;font-weight:700}
.btn-dark{background:var(--ink);color:var(--paper)} .btn-dark:hover{background:#22314d;color:#fff}
.btn-gold{background:#8A5E17;color:#fff;width:100%;font-size:1.0625rem} .btn-gold:hover{background:#6F4B12;color:#fff}
.btn-outline{border:2px solid var(--ink);color:var(--ink);background:transparent}

/* referral notice */
.notice-bar{background:#142033;color:#F3F1EA;font-size:.85rem;text-align:center}
.notice-bar .wrap{padding-block:8px}

/* header */
.site-header{border-bottom:1px solid #E4E1D8;background:var(--paper)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:16px}
.logo{text-decoration:none;display:flex;flex-direction:column}
.logo b{font-family:var(--display);font-weight:900;font-size:1.5rem;letter-spacing:-.01em}
.logo b span{color:var(--gold)}
.logo small{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.nav{display:flex;flex-wrap:wrap;gap:8px 22px;font-weight:600;font-size:.95rem}
.nav a{text-decoration:none;padding-block:10px}
.header-cta{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.wa{display:inline-flex;align-items:center;gap:6px;font-weight:600;text-decoration:none;min-height:44px}

/* hero */
.hero{background:var(--ink);color:#F3F1EA}
.hero .wrap{display:flex;flex-wrap:wrap;gap:56px;padding-block:72px 80px;align-items:flex-start}
.hero-copy{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero .eyebrow{color:var(--gold-light)}
.hero h1{font-size:clamp(2.4rem,5.5vw,3.75rem);font-weight:900;letter-spacing:-.015em}
.hero-lede{font-size:1.25rem;color:#D3D8E3;max-width:34em}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.checks li{display:flex;gap:10px;align-items:flex-start}
.checks svg{flex:none;margin-top:4px}
.hero-media{border-radius:8px;overflow:hidden;background:#1C2B45}
.hero-media video,.hero-media img{width:100%;aspect-ratio:16/9;object-fit:cover}

/* form */
.match{flex:1 1 380px;min-width:0;background:var(--paper);color:var(--ink);border-radius:10px;padding:32px;display:flex;flex-direction:column;gap:16px;box-shadow:0 24px 48px rgba(0,0,0,.25)}
.match h2{font-size:1.75rem}
.match .hint{font-size:.95rem;color:var(--muted)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:480px){.grid2{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:600}
.field input,.field select,.field textarea{font:inherit;font-weight:400;padding:10px;border:1px solid #9C978A;border-radius:6px;background:#fff;min-height:44px;color:var(--ink)}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:.85rem;color:#3C4456}
.consent input{width:20px;height:20px;margin-top:2px;flex:none}
.small{font-size:.8rem;color:var(--muted)}
.form-status{font-weight:600}
.hidden{display:none}

/* sections */
.strip{background:var(--sand);border-bottom:1px solid #E4E1D8}
.strip .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;padding-block:28px}
.strip b{font-family:var(--display);font-size:1.25rem;display:block}
.strip span{font-size:.95rem;color:var(--muted)}
.section{padding-block:80px;display:flex;flex-direction:column;gap:32px}
.section-head{display:flex;flex-direction:column;gap:8px}
.section-head p{color:var(--muted);max-width:40em}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.card{text-decoration:none;border:1px solid var(--line);border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:10px;background:#fff}
.card:hover{border-color:var(--gold)}
.card h3{font-size:1.5rem}
.card p{font-size:.95rem;color:var(--muted)}
.listings{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.listing{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}
.listing img{aspect-ratio:4/3;object-fit:cover;width:100%;background:#EDE9DF}
.listing .body{padding:20px;display:flex;flex-direction:column;gap:10px}
.listing .top{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.85rem;color:var(--muted);font-weight:600}
.pill{font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:99px;border:1px solid var(--green);color:var(--green)}
.listing dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;font-size:.9rem}
.listing dt{color:var(--muted)} .listing dd{margin:0;font-weight:600}
.listing .foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:8px;border-top:1px solid #ECE8DE}
.price{font-size:1.15rem;font-weight:700}
.how{background:var(--sand)}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:32px}
.steps li{display:flex;flex-direction:column;gap:10px}
.steps .n{font-family:var(--display);font-size:2.75rem;font-weight:900;color:var(--gold);line-height:1}
.steps strong{font-size:1.25rem}
.steps span{color:var(--muted)}
.faq{max-width:880px;margin:0 auto}
.faq details{border-bottom:1px solid var(--line);padding-block:18px}
.faq summary{cursor:pointer;font-weight:700;font-size:1.15rem;min-height:44px;display:flex;align-items:center}
.faq details p{color:var(--muted);margin-top:8px}

/* footer */
.site-footer{background:var(--ink);color:#C9CEDA;font-size:.9rem}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;padding-block:48px}
.site-footer a{color:#F3F1EA;text-decoration:none} .site-footer a:hover{text-decoration:underline;color:#fff}
.site-footer nav{display:flex;flex-direction:column;gap:8px}
.foot-brand{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:10px}
.foot-brand b{font-family:var(--display);font-weight:900;font-size:1.4rem;color:#F3F1EA}
.foot-brand b span{color:var(--gold-light)}

/* legal pages */
.legal{max-width:780px;margin:0 auto;padding-block:64px;display:flex;flex-direction:column;gap:16px}
.legal h1{font-size:2.4rem}
.legal h2{font-size:1.4rem;margin-top:16px}
.legal ul{margin:0;padding-inline-start:22px}
.placeholder{background:#FFF3D6;padding:0 4px}

/* hero illustration */
.hero-media{position:relative;margin:8px 0 0}
.hero-media svg{width:100%;height:auto;display:block;aspect-ratio:16/9}
.hero-media figcaption,.live-media figcaption{position:absolute;left:12px;bottom:12px;background:rgba(20,32,51,.85);color:#F3F1EA;font-size:.75rem;padding:4px 10px;border-radius:99px}
@keyframes quill{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(-8px,7px) rotate(-4deg)}}
@keyframes ink{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.quill{animation:quill 3.4s ease-in-out infinite;transform-box:fill-box;transform-origin:20% 90%}
.ink{animation:ink 3.4s ease-in-out infinite}

/* compare scripts and levels */
.compare{background:var(--sand);border-block:1px solid #E4E1D8}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.opt{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.opt.on{border:2px solid var(--gold)}
.zoom-btn{all:unset;cursor:zoom-in;display:block;position:relative;background:#EADFC3}
.zoom-btn:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.zoom-btn svg{width:100%;height:auto;display:block}
.zoom-tag{position:absolute;right:12px;bottom:12px;background:rgba(20,32,51,.88);color:#fff;font-size:.8rem;font-weight:700;padding:8px 12px;border-radius:6px;display:flex;gap:6px;align-items:center}
.opt-body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1}
.opt-body h3{font-size:1.4rem}
.opt-body .who{font-size:.875rem;color:#7E5510;font-weight:700}
.opt-body p{font-size:.95rem;color:var(--muted);flex:1}
.pick{margin-top:8px;min-height:44px;border-radius:6px;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer;border:2px solid var(--ink);background:#fff;color:var(--ink)}
.pick[aria-pressed="true"]{background:var(--ink);color:#fff}
.choice{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;background:var(--ink);color:#F3F1EA;border-radius:10px;padding:20px 24px}
.choice p{flex:1 1 320px}
.btn-gold-sm{background:#8A5E17;color:#fff} .btn-gold-sm:hover{background:#6F4B12;color:#fff}
dialog.zoom{border:0;padding:24px;background:transparent;width:min(1100px,96vw);max-width:none}
dialog.zoom::backdrop{background:rgba(10,16,28,.92)}
.zoom-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#F3F1EA;margin-bottom:12px}
.zoom-head strong{font-family:var(--display);font-size:1.4rem}
.zoom-close{min-width:44px;min-height:44px;padding:0 14px;border-radius:6px;border:2px solid #F3F1EA;background:transparent;color:#F3F1EA;font:inherit;font-weight:700;cursor:pointer}
dialog.zoom svg{width:100%;height:auto;max-height:75vh;border-radius:8px;display:block;background:#F6EDD4}

/* live viewing */
.live{background:var(--ink);color:#F3F1EA}
.live .wrap{display:flex;flex-wrap:wrap;gap:48px;padding-block:80px;align-items:flex-start}
.live-copy{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:22px}
.live .eyebrow{color:var(--gold-light)}
.live h2{font-size:clamp(2rem,4.5vw,2.75rem);font-weight:900}
.live-media{position:relative;margin:0;border-radius:12px;overflow:hidden}
.live-media svg{width:100%;height:auto;display:block;aspect-ratio:16/9}
.live-media figcaption{left:auto;right:12px}
.live-tag{position:absolute;left:14px;top:14px;background:#B3261E;color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.08em;padding:5px 10px;border-radius:4px;display:flex;gap:6px;align-items:center}
.pulse{width:8px;height:8px;border-radius:50%;background:#fff;display:inline-block;animation:pulse 1.6s ease-in-out infinite}
.checks.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 24px}
.book h3{font-family:var(--display);font-size:1.6rem}
.chips{border:0;margin:0;padding:0}
.chips legend{font-size:.9rem;font-weight:600;margin-bottom:8px;padding:0}
#b-days{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;min-width:64px;padding:6px 10px;border-radius:6px;border:2px solid var(--ink);background:#fff;color:var(--ink);font:inherit;font-weight:700;font-size:.875rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2}
.chip small{font-weight:400;font-size:.75rem}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}

/* example listings */
.listing-media{background:#E7E1D3}
.listing-media svg{width:100%;height:auto;display:block;aspect-ratio:4/3}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
