.advent-calendar,
.advent-board {
  --advent-paper: var(--jezus-paper, #fff6df);
  --advent-ink: var(--jezus-ink, #3b241c);
  --advent-rust: var(--jezus-rust, #803927);
  --advent-gold: var(--jezus-amber, #ffda85);
  color: var(--advent-ink);
}

.advent-calendar {
  width: min(100%, 68.75rem);
  margin: clamp(1.25rem, 3vw, 2.5rem) auto;
}

.advent-board {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--advent-paper);
}

.advent-board-home {
  width: min(calc(100% - 2rem), 68.75rem);
  margin: clamp(.75rem, 2vw, 1.5rem) auto 0;
}

.advent-intro {
  padding: clamp(.9rem, 2.45vw, 1.75rem);
}

.advent-intro :is(h1, h2),
.advent-player h1 {
  margin: 0 0 .35em;
  color: var(--advent-ink);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

.advent-intro h1 {
  font-size: clamp(1.95rem, 5vw, 4rem);
}

.advent-intro h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.advent-intro p {
  margin: .35rem 0 0;
  line-height: 1.45;
}

.advent-intro .advent-series {
  color: var(--advent-rust);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}

.advent-picture {
  position: relative;
  isolation: isolate;
  min-height: 192px;
  aspect-ratio: 1672 / 941;
  background: #28324b;
}

.advent-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}

.advent-grid {
  position: absolute;
  inset: .5rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(44px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.advent-grid li {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
}

.advent-door {
  display: grid;
  place-items: center;
  width: min(100%, clamp(2.75rem, 7.5vw, 5.5rem));
  min-height: 44px;
  color: #fff3d4;
  text-decoration: none;
  line-height: 1;
}

.advent-number {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #e8c981;
  border-radius: 50%;
  background: rgb(20 25 43 / 65%);
  font: 700 clamp(1.2rem, 3.1vw, 2.25rem) / 1 Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}

a.advent-door .advent-number {
  background: color-mix(in srgb, var(--advent-gold) 76%, transparent);
  border-color: #fff3d4;
  color: var(--advent-ink);
}

a.advent-door:hover .advent-number {
  background: var(--advent-rust);
  color: #fff;
}

a.advent-door:focus-visible {
  outline: 2px solid #fff3d4;
  outline-offset: -1px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #24253b;
}

.advent-player {
  scroll-margin-top: 2rem;
  width: min(100%, 48rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1rem;
  background: var(--advent-paper);
}

.advent-player h1 {
  margin-bottom: .55em;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.advent-player-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.25rem;
  margin-top: .5rem;
}

.advent-player-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--advent-rust);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.advent-player :is(a, audio, iframe):focus-visible {
  outline: 3px solid var(--advent-ink);
  outline-offset: 3px;
}

.advent-player audio,
.advent-player iframe {
  display: block;
  width: min(100%, 38rem);
  margin-bottom: .85rem;
}

.advent-player iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .45rem;
  background: #24253b;
}

@media (max-width: 319px) {
  .advent-picture {
    min-height: 280px;
  }

  .advent-grid {
    grid-template: repeat(6, minmax(44px, 1fr)) / repeat(4, minmax(0, 1fr));
  }
}
