/* Quiz funnel pages: landing, quiz, results. Builds on site.css.
 *
 * Two themes, set on <body>, per Yani's brief:
 *   .theme-him  oxblood and midnight slate, chocolate silk, copper
 *   .theme-her  salmon buttons, nude-beige silk and blush backgrounds
 */

.theme-him { --accent: var(--him-oxblood); --accent-ink: var(--him-bg); --head: var(--him-oxblood); --page: var(--him-bg); --panel: #F1E9DF; }
.theme-her { --accent: var(--her-salmon); --accent-ink: var(--her-plum); --head: var(--her-rosewood); --page: var(--her-bg); --panel: #F3E6DF; }
body.theme-him, body.theme-him .site-header, body.theme-him .menu { background-color: var(--him-bg); }
body.theme-him .site-header { background: rgba(255, 252, 243, .94); }
body.theme-her { background: var(--her-bg); }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.theme-him .btn-accent:hover { background: #6A2929; }
.theme-her .btn-accent:hover { background: #FC9C9E; }

/* Headings: serif capitals for him (the Bedroom Skills cover), the
 * editorial serif for her. */
.theme-him .q-title { font-family: var(--font-display-him); font-weight: 400; letter-spacing: .02em; }
.theme-her .q-title { font-family: var(--font-editorial); font-weight: 300; font-variation-settings: "SOFT" 100; }
.q-title { color: var(--head); line-height: 1.12; margin: 0 0 22px; }
.q-h2 { font-size: clamp(30px, 3.6vw, 44px); }

/* ---------- silk hero ---------- */
.silk-hero { position: relative; isolation: isolate; overflow: hidden; color: #FFFCF3; text-align: center; }
.silk-hero::before {
  content: ""; position: absolute; inset: -12px; z-index: -1; filter: blur(1.6px);
  background: linear-gradient(180deg, rgba(40, 24, 20, .52), rgba(84, 32, 32, .62) 70%, rgba(22, 30, 42, .78)),
              url("/img/silk-chocolate.jpg") center / cover no-repeat;
}
.theme-her .silk-hero { color: var(--her-plum); }
.theme-her .silk-hero::before {
  background-image:
    linear-gradient(160deg, rgba(255, 250, 246, .34), rgba(255, 250, 246, .08)),
    url("/img/silk-chocolate.jpg"),
    linear-gradient(160deg, #EFDDD3, #E2C8BB 55%, #D9BBAD);
  background-size: cover; background-position: center;
  background-blend-mode: normal, soft-light, normal;
}
.silk-hero .q-title { color: inherit; font-size: clamp(36px, 5vw, 60px); }
.theme-him .silk-hero .band {
  display: inline-block; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
  background: rgba(22, 16, 14, .78);
}
.silk-hero .lede { font-size: 19px; max-width: 560px; margin: 0 auto 30px; }
.theme-him .silk-hero .btn-accent { background: #FFFCF3; color: var(--him-oxblood); }

/* ---------- landing sections ---------- */
.q-section { padding: clamp(56px, 7vw, 96px) 0; }
/* R1 (Yani: "more white space above this header", "same amount of white space
 * above this header and under the paragraph"): .q-section's padding was
 * overriding .flow's, so the next section's wave ate into the space under the
 * text and the space above each heading came out uneven. Add the wave heights
 * back so every section has the same space above and below its content. */
main > .q-section.flow {
  padding-top: calc(var(--pad-top, clamp(56px, 7vw, 96px)) + var(--wave-h));
  padding-bottom: calc(var(--pad-bottom, clamp(56px, 7vw, 96px)) + var(--next-wave, 0px));
}
/* R2 ("Closer to the paragraph above ... evened out with not too much of a gap
 * in the middle", on every page where two plain sections meet): they share the
 * cream background, so the wave between them is invisible and its allowance
 * only adds empty space (about 200px). Drop the wave between them. */
main > .q-section.flow:not(.alt):not(.shots-band):has(+ .q-section.flow:not(.alt):not(.shots-band)) { padding-bottom: 0; }
main > .q-section.flow:not(.alt):not(.shots-band) + .q-section.flow:not(.alt):not(.shots-band) { --wave-h: 0px; padding-top: clamp(32px, 4vw, 44px); }
/* R2: a button right before the sign-off gets the same space above and below
 * ("Just as much white space above as below the button"). */
p + .q-cta:has(+ .signoff), .measure p + .q-cta:has(+ .signoff) { margin-top: 30px; }
.q-cta + .signoff { margin-top: 30px; }
/* R2: keep a phrase together, and line breaks for wide screens only */
.nowrap { white-space: nowrap; }
@media (max-width: 759px) { br.br-wide { display: none; } }
.q-section.alt { background: var(--panel); }
.q-lines p { font-family: var(--font-body); font-size: 19px; margin: 0 0 10px; }
.q-lines p.close { margin-top: 26px; font-weight: 500; color: var(--head); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
.card { background: var(--white); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow); }
.card .name { display: block; margin-bottom: 8px; color: var(--head); }
.theme-him .card .name { font-family: var(--font-display-him); text-transform: uppercase; letter-spacing: .18em; font-size: 15px; }
.theme-her .card .name { font-family: var(--font-script); font-size: 34px; line-height: 1.1; }
.bullets { list-style: none; padding: 0; margin: 0 0 30px; }
.bullets li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(127, 127, 127, .18); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg); border: 1.5px solid var(--copper); }
.who-ask { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.who-ask .photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.who-ask .photo img { width: 100%; height: 100%; object-fit: cover; }
.signoff { margin-top: 18px; }
/* R1: no white space between "So much love," and "Yani". */
.signoff .sig { display: block; font-family: var(--font-script); font-size: 52px; line-height: .85; color: var(--head); margin-top: 8px; }  /* R2: "slightly more space between 'So much love,' & 'Yani'", everywhere */
.q-cta { margin-top: 26px; }

/* ---------- the quiz ---------- */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.progress { display: flex; gap: 6px; margin: 0 0 26px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: rgba(127, 127, 127, .2); transition: background .25s ease; }
.progress span.done { background: var(--copper); }
.q-meta { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.q-back { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); }
.q-back:hover { color: var(--head); }
.q-back[hidden] { visibility: hidden; display: inline; }
.q-intro { font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; }
.q-question { font-size: clamp(26px, 3.4vw, 36px); }
.options { display: grid; gap: 12px; margin-top: 26px; }
.option {
  text-align: left; padding: 18px 22px; border-radius: 16px; cursor: pointer;
  background: var(--white); border: 1.5px solid rgba(127, 127, 127, .18);
  font: 400 17px/1.5 var(--font-body); color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.option:hover, .option:focus-visible { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); outline: none; }
.theme-her .option:hover, .theme-her .option:focus-visible { border-color: var(--her-coral); }
.option.chosen { border-color: var(--accent); background: var(--panel); }

/* capture */
/* The capture intro is a full sentence: body font, so it reads calmly. */
.capture h1.q-title { font-family: var(--font-body); font-weight: 400; font-variation-settings: normal; letter-spacing: 0; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.5; color: var(--ink); margin-bottom: 26px; }
.field { display: block; margin: 0 0 16px; }
.field span { display: block; font: 500 13px/1.4 var(--font-body); letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(127, 127, 127, .25);
  font: 400 17px/1.4 var(--font-body); color: var(--ink); background: var(--white);
}
.field input:focus { outline: none; border-color: var(--accent); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--him-oxblood); }
.theme-her .check input { accent-color: var(--her-rosewood); }
.check a { color: var(--head); }
.capture .btn { margin-top: 12px; border: 0; cursor: pointer; }
.capture .status { margin-top: 14px; font-size: 15px; color: #8E2B2B; min-height: 1.4em; }
.capture .hint { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- results ---------- */
.r-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 90px); text-align: left; }
.r-hero .wrap > * { max-width: 680px; }
.r-hero .kicker-line { font: 500 12px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; margin: 0 0 18px; opacity: .85; }
.r-body { max-width: 680px; }
.r-body p { font-size: 18px; }
.r-body h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 8px; }
.r-section { padding: clamp(48px, 6vw, 80px) 0; }
.r-section.alt { background: var(--panel); }
.r-cta .btn { margin: 6px 0 22px; }
.r-cta .text-link { font-weight: 500; color: var(--head); }

@media (max-width: 900px) {
  .who-ask { grid-template-columns: 1fr; }
  .who-ask .photo { max-width: 380px; }
  .cards { grid-template-columns: 1fr; }
}
