@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/cormorant-400.ttf") format("truetype");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/cormorant-400-italic.ttf") format("truetype");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/cormorant-500.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/source-sans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/source-sans-500.ttf") format("truetype");
}

:root {
  --bordeaux: #681d38;
  --aubergine: #251821;
  --porcelain: #faf7f2;
  --champagne: #c6a66b;
  --rosewood: #a85f72;
  --display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --header-space: 7.25rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  background: var(--porcelain);
  color: var(--aubergine);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  z-index: 80;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--porcelain);
  clip-path: inset(100%);
}
.skip:focus { clip-path: none; }

.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(12px + env(safe-area-inset-top)) 16px 0;
}

.header__shell {
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(37, 24, 33, 0.78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 40px rgba(37, 24, 33, 0.4);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.header__bar .btn { flex-shrink: 0; }

.header__logo {
  display: block;
  width: min(200px, 46vw);
  flex: 0 1 auto;
}

.header__logo img { width: 100%; }

.header__lock {
  margin: 0;
  max-width: 12rem;
  color: var(--champagne);
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.header__progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.header__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--champagne);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--aubergine);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover { filter: brightness(1.05); }
.btn:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 13px; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn--line {
  background: transparent;
  color: var(--bordeaux);
  border: 1.5px solid rgba(104, 29, 56, 0.28);
}
.btn--wide { width: min(100%, 360px); }
.btn__short { display: none; }

.title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.title--dark { color: var(--aubergine); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
}

.eyebrow--muted { color: rgba(104, 29, 56, 0.62); }

.lede,
.copy p,
.intro p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
}

.copy p + p,
.intro p + p { margin-top: 14px; }

.copy--dark p,
.intro p { color: rgba(37, 24, 33, 0.7); }

.accent {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--champagne);
}

.accent--dark { color: var(--bordeaux); }

.home {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--aubergine);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-space) + 16px) 24px 48px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(198, 166, 107, 0.18), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--bordeaux), var(--aubergine) 78%);
}

.hero__inner { width: min(720px, 100%); }

.hero .title { margin-bottom: 12px; }

.hero__line {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero__note {
  margin: 0 0 28px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero__path {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cue--left { align-items: flex-start; text-align: left; }

.cue__note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}

.cue [aria-hidden] { animation: cue 1.8s ease-in-out infinite; }

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.section {
  position: relative;
  overflow: hidden;
}

.section--dark {
  color: #fff;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(198, 166, 107, 0.16), transparent 55%),
    var(--aubergine);
}

.section--cream {
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 28%),
    var(--porcelain);
}

.section--tint {
  background:
    radial-gradient(ellipse 60% 45% at 92% 8%, rgba(198, 166, 107, 0.16), transparent 50%),
    linear-gradient(180deg, #f3ead8 0%, var(--porcelain) 100%);
}

.section--hero { padding: calc(var(--header-space) + 8px) 0 72px; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow--bordeaux {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  right: -8%;
  background: rgba(104, 29, 56, 0.16);
}

.glow--champagne {
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  bottom: 8%;
  left: -10%;
  background: rgba(198, 166, 107, 0.16);
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.frame {
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid #fff;
  background: #eee4d0;
  box-shadow: 0 30px 60px rgba(37, 24, 33, 0.22);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cards {
  display: grid;
  gap: 16px;
  margin: 32px 0 24px;
}

.card {
  padding: 26px 24px;
  border-radius: 24px;
  border: 1.5px solid rgba(104, 29, 56, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(250, 247, 242, 0.72));
  box-shadow: 0 16px 40px rgba(37, 24, 33, 0.06);
}

.card span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

.card h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}

.card p {
  color: rgba(37, 24, 33, 0.68);
  line-height: 1.5;
}

.whole {
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--bordeaux);
}

.list {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(37, 24, 33, 0.1);
}

.list span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bordeaux);
  padding-top: 3px;
}

.aside {
  margin-top: 16px;
  font-family: var(--display);
  font-style: italic;
  color: var(--bordeaux);
}

.close {
  padding: 96px 0;
  text-align: center;
}

.close__inner { max-width: 720px; margin: 0 auto; }

.close p:not(.eyebrow) {
  margin: 0 auto 14px;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.8);
}

.close__lead {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--champagne) !important;
}

.close__mark {
  margin-top: 22px !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
}

.close__ready { color: var(--champagne) !important; }

.match {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(104, 29, 56, 0.1), transparent 55%),
    var(--porcelain);
}

.match__main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--header-space) + 8px) 0 96px;
}

.match__main--narrow {
  width: min(680px, calc(100% - 32px));
  max-width: 100%;
  min-width: 0;
}

.match__layout {
  display: grid;
  gap: 32px;
}

.gate {
  min-height: calc(100svh - var(--header-space) - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gate .title,
.gate p {
  max-width: 34rem;
  width: 100%;
  min-width: 0;
}

.gate p {
  margin: 0 auto 14px;
  max-width: 34rem;
  color: rgba(37, 24, 33, 0.7);
  overflow-wrap: break-word;
}

.gate__note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bordeaux) !important;
}

.gate .btn {
  align-self: center;
  margin-top: 12px;
  min-width: 180px;
}

.closing {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(104, 29, 56, 0.14);
  text-align: center;
}

.closing h3,
.success h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--aubergine);
}

.closing p,
.success p:not(.eyebrow) {
  margin: 0 auto 12px;
  max-width: 34rem;
  color: rgba(37, 24, 33, 0.68);
}

.closing__mark {
  margin: 22px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bordeaux);
}

.closing__mark--dark { margin-bottom: 28px; }

.note {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(104, 29, 56, 0.14);
}

.note img { width: 36px; height: 36px; }

.note p {
  font-size: 0.92rem;
  color: rgba(37, 24, 33, 0.58);
}

.panel {
  padding: 24px 20px 28px;
  border-radius: 24px;
  border: 1.5px solid rgba(104, 29, 56, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 242, 0.84));
  box-shadow: 0 16px 40px rgba(37, 24, 33, 0.06);
}

.progress { margin-bottom: 28px; }

.progress__copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 24, 33, 0.45);
}

.progress__copy [data-step-name] { color: var(--bordeaux); }

.progress__track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 24, 33, 0.08);
}

.progress__track span {
  display: block;
  width: 16.66%;
  height: 100%;
  background: var(--champagne);
}

.step-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.step-head--single {
  display: block;
  grid-template-columns: none;
}

.step-head__num {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--champagne);
}

.step-head h2,
.success h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--aubergine);
}

.step-head h2:focus { outline: none; }

.step-head p {
  margin-top: 6px;
  color: rgba(37, 24, 33, 0.58);
}

.js .step { display: none; }
.js .step.is-open { display: block; }

.fields {
  display: grid;
  gap: 16px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(37, 24, 33, 0.72);
}

.field label span,
.hint span,
.consent strong { color: var(--rosewood); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(104, 29, 56, 0.18);
  border-radius: 16px;
  background: rgba(104, 29, 56, 0.05);
  color: var(--aubergine);
  outline: none;
}

.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(104, 29, 56, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(104, 29, 56, 0.45);
  background: #fff;
}
.field [aria-invalid="true"] { border-color: var(--rosewood); }

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice { cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 29, 56, 0.16);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(37, 24, 33, 0.7);
}

.choice input:checked + span {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: #fff;
}

.picks {
  display: grid;
  gap: 8px;
}

.picks[data-invalid="true"] .pick span {
  border-color: var(--rosewood);
}

.pick { position: relative; cursor: pointer; }

.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(104, 29, 56, 0.16);
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 400;
  color: rgba(37, 24, 33, 0.78);
  line-height: 1.35;
}

.pick input:focus-visible + span {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

.pick input:checked + span {
  background: rgba(104, 29, 56, 0.08);
  border-color: var(--bordeaux);
  color: var(--aubergine);
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(37, 24, 33, 0.7);
  cursor: pointer;
}

.consent input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
  accent-color: var(--bordeaux);
}

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

.actions .hint {
  flex: 1;
  margin: 0;
  color: rgba(37, 24, 33, 0.4);
  font-size: 12px;
  text-align: center;
}

.actions [data-next],
.actions [data-submit] { margin-left: auto; }

.status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--rosewood);
  text-align: right;
  font-size: 0.85rem;
}

.success {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success[hidden],
[hidden] { display: none !important; }

.success img { width: 52px; height: 52px; margin-bottom: 24px; }

.success p:not(.eyebrow) {
  margin: 0 auto 12px;
  color: rgba(37, 24, 33, 0.64);
}

.success .btn { margin-top: 16px; }

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
    gap: 64px;
  }
  .split--flip { grid-template-columns: 1.1fr minmax(240px, 0.9fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .match__layout { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks--two { grid-template-columns: 1fr 1fr; }
  .panel { padding: 28px 24px 32px; }
}

@media (max-width: 859px) {
  :root { --header-space: 6.5rem; }
  .frame img { aspect-ratio: 16 / 11; }
  .section--cream { padding: 56px 0; }
}

@media (max-width: 640px) {
  .header { padding-inline: 12px; }
  .header__lock { max-width: 7.5rem; font-size: 10px; }
  .btn__full { display: none; }
  .btn__short { display: inline; }
  .title,
  .hero .title { font-size: 1.7rem; }
  .header__logo { width: 140px; }
  .gate p { font-size: 0.98rem; }
  .match .header .btn--ghost { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .hero .btn,
  .close .btn { width: 100%; max-width: 360px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions [data-next],
  .actions [data-submit] { margin-left: 0; width: 100%; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; }
}
