@charset "utf-8";

:root {
  color-scheme: light;
  --plum: #35263f;
  --plum-deep: #281e31;
  --plum-soft: #64516b;
  --gold: #ae8550;
  --gold-light: #dcc6a3;
  --ivory: #fffdf8;
  --paper: #faf6ee;
  --linen: #f3ece0;
  --line: #e6dccd;
  --body: #4a434c;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--plum-deep);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #bd8a47;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -60px;
  left: 14px;
  padding: 11px 15px;
  background: var(--plum-deep);
  color: #fff;
  border-radius: 5px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 2;
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1480px);
  min-height: 70px;
  margin: auto;
  gap: 22px;
}
.site-identity { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 5px; background: url('/favicon-96x96.png') center / contain no-repeat; font-size: 0; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; }
.brand-name span { color: #815c77; }
.header-divider { width: 1px; height: 20px; background: var(--line); }
.header-section { color: #736779; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.header-nav { margin-left: auto; }
.header-nav a, .site-footer a {
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .18s ease;
}
.header-nav a:hover, .site-footer a:hover { color: #805678; }

.screen { min-height: calc(100vh - 132px); }
.entrance-screen {
  position: relative;
  overflow: hidden;
  padding: 21px 26px 18px;
  background:
    radial-gradient(circle at 50% 42%, #fffdf9 0 19%, transparent 48%),
    linear-gradient(145deg, #f6f0e5, #faf7f1 48%, #f1e8dc);
}
.entrance-screen::before,
.entrance-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(172, 134, 82, .22);
  border-radius: 50%;
  width: 560px;
  height: 560px;
}
.entrance-screen::before { top: -350px; left: -280px; }
.entrance-screen::after { right: -300px; bottom: -400px; }
.entrance-topline,
.entrance-footnote {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  color: #98744c;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}
.entrance-topline::before,
.entrance-topline::after {
  content: "";
  width: clamp(35px, 8vw, 150px);
  height: 1px;
  background: var(--gold-light);
}
.topline-star { font-size: 1rem; line-height: 1; }
.entrance-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(275px, 1fr) minmax(410px, 1.3fr) minmax(275px, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  width: min(100%, 1500px);
  min-height: 710px;
  margin: 10px auto 0;
}
.witch-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: clamp(8px, .85vw, 14px);
  perspective: 700px;
}
.witch-tile {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9decd;
  border-radius: 48% 48% 9px 9px / 20% 20% 9px 9px;
  box-shadow: 0 8px 25px rgba(51, 34, 52, .075), 0 2px 4px rgba(78, 54, 43, .045);
  transition: transform .28s ease, box-shadow .28s ease;
}
.witch-tile:nth-child(4n + 1) { transform: translateY(-7px) rotate(-1.4deg); }
.witch-tile:nth-child(4n + 2) { transform: translateY(8px) rotate(1.3deg); }
.witch-tile:nth-child(4n + 3) { transform: translateY(3px) rotate(.9deg); }
.witch-tile:nth-child(4n + 4) { transform: translateY(-5px) rotate(-.8deg); }
.witch-tile:hover { transform: translateY(-8px) rotate(0); box-shadow: 0 16px 33px rgba(51, 34, 52, .14); }
.witch-tile img {
  width: 100%;
  height: clamp(114px, 9.6vw, 158px);
  object-fit: contain;
  object-position: center center;
  background: #fff;
}
.witch-tile figcaption {
  overflow: hidden;
  padding: 7px 5px 9px;
  border-top: 1px solid #f0e8dd;
  color: #5d5061;
  font-size: clamp(.59rem, .67vw, .73rem);
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.witch-wall-left .witch-tile:nth-child(1),
.witch-wall-right .witch-tile:nth-child(6) { border-color: #d2bba0; }
.witch-wall-left .witch-tile:nth-child(3),
.witch-wall-right .witch-tile:nth-child(1) { border-color: #c6cfb6; }

.entrance-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 610px;
  padding: 54px 8px;
  text-align: center;
}
.portal-lines {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(100%, 555px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(184, 142, 83, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 21px rgba(255, 252, 246, .37), 0 0 0 22px rgba(184, 142, 83, .11), 0 0 0 49px rgba(255, 252, 246, .20), 0 0 0 50px rgba(184, 142, 83, .07);
}
.portal-lines::before,
.portal-lines::after {
  content: "✦";
  position: absolute;
  color: #be975d;
  font-size: 1.08rem;
}
.portal-lines::before { top: 6%; left: 17%; }
.portal-lines::after { right: 12%; bottom: 7%; font-size: .75rem; }
.eyebrow,
.question-eyebrow,
.quiz-kicker {
  color: #9a744d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.entrance-copy .eyebrow { margin: 0 0 26px; white-space: nowrap; }
.entrance-copy .eyebrow span { margin: 0 8px; color: #c2975c; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
.entrance-copy h1 {
  margin: 0 0 25px;
  color: var(--plum-deep);
  font-size: clamp(3.5rem, 4.7vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}
.entrance-copy h1 em { color: #7f5579; font-weight: 400; }
.entrance-lead {
  max-width: 410px;
  margin: 0 auto 13px;
  color: #3b3040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1.55vw, 1.45rem);
  line-height: 1.4;
}
.entrance-description {
  max-width: 395px;
  margin: 0 auto 27px;
  color: #675c65;
  font-size: .96rem;
  line-height: 1.7;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 55px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary {
  background: var(--plum);
  box-shadow: 0 8px 20px rgba(53, 38, 63, .19);
  color: #fff;
}
.button-primary:hover:not(:disabled) { background: #58405f; box-shadow: 0 12px 23px rgba(53, 38, 63, .22); }
.button-primary:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.start-button { min-width: 230px; }
.quiz-promise { margin: 19px 0 0; color: #837688; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.quiz-promise span { margin: 0 5px; color: #bd9c6a; }
.entrance-footnote { margin: 7px auto 0; font-size: .62rem; }
.entrance-footnote span { color: #bb955e; font-size: .8rem; }

.quiz-screen {
  padding: clamp(25px, 5vw, 60px) 22px 72px;
  background:
    radial-gradient(circle at 50% 18%, rgba(238, 218, 189, .55), transparent 30%),
    var(--paper);
}
.quiz-shell { width: min(100%, 860px); margin: auto; }
.quiz-topline,
.progress-heading,
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.quiz-topline { margin: 0 0 42px; }
.text-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #9d8b98;
  background: transparent;
  color: #67576b;
  font-size: .78rem;
  font-weight: 700;
}
.text-button:hover { color: var(--plum-deep); }
.progress-heading { margin-bottom: 12px; color: #6b5869; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.progress-ornament { color: #b89460; font-size: 1.02rem; }
.progress-track { overflow: hidden; height: 6px; background: #e5d9c9; border-radius: 50px; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7a5475, #b18858); transition: width .3s ease; }
.question-card {
  position: relative;
  margin-top: 27px;
  padding: clamp(32px, 5vw, 58px) clamp(20px, 5vw, 70px) 48px;
  border: 1px solid #e8dece;
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: 0 18px 50px rgba(53, 38, 63, .065);
  text-align: center;
}
.question-card::before,
.question-card::after { content: ""; position: absolute; top: 19px; width: 46px; height: 1px; background: #d9c4a4; }
.question-card::before { left: 22px; }
.question-card::after { right: 22px; }
.question-sigil { color: #b18b5b; font-size: 1.4rem; line-height: 1; }
.question-eyebrow { margin: 17px 0 18px; }
.question-card h2 {
  max-width: 680px;
  min-height: 142px;
  margin: 0 auto;
  color: var(--plum-deep);
  font-size: clamp(1.65rem, 2.6vw, 2.32rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.27;
}
.question-card h2:focus { outline: none; }
.answer-instruction { margin: 0 0 34px; color: #776c75; font-size: .87rem; }
.answer-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  max-width: 690px;
  margin: auto;
}
.answer-options::before {
  content: "";
  position: absolute;
  top: 37px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, #7d997b, #dad3c5 50%, #906a89);
}
.answer-choice {
  --choice-color: #8f7f86;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 108px;
  padding: 6px 0 0;
  cursor: pointer;
  color: #5b5360;
}
.answer-choice:nth-child(1) { --choice-color: #55785e; }
.answer-choice:nth-child(2) { --choice-color: #7d9b83; }
.answer-choice:nth-child(3) { --choice-color: #aa9679; }
.answer-choice:nth-child(4) { --choice-color: #9e7a97; }
.answer-choice:nth-child(5) { --choice-color: #745476; }
.answer-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.answer-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--choice-color);
  border-radius: 50%;
  background: var(--ivory);
  color: #fff;
  box-shadow: 0 0 0 4px var(--ivory);
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.answer-choice:first-child .answer-marker,
.answer-choice:last-child .answer-marker { width: 64px; height: 64px; }
.answer-choice:nth-child(3) .answer-marker { width: 44px; height: 44px; margin: 10px 0 0; }
.answer-choice:hover .answer-marker { transform: scale(1.08); }
.answer-marker::after { content: "✦"; font-size: 1.18rem; opacity: 0; transition: opacity .16s ease; }
.answer-choice input:checked + .answer-marker { background: var(--choice-color); box-shadow: 0 0 0 4px var(--ivory), 0 0 0 7px var(--choice-color); }
.answer-choice input:checked + .answer-marker::after { opacity: 1; }
.answer-choice input:focus-visible + .answer-marker { outline: 3px solid var(--gold); outline-offset: 7px; }
.answer-label { max-width: 112px; font-size: .8rem; font-weight: 650; line-height: 1.35; }
.answer-choice input:checked ~ .answer-label { color: var(--plum-deep); font-weight: 800; }
.quiz-actions { margin-top: 26px; }
.button-back { border-color: #cdbca7; background: transparent; color: #5e5062; box-shadow: none; }
.button-back:hover { background: #f0e7da; }
.button-next { margin-left: auto; }

.result-screen {
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 70px) 24px;
  background: radial-gradient(circle at 12% 50%, #ebe0d4, transparent 42%), var(--paper);
}
.result-shell {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(25px, 5vw, 76px);
  align-items: center;
  width: min(100%, 1110px);
  margin: auto;
}
.result-visual { overflow: hidden; border: 1px solid #e2d4c1; border-radius: 12px; background: #fff; box-shadow: 0 22px 55px rgba(41, 30, 49, .13); }
.result-visual-top { display: flex; justify-content: space-between; padding: 18px 23px 0; color: #94704a; font-size: .69rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.result-visual-top span:last-child { font-size: 1rem; line-height: 1; }
.result-visual img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.result-visual-bottom { display: block; padding: 0 20px 22px; color: #9d815e; font-family: Georgia, "Times New Roman", serif; font-size: .8rem; font-style: italic; text-align: center; }
.result-copy { padding: 20px 0; }
.result-copy .eyebrow { margin-bottom: 9px; }
.result-code { margin: 0 0 7px; color: #9b7952; font-size: .83rem; font-weight: 800; letter-spacing: .2em; }
.result-copy h2 { margin: 0 0 12px; color: var(--plum-deep); font-size: clamp(2.65rem, 4vw, 4.35rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.04; }
.result-subtitle { margin-bottom: 22px; color: #7c5c77; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-style: italic; }
.result-rule { position: relative; width: 100%; max-width: 430px; margin-bottom: 25px; color: #b18a5b; text-align: center; }
.result-rule::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: #dcc9ae; }
.result-rule span { position: relative; padding: 0 17px; background: var(--paper); }
.result-description { max-width: 510px; margin-bottom: 27px; color: #564a58; font-size: 1rem; line-height: 1.75; }
.trait-list { max-width: 510px; margin-bottom: 31px; border-top: 1px solid #ded1bf; }
.trait-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 2px; border-bottom: 1px solid #ded1bf; color: #6a5c69; font-size: .86rem; line-height: 1.45; }
.trait-row .trait-number { flex: 0 0 24px; color: #a88761; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.trait-row strong { flex: 1; color: var(--plum-deep); }
.trait-row small { color: #857985; font-size: .75rem; text-align: right; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.result-gallery-link { color: #5c4360; font-size: .82rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid #af95ae; }
.result-gallery-link:hover { color: #815e82; }
.result-note { max-width: 490px; margin: 24px 0 0; color: #827781; font-size: .75rem; line-height: 1.5; }

.site-footer { position: relative; border-top: 1px solid var(--line); background: #fffdf9; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(100% - 48px, 1480px); min-height: 62px; margin: auto; color: #736876; font-size: .75rem; }
.footer-inner > span span { margin: 0 7px; color: var(--gold); }

@media (max-width: 1190px) {
  .entrance-stage { grid-template-columns: 1fr; gap: 19px; max-width: 880px; min-height: 0; margin-top: 0; }
  .entrance-copy { order: 0; min-height: 550px; padding: 65px 18px 55px; }
  .witch-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .witch-wall-left { order: 1; }
  .witch-wall-right { order: 2; }
  .witch-tile img { height: clamp(125px, 15vw, 190px); }
  .witch-tile figcaption { font-size: .73rem; }
  .entrance-footnote { margin-top: 23px; }
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 28px, 1480px); min-height: 60px; gap: 12px; }
  .brand-name { font-size: 1.08rem; }
  .header-divider, .header-section { display: none; }
  .header-nav a { font-size: .75rem; }
  .entrance-screen { padding: 19px 12px 24px; }
  .entrance-topline { gap: 7px; font-size: .55rem; letter-spacing: .12em; }
  .entrance-topline::before, .entrance-topline::after { width: 24px; }
  .entrance-copy { min-height: 490px; padding: 42px 11px 37px; }
  .portal-lines { width: min(90vw, 440px); }
  .entrance-copy .eyebrow { margin-bottom: 22px; font-size: .57rem; letter-spacing: .12em; }
  .entrance-copy .eyebrow span { margin: 0 3px; }
  .entrance-copy h1 { margin-bottom: 21px; font-size: clamp(3.15rem, 11vw, 4.3rem); }
  .entrance-lead { max-width: 345px; font-size: 1.14rem; }
  .entrance-description { max-width: 350px; margin-bottom: 24px; font-size: .89rem; line-height: 1.55; }
  .quiz-promise { max-width: 320px; font-size: .66rem; line-height: 1.5; }
  .witch-wall { gap: 6px; }
  .witch-tile { border-radius: 42% 42% 6px 6px / 18% 18% 6px 6px; }
  .witch-tile:nth-child(n) { transform: none; }
  .witch-tile img { height: clamp(76px, 21vw, 120px); }
  .witch-tile figcaption { padding: 5px 2px 6px; font-size: clamp(.52rem, 1.75vw, .67rem); }
  .entrance-footnote { margin-top: 20px; font-size: .53rem; letter-spacing: .12em; }
  .quiz-screen { padding: 27px 13px 55px; }
  .quiz-topline { margin-bottom: 35px; }
  .quiz-kicker { font-size: .61rem; }
  .text-button { font-size: .7rem; }
  .question-card { margin-top: 21px; padding: 35px 14px 31px; }
  .question-card::before, .question-card::after { width: 25px; }
  .question-eyebrow { margin: 14px 0 21px; font-size: .61rem; }
  .question-card h2 { min-height: 180px; font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.25; }
  .answer-instruction { margin-bottom: 27px; font-size: .79rem; }
  .answer-options { gap: 2px; }
  .answer-options::before { top: 31px; right: 8%; left: 8%; }
  .answer-choice { min-height: 112px; gap: 12px; }
  .answer-marker { width: 44px; height: 44px; border-width: 2px; }
  .answer-choice:first-child .answer-marker, .answer-choice:last-child .answer-marker { width: 54px; height: 54px; }
  .answer-choice:nth-child(3) .answer-marker { width: 38px; height: 38px; margin-top: 8px; }
  .answer-label { max-width: 65px; font-size: .64rem; line-height: 1.22; }
  .quiz-actions { margin-top: 18px; }
  .quiz-actions .button { min-height: 49px; padding: 11px 15px; font-size: .7rem; }
  .result-screen { padding: 22px 16px 53px; }
  .result-shell { grid-template-columns: 1fr; gap: 21px; width: min(100%, 510px); }
  .result-visual { max-width: 390px; margin: auto; }
  .result-copy { padding: 4px 3px; }
  .result-copy h2 { font-size: clamp(2.6rem, 10vw, 3.6rem); }
  .result-description { line-height: 1.65; }
  .footer-inner { width: min(100% - 28px, 1480px); min-height: 66px; font-size: .67rem; }
}

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