:root {
  --night: #0b1026;
  --night-2: #141a3c;
  --ink: #f4ecdc;
  --muted: #b9b4c9;
  --gold: #e8c66a;
  --gold-deep: #b98a2c;
  --paper: #fbf5e6;
  --paper-ink: #2a1c12;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a2f6b 0%, transparent 60%),
    radial-gradient(800px 400px at 85% 110%, #3a1d3f 0%, transparent 60%),
    linear-gradient(var(--night-2), var(--night));
  background-attachment: fixed;
  overflow-x: hidden;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

.top {
  text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem) 1rem 1.5rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(232, 198, 106, .25);
}

h1 span {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.sub {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Advent candles */
.candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(.9rem, 3vw, 1.6rem);
  margin: 2rem auto 0;
}

.candle {
  display: grid;
  justify-items: center;
  gap: .35rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.candle .wax {
  position: relative;
  width: 14px;
  height: 44px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #5d3b8c, #7b56b3 50%, #4a2d73);
}

.candle.rose .wax { background: linear-gradient(90deg, #c46a8c, #e59ab5 50%, #a9506f); }
.candle.christ .wax { height: 58px; background: linear-gradient(90deg, #d9d3c3, #fffaf0 50%, #c9c2b0); }

.candle .wax::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 9px;
  height: 15px;
  margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff7c2, #ffb52e 55%, rgba(255, 120, 0, 0));
  box-shadow: 0 0 18px 6px rgba(255, 190, 80, .55);
  opacity: 0;
  transform-origin: 50% 100%;
}

.candle.lit .wax::before { opacity: 1; animation: flicker 2.4s ease-in-out infinite; }
.candle.lit { color: var(--ink); }

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  40% { transform: scale(1.08, .94) rotate(2deg); }
  70% { transform: scale(.95, 1.06) rotate(-1deg); }
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: .8rem 1.4rem;
  border: 1px solid rgba(232, 198, 106, .3);
  border-radius: 999px;
  background: rgba(11, 16, 38, .55);
  backdrop-filter: blur(6px);
}

.countdown div { display: grid; justify-items: center; min-width: 3rem; }
.countdown b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.countdown .label { align-self: center; font-size: .78rem; color: var(--gold); letter-spacing: .08em; }

.today-btn {
  display: block;
  margin: 1.4rem auto 0;
  padding: .7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: 600 .95rem var(--body);
  color: #2a1a04;
  background: linear-gradient(#f3d98b, var(--gold-deep));
  box-shadow: 0 6px 24px rgba(232, 198, 106, .3);
  cursor: pointer;
  transition: transform .15s;
}

.today-btn:hover { transform: translateY(-2px); }
.today-btn[hidden] { display: none; }

/* Calendar */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(.8rem, 3vw, 2rem) 3rem;
}

.weekdays, .grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.6rem, 1.8vw, 1.4rem);
}

.weekdays {
  margin-bottom: .8rem;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.blank { visibility: hidden; }

.cell {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 700px;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.cell:hover, .cell:focus-visible, .cell.open { z-index: 5; }
.cell:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 10px; }

.frame {
  position: absolute;
  inset: 0;
  border-radius: 46% 46% 6px 6px / 20% 20% 6px 6px;
  background: radial-gradient(circle at 50% 62%, #ffe6a8 0%, #f6b24a 42%, #8a4614 100%);
  box-shadow:
    0 0 0 5px #201a33,
    0 0 0 7px #3b3257,
    0 18px 30px rgba(0, 0, 0, .45);
  transform-style: preserve-3d;
}

.inside {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .3em;
  padding: 10% 8%;
  text-align: center;
  color: #4a2507;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.62rem, 1.25vw, .95rem);
  line-height: 1.15;
  border-radius: inherit;
  overflow: hidden;
}

.inside small {
  font-family: var(--body);
  font-weight: 600;
  font-size: .72em;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.leaf {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left center;
  transition: transform .75s cubic-bezier(.2, .85, .25, 1);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .28)),
    var(--c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3), inset 0 0 22px rgba(0, 0, 0, .25);
}

.leaf::before, .leaf::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  border-radius: 4px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, .4), inset -1px -1px 1px rgba(255, 255, 255, .16);
}

.leaf::before { top: 30%; height: 22%; border-radius: 40% 40% 4px 4px / 30% 30% 4px 4px; }
.leaf::after { top: 58%; height: 32%; }

.plate {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 42%;
  padding: .12em .5em;
  border-radius: 999px;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(.85rem, 2vw, 1.5rem);
  line-height: 1.15;
  color: #3a2603;
  background: linear-gradient(#f6e3a6, #c99a35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 2px 4px rgba(0, 0, 0, .4);
}

.knob {
  position: absolute;
  right: 9%;
  top: 52%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #d6a63a 55%, #6e4c0c);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  transition: transform .3s;
}

.cell:hover .knob { transform: rotate(40deg) scale(1.12); }

.lamp {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lamp, #fff);
  box-shadow: 0 0 10px 3px var(--lamp, #fff);
}

.lamp.locked { --lamp: #ffd35c; }
.lamp.tickets { --lamp: #ff6b5e; }
.lamp.idea { --lamp: #6fdc9a; }
.lamp.quiet { --lamp: #cfd6ff; }

.cell > .lamp {
  position: absolute;
  top: -14px;
  left: 50%;
  margin-left: -5px;
  z-index: 2;
}

.cell:hover .leaf, .cell:focus-visible .leaf { transform: rotateY(-42deg); }
.cell.past .leaf { transform: rotateY(-20deg); }
.cell.open .leaf { transform: rotateY(-112deg); }

.cell.today .frame { animation: glow 2.6s ease-in-out infinite; }

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 5px #201a33, 0 0 0 7px var(--gold), 0 0 26px 6px rgba(232, 198, 106, .35), 0 18px 30px rgba(0, 0, 0, .45); }
  50% { box-shadow: 0 0 0 5px #201a33, 0 0 0 7px var(--gold), 0 0 46px 14px rgba(232, 198, 106, .6), 0 18px 30px rgba(0, 0, 0, .45); }
}

.cell.sealed .leaf::after {
  top: 44%;
  left: 36%;
  right: 36%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e0564a, #8e1d16);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}

.cell.shake { animation: shake .4s; }

@keyframes shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* The grand double door for New Year's Eve */
.cell.finale { grid-column: span 3; aspect-ratio: auto; }
.cell.finale .frame { border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; }
.cell.finale .inside { font-size: clamp(.9rem, 2vw, 1.5rem); }
.cell.finale .leaf {
  right: 50%;
  border-radius: 100% 0 0 6px / 34% 0 0 6px;
  --c: #c9a03a;
  background: linear-gradient(100deg, #f4dc93, #a87a1c);
}
.cell.finale .leaf.right {
  left: 50%;
  right: 0;
  transform-origin: right center;
  border-radius: 0 100% 6px 0 / 0 34% 6px 0;
  background: linear-gradient(260deg, #f4dc93, #a87a1c);
}
.cell.finale .leaf::before { display: none; }
.cell.finale .leaf::after { top: 40%; height: 46%; left: 20%; right: 20%; }
.cell.finale .plate {
  top: 14%;
  left: 100%;
  min-width: 0;
  z-index: 2;
  color: #f8e7b0;
  background: linear-gradient(#3a2a5c, #1c1433);
}
.cell.finale .knob { right: 6%; width: 10%; }
.cell.finale .leaf.right .knob { right: auto; left: 6%; }
.cell.finale:hover .leaf, .cell.finale:focus-visible .leaf { transform: rotateY(-38deg); }
.cell.finale:hover .leaf.right, .cell.finale:focus-visible .leaf.right { transform: rotateY(38deg); }
.cell.finale.open .leaf { transform: rotateY(-105deg); }
.cell.finale.open .leaf.right { transform: rotateY(105deg); }
.cell.finale.past .leaf.right { transform: rotateY(20deg); }

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}

.legend li { display: flex; align-items: center; gap: .6rem; }

footer {
  padding: 1rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* The card that emerges from a door */
dialog {
  width: min(92vw, 34rem);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--paper-ink);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 198, 106, .5);
  overflow: hidden auto;
}

dialog[open] { animation: emerge .45s cubic-bezier(.2, .9, .3, 1.15); }

@keyframes emerge {
  from { opacity: 0; transform: scale(.82) translateY(24px); }
}

dialog::backdrop { background: rgba(6, 8, 22, .72); backdrop-filter: blur(4px); }

#fireworks { display: none; width: 100%; height: 170px; background: linear-gradient(#0b1026, #241a45); }
dialog.finale #fireworks { display: block; }

.card-body { padding: 1.6rem 1.7rem .6rem; }

.card-date {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-date .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--door, #8c2f2b);
}

.card-date .meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #7a6a58; }
.card-date .meta b { display: block; color: var(--paper-ink); letter-spacing: .14em; }

.card-body h2 {
  margin: .9rem 0 .4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #efe5cd;
}

.chip .lamp { width: 8px; height: 8px; box-shadow: none; }
.chip .lamp.locked { --lamp: #c99400; }
.chip .lamp.tickets { --lamp: #d23b2e; }
.chip .lamp.idea { --lamp: #2e9c5e; }
.chip .lamp.quiet { --lamp: #7a86c9; }

.facts { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.facts li { display: flex; gap: .6rem; padding: .15rem 0; }
.facts span { flex: 0 0 3.6rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7a6a58; padding-top: .2rem; }

.blurb { margin: .9rem 0 0; font-size: 1.04rem; line-height: 1.55; }

.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.links a {
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid #cdbb94;
  color: var(--paper-ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.links a:hover { background: #efe5cd; }

.reading {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold-deep);
  border-radius: 0 10px 10px 0;
  background: #f3ead2;
}

.reading .week { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #7a6a58; }
.reading h3 { margin: .25rem 0 .1rem; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.reading .theme { font-family: var(--display); font-style: italic; }
.reading p { margin: .35rem 0 0; line-height: 1.5; }
.reading a { color: #7a4b00; font-weight: 600; }

.card-nav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem 1.7rem 1.3rem;
  background: linear-gradient(rgba(251, 245, 230, 0), var(--paper) 35%);
}

.card-nav button {
  padding: .55rem 1rem;
  border: 1px solid #cdbb94;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--paper-ink);
  font: 600 .9rem var(--body);
  cursor: pointer;
}

.card-nav button:hover:not(:disabled) { background: #efe5cd; }
.card-nav button:disabled { opacity: .35; cursor: default; }

@media (max-width: 720px) {
  .weekdays, .blank { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .cell.finale { grid-column: span 2; aspect-ratio: 3 / 2; }
  .inside { font-size: .7rem; }
  .countdown { gap: .6rem; padding: .7rem 1rem; }
  .countdown .label { display: none; }
}

@media (min-width: 721px) {
  .cell.finale { min-height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .leaf, .knob, .today-btn { transition: none; }
  .cell.today .frame, .candle.lit .wax::before, dialog[open] { animation: none; }
}

/* Scene: moon, string lights, snowy hills */
.moon {
  position: absolute;
  top: 9vh;
  right: 7vw;
  width: clamp(60px, 9vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffdf0, #f3e6b8 60%, #d9c98e);
  box-shadow: 0 0 60px 18px rgba(255, 244, 200, .22), inset -10px -8px 0 rgba(160, 140, 80, .18);
  z-index: 0;
  pointer-events: none;
}

.lights { position: absolute; top: 0; left: 0; right: 0; height: 70px; z-index: 2; pointer-events: none; overflow: hidden; }
.lights svg { width: 100%; height: 70px; display: block; }
.bulb ellipse { filter: drop-shadow(0 0 6px currentColor); animation: twinkle 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hills { display: block; width: 100%; height: clamp(110px, 16vw, 220px); margin-top: 1rem; position: relative; z-index: 1; }
footer { background: #fff; color: #4a4f6b; padding-top: .4rem; }

/* Doors: snow on the lintel, wreaths, icons inside */
.frame::before {
  content: "";
  position: absolute;
  inset: -9px -9px auto -9px;
  height: 46%;
  border-top: 7px solid #fff;
  border-radius: 46% 46% 0 0 / 44% 44% 0 0;
  filter: drop-shadow(0 2px 2px rgba(120, 140, 200, .5));
  pointer-events: none;
  z-index: 3;
}

.cell.finale .frame::before { border-radius: 50% 50% 0 0 / 74% 74% 0 0; }

.frame::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -7px;
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(#fff, #cfd8f5);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}

.ico { width: 2.2em; height: 2.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inside .ico { margin-bottom: .2em; opacity: .85; }

.wreath {
  position: absolute;
  top: 27%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 8%, #d8342a 0 5%, transparent 6%),
    radial-gradient(circle at 12% 40%, #d8342a 0 5%, transparent 6%),
    radial-gradient(circle at 88% 40%, #d8342a 0 5%, transparent 6%),
    radial-gradient(circle at 26% 84%, #d8342a 0 5%, transparent 6%),
    radial-gradient(circle at 74% 84%, #d8342a 0 5%, transparent 6%),
    repeating-conic-gradient(#1d6b38 0 9deg, #2f9150 9deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 40%, #000 42% 70%, transparent 72%);
          mask: radial-gradient(circle, transparent 0 40%, #000 42% 70%, transparent 72%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}

.leaf:has(.wreath)::before { opacity: .45; }

/* View switch */
.views {
  display: inline-flex;
  margin-top: 1.6rem;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(232, 198, 106, .35);
  background: rgba(11, 16, 38, .6);
}

.views button {
  padding: .5rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 .9rem var(--body);
  cursor: pointer;
}

.views button[aria-pressed="true"] { background: var(--gold); color: #2a1a04; }

/* Calendar view */
.cal-tools { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: 1.2rem; }
.cal-tools h2 { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.switch { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; cursor: pointer; }
.switch input { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; }

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 8.2rem;
  padding: .6rem .65rem .7rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.day:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); }
.day:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.day .when { display: flex; align-items: baseline; gap: .4rem; }
.day .when b { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.day .when small { display: none; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.day .what { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.day .name { font-weight: 700; font-size: .88rem; line-height: 1.2; }
.day .name .lamp { width: 8px; height: 8px; margin-right: .4em; box-shadow: 0 0 6px 1px var(--lamp); }
.day .time, .day .place { font-size: .72rem; line-height: 1.25; color: var(--muted); }
.day .place { display: none; }

.day:not(.planned) .what { visibility: hidden; }
.cal.all .day:not(.planned) .what { visibility: visible; opacity: .75; }
.cal.all .day:not(.planned) .name { font-weight: 500; }

.day.planned { background: linear-gradient(160deg, rgba(232, 198, 106, .22), rgba(232, 198, 106, .07)); border-color: rgba(232, 198, 106, .5); }
.day.planned.tickets { background: linear-gradient(160deg, rgba(255, 107, 94, .22), rgba(255, 107, 94, .06)); border-color: rgba(255, 107, 94, .55); }
.day.today { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(232, 198, 106, .4); }
.day.past { opacity: .6; }

.card-date .badge { margin-left: auto; color: var(--door, #8c2f2b); font-size: 1.15rem; opacity: .85; }

@media (max-width: 720px) {
  .moon { top: 5vh; right: 4vw; opacity: .8; }
  .cal { grid-template-columns: 1fr; }
  .day { flex-direction: row; align-items: center; gap: 1rem; min-height: 0; padding: .8rem 1rem; }
  .day .when { flex: 0 0 3.2rem; flex-direction: column; align-items: center; gap: .15rem; }
  .day .when b { font-size: 1.7rem; }
  .day .when small { display: block; }
  .day .name { font-size: 1rem; }
  .day .time, .day .place { display: block; font-size: .82rem; }
  .day:not(.planned) { display: none; }
  .cal.all .day:not(.planned) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .bulb ellipse { animation: none; }
}

.top { padding-top: clamp(4.8rem, 8vw, 6rem); }
.card-date .badge { order: 3; }

@media (max-width: 720px) {
  .moon { display: none; }
}

/* Days Amanda is out of town */
.day .away { margin-top: auto; align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfd6ff; border: 1px dashed rgba(207, 214, 255, .5); }
.day.is-away { background: repeating-linear-gradient(135deg, rgba(207, 214, 255, .07) 0 10px, transparent 10px 20px); }
.chip.away { margin-left: .4rem; background: #e3e6f7; }
@media (max-width: 720px) {
  .day .away { margin: 0 0 0 auto; align-self: center; }
  .cal .day.is-away { display: flex; }
}

@media (max-width: 720px) {
  .countdown { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .countdown .label { display: block; flex-basis: 100%; text-align: center; }
}

/* Calendar hints and tentative Sundays */
.day .when { width: 100%; }
.day .hint { margin-left: auto; font-size: .62rem; color: var(--gold); opacity: .8; }
.day:not(.planned):not(.tentative) .hint { opacity: .4; color: var(--muted); }
.day.tentative .what { visibility: visible; }
.day.tentative { border-style: dashed; border-color: rgba(111, 220, 154, .5); background: rgba(111, 220, 154, .06); }
.day.tentative .name::after { content: "tentative"; display: block; margin-top: .2rem; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6fdc9a; }

/* Playlist */
.playlist-btn { display: flex; align-items: center; gap: .5rem; margin: 1rem auto 0; padding: .5rem 1.1rem; border: 1px solid rgba(232, 198, 106, .45); border-radius: 999px; background: rgba(11, 16, 38, .6); color: var(--gold); font: 600 .9rem var(--body); cursor: pointer; }
.playlist-btn .ico { width: 1.1em; height: 1.1em; }
.playlist-btn:hover { background: rgba(232, 198, 106, .15); }
#playlist iframe { width: 100%; border: 0; border-radius: 12px; margin-top: .8rem; }
#playlist p { line-height: 1.55; }
#playlist a { color: #7a4b00; font-weight: 600; }

@media (max-width: 720px) {
  .day .when { width: auto; }
  .day .hint { display: none; }
  .cal .day.tentative { display: flex; }
}
