/* ============================================================
   yourcustomprofile.app — /aura, the aura booth
   A dim booth lit by a safelight; the one bright thing is the
   aura photograph, which develops when the reading is done.
   ============================================================ */
.aura-page {
  --booth: #170a10;
  --booth-2: #221019;
  --safelight: #5c1424;
  --paper: #efece6;
  --paper-ink: #2b2228;
  --text: #f3e9ec;
  --muted: #b9a6ae;
  --amber: #ffb36b;
  --line: rgb(255 214 190 / 0.14);
  --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --hand: "Nothing You Could Do", "Segoe Print", cursive;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(92 20 36 / 0.55), transparent 70%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(92 20 36 / 0.3), transparent 70%),
    var(--booth);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.aura-page ::selection { background: var(--amber); color: var(--booth); }
.aura-page :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ------------------------------------------------------------- the bar */
.booth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 40px);
}
.booth-bar__home { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
/* the mark is dark ink: it sits on a small paper tile, like the print */
.booth-bar__home img { box-sizing: content-box; padding: 5px; border-radius: 8px; background: var(--paper); }
.booth-bar__nav { display: flex; gap: 22px; }
.booth-bar__nav a { color: var(--muted); text-decoration: none; }
.booth-bar__nav a:hover { color: var(--text); }

.booth { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 96px; }

/* ------------------------------------------------------------- buttons */
.booth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  font: 600 0.98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.booth-btn:hover { border-color: rgb(255 179 107 / 0.6); background: rgb(255 179 107 / 0.08); }
.booth-btn:active { transform: scale(0.97); }
.booth-btn--go { border-color: transparent; background: var(--amber); color: #2a1206; }
.booth-btn--go:hover { background: #ffc58c; border-color: transparent; }
.booth-btn--quiet { border-color: transparent; background: none; color: var(--muted); }
.booth-btn--quiet:hover { background: none; color: var(--text); }

/* ------------------------------------------------------------- the print */
.print {
  margin: 0;
  padding: 4.5% 4.5% 20%;
  background: var(--paper);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 30px 60px -20px rgb(0 0 0 / 0.75),
    0 10px 20px -10px rgb(0 0 0 / 0.5);
  position: relative;
}
.print__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #1b1418; }
.print__caption {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 5.5%;
  color: var(--paper-ink);
  font-family: var(--hand);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  rotate: -1.5deg;
}

/* ------------------------------------------------------------- the door */
.booth-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  min-height: calc(100svh - 90px);
  padding-block: 24px 64px;
}
.booth-title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.booth-lede { max-width: 30ch; margin: 0 0 32px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; }
.booth-note { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }
.print--sample { width: min(100%, 420px); justify-self: center; rotate: 3deg; }

/* ------------------------------------------------------------- the questions */
.booth-quiz { max-width: 760px; margin: 0 auto; padding-block: clamp(24px, 8vh, 80px) 64px; }
.film { display: flex; gap: 6px; margin: 0 0 40px; padding: 0; list-style: none; }
.film li { flex: 1 1 0; height: 6px; border-radius: 2px; background: rgb(255 255 255 / 0.1); transition: background 0.3s ease; }
.film li.is-done { background: rgb(255 179 107 / 0.55); }
.film li.is-here { background: var(--amber); }
.quiz-ask {
  margin: 0 0 32px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  line-height: 1.05;
  letter-spacing: -0.02em;
  outline: none;
}
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.035);
  color: var(--text);
  font: 500 1.05rem/1.3 var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-option:hover { border-color: rgb(255 179 107 / 0.55); background: rgb(255 179 107 / 0.06); }
.quiz-option:active { transform: scale(0.98); }
.quiz-option[aria-pressed="true"] { border-color: var(--amber); background: rgb(255 179 107 / 0.12); }
.quiz-option__key { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.quiz-option__chip { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
.quiz-option__chip:empty { display: none; }
.quiz-option:not(:has(.quiz-option__chip:not(:empty))) { grid-template-columns: auto minmax(0, 1fr); }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.quiz-hint { color: var(--muted); font-size: 0.85rem; }
@media (hover: none) { .quiz-hint { display: none; } }

/* ------------------------------------------------------------- the reading */
.booth-result {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(24px, 6vh, 64px) 72px;
}
.print--result { rotate: -2deg; position: sticky; top: 24px; }
.reading { max-width: 38rem; }
.reading__kicker { margin: 8px 0 6px; color: var(--muted); font-size: 1.05rem; }
.reading__name {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(3rem, 7.4vw, 5.8rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.reading__essence { margin: 0 0 18px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; }
.reading__body { margin: 0 0 28px; color: #e2d4d9; line-height: 1.65; }
.reading__facts { display: grid; gap: 12px; margin: 0 0 24px; padding: 18px 0; border-block: 1px solid var(--line); }
.reading__facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
.reading__facts dt { color: var(--muted); }
.reading__facts dd { margin: 0; }
.reading__swatches { display: flex; gap: 8px; margin: 0 0 28px; }
.reading__swatches span { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.reading__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reading__claim-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
/* the words arrive once the photo has developed */
.booth-result.is-developing .reading > * { opacity: 0; translate: 0 10px; }
.booth-result .reading > * { transition: opacity 0.6s ease, translate 0.6s ease; }
.booth-result .reading > *:nth-child(2) { transition-delay: 0.08s; }
.booth-result .reading > *:nth-child(3) { transition-delay: 0.16s; }
.booth-result .reading > *:nth-child(n + 4) { transition-delay: 0.24s; }

/* ------------------------------------------------------------- the twelve */
.spectrum { padding-top: 56px; border-top: 1px solid var(--line); }
.spectrum__title { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.spectrum__lede { margin: 0 0 32px; color: var(--muted); }
.spectrum__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 40vw), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
/* the questions get the booth to themselves */
.booth:has(.booth-quiz:not([hidden])) .spectrum { display: none; }
.spectrum__item button {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.spectrum__item canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.spectrum__item button:hover canvas { transform: scale(1.04); }
.spectrum__item strong { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.spectrum__item span { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

/* ------------------------------------------------------------- the sheet */
.aura-sheet {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--booth-2);
  color: var(--text);
  font-family: var(--body);
}
.aura-sheet::backdrop { background: rgb(10 4 7 / 0.7); backdrop-filter: blur(6px); }
.aura-sheet__close { position: absolute; top: 10px; right: 12px; margin: 0; }
.aura-sheet__close button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.06); color: var(--text); font-size: 1.5rem; cursor: pointer; }
.aura-sheet__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 18px; border-radius: 12px; }
.aura-sheet__name { margin: 0 0 6px; font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.aura-sheet__essence { margin: 0 0 10px; font-size: 1.1rem; }
.aura-sheet__body { margin: 0 0 20px; color: #e2d4d9; font-size: 0.98rem; line-height: 1.6; }

/* ------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .booth-intro, .booth-result { grid-template-columns: minmax(0, 1fr); }
  .booth-intro { min-height: 0; padding-top: 8px; }
  .print--sample { width: min(78%, 340px); grid-row: 1; }
  .print--result { position: relative; top: 0; width: min(100%, 460px); justify-self: center; }
  .quiz-options { grid-template-columns: minmax(0, 1fr); }
  .booth-bar__nav a:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .booth-result .reading > * { transition: none; }
  .booth-btn, .quiz-option, .spectrum__item canvas { transition: none; }
}
