.advent-calendar {
  max-width: 62rem;
  padding-block: clamp(1.25rem, 4vw, 3rem);
}
.advent-calendar [hidden] {
  display: none !important;
}
.advent-village {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.85rem, 4vw, 2.75rem);
  border: 1px solid #536b84;
  border-radius: 1.5rem;
  color: #fff7e2;
  background:
    radial-gradient(circle at 83% 10%, #fff8df 0 1.8rem, #f8d68332 1.9rem, transparent 4rem),
    radial-gradient(circle, #f8f6dfbb 0 1px, transparent 2px) 0 0 / 47px 59px,
    radial-gradient(circle, #dae7f8ad 0 1px, transparent 2px) 15px 20px / 73px 87px,
    linear-gradient(165deg, #10243d 2%, #204861 66%, #425d76);
  box-shadow: 0 1rem 2rem #172a3d24;
}
.advent-village::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -15% -3rem;
  height: 7rem;
  background: #e4effa;
  border-radius: 58% 63% 0 0 / 45% 88% 0 0;
  transform: rotate(-2deg);
}
.advent-intro {
  position: relative;
  max-width: 43rem;
  margin-inline: auto;
  padding: clamp(.65rem, 2vw, 1.4rem);
  border-radius: 1rem;
  background: #132d46e8;
  text-align: center;
}
.advent-village .advent-intro p {
  margin: .55rem auto 0;
  color: #fff7e2;
}
.advent-village .advent-intro .advent-season {
  color: #ffdb91;
  font: 750 clamp(.85rem, 2vw, 1.1rem)/1.35 system-ui, sans-serif;
  letter-spacing: .06em;
}
.advent-calendar[data-text-size] .advent-intro h1 {
  margin: .3em 0;
  color: #fff7e2;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.advent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.55rem, 2vw, 1.35rem);
  max-width: 48rem;
  margin: clamp(1rem, 4vw, 2.1rem) auto .9rem;
}
.advent-grid > :not([hidden]) {
  --wall: #34495d;
  --roof: #dcebf7;
  position: relative;
  display: grid;
  place-items: end center;
  min-height: clamp(3.55rem, 9.5vw, 6.25rem);
  padding: 1.15rem 0 .4rem;
  border: 0;
  border-radius: 0 0 .42rem .42rem;
  color: #f1f6fc;
  background: transparent;
  font: 800 clamp(1.1rem, 3vw, 1.65rem)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  isolation: isolate;
}
.advent-grid > ::before {
  content: "";
  position: absolute;
  inset: 18% 7% 0;
  z-index: -2;
  border-radius: .35rem;
  border: 1px solid #ffffff50;
  background: var(--wall);
  box-shadow: inset 0 -4px 0 #15233865;
}
.advent-grid > ::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 44%;
  background: var(--roof);
  clip-path: polygon(0 89%, 50% 0, 100% 89%, 91% 100%, 50% 30%, 9% 100%);
}
.advent-grid > [data-house="1"] { --wall: #4e4259; }
.advent-grid > [data-house="2"] { --wall: #2f5356; }
.advent-grid > [data-house="3"] { --wall: #58464b; }
.advent-number {
  display: grid;
  place-items: center;
  min-width: 2ch;
  min-height: 1.55em;
  padding: 0 .18em;
  border: 1px solid #e8f4ff77;
  border-radius: .4em .4em .16em .16em;
  background: #14283e;
}
.advent-grid > .advent-door:not([hidden]) {
  --wall: #a94830;
  --roof: #fff0c1;
  cursor: pointer;
}
.advent-door .advent-number {
  background: #ffe29a;
  color: #412714;
  border-color: #fff2c8;
  box-shadow: 0 0 1rem .25rem #ffce6c8c;
}
.advent-door:hover .advent-number {
  background: #fff1bd;
}
.advent-grid > button:focus-visible,
.advent-grid > button[aria-expanded="true"] {
  outline: 3px solid #ffdc8c;
  outline-offset: 3px;
}
.advent-calendar .advent-availability {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: .5em .8em;
  color: #fff7e2;
  background: #132d46;
  border-radius: .7rem;
  font-size: clamp(.9rem, 2vw, 1.1rem);
}
.advent-calendar .reading-text-size {
  margin-block-start: 1.15rem;
}
.advent-story {
  margin: 1.5rem auto;
  max-width: 72ch;
  padding: clamp(.65rem, 3vw, 1.55rem);
  border: 1px solid #b87e44;
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.advent-story h2 {
  scroll-margin-block-start: 6rem;
}
.advent-illustration { margin: 0 0 1rem; }
.advent-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .7rem;
}
.advent-story summary {
  cursor: pointer;
  font-weight: 750;
}
.advent-story .story-prose { margin-block-start: 1rem; }
@media (max-width: 530px) {
  .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.advent-page .skip:not(:focus) {
  clip-path: inset(50%);
}
.advent-calendar .advent-village .advent-availability {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.5;
}
