:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --ink: #fff7f0;
  --muted: #c9bfca;
  --accent: #ffbd9c;
  --rule: #ffffff24;
  background: #10111d;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem) 1rem;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  background: radial-gradient(ellipse at 16% 0%, #432b40 0%, transparent 55%), #10111d;
}

.card {
  width: min(100%, 66rem);
  margin: auto;
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.65rem;
  background: #181925;
  box-shadow: 0 1.5rem 5rem #08081280;
}

.city {
  position: relative;
  min-height: 22rem;
  margin: 0;
  background: #603d4a;
}

.city-image, .city::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.city-image { object-fit: cover; object-position: 50% 50%; }
.city::after {
  content: "";
  background: linear-gradient(0deg, #121321ed, #17162520 32%, transparent 60%);
}

figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 2rem 1.8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  letter-spacing: .07em;
}

svg {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

figcaption svg, .contact-link svg { color: var(--accent); }

.agent {
  padding: clamp(1.5rem, 4.2vw, 3.25rem);
  background: radial-gradient(ellipse at 100% 0%, #39283d, transparent 63%), #181925;
}

.portrait {
  display: block;
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #412d40;
}

.role {
  margin: 1.2rem 0 .35rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .17em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.1rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.065em;
}

.team { margin: .85rem 0 1.5rem; color: var(--muted); font-size: 1rem; }
.contact { font-style: normal; border-top: 1px solid var(--rule); }

.contact-link, .save {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 3.1rem;
  color: inherit;
  text-decoration: none;
}

.contact-link {
  padding: .65rem .15rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-link:hover span { text-decoration: underline; text-underline-offset: .2em; }

.save {
  justify-content: center;
  margin-top: 1.3rem;
  padding: .75rem 1rem;
  border-radius: .65rem;
  background: var(--accent);
  color: #231828;
  font-weight: 720;
}

.save:hover { background: #ffcfb7; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.brokerage { margin-top: 1.5rem; }
.brokerage img {
  display: block;
  width: 7.25rem;
  height: auto;
  padding: .45rem .65rem;
  border-radius: .34rem;
  background: #fff;
}

.credit {
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.credit a { color: inherit; text-underline-offset: .2em; }

@media (max-width: 45rem) {
  body { padding-top: 1rem; }
  .card { width: min(100%, 30rem); grid-template-columns: 1fr; border-radius: 1.15rem; }
  .city { min-height: clamp(10.5rem, 44vw, 15rem); }
  figcaption { inset: auto 1.25rem .95rem; }
  .agent { padding: 1.4rem 1.25rem 1.5rem; }
  .identity { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: .75rem; }
  .portrait { grid-area: 1 / 2 / 4; width: clamp(4rem, 20vw, 6rem); height: clamp(4rem, 20vw, 6rem); }
  .role { margin: .15rem 0 .25rem; }
  h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .team { margin: .6rem 0 1.15rem; }
  .brokerage { margin-top: 1.2rem; }
}
