/* What the pages share: the small parts that appear on Home and on a home's
   page alike. Loaded on every page (src/site.mjs). Measurements are the
   reference pages'; every colour, type size and spacing value is a design
   token (tokens standard, T3). */

/* ---------------------------------------------------------------- words */

/* The orange line above a heading. */
.ui-eyebrow {
  margin: 0;
  font-size: var(--lcr-font-size-12);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lcr-color-orange-text);
}
.ui-eyebrow--badge {
  display: flex;
  align-items: center;
  gap: var(--lcr-space-12);
}

/* The small grey capitals over a group of things. */
.ui-label {
  margin: 0;
  font-size: var(--lcr-font-size-12);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lcr-color-ink-muted);
}

/* A section heading at Home's size. */
.ui-h2 {
  margin: 0;
  font-family: var(--lcr-font-family);
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-h2);
  line-height: 1.15;
  color: var(--lcr-color-green);
  text-wrap: balance;
}

/* An underlined link with an arrow after it. */
.ui-link {
  display: inline-flex;
  align-items: center;
  gap: var(--lcr-space-8);
  min-height: 44px;
  font-size: var(--lcr-font-size-15);
  font-weight: var(--lcr-font-weight-semibold);
  color: var(--lcr-color-green);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------------- a home's number */

.ui-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lcr-color-green);
  color: var(--lcr-color-paper);
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-13);
  line-height: 1;
  flex-shrink: 0;
}
.ui-badge--lg {
  width: 28px;
  height: 28px;
  font-size: var(--lcr-font-size-14);
}

/* ---------------------------------------------------------------- a photo in a frame */

.ui-photo {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--lcr-color-photo-ground);
}
.ui-photo img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- the split hero */

.ui-hero { background: var(--lcr-color-surface-alt); }
.ui-hero__inner {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: stretch;
  gap: 0 var(--lcr-space-fluid-32-72);
}
.ui-hero__text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ui-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lcr-space-12);
}

/* ---------------------------------------------------------------- under a map */

.ui-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--lcr-space-4) var(--lcr-space-28);
  margin-top: var(--lcr-space-12);
}
.ui-map-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--lcr-space-28);
}
.ui-map-foot__credit {
  margin: 0;
  font-size: var(--lcr-font-size-12);
  color: var(--lcr-color-ink-muted);
}
