.camp {
  --night: #140d42;
  --paper: #ffffff;
  --soft: #e3dcff;
  --glow: #ffae2b;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  font-family: "Schibsted Grotesk Variable", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* the field: one crisp bar across the top of the sky */
.camp-field {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  height: 58px;
  background: var(--paper);
  color: var(--night);
  display: grid;
  grid-template-columns: 1fr auto 58px;
  grid-template-rows: 21px 1fr;
  column-gap: 12px;
}
.camp-label {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding-left: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 15px;
  color: #5a4fb0;
}
.camp-input {
  all: unset;
  grid-column: 1;
  grid-row: 2;
  padding: 0 0 5px 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 32px;
  color: var(--night);
  min-width: 0;
}
.camp-input::placeholder {
  color: #a9a3d6;
  font-weight: 600;
}
.camp-rate {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: camp-rate 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes camp-rate {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.camp-trigger {
  all: unset;
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 140ms, color 140ms;
}
.camp-trigger svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.camp-trigger:hover {
  background: #2d2191;
}
.camp-trigger[data-open] {
  background: var(--glow);
  color: var(--night);
}
.camp-trigger:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}

/* the calendar: white type set straight on the sky, unrolling from the field's lower edge */
.camp-pop {
  width: var(--anchor-width);
  box-sizing: border-box;
  margin: 0;
  border: 0;
  outline: none;
  padding: 0;
  background: none;
  color: var(--paper);
  overflow: visible;
  clip-path: inset(0 -12px 0 -12px);
  transition: clip-path 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* a light dusk scrim where the sky pales toward the horizon; it fades out into the far shore */
.camp-pop::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(30 18 96 / 0) 34%, rgb(30 18 96 / 0.36) 76%, rgb(30 18 96 / 0.36) 90%, rgb(30 18 96 / 0) 100%);
}
.camp-pop[data-starting-style] {
  clip-path: inset(0 -12px 100% -12px);
  transform: translateY(-10px);
}
/* closing waits a beat, so the pick is seen */
.camp-pop[data-ending-style] {
  clip-path: inset(0 -12px 100% -12px);
  transition: clip-path 220ms cubic-bezier(0.5, 0, 0.8, 0.4) 220ms;
}

/* the weeks follow the unrolling edge one by one, each whole */
.camp-grid tbody tr {
  animation: camp-week 190ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.camp-grid tbody tr:nth-child(1) { animation-delay: 40ms; }
.camp-grid tbody tr:nth-child(2) { animation-delay: 72ms; }
.camp-grid tbody tr:nth-child(3) { animation-delay: 104ms; }
.camp-grid tbody tr:nth-child(4) { animation-delay: 136ms; }
.camp-grid tbody tr:nth-child(5) { animation-delay: 168ms; }
.camp-grid tbody tr:nth-child(6) { animation-delay: 200ms; }
@keyframes camp-week {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.camp-head {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px 0 14px;
}
.camp-month {
  flex: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 26px;
}
.camp-nav {
  all: unset;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 120ms;
}
.camp-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
.camp-nav:hover {
  box-shadow: inset 0 0 0 1.5px var(--paper);
}
.camp-nav[data-disabled] {
  color: rgb(255 255 255 / 0.4);
  cursor: default;
  box-shadow: none;
}

.camp-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.camp-grid th,
.camp-grid td {
  padding: 0;
}
.camp-wd {
  height: 19px;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--soft);
  text-align: center;
  vertical-align: top;
}
.camp-day {
  height: 47px;
  cursor: pointer;
  outline: none;
  text-align: center;
}
/* number over price, in a pill that outlines on hover and fills when picked */
.camp-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 44px;
  border-radius: 22px;
  vertical-align: middle;
  transition: background-color 110ms, color 110ms, box-shadow 110ms;
}
.camp-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
}
.camp-price {
  font-size: 13px;
  font-weight: 600;
  line-height: 14px;
  color: var(--soft);
  transition: color 110ms;
}
.camp-day[data-outside] {
  visibility: hidden;
}
.camp-day:hover .camp-cell {
  box-shadow: inset 0 0 0 1.5px var(--paper);
}
.camp-day[data-unavailable] {
  cursor: default;
}
.camp-day[data-unavailable] .camp-cell {
  box-shadow: none;
  opacity: 0.5;
}
.camp-day[data-unavailable] .camp-num {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.camp-day[data-selected] .camp-cell {
  background: var(--glow);
  color: var(--night);
  box-shadow: none;
}
.camp-day[data-selected] .camp-price {
  color: var(--night);
}
.camp-day:focus-visible .camp-cell {
  outline: 2px solid var(--paper);
  outline-offset: 1px;
}
