/* Embrace's parts, still: the header, the hero in the logo's disc, the residences as arched windows, the care band, the gallery,
   the map, the contacts and the phone's thumb bar. Mobile first; the wide screen at 860px. How each moves is `motion.css`. */

/* The header */
.em-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--em-header);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--em-line);
}

.em-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 70px;
}

.em-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--em-ink);
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.05;
  text-decoration: none;
}

.em-page .em-brand {
  color: var(--em-ink);
  text-decoration: none;
}

.em-brand-logo {
  width: 48px;
  height: 52px;
  flex: 0 0 48px;
}

.em-brand-name {
  white-space: nowrap;
}

.em-nav {
  display: none;
}

.em-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-round {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--em-line-strong);
  background: transparent;
  color: var(--em-ink);
  cursor: pointer;
}

.em-round svg {
  width: 22px;
  height: 22px;
}

/* What shows by day alone, and what by night alone: the logo's lettering, the theme button's sign */
.em-page .em-night {
  display: none;
}

[data-theme='dark'] .em-page .em-night {
  display: block;
}

[data-theme='dark'] .em-page .em-day {
  display: none;
}

/* The menu on a phone: a sheet over the page, opened by the popover API */
.em-drawer {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--em-paper);
  color: var(--em-text);
}

.em-drawer::backdrop {
  background: var(--em-veil);
}

.em-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px 20px 32px;
}

.em-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.em-drawer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--em-line);
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-size: 1.6rem;
  color: var(--em-ink);
  text-decoration: none;
}

.em-page .em-drawer-link {
  color: var(--em-ink);
  text-decoration: none;
}

.em-drawer-sub {
  padding: 10px 4px 10px 22px;
  font-size: 1.08rem;
  color: var(--em-muted);
  text-decoration: none;
}

.em-page .em-drawer-sub {
  color: var(--em-muted);
  text-decoration: none;
}

.em-drawer-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 24px;
}

/* Buttons */
.em-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 99px;
  border: 2px solid transparent;
  font-family: "f-d64ba838ef5472bba248620ec4fd8b5aa7cf0db2908e0bb230600caf279ba7bc", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.em-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.em-page .em-button-solid {
  background: var(--em-action);
  color: var(--em-action-text);
  box-shadow: var(--em-shadow);
  text-decoration: none;
}

.em-page .em-button-solid:hover {
  background: var(--em-action-hover);
}

.em-page .em-button-line {
  border-color: var(--em-accent);
  color: var(--em-accent);
  text-decoration: none;
}

.em-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* The hero: a photograph in the logo's disc, held by a cradle */
.em-hero {
  position: relative;
  padding: 28px 0 56px;
  overflow: clip;
}

.em-hero-grid {
  display: grid;
  gap: 34px;
}

.em-disc {
  position: relative;
  width: min(86vw, 540px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.em-disc-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3.2%;
  background: radial-gradient(circle at 50% 46%, var(--em-paper) 58%, var(--em-disc-rim) 82%, var(--em-accent) 100%);
  box-shadow: var(--em-shadow);
}

.em-disc-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.em-page .em-disc-photo {
  height: 100%;
}

.em-cradle {
  position: absolute;
  left: -9%;
  bottom: -11%;
  width: 118%;
  height: auto;
  color: var(--em-peach-deep);
}

.em-cradle-line {
  stroke-dasharray: 900;
}

.em-hero-title {
  margin-top: 14px;
}

.em-badge {
  position: absolute;
  right: 2%;
  top: 6%;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--em-peach);
  color: var(--em-ink);
  text-align: center;
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-size: clamp(0.8rem, 3.4vw, 1.05rem);
  line-height: 1.1;
  box-shadow: var(--em-shadow);
  rotate: 8deg;
}

.em-badge-big {
  display: block;
  font-size: 1.9em;
  font-weight: 640;
}

/* Key figures */
.em-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--em-line);
  border: 1px solid var(--em-line);
}

.em-figure {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 18px 16px;
  background: var(--em-paper-warm);
}

.em-figure-value {
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--em-accent);
}

.em-figure-text {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--em-muted);
}

/* Residences: arched windows, a swipe on a phone */
.em-rail {
  display: flex;
  gap: 16px;
  margin: 0 -20px;
  padding: 6px 20px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}

.em-rail::-webkit-scrollbar {
  display: none;
}

.em-home {
  flex: 0 0 76%;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  color: var(--em-text);
  text-decoration: none;
}

.em-page .em-home {
  color: var(--em-text);
  text-decoration: none;
}

.em-arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  background: var(--em-peach);
  box-shadow: var(--em-shadow);
}

.em-arch-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-page .em-arch-photo {
  height: 100%;
}

.em-home-name {
  margin-top: 12px;
}

.em-home-where {
  font-size: 0.95rem;
  color: var(--em-muted);
}

.em-tag {
  justify-self: start;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--em-accent-soft);
  color: var(--em-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.em-swipe-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--em-muted);
}

/* The care band */
.em-band {
  position: relative;
  background: var(--em-band);
  color: var(--em-band-text);
  border-radius: 40px 40px 0 0;
}

.em-band-end {
  border-radius: 0 0 40px 40px;
}

.em-page .em-band h2,
.em-page .em-band h3 {
  color: var(--em-band-text);
}

.em-band .em-kicker {
  color: var(--em-peach);
}

.em-band .em-lead {
  color: var(--em-band-muted);
}

.em-services {
  display: grid;
  gap: 12px;
}

.em-service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: var(--em-band-raised);
  border: 1px solid var(--em-band-line);
}

.em-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--em-peach);
}

.em-service-title {
  display: block;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.3;
}

.em-service-text {
  display: block;
  margin-top: 2px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--em-band-muted);
}

.em-gift {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 26px 22px;
  border-radius: 26px;
  background: var(--em-peach);
  color: var(--em-ink);
}

.em-page .em-gift h3 {
  color: var(--em-ink);
  font-size: 1.6rem;
}

.em-gift .em-kicker {
  color: var(--em-terracotta);
}

/* Life with us: a mosaic of their days */
.em-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 168px;
  gap: 10px;
}

.em-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--em-peach);
}

.em-tile-tall {
  grid-row: span 2;
}

.em-tile-wide {
  grid-column: span 2;
}

.em-tile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-page .em-tile-photo {
  height: 100%;
}

.em-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--em-header);
  backdrop-filter: blur(8px);
  color: var(--em-ink);
  font-size: 0.84rem;
  line-height: 1.3;
}

.em-quote {
  margin: 36px 0 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--em-terracotta);
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  line-height: 1.25;
  color: var(--em-ink);
}

.em-quote-who {
  display: block;
  margin-top: 12px;
  font-family: "f-d64ba838ef5472bba248620ec4fd8b5aa7cf0db2908e0bb230600caf279ba7bc", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--em-muted);
}

/* The map */
.em-map {
  padding: 10px;
  border-radius: 30px;
  background: var(--em-paper-warm);
  border: 1px solid var(--em-line);
}

.em-map-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--em-ink);
}

.em-map-land {
  fill: var(--em-map-land);
}

.em-map-hill {
  fill: var(--em-map-hill);
}

.em-map-river {
  stroke: var(--em-map-river);
}

.em-map-pin {
  fill: var(--em-accent);
}

.em-map-pin-out {
  fill: var(--em-terracotta);
}

.em-map-dot {
  fill: var(--em-paper);
}

.em-map-label {
  fill: var(--em-ink);
  font-family: "f-d64ba838ef5472bba248620ec4fd8b5aa7cf0db2908e0bb230600caf279ba7bc", system-ui, sans-serif;
  font-weight: 700;
}

.em-map-small {
  fill: var(--em-muted);
  font-family: "f-d64ba838ef5472bba248620ec4fd8b5aa7cf0db2908e0bb230600caf279ba7bc", system-ui, sans-serif;
}

.em-map-city {
  fill: var(--em-ink);
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-style: italic;
}

/* Contacts */
.em-phones {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.em-phone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--em-surface);
  border: 1.5px solid var(--em-line);
  color: var(--em-ink);
  text-decoration: none;
}

.em-page .em-phone {
  color: var(--em-ink);
  text-decoration: none;
}

.em-phone:hover {
  border-color: var(--em-accent);
}

.em-phone-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  background: var(--em-action);
  color: var(--em-action-text);
}

.em-phone-icon svg {
  width: 24px;
  height: 24px;
}

.em-phone-number {
  display: block;
  font-family: "f-7f9d191d999336d3b9790afa72e1358e50a13b06d4f289341e92a311967a80f9", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  word-break: break-word;
}

.em-phone-note {
  display: block;
  font-size: 0.9rem;
  color: var(--em-muted);
}

/* An inner page's opening */
.em-intro {
  padding: 26px 0 40px;
}

.em-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--em-muted);
}

.em-page .em-crumbs a {
  color: var(--em-muted);
}

.em-intro-photo {
  margin-top: 28px;
  aspect-ratio: 4 / 3;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  box-shadow: var(--em-shadow);
}

.em-intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-page .em-intro-img {
  height: 100%;
}

/* A residence's facts */
.em-facts {
  display: grid;
  gap: 1px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--em-line);
  border: 1px solid var(--em-line);
}

.em-fact {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: var(--em-surface);
}

.em-fact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em-terracotta);
}

.em-fact-value {
  margin: 0;
  font-size: 1.06rem;
  color: var(--em-ink);
}

/* A residence's gallery, and the lens that opens a photograph */
.em-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.em-shot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--em-peach);
  cursor: zoom-in;
}

.em-shot-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.em-shot-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-page .em-shot-photo {
  height: 100%;
}

.em-lens {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--em-veil);
  color: #fff;
}

.em-lens::backdrop {
  background: var(--em-veil);
}

.em-lens-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 14px;
  gap: 10px;
}

.em-lens-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.em-lens-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.em-page .em-lens-photo {
  height: 100%;
}

.em-lens-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.em-lens .em-round {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.em-credit {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--em-muted);
}

/* Two columns on a wide screen, one on a phone */
.em-split {
  display: grid;
  gap: 34px;
}

/* The footer */
.em-footer {
  padding: 56px 0 120px;
  border-top: 1px solid var(--em-line);
  background: var(--em-paper-warm);
  font-size: 0.95rem;
  color: var(--em-muted);
}

.em-footer-grid {
  display: grid;
  gap: 28px;
}

.em-footer-logo {
  width: 120px;
  height: auto;
}

.em-footer-links {
  display: grid;
  gap: 8px;
}

.em-page .em-footer-links a {
  color: var(--em-ink);
  text-decoration: none;
}

.em-footer-title {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--em-ink);
}

/* The phone's thumb bar */
.em-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  padding: 7px;
  border-radius: 99px;
  background: var(--em-band);
  box-shadow: 0 16px 34px -12px rgba(15, 18, 60, 0.6);
}

.em-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--em-band-text);
  text-decoration: none;
}

.em-page .em-bar-link {
  color: var(--em-band-text);
  text-decoration: none;
}

.em-page .em-bar-call {
  background: #fbe0c7;
  color: #1f2566;
}

.em-bar-link svg {
  width: 21px;
  height: 21px;
}

/* The wide screen */
@media (min-width: 560px) {
  .em-home {
    flex-basis: 46%;
  }

  .em-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .em-phones {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .em-header-row {
    height: 82px;
  }

  .em-brand {
    font-size: 1.25rem;
  }

  .em-brand-logo {
    width: 56px;
    height: 60px;
    flex-basis: 56px;
  }

  .em-nav {
    display: flex;
    gap: 30px;
    font-size: 1rem;
  }

  .em-page .em-nav-link {
    color: var(--em-text);
    text-decoration: none;
    padding: 6px 0;
  }

  .em-page .em-nav-link:hover,
  .em-page .em-nav-link[aria-current='page'] {
    color: var(--em-ink);
  }

  .em-menu-open {
    display: none;
  }

  .em-bar {
    display: none;
  }

  .em-hero {
    padding: 60px 0 90px;
  }

  .em-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }

  .em-disc {
    order: 2;
    width: 100%;
  }

  .em-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .em-swipe-hint {
    display: none;
  }

  .em-band-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
  }

  .em-services {
    grid-template-columns: 1fr 1fr;
  }

  .em-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
  }

  .em-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .em-split-top {
    align-items: start;
  }

  .em-intro {
    padding: 56px 0 64px;
  }

  .em-intro-photo {
    margin-top: 0;
  }

  .em-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .em-footer {
    padding-bottom: 56px;
  }

  .em-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.em-icon-small {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* Over the page's own paragraphs, whose margin is none. */
.em-page .em-space {
  margin-top: 20px;
}

.em-phone-small {
  font-size: 1.1rem;
}

/* The residences page: each a window and its words, turned in turn on a wide screen */
.em-list {
  display: grid;
  gap: 56px;
}

.em-listing {
  align-items: center;
}

.em-listing-photo {
  display: block;
}

@media (min-width: 860px) {
  .em-list {
    gap: 96px;
  }

  .em-listing-turned .em-listing-photo {
    order: 2;
  }
}
