.advent {
  --advent-green: #18362d;
  --advent-brand: var(--green, #95d600);
  --advent-lime: #cce779;
  --advent-ink: var(--ink, #1e2328);
  --advent-paper: #f6f4eb;
  --advent-line: #d6ded2;
  color: var(--advent-ink);
  background: var(--advent-paper);
  line-height: 1.5;
}
.advent *, .advent *::before, .advent *::after { box-sizing: border-box; }
.advent-wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.advent-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 82% 10%, #476246 0%, transparent 58%), var(--advent-green);
  border-bottom: 4px solid var(--advent-brand);
  padding: clamp(35px, 6vw, 80px) 0;
}
.advent-heading {
  margin: 8px 0 14px;
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  font-weight: 650;
  line-height: 1.01;
  letter-spacing: -.055em;
}
.advent-hero p:last-child { margin: 0; max-width: 38rem; color: #e4eddf; }
.advent-date { margin: 0; color: #396145; font-size: .88rem; font-weight: 700; letter-spacing: .04em; }
.advent-hero .advent-date { color: var(--advent-lime); }
.advent-hero-copy { position: relative; z-index: 1; }
.advent-decoration {
  position: absolute;
  top: 0;
  right: max(18px, calc((100% - 1120px) / 2));
  width: clamp(150px, 27vw, 340px);
  height: 100%;
  pointer-events: none;
}
.advent-bauble {
  position: absolute;
  display: block;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  top: var(--drop);
  left: var(--left);
  box-shadow: inset -4px -7px 12px #261b1c3d, 0 8px 18px #101f1866;
}
.advent-bauble::before, .advent-bauble::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.advent-bauble::before { width: 1px; height: var(--drop); bottom: 100%; background: #e2c783ad; }
.advent-bauble::after {
  width: 27%;
  height: 10%;
  bottom: 97%;
  border-radius: 2px;
  background: linear-gradient(90deg, #9b713a, #f8de9e, #a77a40);
}
.advent-bauble-gold {
  --size: clamp(20px, 4.4vw, 59px);
  --drop: clamp(34px, 7vw, 102px);
  --left: 26%;
  background: radial-gradient(circle at 32% 25%, #fff4cf, #e5b354 45%, #aa7236 94%);
}
.advent-bauble-red {
  --size: clamp(14px, 3.5vw, 48px);
  --drop: clamp(20px, 4.7vw, 64px);
  --left: 68%;
  background: radial-gradient(circle at 31% 26%, #ffc2b4, #c74345 42%, #751e2d 92%);
}
.advent-bauble-green {
  --size: clamp(10px, 2.7vw, 34px);
  --drop: clamp(74px, 12vw, 157px);
  --left: 81%;
  background: radial-gradient(circle at 30% 25%, #edf3ad, #a5ba61 45%, #577343 93%);
}
.advent-star { position: absolute; color: #f4d994; line-height: 1; }
.advent-star-first { top: 25%; left: 4%; font-size: clamp(12px, 2vw, 25px); }
.advent-star-second { top: 62%; left: 51%; font-size: clamp(9px, 1.7vw, 20px); }
.advent-star-third { top: 32%; right: 2%; font-size: clamp(9px, 1.2vw, 15px); }
.advent-home .advent-hero { padding-block: clamp(28px, 4.5vw, 58px); }
.advent-home .advent-heading { font-size: clamp(2.25rem, 5vw, 4.4rem); }
.advent-home .advent-content { padding-block: clamp(20px, 3vw, 36px) clamp(25px, 4vw, 50px); }
.advent-home .advent-tile { min-height: 87px; }
@media (max-width: 840px) {
  .advent-decoration { width: 120px; right: 12px; }
}
@media (max-width: 560px) {
  .advent-decoration { width: 85px; right: 8px; opacity: .83; }
  .advent-hero-copy { padding-right: 46px; }
  .advent-star-second { display: none; }
}
.advent-content { padding-block: clamp(28px, 5vw, 56px) 64px; }
.advent-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 4px; }
.advent-status { margin: 0 0 14px; color: #3f5148; }
.advent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.advent-tile {
  min-height: 112px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  border: 1px solid var(--advent-line);
  border-radius: 14px;
  padding: 12px;
  background: #fffdf6;
  color: var(--advent-ink);
  gap: 8px;
}
button.advent-tile {
  background: var(--advent-green);
  color: white;
  border-color: #325143;
  cursor: pointer;
}
.advent-tile { position: relative; }
.advent-grid li:nth-child(4n + 2) .advent-tile::after,
.advent-grid li:nth-child(4n + 3) .advent-tile::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2be, #d4a44e 55%, #9e6c30);
  pointer-events: none;
}
.advent-grid li:nth-child(4n + 3) .advent-tile::after {
  background: radial-gradient(circle at 35% 30%, #fba592, #b3363a 55%, #7f2530);
}
.advent :focus-visible { outline: 3px solid var(--advent-brand); outline-offset: 3px; }
button.advent-tile:hover { background: #2e5847; }
button.advent-tile .advent-number { color: var(--advent-lime); }
.advent-number { font-size: clamp(1.55rem, 4vw, 2.7rem); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.advent-label { font-size: .79rem; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.advent-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  color: var(--advent-ink);
  background: #fffcf4;
  border: 1px solid var(--advent-line);
  border-radius: 18px;
  box-shadow: 0 16px 55px #0d22184d;
}
.advent-dialog::backdrop { background: #101f18b8; }
.advent-recipe { padding: clamp(16px, 4vw, 32px); }
.advent-recipe-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.advent-recipe-header h2 { margin: 4px 0 8px; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.1; }
.advent-close { border: 1px solid var(--advent-line); border-radius: 50%; background: white; min-width: 42px; height: 42px; font: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; color: inherit; }
.advent-jump, .advent-text summary { color: #254e38; font-weight: 650; }
.advent-text { margin-bottom: 14px; }
.advent-text summary { cursor: pointer; }
.advent-text section { margin: 14px 0; }
.advent-text p { white-space: pre-line; }
.advent-pages { display: grid; gap: 12px; }
.advent-pages img { display: block; width: 100%; height: auto; border: 1px solid var(--advent-line); border-radius: 8px; }
.advent form { margin-top: 24px; padding: clamp(14px, 4vw, 24px); background: #edf2e5; border-radius: 12px; scroll-margin-top: 15px; }
.advent form h3 { margin: 0 0 8px; }
.advent form p { margin: 0 0 12px; }
.advent-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.advent-fields label { font-size: .88rem; font-weight: 650; }
.advent-fields input { margin-top: 3px; width: 100%; min-height: 44px; background: white; border: 1px solid #a1aea2; border-radius: 7px; padding: 8px; font: inherit; font-weight: normal; color: inherit; }
.advent-submit { border: 0; background: var(--advent-green); color: white; padding: 10px 16px; font: inherit; font-weight: 650; border-radius: 8px; cursor: pointer; }
.advent-submit:disabled { opacity: .65; cursor: wait; }
.advent form .advent-feedback { margin: 8px 0 0; }
.advent-preview { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; font-size: .88rem; }
.advent-preview label { font-weight: 700; }
.advent-preview select { font: inherit; min-height: 36px; }
@media (max-width: 840px) {
  .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .advent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .advent-tile { min-height: 98px; padding: 8px; }
  .advent-fields { grid-template-columns: 1fr; }
}
 
.advent-winter {
  background: #edf2eb;
  border-top: 1px solid #d8e2d3;
  border-bottom: 1px solid #d8e2d3;
}
.advent-winter-stage { position: relative; width: min(1120px, 100%); }
.advent-winter-stage canvas {
  display: block;
  width: 100%;
  height: clamp(158px, 25vw, 244px);
}
.advent-animation-control {
  position: absolute;
  bottom: 8px;
  right: 10px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #becdc0;
  border-radius: 7px;
  background: #fffffff2;
  color: var(--advent-ink);
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
