/* visit.css — Visit Chandler's own pieces: the city-desert dial that opens
 * the homepage, the day it builds, and the homepage bands.
 *
 * The dial is two photographs in one frame, split by a seam the range input
 * moves: --city is the city photograph's share of the frame, from a fifth to
 * four fifths, so neither picture ever leaves. --mix (0 all city, 1 all
 * desert) tints the frame's sky from cool blue to sunset and drives the
 * track's color. Everything is laid out for the half-and-half day the server
 * prints; the script only changes the two custom properties and swaps cards.
 */

/* ------------------------------------------------------------------ dial */
.dial {
  --mix: 0.5;
  --city: 50%;
  --sky: color-mix(in oklch, #2f7fe6 calc((1 - var(--mix)) * 100%), #f2603a);
  padding-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem);
}

.dial__head {
  margin-bottom: clamp(1.1rem, 0.9rem + 1.2vw, 2rem);
}

/* One line across the frame it introduces, wide enough that "city" sits over
   the city and "desert" over the desert; it breaks in two on narrower screens. */
.dial__head h1 {
  font-size: clamp(2.5rem, 0.5rem + 4.9vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.dial__lede {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.4;
}

.dial__frame {
  position: relative;
  display: flex;
  gap: 5px;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: clamp(18px, 2.4vw, 30px);
  background: var(--paper);
}

.dial__pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tint);
}

.dial__pane--city {
  flex: 0 0 calc(var(--city) - 2.5px);
  transition: flex-basis 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dial__pane--desert {
  flex: 1 1 0;
}

.dial__pane--city .ph--cover {
  object-position: 62% 40%;
}

.dial__pane--desert .ph--cover {
  object-position: 70% 55%;
}

/* The sky: a wash over the top of each picture that turns with the dial. */
.dial__pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--sky) 62%, transparent) 0%, transparent 46%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: background 0.55s ease;
}

.dial__tag {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgb(14 27 61 / 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dial__pane--desert .dial__tag {
  right: 0.9rem;
  left: auto;
}

.dial__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 2.5rem;
  align-items: center;
  margin-top: clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
}

@media (min-width: 62rem) {
  /* Label, track and button share one line: the track's, so the button sits
     level with the handle instead of between the track and the summary. */
  .dial__control {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto;
    align-items: start;
  }

  .dial__now {
    grid-column: 1 / -1;
  }

  .dial__go {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
  }
}

.dial__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.dial__track {
  min-width: 0;
}

.dial__track input[type="range"] {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.dial__track input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.55) 0 2px, transparent 2px 6px),
    linear-gradient(to right, #214fa1 0%, #00c1a0 38%, #ffb81c 70%, #f2603a 100%);
}

.dial__track input[type="range"]::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.55) 0 2px, transparent 2px 6px),
    linear-gradient(to right, #214fa1 0%, #00c1a0 38%, #ffb81c 70%, #f2603a 100%);
}

.dial__track input[type="range"]::-webkit-slider-thumb {
  width: 2.2rem;
  height: 2.2rem;
  margin-top: calc(7px - 1.1rem);
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px -3px rgb(14 27 61 / 0.5);
  -webkit-appearance: none;
  appearance: none;
}

.dial__track input[type="range"]::-moz-range-thumb {
  width: 1.6rem;
  height: 1.6rem;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px -3px rgb(14 27 61 / 0.5);
}

.dial__track input[type="range"]:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

.dial__stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.dial__stops li {
  text-align: center;
}

.dial__stops li:first-child {
  text-align: left;
}

.dial__stops li:last-child {
  text-align: right;
}

.dial__stops .is-on {
  color: var(--ink);
  font-weight: 700;
}

.dial__now {
  font-size: 1.125rem;
  line-height: 1.45;
}

.dial__noscript {
  margin-top: 1rem;
}

.dial__noscript a {
  margin-right: 0.9rem;
}

.dial__day {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding: 0;
  list-style: none;
}

.daycard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--rule);
  border-radius: 24px;
  background: var(--paper);
}

.daycard--city {
  border-color: color-mix(in srgb, var(--brand) 38%, white);
}

.daycard--desert {
  border-color: color-mix(in srgb, var(--coral) 60%, white);
}

/* The part of the day is a band of its own light: dawn, noon, dusk. */
.daycard__slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(100deg, #ffe3a1 0%, #bfe3ff 100%);
}

.daycard--afternoon .daycard__slot {
  background: linear-gradient(100deg, #bfe3ff 0%, #9df0de 100%);
}

.daycard--evening .daycard__slot {
  background: linear-gradient(100deg, #ffc48a 0%, #f3a7c6 60%, #b9b4f2 100%);
}

.daycard__when {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.daycard__side {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daycard--desert .daycard__side {
  background: var(--coral-ink);
}

/* Every card's photograph is cut to one shape, so the three cards line up. */
.daycard__img {
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}

.daycard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}

.daycard__title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.daycard__title a {
  display: inline-block;
  padding-block: 0.1rem;
  color: var(--ink);
  text-decoration: none;
}

.daycard__title a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.daycard__kicker {
  margin-top: 0.2rem;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daycard__text {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.daycard__swap {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.9375rem;
}

.dial > .furrow--field {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --furrow: color-mix(in oklch, var(--sky) 40%, var(--accent));
}

@media (max-width: 61.99rem) {
  .dial__day {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 47.99rem) {
  .dial__frame {
    flex-direction: column;
    aspect-ratio: 3 / 4;
  }
}

/* ---------------------------------------------------------- homepage bands */
.home-band {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.home-band h2 {
  margin-bottom: 0.9rem;
}

.home-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .home-events:has(.feature) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.feature {
  overflow: hidden;
  border-radius: 26px;
  background: var(--dusk);
  color: #fff;
  --focus: var(--gold);
}

.feature .ph {
  max-width: 100%;
  border-radius: 0;
}

.feature__body {
  padding: 1.4rem 1.6rem 1.7rem;
}

.feature .eyebrow {
  color: var(--gold);
}

.feature__title {
  margin: 0.3rem 0 0.4rem;
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.feature__title a {
  color: #fff;
  text-decoration-thickness: 0.06em;
}

.feature__title a:hover {
  color: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .split--flip .split__media {
    order: 2;
  }
}

.split__media .ph {
  border-radius: 26px;
}

/* Two photographs as one picture: the wide one, and a second set into its corner. */
.split__media--pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-bottom: 14%;
}

.split__media--pair .ph:first-child {
  grid-column: 1 / 12;
  grid-row: 1;
}

.split__media--pair .ph:last-child {
  grid-column: 6 / 13;
  grid-row: 1;
  align-self: end;
  z-index: 1;
  margin-bottom: -22%;
  border: 6px solid var(--paper);
  border-radius: 22px;
}

.split__copy p + p {
  margin-top: 1rem;
}

.split__copy .actions {
  margin-top: 1.5rem;
}

.home-band--town {
  background: var(--tint);
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.band-head .more {
  margin: 0;
}

.band-head .more a {
  display: inline-block;
  padding-block: 0.2rem;
  font-weight: 700;
}

.closing {
  display: grid;
  gap: 1.5rem;
  max-width: 50rem;
}

.closing__copy .actions {
  margin-top: 1.4rem;
}

.closing__cross {
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- day page */
.day-dial {
  max-width: 46rem;
}

.day + .day {
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--rule);
}

.day__line {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.day-more .actions {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------- articles */
.prose--article {
  font-size: 1.125rem;
}
