/* Netzach sign-up preview: the app's settled look (Midnight, Round 4). Besley headers, Source Serif 4 body,
   Newsreader for dates. Phone first; wider screens from 768px. */
@import url('fonts/fonts.css');

:root {
  --bg: #0b1428; --card: #122040; --card-2: #182a50; --field: #0b1630;
  --line: rgba(200, 220, 255, .15); --line-2: rgba(200, 220, 255, .27);
  --ink: #e6edfa; --acc: #8cc4ff; --acc-ink: #06121f; --gold: #e8c376; --gold-2: #f6dc9c;
  --glass: rgba(20, 34, 64, .62); --glass-line: rgba(200, 220, 255, .18);
  --fh: 'Besley', 'Frank Ruhl Libre', Georgia, serif;
  --fb: 'Source Serif 4', 'Frank Ruhl Libre', Georgia, serif;
  --fd: 'Newsreader', 'Noto Serif Hebrew', Georgia, serif;
  --fhe: 'Frank Ruhl Libre', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--fb); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: radial-gradient(30% 1100px at 50% -160px, rgba(186,218,255,.2), transparent 72%) no-repeat,
    radial-gradient(70% 520px at 50% -160px, rgba(90,140,230,.14), transparent 72%) no-repeat, var(--bg); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
img { max-width: 100%; }
.he { font-family: var(--fhe); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crown { display: block; max-width: none; }

/* the top bar: Hebrew, the Netzach / Yizkor switch, search */
.top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 18px 12px 0; }
.ibtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: #fff; }
.lang { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-family: var(--fhe); font-weight: 700; font-size: 18px; }
.sw { justify-self: center; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255,255,255,.06), 0 14px 36px rgba(0,0,0,.32); }
.sw-b { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 17px; border-radius: 999px; font-family: var(--fh); font-weight: 700; font-size: 17px; color: #fff; white-space: nowrap; text-decoration: none; }
.sw-b.on { background: rgba(235,243,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 8px rgba(0,0,0,.25); }
.sw-flame { display: block; width: 15px; height: 19px; object-fit: contain; }

/* the day: date, Hebrew date, the way to the daily email, Filter */
.day { max-width: 760px; margin: 0 auto; padding: 22px 17px 0; text-align: center; }
.dt { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.rb { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: #102044; box-shadow: inset 0 0 0 1px var(--line); color: #fff; }
.dt-t { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.dt-cal { display: inline-flex; color: var(--acc); margin-top: 8px; }
.heb { font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 10px; }
.dlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 12px; font-weight: 600; font-size: 17px; color: var(--acc); text-decoration: none; white-space: nowrap; }
.dlink:hover span { text-decoration: underline; text-underline-offset: 3px; }
.fpill { display: flex; justify-content: center; margin-top: 14px; }
.fpill button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-family: var(--fh); font-weight: 700; font-size: 16px; color: #fff; white-space: nowrap; }

/* the stories */
.list { max-width: 760px; margin: 0 auto; padding: 30px 17px 0; }
.pic { display: block; width: 100%; height: 222px; object-fit: cover; border-radius: 10px; background: var(--card); box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 26px 50px -12px rgba(0,0,0,.55); }
.card .pic { height: 190px; }
.meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin-top: 20px; }
.yr { font-family: var(--fh); font-weight: 700; font-size: 20px; color: #fff; }
.pl { font-weight: 600; font-size: 15px; color: var(--ink); }
.ct { font-family: var(--fh); font-weight: 700; font-size: 27px; line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-top: 8px; text-wrap: balance; }
.cw { font-size: 17px; line-height: 1.5; color: var(--ink); margin-top: 8px; }
.cr { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.cr a { text-decoration: none; }
.cr a:hover { text-decoration: underline; }
.card .ct { font-size: 23px; }
.card .meta .yr { font-size: 18px; }
.grid { display: grid; gap: 36px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }

/* the sign-up at the end of the day */
.signup { max-width: 760px; margin: 0 auto; padding: 48px 17px 0; scroll-margin-top: 20px; }
.sign { max-width: 520px; margin: 0 auto; padding: 24px 22px; border-radius: 22px; background: linear-gradient(170deg, #16285a, #112045); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -16px rgba(0,0,0,.6); display: grid; gap: 14px; }
.sign h2 { margin: 4px 0 6px; font-family: var(--fh); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.inp { width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 17px; color: #fff; }
.inp::placeholder { color: var(--ink); opacity: .9; }
.inp:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 4px rgba(140,196,255,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; border: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.chip span.he { font-size: 17px; }
.chip input:checked + span { background: rgba(235,243,255,.17); box-shadow: inset 0 0 0 1px rgba(235,243,255,.5); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-family: var(--fh); font-weight: 700; font-size: 18px; white-space: nowrap; text-decoration: none; }
.btn-p { background: var(--acc); color: var(--acc-ink); }
.btn-p:hover { background: #a6d2ff; }
.btn-s { background: var(--card-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-s:hover { background: #1f3462; }
.wide { width: 100%; }

/* the pages after Sign up */
.mid { max-width: 760px; margin: 0 auto; padding: 48px 17px 0; }
.panel { max-width: 460px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 16px; }
.panel h1 { font-family: var(--fh); font-weight: 700; font-size: 38px; line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 10px 0 0; text-wrap: balance; }
.big { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 999px; color: var(--acc); background: rgba(140,196,255,.1); box-shadow: inset 0 0 0 1px rgba(140,196,255,.3); }
.lead-p { font-size: 19px; line-height: 1.45; color: var(--ink); margin-bottom: 10px; }
.addr { display: block; font-weight: 700; color: #fff; overflow-wrap: anywhere; margin-top: 4px; }
.again { font-weight: 600; color: var(--acc); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.pair .btn { padding: 0 12px; font-size: 17px; }
.facts { width: 100%; display: grid; gap: 10px; margin: 8px 0 8px; text-align: start; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fact .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--acc); background: rgba(140,196,255,.1); }
.fact p { display: grid; gap: 2px; }
.fk { font-weight: 600; font-size: 15px; color: var(--ink); }
.fv { font-family: var(--fh); font-weight: 700; font-size: 19px; line-height: 1.2; color: #fff; }
.latest { max-width: 760px; margin: 0 auto; padding: 56px 17px 0; }
.sec-h { max-width: 600px; margin: 0 auto 16px; font-family: var(--fh); font-weight: 700; font-size: 24px; color: #fff; }

/* the daily email */
.em { position: relative; background: var(--bg); padding: 30px 20px 34px; }
.em.framed { max-width: 600px; margin: 0 auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0,0,0,.6); background: radial-gradient(60% 420px at 50% -120px, rgba(186,218,255,.16), transparent 72%) no-repeat, var(--bg); }
.em.page { max-width: 600px; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--fh); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: #fff; }
.edate { text-align: center; margin: 28px 0 30px; }
.edate .fd { font-family: var(--fd); font-weight: 500; font-size: 50px; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.esub { font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 8px; }
.epic { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 22px 40px -12px rgba(0,0,0,.55); }
.em .cr { margin-top: 8px; }
.m { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin-top: 16px; }
.m .yr { font-size: 19px; color: var(--gold-2); }
.t { font-family: var(--fh); font-weight: 700; font-size: 31px; line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin-top: 8px; text-wrap: balance; }
.p { font-size: 17px; line-height: 1.55; color: var(--ink); margin-top: 10px; }
.em .btn { margin-top: 24px; }
.more { text-align: center; margin-top: 18px; font-weight: 600; font-size: 17px; color: #fff; }
.efoot { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-2); text-align: center; font-size: 16px; line-height: 1.55; color: var(--ink); }
.elinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; }
.elinks a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the confirmation email in an inbox */
body.inbox { background: #000; }
.phone { max-width: 430px; margin: 0 auto; min-height: 100vh; background: #000; }
.mh { padding: 18px 18px 16px; color: #fff; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; border-bottom: 1px solid #2c2c2e; }
.from { display: flex; align-items: center; gap: 12px; }
.av { width: 42px; height: 42px; border-radius: 50%; display: block; }
.nm { font-weight: 600; font-size: 17px; }
.to { font-size: 15px; color: #d1d1d6; margin-top: 2px; overflow-wrap: anywhere; }
.sub { font-weight: 700; font-size: 20px; line-height: 1.25; margin-top: 14px; letter-spacing: -0.01em; }
.em.center { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 48px 24px 40px; background: radial-gradient(60% 420px at 50% -120px, rgba(186,218,255,.18), transparent 72%) no-repeat, var(--bg); }
.em.center .t { font-size: 34px; margin: 36px 0 6px; }
.em.center .btn { margin-top: 0; }
.efoot-s { font-size: 16px; color: var(--ink); margin-top: 10px; }
body.mailpage { background: var(--bg); }

/* the foot of every page */
.foot { max-width: 760px; margin: 0 auto; padding: 64px 17px 48px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.foot-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-family: var(--fh); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.foot-line { font-family: var(--fh); font-weight: 700; font-size: 18px; color: var(--gold-2); margin-top: 6px; }
.foot-ind { font-size: 15px; color: var(--ink); }

@media (min-width: 768px) {
  .top { padding-top: 24px; }
  .dt-t { font-size: 64px; }
  .heb { font-size: 19px; }
  .pic { height: 320px; border-radius: 14px; }
  .lead .ct { font-size: 38px; }
  .lead .cw { font-size: 19px; }
  .grid { grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 44px; }
  .card .pic { height: 200px; }
  .card .ct { font-size: 24px; }
  .card.np { grid-column: 1 / -1; max-width: 600px; }
  .sign { padding: 32px; }
  .sign h2 { font-size: 32px; }
  .mid { padding-top: 72px; }
  .panel h1 { font-size: 46px; }
  .em.page { padding: 48px 32px 48px; }
  .epic { height: 320px; }
  .t { font-size: 38px; }
  .em.framed { padding: 36px 32px 38px; }
  .phone { margin-top: 32px; min-height: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px #2c2c2e, 0 40px 80px rgba(0,0,0,.6); }
  body.inbox { padding-bottom: 48px; background: #111; }
}
