/* Miami Daf
   Sky, peach, and gold from the shiur flyer.
   Navy #0b2e6b and teal #0a5c72 are the text colors (both clear on this background).
*/

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --navy: #0b2e6b;
  --teal: #0a5c72;
  --gold: #e2b34a;
  --gold-deep: #c4922e;
  --ink: #0b2e6b;
  --sky: #d5eef8;
  --peach: #f4e3bf;
  --cream: #fbf4e8;
  --sheet: 740px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #b9d7ea;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(90% 40% at 50% 0%, #e8f6fc, transparent 70%),
    linear-gradient(180deg, #b7d9ee 0%, #f0d3a4 100%);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #f6c431;
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  z-index: 5;
  font-weight: 800;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  padding: 0.4rem 0 1.5rem;
}

.sheet {
  position: relative;
  max-width: var(--sheet);
  margin: 1rem auto 1.5rem;
  padding: 1.7rem 1.35rem 1.4rem;
  border-radius: 28px;
  border: 1.5px solid var(--gold);
  background:
    radial-gradient(46% 22% at 50% 7%, rgba(255, 214, 120, 0.72), transparent 72%),
    radial-gradient(80% 36% at 50% 62%, rgba(255, 196, 110, 0.28), transparent 70%),
    linear-gradient(180deg, #d7f0fa 0%, #f6e4c4 48%, #fbf4e8 100%);
  box-shadow:
    0 0 0 7px rgba(255, 248, 235, 0.28),
    0 18px 46px rgba(90, 50, 10, 0.12);
  text-align: center;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.6px);
  background-size: 7px 7px;
  opacity: 0.4;
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 1px solid rgba(224, 177, 90, 0.75);
  pointer-events: none;
}

.sheet > * {
  position: relative;
  z-index: 1;
}

.logo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 22px rgba(11, 46, 107, 0.16);
  object-fit: cover;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0.7rem auto 0.3rem;
  max-width: 18em;
  font-size: clamp(1.7rem, 4.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.kicker {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.95rem;
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.player-block {
  margin-top: 1rem;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  border: 2px solid rgba(11, 46, 107, 0.9);
  box-shadow: 0 12px 32px rgba(11, 46, 107, 0.16);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lead,
.note,
.section p,
.footer p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  margin: 0.95rem auto 0;
  font-size: 1.08rem;
}

.note {
  margin: 0.55rem auto 0;
  font-size: 0.98rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--navy);
  color: #fff;
  flex: 1 1 12rem;
  max-width: 18rem;
}

.button-primary:hover {
  background: #123a84;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--navy);
  border: 2px solid var(--navy);
  flex: 1 1 11rem;
  max-width: 16rem;
}

.button-secondary:hover {
  background: #fff;
}

.button-large {
  min-height: 52px;
  padding-inline: 1.4rem;
  font-size: 1.08rem;
}

a {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #08485a;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(68%, 13.5rem);
  margin: 1.55rem auto;
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.rule span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

section {
  margin: 0;
}

.hebrew {
  font-family: "Frank Ruhl Libre", "David Libre", "Noto Serif Hebrew", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.65rem);
  line-height: 1.35;
  direction: rtl;
  text-align: center;
  color: var(--navy);
  margin: 0.1rem 0 0.15rem;
}

.cycle {
  margin-bottom: 0.35rem;
}

#siyum {
  position: relative;
}

#siyum::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 88%;
  height: 62%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 206, 96, 0.55), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.count {
  margin-top: 0.2rem;
}

.count-figure {
  margin: 0;
}

.days-num {
  display: block;
  font-weight: 800;
  font-size: clamp(5.6rem, 24vw, 9.1rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: #f5c431;
  -webkit-text-stroke: 0.045em #0b2e6b;
  paint-order: stroke fill;
}

.days-word {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.until {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
}

.siyum-date {
  margin: 0.75rem auto 0.1rem;
  color: var(--teal);
  font-weight: 800;
}

.as-of {
  margin: 0;
  font-size: 0.98rem;
}

footer {
  margin-top: 0.3rem;
  padding-top: 0.2rem;
}

.footer-name {
  margin-bottom: 0.1rem;
  font-weight: 800;
}

.footer-meta {
  margin: 0 auto 0.15rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-meta a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-line,
.footer-contact {
  margin: 0.85rem auto 0;
  font-size: 1.05rem;
}

.footer-contact {
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .nav ul {
    gap: 0.05rem 0.65rem;
  }

  .page {
    padding: 0;
  }

  .sheet {
    margin: 0.55rem;
    padding: 1.3rem 0.95rem 1.15rem;
    border-radius: 22px;
  }

  .sheet::after {
    inset: 6px;
    border-radius: 17px;
  }

  .logo {
    width: 104px;
    height: 104px;
  }

  .days-num {
    -webkit-text-stroke-width: 0.04em;
  }

  .button-primary,
  .button-secondary {
    flex-basis: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sheet {
    box-shadow: none;
    border-color: #ccc;
  }

  .player {
    min-height: 0;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
  }

  .player iframe {
    display: none;
  }

  .player::after {
    content: "Live daily at 8:30 AM ET, Sunday–Friday. Shiur on Shabbos one hour before Kollel Mincha.";
    display: block;
    padding: 0.5rem 0;
  }
}
