:root {
  --ink: #25162f;
  --muted: #796f7e;
  --cream: #fffaf6;
  --pink: #ff4e78;
  --pink-dark: #ed3567;
  --lavender: #f3edf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nav-wrap { height: 78px; border-bottom: 1px solid rgba(37, 22, 47, .07); background: rgba(255,250,246,.94); }
.nav { height: 100%; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Playfair Display", serif; font-size: 24px; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50% 50% 44% 44%; color: white; background: linear-gradient(145deg, #ff718f, #ef3269); font-family: "Playfair Display", serif; box-shadow: 0 8px 20px rgba(238,55,105,.22); }
.nav-links { display: flex; height: 100%; align-items: center; gap: 34px; margin-left: 80px; }
.nav-links a { height: 100%; display: grid; place-items: center; position: relative; color: #716778; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; bottom: 0; width: 100%; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink); }
.badge { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: 5px; border-radius: 50%; color: white; background: var(--pink); font-size: 10px; }
.nav-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn svg { width: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: #9e7b72; font-size: 14px; box-shadow: 0 2px 12px rgba(37,22,47,.12); }

.hero { height: 470px; display: grid; grid-template-columns: 48% 52%; align-items: center; }
.hero-copy { padding: 25px 35px 20px 20px; }
.eyebrow { margin: 0 0 13px; color: var(--pink-dark); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(48px, 5vw, 70px); line-height: 1.03; letter-spacing: -2.5px; }
.hero h1 em { color: var(--pink); font-style: italic; }
.hero-text { max-width: 470px; margin: 20px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.primary-btn { height: 52px; display: inline-flex; align-items: center; gap: 30px; padding: 0 20px 0 24px; border-radius: 8px; color: white; background: var(--pink); text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 12px 28px rgba(255,78,120,.22); }
.primary-btn svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.featured-card { height: 390px; position: relative; overflow: hidden; align-self: end; border-radius: 180px 180px 18px 18px; box-shadow: 0 22px 50px rgba(63,38,65,.12); }
.featured-card > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 38%; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(25,12,32,.78) 100%); }
.match-score { position: absolute; top: 18px; right: 18px; width: 66px; height: 66px; display: grid; place-content: center; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; color: white; background: rgba(42,25,48,.45); backdrop-filter: blur(8px); text-align: center; font-size: 10px; }
.match-score span { font-size: 17px; font-weight: 700; }
.featured-info { position: absolute; left: 24px; right: 24px; bottom: 20px; color: white; }
.name-row { display: flex; align-items: center; gap: 8px; }
.featured-info h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 30px; }
.verified { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #7189eb; font-size: 12px; }
.featured-info p { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; color: rgba(255,255,255,.82); font-size: 13px; }
.featured-info p svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.interests { display: flex; gap: 7px; }
.interests span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 20px; background: rgba(255,255,255,.12); backdrop-filter: blur(7px); font-size: 11px; }

.profiles { padding: 62px 0 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 34px; }
.section-heading a { margin-bottom: 4px; color: var(--pink-dark); text-decoration: none; font-size: 13px; font-weight: 700; }
.section-heading a span { margin-left: 7px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.profile-card { overflow: hidden; border: 1px solid rgba(37,22,47,.07); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(48,29,55,.05); }
.photo { height: 230px; overflow: hidden; }
.photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.profile-card:hover .photo img { transform: scale(1.025); }
.profile-info { padding: 15px 16px 17px; }
.profile-info h3 { margin: 0; font-family: "Playfair Display", serif; font-size: 20px; }
.status { width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: #64c78a; box-shadow: 0 0 0 1px #64c78a; }
.profile-info p { margin: 5px 0 12px; color: var(--muted); font-size: 12px; }
.small-tags { display: flex; gap: 6px; }
.small-tags span { padding: 5px 9px; border-radius: 12px; color: #735d7c; background: var(--lavender); font-size: 10px; }

footer { border-top: 1px solid rgba(37,22,47,.07); }
.footer-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; color: #9a919d; font-size: 12px; }
.footer-inner div { display: flex; gap: 24px; }
.footer-inner a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
  .container { width: min(100% - 32px, 700px); }
  .nav-links { margin-left: 40px; }
  .hero { height: auto; grid-template-columns: 1fr 1fr; padding-block: 45px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: 52px; }
  .featured-card { height: 360px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav-wrap { height: 68px; }
  .nav-links { display: none; }
  .hero { display: flex; flex-direction: column; gap: 35px; padding-block: 38px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero h1 { font-size: 46px; }
  .featured-card { width: 100%; height: 410px; }
  .profile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo { height: 190px; }
  .profiles { padding-top: 45px; }
  .section-heading h2 { font-size: 28px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .profile-grid { grid-template-columns: 1fr; }
  .photo { height: 280px; }
}
