:root {
  color-scheme: light;
  --ink: #202b51;
  --muted: #5f574b;
  --paper: #faf1df;
  --cream: #fffaf0;
  --line: #ded0b6;
  --terra: #934a31;
  --ochre: #e9b961;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: linear-gradient(159deg, #fff9ed 0, var(--paper) 35rem, #f7ebd6 100%);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--terra); }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 3px solid #285e91;
  outline-offset: 4px;
}
img, video { display: block; max-width: 100%; }
.page { width: min(100% - 3rem, 62.5rem); margin-inline: auto; }
.skip { position: fixed; z-index: 3; inset: .6rem auto auto .6rem; transform: translateY(-200%); background: white; padding: .6rem; }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: #fff9ee80; }
.header-inner, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.header-inner { padding-block: .95rem; }
.brand { display: grid; text-decoration: none; }
.brand > span { font: bold clamp(1.45rem, 3.5vw, 2.05rem)/1 var(--serif); letter-spacing: -.035em; }
.brand small { margin-top: .3rem; color: var(--muted); font-size: .81rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
nav a, nav [aria-current="page"], .site-footer a, .site-footer [aria-current="page"] { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, .site-footer a:hover, nav [aria-current="page"] { text-decoration: underline; }
.featured { margin-top: clamp(1.2rem, 4vw, 2.45rem); }
.featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  column-gap: .8rem;
  margin-bottom: .85rem;
}
.eyebrow {
  margin: 0 0 .32rem;
  color: var(--terra);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--serif); text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.45rem, 6.2vw, 4rem); line-height: 1.03; letter-spacing: -.042em; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.18; }
.hebrew { display: inline-block; font-size: .63em; letter-spacing: 0; margin-inline-start: .28em; vertical-align: .16em; }
.episode-description { color: var(--muted); margin: .45rem 0 0; }
.player {
  position: relative;
  border-radius: 1.12rem;
  background: #e8c88f;
  box-shadow: 0 11px 28px #422b1819;
  isolation: isolate;
}
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: inherit; background: #f5ddb6; }
.big-play {
  position: absolute;
  z-index: 1;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(3.2rem, 8vw, 5.4rem);
  aspect-ratio: 1;
  border: 2px solid #fff3d7;
  border-radius: 50%;
  color: #fff7e7;
  background: var(--ink);
  box-shadow: 0 5px 13px #202b5145;
}
.big-play:hover { background: #354875; }
.play-triangle {
  width: 32%;
  height: 39%;
  margin-inline-start: .22rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.film-error { position: absolute; inset: auto 0 0; padding: 1rem; margin: 0; background: var(--cream); }
.film-info { display: flex; gap: .5rem 1rem; justify-content: space-between; margin-top: .55rem; color: var(--muted); font-size: .87rem; }
.film-info a { color: var(--ink); }
.archive { margin-top: 1.65rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.film-card {
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--cream);
  overflow: hidden;
  text-decoration: none;
}
.film-card:hover { border-color: var(--terra); }
.film-card img { width: 100%; height: auto; aspect-ratio: 960 / 452; object-fit: cover; }
.card-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .75rem; margin: .7rem .85rem .1rem; }
.card-line strong { font: bold 1.25rem/1.1 var(--serif); }
.card-line span { color: var(--muted); font-size: .85rem; }
.card-description { display: block; color: var(--muted); padding: 0 .85rem .8rem; font-size: .88rem; }
.about { margin-top: 2rem; padding: 1.1rem 1.35rem; border-left: 4px solid var(--ochre); background: #fff8e9; }
.about h2 { margin-bottom: .3rem; }
.about p { margin: 0; max-width: 58ch; color: var(--muted); }
.site-footer { margin-top: 2.3rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.guide-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
  padding: .3rem .65rem .3rem .3rem;
  border: 1px solid var(--line);
  border-radius: 6rem;
  background: var(--cream);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
}
.guide-button:hover { border-color: var(--terra); }
.guide-portrait {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  overflow: hidden;
  border-radius: 50%;
  background: #eed6ad;
}
.guide-portrait img { height: auto; width: 1.95rem; margin: .18rem auto 0; animation: jakob-enters 650ms ease-out both; }
@keyframes jakob-enters {
  from { transform: translateY(55%) rotate(-8deg); }
  to { transform: translateY(0) rotate(0); }
}
dialog {
  width: min(100% - 2rem, 32rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--cream);
  color: var(--ink);
}
dialog::backdrop { background: #171c2caa; }
.guide-content { position: relative; padding: 1.25rem; }
.guide-close {
  position: absolute;
  z-index: 1;
  inset: .5rem .5rem auto auto;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
}
.guide-done { min-height: 2.7rem; padding: .4rem .95rem; border: 0; border-radius: .45rem; background: var(--ink); color: white; font-weight: 650; }
.guide-clip { width: 100%; aspect-ratio: 16 / 9; border-radius: .6rem; margin-bottom: 1rem; background: #ebc88d; }
.guide-content h2 { margin-bottom: .35rem; }
.guide-content p { margin: 0 0 .8rem; }
.sources { padding-top: clamp(1.8rem, 6vw, 3.25rem); }
.sources h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.sources-intro { margin: .8rem 0 1.35rem; color: var(--muted); }
.sources-episode {
  margin-block: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--cream);
  scroll-margin-top: 1rem;
}
.sources-episode:target { border-color: var(--terra); }
.sources-episode ul { padding: 0; margin: 0 0 .7rem; list-style: none; }
.sources-episode li { display: flex; flex-wrap: wrap; gap: .12rem 1rem; border-bottom: 1px solid var(--line); padding: .55rem 0; }
.sources-episode li span { color: var(--muted); }
.episode-link { display: inline-block; font-weight: 650; margin-top: .15rem; }
@media (max-width: 45rem) { .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 33rem) {
  .page { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .5rem; }
  nav { gap: .3rem 1rem; width: 100%; }
  .featured-heading { align-items: start; }
  .guide-button { flex-direction: column; gap: .15rem; border-radius: .6rem; padding: .24rem .4rem; font-size: .72rem; margin-top: .25rem; }
  .guide-portrait { width: 1.9rem; height: 1.9rem; }
  .guide-portrait img { width: 1.65rem; }
  .archive-list { gap: .65rem; }
  .card-line { margin-inline: .6rem; }
  .card-description { padding-inline: .6rem; }
  .film-info { font-size: .81rem; }
}
@media (max-width: 24rem) { .archive-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

.shabbat { margin-top: 2rem; }
.shabbat h2 { margin-bottom: .3rem; }
.shabbat-dates, .shabbat-source { margin: 0 0 .65rem; color: var(--muted); font-size: .92rem; }
.shabbat table { width: 100%; border-collapse: collapse; background: var(--cream); }
.shabbat th, .shabbat td { padding: .55rem .65rem; text-align: left; border-bottom: 1px solid var(--line); }
.shabbat th { font-weight: 650; }
.shabbat td { font-variant-numeric: tabular-nums; }
.shabbat-source { margin-top: .55rem; }
@media (max-width: 33rem) {
  .shabbat th, .shabbat td { padding: .45rem .38rem; font-size: .87rem; }
}

.contact { padding-block: clamp(1.8rem, 6vw, 3.25rem); }
.contact h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.contact > p, #contact-status { color: var(--muted); }
.contact form { max-width: 34rem; margin-top: 1.4rem; }
.contact fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact label { display: block; margin-bottom: .3rem; font-weight: 650; }
.contact input, .contact textarea {
  width: 100%; margin-bottom: 1rem; padding: .55rem .65rem; border: 1px solid var(--line);
  border-radius: .45rem; background: var(--cream); color: var(--ink); font: inherit;
}
.contact textarea { resize: vertical; }
.contact :is(input, textarea):focus-visible { outline: 3px solid #285e91; outline-offset: 2px; }
.contact button { margin-top: .65rem; }
.contact :disabled { opacity: .65; cursor: default; }
