:root {
  --paper: #f7f3ec;
  --ink: #342d2b;
  --muted: #79706b;
  --red: #9f384a;
  --blush: #edd8d4;
  --line: #ded6cc;
  --green: #617268;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: radial-gradient(#79695712 0.7px, transparent 0.7px);
  background-size: 5px 5px;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.9;
}
h1,
h2,
.serif {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-weight: 500;
}
header,
main,
footer {
  width: min(1120px, calc(100% - 80px));
  margin: auto;
}
.site-header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand-mark {
  color: var(--red);
  font-size: 35px;
}
.brand-en {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-left: 15px;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 75px;
  padding: 25px 0 32px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 600;
}
.access-gate {
  max-width: 540px;
  margin: 64px auto;
  padding: 40px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.access-gate h1 {
  margin: 24px 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.5;
}
.access-form {
  display: grid;
  gap: 16px;
  max-width: 280px;
  margin: 28px auto 0;
}
.access-form label {
  color: var(--muted);
  font-size: 13px;
}
.access-form input {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffaf4;
  color: var(--red);
  font: 28px monospace;
  letter-spacing: 12px;
  text-align: center;
}
.access-form input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.access-error {
  min-height: 24px;
  color: var(--red);
  font-size: 13px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 620px;
  gap: 45px;
  padding: 55px 0;
}
.hero h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.45;
  letter-spacing: 2px;
  margin: 25px 0;
}
.hero h1 em {
  color: var(--red);
  font-style: normal;
  position: relative;
}
.hero h1 em:after {
  content: "";
  height: 8px;
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--red);
  border-radius: 50%;
}
.intro {
  font-size: 14px;
  color: var(--muted);
  margin: 30px 0;
}
.button {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 17px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  font-size: 14px;
  line-height: 1.4;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--red);
  color: #fffaf4;
}
.primary:hover {
  background: #873042;
}
.secondary {
  border-color: var(--line);
  background: transparent;
}
.text-button {
  border: 0;
  background: none;
  padding: 14px 0;
  color: var(--red);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.meta {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
}
.art {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid #d8cbc1;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.orbit:after {
  content: "✦";
  position: absolute;
  top: 30px;
  left: 60px;
  color: var(--red);
  font-size: 27px;
}
.letter {
  position: relative;
  width: 340px;
  min-height: 390px;
  background: #fffcf5;
  padding: 37px 30px;
  box-shadow: 0 18px 50px #593a2712;
  border: 1px solid #e6dbce;
  transform: rotate(-7deg);
}
.letter:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #e6dbce;
  pointer-events: none;
}
.letter-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.heart-art {
  height: 200px;
  width: 100%;
  color: var(--red);
  display: block;
}
.letter .serif {
  text-align: center;
  font-size: 23px;
  line-height: 1.7;
}
.letter-bottom {
  text-align: center;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 16px;
}
.seal {
  position: absolute;
  bottom: 18px;
  right: 5px;
  background: var(--red);
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: #fff3df;
  border: 5px double #d18a87;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(12deg);
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 6px 20px #593a2722;
}
.art-caption {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 25px;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  padding: 30px;
}
.feature + .feature {
  border-left: 1px solid var(--line);
}
.feature:first-child {
  padding-left: 0;
}
.feature small {
  color: var(--red);
  letter-spacing: 2px;
  font-size: 11px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 15px 0 10px;
}
.feature p {
  font-size: 12px;
  color: var(--muted);
}
.footnote {
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
details {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
details p {
  max-width: 780px;
}
.quiz {
  max-width: 720px;
  margin: 55px auto 0;
  min-height: 600px;
}
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.progress {
  height: 3px;
  background: var(--line);
  margin: 18px 0 38px;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--red);
  transition: width 0.3s;
}
.question-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  margin-bottom: 16px;
}
.quiz h1 {
  font-size: 30px;
  line-height: 1.6;
  margin: 15px 0 12px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.options {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.option {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 20px;
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
}
.option:hover {
  border-color: var(--red);
}
.option[aria-pressed="true"] {
  background: #f1e2de;
  border-color: var(--red);
  color: #873042;
}
.option-letter {
  font-family: Georgia, serif;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.option[aria-pressed="true"] .option-letter {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.quiz-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiet {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px 0;
  font-size: 12px;
}
.result {
  padding-top: 50px;
  max-width: 900px;
  margin: auto;
}
.result-heading {
  text-align: center;
  margin-bottom: 30px;
}
.result-heading h1 {
  font-size: 31px;
  margin: 14px 0;
}
.result-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: #fffaf2;
  border: 1px solid var(--line);
  box-shadow: 0 12px 45px #523d2210;
}
.result-art {
  padding: 35px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #eee2d9;
}
.result-art .heart-art {
  height: 215px;
}
.result-code {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
}
.result-copy {
  padding: 38px;
}
.result-copy h2 {
  font-size: 36px;
  margin: 16px 0;
  color: var(--red);
}
.result-quote {
  font-size: 17px;
  margin-bottom: 20px;
}
.result-desc {
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  font-size: 11px;
  border: 1px solid #d9b8b1;
  color: var(--red);
  border-radius: 30px;
  padding: 7px 14px;
  margin-top: 22px;
}
.report-section {
  margin-top: 45px;
}
.report-section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.axes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 35px;
  margin: 25px 0;
}
.axis {
  background: #fffaf4;
  border: 1px solid var(--line);
  padding: 22px;
}
.axis-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.axis-title span {
  font-size: 11px;
  color: var(--red);
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 10px;
}
.axis-track {
  height: 5px;
  background: linear-gradient(90deg, #d5c6b5, #a44d5a);
  position: relative;
  margin: 0 7px 20px;
}
.axis-track:before {
  content: "";
  position: absolute;
  left: 50%;
  height: 11px;
  top: -3px;
  border-left: 1px solid #fff9;
}
.axis-dot {
  position: absolute;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--red);
  transform: translateX(-50%);
}
.axis p {
  font-size: 12px;
  color: var(--muted);
}
.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.insight {
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
.insight h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--red);
}
.insight p {
  font-size: 13px;
  color: var(--muted);
}
.practice {
  padding: 30px;
  background: #e8ede6;
  border: 1px solid #d2dbcf;
}
.practice .eyebrow {
  color: var(--green);
}
.practice blockquote {
  margin: 20px 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 22px;
  line-height: 1.8;
}
.practice p {
  font-size: 12px;
  color: var(--green);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.result-end {
  text-align: center;
  margin: 25px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 7px;
  padding: 14px 22px;
  font-size: 13px;
  z-index: 10;
  display: none;
  width: max-content;
  max-width: 90vw;
}
.toast.visible {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--paper);
  border-radius: 10px;
  max-width: 460px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #30221fb0;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 23px;
  padding-right: 15px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
dialog img {
  width: 100%;
  display: block;
  margin: 20px 0;
}
.dialog-close {
  float: right;
  background: none;
  border: 0;
  font-size: 25px;
}
dialog .button {
  width: 100%;
}
main:focus,
h1:focus {
  outline: none;
}
.reveal {
  animation: enter 0.5s ease both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1400px) {
  .hero {
    min-height: 680px;
  }
}
@media (max-width: 800px) {
  header,
  main,
  footer {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 76px;
  }
  .header-note,
  .brand-en {
    display: none;
  }
  .hero {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
    min-height: 530px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .letter {
    width: 265px;
    padding: 25px 20px;
    min-height: 340px;
  }
  .art {
    min-height: 390px;
  }
  .seal {
    width: 76px;
    height: 76px;
    right: -5px;
  }
  .hero .meta {
    gap: 10px;
    font-size: 10px;
  }
  .features .feature {
    padding: 22px 15px;
  }
  .result-copy {
    padding: 25px;
  }
  .result-copy h2 {
    font-size: 29px;
  }
}
@media (max-width: 580px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding: 40px 0 30px;
    gap: 25px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(32px, 10vw, 40px);
    margin: 22px 0;
  }
  .intro {
    margin: 25px 0;
    font-size: 13px;
  }
  .hero .button {
    width: 100%;
    justify-content: space-between;
    padding: 19px 25px;
  }
  .meta {
    justify-content: center;
  }
  .art {
    min-height: 340px;
    width: 100%;
    max-width: 350px;
    margin: 10px 0 15px;
  }
  .letter {
    min-height: 290px;
    width: 245px;
    padding: 23px;
  }
  .heart-art {
    height: 145px;
  }
  .letter .serif {
    font-size: 19px;
  }
  .seal {
    bottom: 0;
    right: 9px;
  }
  .art-caption {
    right: 2px;
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading span {
    font-size: 9px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .features .feature {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 7px 15px;
  }
  .feature + .feature {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature small {
    padding-top: 4px;
    grid-row: 1/3;
  }
  .feature h3 {
    margin: 0;
    font-size: 15px;
  }
  .feature p {
    grid-column: 2;
  }
  .site-footer {
    margin-top: 45px;
    gap: 12px;
    flex-direction: column;
    font-size: 10px;
  }
  .quiz {
    margin-top: 30px;
    min-height: 560px;
  }
  .quiz h1 {
    font-size: 25px;
  }
  .progress {
    margin-bottom: 28px;
  }
  .option {
    padding: 17px 14px;
    font-size: 13px;
    min-height: 67px;
  }
  .quiz-bottom .button {
    padding: 15px 22px;
  }
  .result {
    padding-top: 35px;
  }
  .result-heading h1 {
    font-size: 26px;
  }
  .result-card {
    grid-template-columns: 1fr;
  }
  .result-art {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .result-art .heart-art {
    height: 130px;
  }
  .result-copy {
    padding: 28px;
  }
  .result-copy h2 {
    font-size: 34px;
  }
  .axes,
  .insights {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .report-section {
    margin-top: 32px;
  }
  .insight {
    padding: 22px 0 4px;
  }
  .practice {
    padding: 23px;
  }
  .practice blockquote {
    font-size: 21px;
  }
  .actions .button {
    width: 100%;
  }
  .result .text-button {
    display: block;
    margin: 0 auto;
  }
  .footnote {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 580px) {
  .orbit {
    width: 80%;
    height: 80%;
  }
}
