/* The Birthday Edit (static/quiz/; PLAN.md, "The Birthday Edit", 2026-11-21). Kimani's doc: white #FFFFFF background,
   Cacao #422219 headlines, Citron #EFFF6F main CTA, subtle Stone #C4BDAE outlines; questions in a centered pop-out card
   (white, softly rounded, a subtle shadow); mobile first; quick, subtle transitions, none with reduced motion. Inter
   throughout (the journal's titles' face).
   Since 2026-11-24 (Kimani: "lets go with the musa cinematic view", and the photo behind the cards, and each result
   opening on its photo): the landing is Villa Musa's photo filling the screen with the words over it; behind the cards
   the same photo, softly blurred; a result opens on its villa's photo coming into focus, the headline over it. Without
   a photo (a build without assets/quiz/quiz-hero.jpg, or a result whose villa isn't listed) the page is plain white. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF }
:root {
  --white: #ffffff; --cacao: #422219; --citron: #efff6f; --stone: #c4bdae; --linen: #f6f3ec;
  --muted: #6e6a63; --error: #9e2a1f;
  --night: #24170f;                      /* behind a photo while it loads, and the shade's colour */
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t: 180ms;
}
@media (prefers-reduced-motion: reduce) { :root { --t: 0ms } }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--white); color: var(--cacao); font-family: var(--body); font-size: 17px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column }
body.qz-in-card { background: var(--linen) }
a { color: inherit }
:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px }
[hidden] { display: none !important }
.qz-hp, .qz-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* The header: the Earth wordmark on white; Ivory over a photo */
.qz-top { position: relative; z-index: 2; max-width: 1080px; width: 100%; margin: 0 auto; padding: 20px }
.qz-mark { display: block; width: 120px; height: auto }
.qz-mark-ivory { display: none }
.qz-photo-top .qz-top { position: absolute; top: 0; left: 0; right: 0; padding-top: 24px }
.qz-photo-top .qz-mark-earth { display: none }
.qz-photo-top .qz-mark-ivory { display: block }
.qz-photo-top .qz-top :focus-visible { outline-color: var(--white) }
/* Behind the cards the blurred photo is light (sky under a Linen veil): the Earth wordmark there */
.qz-photo-top[data-screen="stage"] .qz-mark-earth { display: block }
.qz-photo-top[data-screen="stage"] .qz-mark-ivory { display: none }
.qz-photo-top[data-screen="stage"] .qz-top :focus-visible { outline-color: var(--cacao) }
main { position: relative; z-index: 1; flex: 1; width: 100% }
.qz-foot { position: relative; z-index: 1; background: var(--white); border-top: 1px solid #ece8e0 }
.qz-foot-in { max-width: 1080px; margin: 0 auto; padding: 22px 20px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted) }

/* The scene: the landing's photo, fixed behind the landing and the cards */
.qz-scene { display: none }
.qz-scenic .qz-scene { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night) }
.qz-scenic[data-screen="result"] .qz-scene { display: none }
.qz-scene-move { position: absolute; inset: 0; animation: qz-drift 26s ease-out both }
/* 40% across keeps the loungers, the pool and the lake in a phone's narrow slice of the photo */
.qz-scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; transition: filter 700ms ease, transform 700ms ease }
/* The shade the words stand on: dark at the foot, a little at the top for the wordmark */
.qz-scene-shade { position: absolute; inset: 0; transition: opacity 700ms ease;
  background: linear-gradient(180deg, rgba(36, 23, 15, .5) 0%, rgba(36, 23, 15, 0) 20%, rgba(36, 23, 15, 0) 34%, rgba(36, 23, 15, .6) 62%, rgba(36, 23, 15, .88) 100%) }
.qz-scene-veil { position: absolute; inset: 0; background: rgba(246, 243, 236, .3); opacity: 0; transition: opacity 700ms ease }
/* Behind the cards: softly blurred, a Linen veil, no shade */
[data-screen="stage"] .qz-scene-photo { filter: blur(22px) saturate(1.05); transform: scale(1.12) }
[data-screen="stage"] .qz-scene-shade { opacity: 0 }
[data-screen="stage"] .qz-scene-veil { opacity: 1 }
@keyframes qz-drift { from { transform: scale(1.1) } to { transform: scale(1) } }

/* The landing. Plain: the words on white. Over the photo: the whole first screen, the words at the foot. */
.qz-landing { position: relative; max-width: 1080px; margin: 0 auto; padding: 8px 20px 48px }
.qz-invite { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--cacao) }
.qz-title { font-weight: 800; font-synthesis: none; letter-spacing: -.025em; line-height: 1.05; font-size: 44px; margin: 0; color: var(--cacao); text-wrap: balance }
/* white-space: the line keeps its break after "Cute." (Kimani, 2026-11-24) */
.qz-sub { font-size: 21px; line-height: 1.4; margin: 14px 0 26px; color: var(--cacao); white-space: pre-line }
.qz-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px }
.qz-time { margin: 0; font-size: 15px; color: var(--muted) }
.qz-where { margin: 18px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.qz-where-standin { padding: 16px; border: 1px dashed var(--stone); border-radius: 14px; text-transform: none; letter-spacing: 0; font-weight: 400 }
.qz-scenic .qz-landing { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: 112px 22px 40px }
.qz-scenic .qz-landing, .qz-scenic .qz-landing .qz-title, .qz-scenic .qz-landing .qz-invite, .qz-scenic .qz-landing .qz-sub { color: var(--white) }
.qz-scenic .qz-landing .qz-time { color: rgba(255, 255, 255, .9) }
.qz-scenic .qz-landing .qz-title { font-size: 52px; letter-spacing: -.03em; line-height: 1 }
.qz-scenic .qz-landing .qz-sub { font-size: 19px; margin: 14px 0 24px; max-width: 34ch }
/* Take the Quiz over the photo: a white border (Kimani, 2026-11-24: "make the border white nd not brown") */
.qz-scenic .qz-landing .qz-cta { width: 100%; border-color: var(--white) }
.qz-scenic .qz-landing .qz-start { gap: 12px }
/* The words rise in, one after another, as the page opens */
.qz-scenic .qz-rise { animation: qz-rise 900ms cubic-bezier(.2, .7, .2, 1) both }
.qz-scenic .qz-landing-text > :nth-child(2) { animation-delay: 300ms }
.qz-scenic .qz-landing-text > :nth-child(3) { animation-delay: 440ms }
.qz-scenic .qz-landing-text > :nth-child(4) { animation-delay: 580ms }
@keyframes qz-rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

.qz-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px; border: 1px solid var(--cacao); border-radius: 999px; background: var(--citron); color: var(--cacao); font: 700 17px/1 var(--body); cursor: pointer; text-decoration: none; transition: transform var(--t) ease }
.qz-cta:hover { transform: translateY(-1px) }
.qz-cta:disabled { opacity: .6; cursor: default; transform: none }
.qz-cta-wide { width: 100%; margin-top: 6px }
@media (min-width: 820px) {
  .qz-title { font-size: 64px }
  .qz-scenic .qz-landing { padding: 140px 20px 72px }
  .qz-scenic .qz-landing .qz-title { font-size: 96px; letter-spacing: -.035em; line-height: .98 }
  /* 47ch: "How about 5 days of beaches, boat rides, and private chefs?" on one line (689px at 24px, measured;
     Kimani, 2026-11-24: "yes", to keeping it from ending on "private chefs?" alone). Phones keep 34ch. */
  .qz-scenic .qz-landing .qz-sub { font-size: 24px; margin: 18px 0 30px; max-width: 47ch }
  .qz-scenic .qz-landing .qz-cta { width: auto }
  .qz-scenic .qz-landing .qz-start { gap: 14px 20px }
}

/* The card: one question at a time over the blurred photo (over Linen without one) */
.qz-stage { display: flex; justify-content: center; max-width: 1080px; margin: 0 auto; padding: 12px 20px 24px }
.qz-scenic .qz-stage { align-items: flex-start; min-height: 100vh; min-height: 100svh; padding-top: 84px; padding-bottom: 40px }
.qz-card { width: 100%; max-width: 580px; background: var(--white); border-radius: 22px; box-shadow: 0 18px 48px rgba(66, 34, 25, .12), 0 2px 6px rgba(66, 34, 25, .06); padding: 22px 20px 26px; animation: qz-in var(--t) ease-out }
.qz-scenic .qz-card { box-shadow: 0 24px 64px rgba(36, 23, 15, .28), 0 2px 8px rgba(36, 23, 15, .1) }
@keyframes qz-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.qz-card.is-turning { animation: qz-in var(--t) ease-out }
.qz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px }
.qz-back { border: 0; background: none; padding: 6px 0; font: 600 15px/1 var(--body); color: var(--cacao); cursor: pointer; text-decoration: underline; text-underline-offset: 4px }
.qz-back[aria-hidden="true"] { visibility: hidden }
.qz-count { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--muted) }
/* The progress: Citron on a Stone track (Citron on white would barely show; the count says it in words too) */
.qz-bar { height: 5px; border-radius: 999px; background: #e4dfd5; margin: 12px 0 22px; overflow: hidden }
.qz-bar span { display: block; height: 100%; width: 0; background: var(--citron); box-shadow: inset 0 0 0 1px rgba(66, 34, 25, .18); border-radius: 999px; transition: width var(--t) ease }
.qz-q { font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 0 0 18px; outline: none }
.qz-note { margin: -8px 0 16px; font-size: 15px; color: var(--muted) }
.qz-answers { display: grid; gap: 10px }
.qz-answer { width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid var(--stone); border-radius: 14px; background: var(--white); color: var(--cacao); font: 500 17px/1.35 var(--body); text-align: left; cursor: pointer; transition: background var(--t) ease, border-color var(--t) ease }
@media (hover: hover) { .qz-answer:hover { border-color: var(--cacao) } }
.qz-answer[aria-pressed="true"] { background: var(--citron); border-color: var(--cacao) }
.qz-why { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--linen); font-size: 14px; color: var(--cacao) }

/* The email step, the same card */
.qz-email-body { margin: -6px 0 18px; color: var(--cacao) }
.qz-field { display: flex; margin-bottom: 10px }
/* 16px or more, or iOS Safari zooms the page when the field is tapped */
.qz-field input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 1px solid var(--stone); border-radius: 999px; background: var(--white); color: var(--cacao); font: inherit; font-size: 17px }
.qz-field input::placeholder { color: var(--muted); opacity: 1 }
.qz-field input[aria-invalid="true"] { border-color: var(--error) }
.qz-check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 16px; font-size: 15px; line-height: 1.45; cursor: pointer }
.qz-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--cacao) }
.qz-said { min-height: 1.4em; margin: 10px 0 0; font-size: 15px }
.qz-said.is-error { color: var(--error) }

/* The result. Its villa's photo nearly fills the screen (the first words below just show), coming into focus, the
   place and headline over it; plain, on white, where the villa isn't listed. */
.qz-result-hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); overflow: hidden; background: var(--night); color: var(--white) }
.qz-result-photo { position: absolute; inset: 0 }
.qz-result-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55% }
.qz-result-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(36, 23, 15, .5) 0%, rgba(36, 23, 15, 0) 20%, rgba(36, 23, 15, 0) 34%, rgba(36, 23, 15, .7) 62%, rgba(36, 23, 15, .9) 100%) }
.qz-result-heading { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 120px 22px 44px }
.qz-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.qz-result-hero .qz-kicker { color: rgba(255, 255, 255, .9) }
.qz-title-result { font-size: 38px; outline: none }
.qz-result-hero .qz-title-result { color: var(--white); max-width: 18ch }
.qz-result-hero.is-arriving .qz-result-photo img { animation: qz-arrive 1600ms cubic-bezier(.2, .7, .2, 1) both }
.qz-result-hero.is-arriving .qz-result-heading { animation: qz-rise 900ms cubic-bezier(.2, .7, .2, 1) 450ms both }
@keyframes qz-arrive { from { filter: blur(18px); transform: scale(1.08) } to { filter: none; transform: none } }
.qz-result-hero.is-plain { display: block; min-height: 0; background: none; color: var(--cacao) }
.qz-result-hero.is-plain::after { display: none }
.qz-result-hero.is-plain .qz-result-heading { max-width: 680px; padding: 12px 20px 0 }
.qz-result-hero.is-plain .qz-kicker { color: var(--muted) }
.qz-result-hero.is-plain .qz-title-result { color: var(--cacao); max-width: none }
.qz-result-inner { max-width: 680px; margin: 0 auto; padding: 8px 20px 48px }
.qz-body p { margin: 16px 0 0; font-size: 18px; line-height: 1.6 }
.qz-villa { margin-top: 30px }
/* The villa's photo whole, at its own shape (Kimani, 2026-11-23: "look cut off"): full width for a landscape photo, a
   portrait one kept to a height a screen can hold, never cropped. Its second photo, so the reveal's isn't repeated. */
.qz-villa-photo { display: inline-block; max-width: 100%; vertical-align: top; border-radius: 20px; overflow: hidden }
.qz-villa-photo img { display: block; max-width: 100%; width: auto; height: auto; max-height: min(78vh, 720px) }
.qz-villa-name { margin: 16px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.01em }
.qz-villa-place { margin: 0 0 16px; color: var(--muted); font-size: 15px }
.qz-fit { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--stone); border-radius: 14px; font-size: 15px }
.qz-fit p { margin: 0 0 6px } .qz-fit a { font-weight: 600 }
.qz-mail { margin: 22px 0 0; font-size: 15px; color: var(--muted) }
.qz-again { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 24px }
.qz-share { min-height: 48px; padding: 0 24px; border: 1px solid var(--cacao); border-radius: 999px; background: var(--white); color: var(--cacao); font: 700 16px/1 var(--body); cursor: pointer }
.qz-retake { border: 0; background: none; padding: 8px 0; font: 600 16px/1 var(--body); color: var(--cacao); text-decoration: underline; text-underline-offset: 4px; cursor: pointer }
.qz-share-said { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere }
@media (min-width: 820px) {
  .qz-card { padding: 28px 32px 32px } .qz-q { font-size: 28px } .qz-title-result { font-size: 48px }
  .qz-scenic .qz-stage { padding-top: 104px }
  .qz-result-hero .qz-title-result { font-size: 72px; letter-spacing: -.03em; line-height: 1 }
  .qz-result-hero.is-plain .qz-title-result { font-size: 48px; letter-spacing: -.025em; line-height: 1.05 }
  .qz-result-heading { padding: 140px 20px 64px }
}

/* Reduced motion: the photo still, the words in place, no focus pull */
@media (prefers-reduced-motion: reduce) {
  .qz-scene-move, .qz-scenic .qz-rise, .qz-result-hero.is-arriving .qz-result-photo img, .qz-result-hero.is-arriving .qz-result-heading { animation: none }
  .qz-scene-photo, .qz-scene-shade, .qz-scene-veil { transition: none }
}
