#calendar-stage, .gd-board {
  --ac-paper: #f9efd9;
  --ac-ivory: #f1e8d3;
  --ac-sage: #cdd8ba;
  --ac-pink: #eab9a2;
  --ac-red: #b93e2d;
  --ac-green: #284e3e;
  --ac-border: #254536;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.1rem 0 .2rem;
  color: var(--green, #183e32);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#calendar-stage *, #calendar-stage *::before, #calendar-stage *::after { box-sizing: border-box; }
.ac-figure { margin: 0; }
.ac-board {
  position: relative;
  z-index: 1;
  width: 87.5%;
  max-width: 30.75rem;
  margin-inline: auto;
  padding: clamp(7px, 2.2cqi, 12px);
  border: 1px solid var(--ac-border);
  border-radius: 2px;
  background: var(--ac-green);
  box-shadow: 2px 3px 0 #d3c9b1, 3px 4px 0 #746e59, 4px 6px 0 #d8ccb3,
    5px 7px 0 #b8a98a, 12px 18px 24px -11px #4d402349;
  transform: rotate(-2.3deg);
}
.ac-heading {
  display: flex;
  align-items: center;
  gap: 3%;
  width: 100%;
  height: clamp(40px, 10.4cqi, 58px);
  padding: 0 4%;
  margin: 0 0 3px;
  border-block-end: 3px double var(--ac-green);
  background: var(--ac-paper);
  color: var(--green, #183e32);
}
.ac-brand-mark { width: clamp(19px, 5.2cqi, 31px); height: auto; color: var(--ac-red); stroke-width: 2.5; }
.ac-month { font: 500 clamp(26px, 6.9cqi, 40px)/.95 Georgia, "Times New Roman", serif; letter-spacing: -.067em; }
.ac-year { margin-left: auto; font-size: clamp(.75rem, 2.6cqi, .95rem); font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.ac-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 2px;
  position: relative;
  isolation: isolate;
}
.ac-door {
  aspect-ratio: 1.28;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: start;
  color: var(--ac-door-ink);
  background-color: var(--ac-door-fill);
  border-radius: 1px;
}
.ac-ivory { --ac-door-fill: var(--ac-ivory); --ac-door-ink: #283f31; --ac-art-ink: #576a4e; }
.ac-green { --ac-door-fill: var(--ac-green); --ac-door-ink: #fff3da; --ac-art-ink: #d7dcaf; }
.ac-sage { --ac-door-fill: var(--ac-sage); --ac-door-ink: #293d2e; --ac-art-ink: #425b3d; }
.ac-red { --ac-door-fill: var(--ac-red); --ac-door-ink: #fff4dc; --ac-art-ink: #fbd9aa; }
.ac-pink { --ac-door-fill: var(--ac-pink); --ac-door-ink: #3e3829; --ac-art-ink: #88583f; }
.ac-door:not(button)::before, .ac-flap::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px dashed color-mix(in srgb, var(--ac-door-ink) 37%, transparent);
  border-radius: 1px;
  pointer-events: none;
}
.ac-door:not(button)::after, .ac-flap::after {
  content: "";
  position: absolute;
  width: clamp(3px, .9cqi, 5px);
  height: clamp(6px, 1.6cqi, 9px);
  top: 49%;
  right: -1px;
  border-radius: 8px 0 0 8px;
  background: var(--ac-border);
}
.ac-num {
  position: relative;
  z-index: 1;
  display: block;
  margin: clamp(4px, 1.5cqi, 9px) 0 0 clamp(5px, 1.6cqi, 9px);
  font: 400 clamp(17px, 4.8cqi, 28px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.075em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ac-ornament {
  position: absolute;
  bottom: 8%;
  right: 7%;
  width: 42%;
  height: 50%;
  max-width: 2.75rem;
  color: var(--ac-art-ink);
  pointer-events: none;
  stroke-width: 1.6;
}

.ac-cloud {
  position: relative;
  isolation: isolate;
  width: min(85%, clamp(12.75rem, 44%, 15rem));
  min-height: clamp(4.25rem, 12.5cqi, 5rem);
  margin: clamp(.6rem, 2.5cqi, .9rem) auto 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ac-cloud-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--green, #183e32);
  filter: drop-shadow(1px 2px 0 #23382a24);
}
.ac-cloud-paper path {
  fill: #fff8e8;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.ac-cloud span {
  padding: .75rem .85rem;
  text-wrap: balance;
  color: var(--green, #183e32);
  font-size: clamp(.875rem, 2.8cqi, 1rem);
  font-weight: 600;
  line-height: 1.35;
}
@container (max-width: 360px) {
  .ac-board { width: 93%; padding: 6px; }
  .ac-grid { gap: 1.4px; }
}
@media (forced-colors: active) {
  .ac-door { border: 1px solid CanvasText; }
}
