/* Home. Measurements are the reference page's; every colour, type size and
   spacing value is a design token (tokens standard, T3). The breakpoint is the
   token breakpoint.lg, written as a number because a container condition
   cannot read a custom property (T5). The sections a link lands on keep 72 px
   clear above them: the height of the sticky header. */

/* ---------------------------------------------------------------- hero */

.ui-hero__text--site {
  gap: var(--lcr-space-20);
  padding: var(--lcr-space-fluid-36-88) 0;
}
.ui-hero__heading {
  margin: 0;
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-fluid-36-60);
  line-height: 1.1;
  color: var(--lcr-color-green);
  text-wrap: balance;
}
.ui-hero__lead {
  margin: 0;
  max-width: 46ch;
  font-size: var(--lcr-font-size-fluid-16-18);
}
.ui-hero__actions--site { margin-top: var(--lcr-space-8); }
/* The hero photo's block: the size and place of the hatched block that stood here until the photo came
   (register entries R-09 and D-17). The photo fills it by cropping (.ui-photo, site.css), so the block's
   size never waits on the photo. */
.ui-hero__photo {
  flex: 1.25 1 460px;
  min-width: 0;
  min-height: clamp(260px, 40cqw, 600px);
}

/* ---------------------------------------------------------------- the date-search band */

.ui-search {
  background: var(--lcr-color-green);
  color: var(--lcr-color-ground);
  scroll-margin-top: 72px;
}
.ui-search__inner {
  padding-top: var(--lcr-space-28);
  padding-bottom: var(--lcr-space-28);
}

/* ---------------------------------------------------------------- a section's opening lines */

.ui-intro {
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-16);
}
.ui-intro__body {
  margin: 0;
  max-width: 60ch;
  color: var(--lcr-color-ink-muted);
}

/* ---------------------------------------------------------------- the homes */

.ui-homes { scroll-margin-top: 72px; }
.ui-homes__inner {
  padding-top: var(--lcr-space-section-y);
  padding-bottom: var(--lcr-space-section-y);
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-fluid-40-72);
}
.ui-home-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lcr-space-28) var(--lcr-space-fluid-32-80);
}
.ui-home-row--reverse { flex-direction: row-reverse; }
.ui-home-row__photo {
  flex: 3 1 440px;
  min-width: 0;
  display: block;
  text-decoration: none;
}
.ui-home-row__image { aspect-ratio: 3 / 2; }
.ui-home-row__text {
  flex: 2 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-12);
}
.ui-home-row__name {
  margin: 0;
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-fluid-34-48);
  line-height: 1.1;
  color: var(--lcr-color-green);
}
.ui-home-row__address {
  margin: 0;
  font-size: var(--lcr-font-size-18);
  font-weight: var(--lcr-font-weight-medium);
}
.ui-home-row__location {
  margin: 0;
  color: var(--lcr-color-ink-muted);
}
.ui-home-row__specs {
  margin: 0;
  padding-top: var(--lcr-space-14);
  border-top: 1px solid var(--lcr-color-line);
  font-size: var(--lcr-font-size-15);
  color: var(--lcr-color-ink-muted);
}
.ui-home-row__link {
  align-self: flex-start;
  margin-top: var(--lcr-space-8);
}

/* ---------------------------------------------------------------- where the homes are */

.ui-map-section {
  background: var(--lcr-color-surface-alt);
  scroll-margin-top: 72px;
}
.ui-map-section__inner {
  padding-top: var(--lcr-space-section-y);
  padding-bottom: var(--lcr-space-section-y);
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-fluid-28-44);
}
.ui-map-stage { position: relative; }
.ui-map-stage__narrow { flex-direction: column; }
/* The list of the three homes: on a card over the lake above 1060 px, under the map at 1060 px and below. */
.ui-homes-list {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 330px;
  box-sizing: border-box;
  background: var(--lcr-color-ground);
  border: 1px solid var(--lcr-color-line);
  box-shadow: 0 20px 40px -28px var(--lcr-color-shadow);
  padding: var(--lcr-space-20) var(--lcr-space-22) var(--lcr-space-8);
}
@container lcr (max-width: 1060px) {
  .ui-homes-list {
    position: static;
    width: auto;
    margin-top: var(--lcr-space-16);
  }
}
.ui-homes-list__heading { margin: 0 0 var(--lcr-space-12); }
.ui-homes-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ui-homes-list__item {
  display: flex;
  gap: var(--lcr-space-14);
  padding: var(--lcr-space-14) 0;
  border-top: 1px solid var(--lcr-color-line);
}
.ui-homes-list__text {
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-1);
  min-width: 0;
}
.ui-homes-list__name {
  font-size: var(--lcr-font-size-19);
  font-weight: var(--lcr-font-weight-medium);
  line-height: 1.3;
  color: var(--lcr-color-green);
  text-decoration: none;
}
.ui-homes-list__address { font-size: var(--lcr-font-size-14); }
.ui-homes-list__nearest {
  font-size: var(--lcr-font-size-13);
  font-weight: var(--lcr-font-weight-semibold);
  color: var(--lcr-color-orange-text);
}

/* ---------------------------------------------------------------- visiting Chautauqua */

.ui-visiting { scroll-margin-top: 72px; }
.ui-visiting__inner {
  padding-top: var(--lcr-space-section-y);
  padding-bottom: var(--lcr-space-section-y);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--lcr-space-40) var(--lcr-space-fluid-40-96);
}
.ui-visiting__intro {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-28);
}
.ui-season {
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-4);
  padding: var(--lcr-space-22) var(--lcr-space-24);
  background: var(--lcr-color-surface-alt);
  border-top: 4px solid var(--lcr-color-orange);
}
.ui-season__dates {
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-30);
  line-height: 1.2;
  color: var(--lcr-color-orange-text);
}
.ui-season__note {
  font-size: var(--lcr-font-size-13);
  color: var(--lcr-color-ink-muted);
}
.ui-chq {
  flex: 1.6 1 460px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lcr-color-line);
}
.ui-chq__item { border-bottom: 1px solid var(--lcr-color-line); }
.ui-chq__link {
  display: flex;
  align-items: center;
  gap: var(--lcr-space-18);
  padding: var(--lcr-space-16) 0;
  min-height: 52px;
  color: var(--lcr-color-ink);
  text-decoration: none;
}
.ui-chq__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lcr-color-surface-alt);
  color: var(--lcr-color-green);
}
.ui-chq__text {
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-2);
  min-width: 0;
  flex-grow: 1;
}
.ui-chq__label {
  font-size: var(--lcr-font-size-18);
  font-weight: var(--lcr-font-weight-medium);
  color: var(--lcr-color-green);
}
/* Under the pointer a text link turns the darker orange; the row's link is its label. */
.ui-chq__link:hover .ui-chq__label { color: var(--lcr-color-orange-text); }
.ui-chq__description {
  font-size: var(--lcr-font-size-14);
  color: var(--lcr-color-ink-muted);
}
.ui-chq__arrow {
  display: inline-flex;
  color: var(--lcr-color-orange-text);
}

/* ---------------------------------------------------------------- guest reviews */

.ui-quotes {
  background: var(--lcr-color-green);
  color: var(--lcr-color-ground);
}
.ui-quotes__inner {
  padding-top: var(--lcr-space-fluid-56-88);
  padding-bottom: var(--lcr-space-fluid-56-88);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--lcr-space-24);
  text-align: center;
}
.ui-quotes__eyebrow {
  margin: 0;
  font-size: var(--lcr-font-size-12);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lcr-color-on-green-muted);
}
/* The quote keeps three lines' room, so the pager does not move as the quotes change. */
.ui-quotes__text {
  margin: 0;
  max-width: 32ch;
  min-height: 3.9em;
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-fluid-22-34);
  line-height: 1.3;
}
.ui-quotes__attribution {
  margin: 0;
  font-size: var(--lcr-font-size-14);
  color: var(--lcr-color-on-green-muted);
}
.ui-quotes__pager {
  display: flex;
  align-items: center;
  gap: var(--lcr-space-18);
}
.ui-quotes__button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--lcr-color-ground);
  border: 1px solid var(--lcr-color-ground);
  border-radius: 50%;
  cursor: pointer;
}
.ui-quotes__button--previous { transform: rotate(180deg); }
.ui-quotes__position {
  font-size: var(--lcr-font-size-14);
  font-weight: var(--lcr-font-weight-medium);
  min-width: 52px;
}
