:root {
  color-scheme: light;
  --paper: #e7edf6;
  --ink: #173958;
  --focus: #1d4f82;
}

* { box-sizing: border-box; }

html, body {
  min-width: 240px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

main {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.neighborhood,
.wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.neighborhood {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 64%;
}

.wash {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #edf4fc38 0%, #edf3fb26 45%, #f3f5f852 100%);
}

.contact {
  position: absolute;
  right: max(2rem, env(safe-area-inset-right));
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border: 1px solid #ffffffb3;
  border-radius: 999px;
  color: var(--ink);
  background: #f8fafcf0;
  font: 400 .875rem/1.5 "Work Sans", "Segoe UI", sans-serif;
  letter-spacing: .025em;
  text-decoration: underline;
  text-decoration-color: #17395866;
  text-underline-offset: .22em;
  box-shadow: 0 2px 12px #0f172a0d;
}

.contact:hover { background: #fff; }

.contact:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  background: #fff;
}

@media (max-width: 600px) {
  .neighborhood { object-position: 70% 50%; }
  .contact {
    right: auto;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

@media (prefers-contrast: more) {
  .contact { background: #fff; border-color: var(--ink); }
}
