/* The homepage and the not-found page: white, navy and near-black, quiet and simple, with Danielle's card from
   the listing pages (listing.css). */
body.home, body.nf { background: #fff; color: #161616; }
.home h1, .home h2, .nf h1 { color: var(--navy); }

/* Everything sits in one centered column no wider than 80rem; below that the side gutters are the usual
   clamp(1.25rem, 6vw, 5rem). Padding rather than max-width, so the rules between sections still run edge to edge. */
.home { --gutter: max(clamp(1.25rem, 6vw, 5rem), (100% - 80rem) / 2); }
.home-top, .home-intro, .home-list, .home .contact, .home .foot { padding-left: var(--gutter); padding-right: var(--gutter); }

.home-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: max(1.25rem, env(safe-area-inset-top)); padding-bottom: 1.25rem; border-bottom: 1px solid rgb(21 53 88 / .1); }
.home-logo img { height: clamp(2.3rem, 3.3vw, 3rem); width: auto; }
.home-top nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-size: .98rem; }
.home-top nav a { text-decoration: none; color: var(--navy); }
.home-top .pill { padding: .5rem 1rem; border: 1px solid rgb(21 53 88 / .35); border-radius: 999px; }
.home-top .pill:hover { border-color: var(--navy); }
@media (max-width: 560px) { .home-top nav a:not(.pill) { display: none; } }

.home-intro { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.home-intro .caps { color: var(--red); }
.home-intro h1 { font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -.02em; margin: .9rem 0 1.4rem; }

.home-list { padding-bottom: clamp(5rem, 11vw, 8.5rem); }
/* Two cards a row from tablets up (the column caps their size), one on phones */
.home-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 700px) { .home-cards { grid-template-columns: 1fr; } }
/* Group headings (For sale, Under contract, Sold), shown only once more than one group has homes */
.home-group { margin: 0 0 1.5rem; font-weight: 500; font-size: .78rem; color: rgb(22 22 22 / .55); }
.home-cards + .home-group { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgb(21 53 88 / .1); }
.home-cards a { display: block; text-decoration: none; color: inherit; }
.home-cards figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #eee; }
.home-cards figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.home-cards a:hover figure img { transform: scale(1.03); }
/* Price and size on a small card over the photo; neighborhood and address underneath */
.home-cards .tag { position: absolute; right: clamp(.6rem, 1.6vw, 1.25rem); bottom: clamp(.6rem, 1.6vw, 1.25rem);
  padding: .75rem 1rem .8rem; background: #fff; border-radius: 2px; box-shadow: 0 14px 34px -22px rgb(3 29 51 / .5); }
.home-cards .tag-price { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.1; color: var(--navy); }
.home-cards .tag p:last-child { margin-top: .2rem; font-size: .82rem; color: rgb(22 22 22 / .7); }
.home-cards .where-caps { margin-top: 1.15rem; font-size: .7rem; color: rgb(22 22 22 / .55); }
.home-cards h2 { font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.1; margin-top: .35rem; }

.home .contact { border-top-color: rgb(21 53 88 / .1); }
.home .agent-logos img:first-child { width: 6.5rem; }
.home .foot { color: rgb(22 22 22 / .6); border-top: 1px solid rgb(21 53 88 / .1); padding-top: 2.5rem; }

/* Not found */
.nf-main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem; }
.nf-main > a:first-child img { width: clamp(8rem, 22vw, 11rem); height: auto; }
.nf h1 { font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); margin: 2.5rem 0 .8rem; letter-spacing: -.015em; }
.nf-main > p { color: rgb(22 22 22 / .7); font-size: 1.1rem; }
.nf .play { margin-top: 2rem; }
.nf-contact { margin-top: 3rem; font-size: .92rem !important; }
.nf-contact a { color: var(--navy); }
.nf-contact span { white-space: nowrap; }
