@font-face {
  font-family: "Jacket Mincho";
  src: url("./jacket-mincho.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --sheet: #fdfbf6;
  --ink: #26221f;
  --muted: #625a51;
  --rule: #cbc2b4;
  --jacket: #34211d;
  --jacket-text: #fff5e5;
  --jacket-muted: #decbb7;
  --red: #a33224;
  --red-deep: #7d271e;
  --signal: #f2a790;
  --gutter: clamp(22px, 5.5vw, 100px);
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif:
    "Jacket Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --num: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.85 var(--sans);
  letter-spacing: 0.018em;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}
h1,
h2,
.brand > span,
.question-title,
.r-title,
.seal {
  font-family: var(--serif);
  font-weight: 500;
  font-feature-settings: "palt";
  letter-spacing: 0.018em;
}
h1,
h2,
h3 {
  text-wrap: pretty;
}
h1,
h2 {
  line-height: 1.42;
}
h3 {
  line-height: 1.6;
  font-size: 1.1rem;
}
img {
  display: block;
  max-width: 100%;
}
button,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.3em;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
[tabindex="-1"]:focus {
  outline: none;
}
.sr-only,
.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 5;
  left: 12px;
  top: 12px;
  background: var(--sheet);
  padding: 8px 16px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 14px;
  padding: 6px 16px;
  color: #534539;
  background: #e9e0d2;
  font-size: 0.75rem;
  line-height: 1.6;
}
.preview-bar strong {
  letter-spacing: 0.08em;
}
.site-header {
  min-height: 76px;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  width: 24px;
  height: 31px;
  color: var(--red);
  flex: none;
}
.brand > span {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.045em;
}
.brand small {
  display: block;
  margin-top: 6px;
  font: 600 0.53rem/1 var(--sans);
  letter-spacing: 0.24em;
}
.header-caption {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.site-header > button {
  justify-self: end;
}
.text-button,
.underlined,
.back-button {
  border: 0;
  padding: 7px 0;
  min-height: 44px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 0.875rem;
}
.text-button:hover,
.underlined:hover,
.back-button:hover {
  color: var(--red);
}
.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 11px 20px;
  background: var(--red);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.primary-button:hover:not(:disabled) {
  background: var(--red-deep);
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled) {
  transform: translateY(1px);
}
.secondary-button {
  border-color: #85766a;
  background: transparent;
  color: var(--ink);
}
.secondary-button:hover {
  background: #eee6d8;
  border-color: var(--ink);
}
.button-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.small-note,
.connection-note,
.privacy-inline {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.85;
}
.eyebrow,
.section-number {
  color: var(--red);
  font: 600 0.71rem/1.5 var(--sans);
  letter-spacing: 0.15em;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.91fr;
  background: var(--jacket);
  color: var(--jacket-text);
  min-width: 0;
}
.hero-copy {
  position: relative;
  align-content: center;
  padding: clamp(45px, 6vw, 104px) clamp(30px, 4vw, 76px) clamp(45px, 5vw, 88px)
    var(--gutter);
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) * 0.37);
  width: 5px;
  border-inline: 1px solid #8c6452;
  opacity: 0.55;
}
.hero-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--jacket-text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hero-offer::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}
.hero-preface {
  margin-top: clamp(22px, 3vw, 48px);
  color: var(--jacket-muted);
  font: 600 clamp(1rem, 1.55vw, 1.45rem)/1.55 var(--serif);
  letter-spacing: 0.1em;
}
.hero-headline {
  margin-top: 7px;
  font-size: clamp(2.15rem, 5.2vw, 5.6rem);
  line-height: 1.24;
  letter-spacing: 0.005em;
  text-wrap: initial;
}
.hero-headline > span {
  display: block;
  width: fit-content;
  animation: title-type 0.64s steps(6, end) both;
}
.hero-headline > span + span {
  animation-delay: 0.65s;
}
.hero-period {
  color: var(--signal);
}
@keyframes title-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes ink-settle {
  from {
    opacity: 0.35;
    transform: translateY(0.14em);
  }
}
.hero-lead {
  margin-top: clamp(20px, 2.6vw, 36px);
  color: var(--jacket-text);
  font-feature-settings: "palt";
  font-size: clamp(0.95rem, 1.22vw, 1.125rem);
  line-height: 1.9;
}
.hero-action {
  display: flex;
  align-items: center;
  gap: 16px 22px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.diagnosis-cta {
  justify-content: space-between;
  min-width: min(240px, 100%);
}
.hero .primary-button {
  color: #2e1b18;
  background: #fbefdb;
  border-color: #fbefdb;
}
.hero .primary-button:hover {
  background: #fff8ed;
  color: #7d271e;
}
.hero :focus-visible {
  outline-color: var(--signal);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--jacket-muted);
  font-size: 0.78rem;
}
.hero-meta span:not(:last-child)::after {
  content: "／";
  margin-left: 10px;
  opacity: 0.7;
}
.registration-note {
  margin-top: 16px;
  color: var(--jacket-muted);
  font-size: 0.84rem;
  line-height: 1.8;
}
.resume-tools {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  align-items: center;
}
.hero .resume-tools .small-note,
.hero .resume-tools button {
  color: var(--jacket-muted);
}
.hero-art {
  display: grid;
  position: relative;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #e6d9c6;
  color: #3c3028;
  padding: 13px 18px 9px;
}
.hero-art picture {
  min-width: 0;
  min-height: 0;
  position: relative;
}
.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 54%;
}
.art-registration,
.hero-art figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
}
.art-registration {
  letter-spacing: 0.19em;
  padding-bottom: 9px;
  font-weight: 600;
}
.hero-art figcaption {
  padding-top: 7px;
}
.art-number {
  font: italic 1.25rem/1 var(--num);
}
.marquee-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px var(--gutter);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.intro-section,
.journey {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(60px, 8vw, 125px) var(--gutter);
}
.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 22px clamp(30px, 8vw, 120px);
}
.section-index {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.83rem;
  letter-spacing: 0.09em;
}
.section-index > span {
  color: var(--red);
  font: italic 1.65rem/1 var(--num);
}
.section-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.intro-section h2,
.journey h2,
.bottom-cta h2 {
  font-size: clamp(1.7rem, 3.55vw, 3.25rem);
}
.serif-emphasis {
  color: var(--red);
}
.intro-prose {
  max-width: 44ch;
  line-height: 2;
}
.intro-prose p + p {
  margin-top: 1.05em;
}
.editorial-motif {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.2vw, 30px);
  border-bottom: 1px solid var(--rule);
  margin-top: 21px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.editorial-motif i {
  width: clamp(12px, 5vw, 74px);
  height: 1px;
  background: var(--rule);
}
.motif-book {
  border: 1px solid #a99a87;
  border-left: 4px solid var(--red);
  background: var(--sheet);
  padding: 7px 15px;
  font-family: var(--serif);
  color: var(--ink);
  white-space: nowrap;
}
.journey {
  padding-top: 10px;
}
.journey-title {
  display: grid;
  gap: 22px;
  margin-bottom: 32px;
}
.journey-steps {
  border-top: 1px solid var(--rule);
}
.journey-step {
  display: grid;
  grid-template-columns: minmax(48px, 0.24fr) 1fr;
  align-items: center;
  gap: 12px 24px;
  border-bottom: 1px solid var(--rule);
  padding: 21px 0;
}
.step-no {
  color: var(--red);
  font: italic clamp(1.95rem, 4vw, 3.85rem)/1 var(--num);
}
.step-copy {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: baseline;
  gap: 4px 24px;
}
.step-copy p {
  color: var(--muted);
}
.mobile-break {
  display: none;
}
.bottom-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 25px clamp(24px, 6vw, 100px);
  background: #e9dfd0;
  border-block: 1px solid var(--rule);
  padding: clamp(46px, 7vw, 100px) var(--gutter);
}
.bottom-heading > p {
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.bottom-action {
  align-self: end;
}
.bottom-action .primary-button {
  margin: 16px 0 10px;
}
.closing-note {
  padding: 23px var(--gutter);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.8;
}
.site-footer {
  padding: 12px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-dot {
  margin: 0 6px;
  color: var(--red);
}

/* One question per page, with the folio and the chapter index on the same grid. */
.quiz-layout {
  width: min(100%, 1250px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(170px, 0.29fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 98px);
  padding: clamp(30px, 5vw, 74px) var(--gutter) 55px;
}
.quiz-sidebar {
  border-right: 1px solid var(--rule);
  padding-right: clamp(16px, 3vw, 48px);
}
.chapter-label {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
}
.quiz-sidebar h2 {
  margin: 5px 0 23px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}
.chapter-list {
  padding: 0;
  list-style: none;
  font-size: 0.81rem;
}
.chapter-list li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.chapter-list li.current {
  color: var(--red);
  font-weight: 700;
}
.chapter-list li > span {
  font: italic 1.1rem/1.2 var(--num);
  font-variant-numeric: tabular-nums;
}
.sidebar-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.85;
}
.quiz-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.quiz-folio {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font: italic 1.18rem/1 var(--num);
  white-space: nowrap;
}
.quiz-folio strong {
  color: var(--red);
  font-size: 2.75rem;
  font-weight: normal;
  font-variant-numeric: lining-nums tabular-nums;
}
.desktop-count,
.mobile-chapter {
  color: var(--muted);
  font-size: 0.8rem;
}
.mobile-chapter {
  display: none;
}
.progress-track {
  position: relative;
  height: 4px;
  background: #dfd6c8;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.progress-ticks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
}
.progress-ticks i:not(:last-child) {
  border-right: 2px solid var(--paper);
}
.progress-ticks i:nth-child(4n):not(:last-child) {
  border-right-width: 5px;
}
.quiz-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.quiz-fieldset legend {
  width: 100%;
  padding: 0;
  margin: clamp(23px, 3.1vw, 43px) 0 20px;
}
.question-title {
  font-family: var(--sans);
  font-weight: 500;
  display: block;
  font-size: clamp(1.35rem, 3.15vw, 2.6rem);
  line-height: 1.58;
}
.question-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}
.options {
  display: grid;
  border-top: 1px solid var(--rule);
}
.option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--rule);
  padding: 13px 12px;
  min-height: 62px;
  font-size: 1rem;
  line-height: 1.7;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.option-letter {
  color: var(--red);
  font: italic 1.35rem/1 var(--num);
}
.option-check {
  justify-self: end;
  visibility: hidden;
  color: var(--red);
  font-size: 1rem;
}
@media (hover: hover) {
  .option:hover {
    background: #eee7dc;
  }
}
.option:has(input:checked) {
  background: #f1e0d6;
  box-shadow: inset 3px 0 var(--red);
}
.option:has(input:checked) .option-check {
  visibility: visible;
}
.option:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.selection-hint {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.82rem;
}
.quiz-nav {
  margin-top: 12px;
  display: flex;
  gap: 0 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.save-hint {
  color: var(--muted);
  font-size: 0.78rem;
}
[data-screen="quiz"] .question-title {
  animation: ink-settle 0.32s var(--ease) both;
}

/* The receipt is the title leaf, and each result has its own jacket color. */
.receive-layout,
.result-hero {
  width: min(100%, 1340px);
  margin-inline: auto;
  padding: clamp(39px, 6vw, 95px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(25px, 7vw, 106px);
}
.sealed-book {
  background: #e9dfd0;
  border: 1px solid var(--rule);
  padding: clamp(21px, 4vw, 55px);
  text-align: center;
}
.envelope {
  aspect-ratio: 4 / 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  border: 1px solid #bba993;
  border-left: 5px solid var(--red);
  padding: clamp(12px, 2.2vw, 28px);
  background: var(--sheet);
  box-shadow: 4px 4px #d6c9b7;
}
.envelope-label,
.number,
.envelope-bottom {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.seal {
  color: var(--red);
  font-size: clamp(1.25rem, 3.5vw, 3.4rem);
}
.number {
  display: block;
  margin-top: 14px;
}
.receive-copy h1,
.result-hero h1,
.error-page h1 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}
.receive-copy > p:not(.eyebrow) {
  line-height: 1.95;
}
.receive-main {
  margin-top: 20px;
}
.receive-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 20px;
}
.receive-list li {
  display: flex;
  align-items: baseline;
  gap: 15px;
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
}
.receive-list span {
  color: var(--red);
  font: italic 1.25rem/1 var(--num);
}
.receive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.line-button {
  background: #12683b;
}
.line-button:hover:not(:disabled) {
  background: #0b512d;
}
.line-button:disabled {
  background: #e1e7df;
  color: #35483d;
  border-color: #bac8bd;
}
.line-mark {
  font-weight: 750;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.privacy-inline,
.connection-note,
.chat-instruction {
  margin: 10px 0;
}
.receipt-status {
  border-left: 3px solid #12683b;
  background: #e1e7df;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.receipt-status.error {
  border-color: var(--red);
  background: #f1e0d6;
}
.qr-box {
  width: min(100%, 260px);
  background: white;
  padding: 13px;
  margin: 12px 0;
}
.qr-box canvas,
.qr-box svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.preview-controls {
  margin-top: 15px;
  padding: 12px 15px;
  border: 1px dashed #938476;
  background: var(--sheet);
}
.preview-controls summary {
  padding-block: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}
.preview-controls p {
  margin: 5px 0 12px;
  font-size: 0.85rem;
}
.preview-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.result-hero {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.6fr);
  align-items: center;
}
.result-category {
  color: var(--muted);
  margin-top: 13px;
  font-size: 0.92rem;
}
.result-summary {
  font-size: 1.1rem;
  font-weight: 600;
}
.result-intro {
  margin-top: 12px;
}
.result-cover {
  justify-self: center;
  width: min(100%, 325px);
  min-height: 300px;
  aspect-ratio: 4 / 5;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px clamp(16px, 2.2vw, 34px);
  color: var(--ink);
  background: color-mix(in srgb, var(--result-color) 15%, var(--sheet));
  border: 1px solid #a18f80;
  border-left: 10px solid var(--result-color);
  box-shadow:
    5px 5px var(--paper),
    6px 6px #a18f80;
}
.r-code,
.r-small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.r-code {
  border-bottom: 1px solid #8d7a70;
  padding-bottom: 8px;
}
.r-number {
  font: italic clamp(2.7rem, 5.8vw, 5.5rem)/1 var(--num);
  color: var(--ink);
}
.r-title {
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.45;
}
.r-small {
  margin-top: 5px;
}
.result-wrap {
  width: min(100%, 1270px);
  margin: auto;
  padding: 0 var(--gutter) clamp(45px, 6vw, 85px);
}
.result-rule,
.share-section {
  display: grid;
  grid-template-columns: minmax(0, 0.57fr) minmax(0, 1fr);
  gap: 15px clamp(24px, 6vw, 82px);
  border-top: 1px solid var(--rule);
  padding: clamp(25px, 4vw, 58px) 0;
}
.result-wrap h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  margin: 8px 0 14px;
}
.result-rule ul {
  padding-left: 1.15em;
}
.result-rule li + li {
  margin-top: 7px;
}
.result-rule li::marker {
  color: var(--red);
}
.book-examples {
  display: grid;
  gap: 8px;
  margin: 17px 0 9px;
}
.book-example {
  border-left: 2px solid var(--red);
  padding: 8px 12px;
  background: #eee6d9;
}
.book-examples-note {
  color: var(--muted);
  font-size: 0.83rem;
}
.action-sheet {
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--rule);
  background: var(--sheet);
  margin-bottom: 32px;
}
.seed-question {
  margin-top: 14px;
  font-weight: 650;
}
.seed-input {
  resize: vertical;
  width: 100%;
  min-height: 135px;
  margin: 7px 0;
  border: 1px solid #a4988c;
  background: var(--paper);
  padding: 11px;
}
.share-section {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.share-actions,
.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.share-preview {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.offer-section {
  padding: clamp(24px, 4vw, 55px);
  background: #e9dfd0;
  border: 1px solid var(--rule);
}
.offer-section .primary-button {
  margin-top: 13px;
}
.result-tools {
  margin-top: 22px;
}
.result-disclaimer {
  margin-top: 19px;
  color: var(--muted);
  font-size: 0.84rem;
}
.error-page {
  padding: 50px var(--gutter);
  max-width: 800px;
  margin: auto;
}
.error-page button {
  margin-top: 15px;
}
.info-dialog {
  position: fixed;
  max-width: min(620px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
}
.info-dialog::backdrop {
  background: #231a16b0;
}
.info-dialog h2 {
  margin: 5px 20px 16px 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.info-dialog p + p {
  margin-top: 0.9em;
}
.dialog-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
}
.info-dialog button:not(.dialog-close) {
  margin-top: 12px;
}

@media (max-width: 970px) {
  .hero-copy {
    padding-left: var(--gutter);
  }
  .hero-meta {
    width: 100%;
  }
  .step-copy {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .hero-copy::before {
    display: none;
  }
  .site-header {
    min-height: 61px;
    grid-template-columns: 1fr auto;
  }
  .header-caption {
    display: none;
  }
  .brand {
    gap: 7px;
  }
  .brand > span {
    font-size: 1.15rem;
  }
  .brand svg {
    width: 20px;
    height: 27px;
  }
  .site-header .text-button {
    font-size: 0.76rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 22px var(--gutter) 25px;
  }
  .hero-copy {
    display: contents;
  }
  .hero-heading {
    order: 0;
  }
  .hero-offer {
    font-size: 0.96rem;
    letter-spacing: 0.06em;
  }
  .hero-preface {
    margin-top: 16px;
    font-size: 0.96rem;
  }
  .hero-headline {
    font-size: clamp(2.08rem, 9.5vw, 4.05rem);
    margin-top: 4px;
  }
  .hero-art {
    order: 1;
    margin-top: 15px;
    padding: 6px 8px 5px;
  }
  .hero-art picture {
    aspect-ratio: 2.25;
  }
  .hero-art img {
    object-position: 50% 60%;
  }
  .art-registration {
    padding: 0 2px 4px;
    font-size: 0.55rem;
  }
  .hero-art figcaption {
    padding: 3px 2px 0;
    font-size: 0.66rem;
  }
  .art-number {
    font-size: 0.93rem;
  }
  .hero-lead {
    order: 2;
    margin-top: 13px;
    font-size: 0.97rem;
  }
  .hero-lead br {
    display: initial;
  }
  .hero-action {
    order: 3;
    margin-top: 14px;
    gap: 7px;
  }
  .hero .diagnosis-cta,
  .bottom-action .diagnosis-cta {
    width: 100%;
  }
  .registration-note {
    order: 4;
    margin-top: 8px;
  }
  .resume-tools {
    order: 5;
  }
  .marquee-line {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3px 10px;
    padding-block: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .intro-section,
  .bottom-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .intro-prose {
    max-width: none;
  }
  .editorial-motif {
    margin-top: 6px;
  }
  .journey-title {
    gap: 15px;
    margin-bottom: 21px;
  }
  .journey-step {
    padding: 16px 0;
    gap: 9px;
  }
  .mobile-break {
    display: initial;
  }
  .quiz-layout {
    display: block;
    padding-top: 25px;
  }
  .quiz-sidebar,
  .desktop-count {
    display: none;
  }
  .mobile-chapter {
    display: inline;
    text-align: right;
  }
  .quiz-folio strong {
    font-size: 2.28rem;
  }
  .quiz-fieldset legend {
    margin-block: 19px 13px;
  }
  .option {
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr) 17px;
    padding: 10px 6px;
    min-height: 58px;
  }
  .receive-layout,
  .result-hero,
  .result-rule,
  .share-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .sealed-book {
    order: 2;
    padding: 16px;
  }
  .envelope {
    max-width: 210px;
    margin: auto;
  }
  .result-cover {
    width: min(65%, 235px);
    min-height: 0;
    border-left-width: 6px;
  }
  .share-actions > *,
  .result-tools > * {
    flex: 1 1 100%;
  }
}
@media (max-width: 350px) {
  :root {
    --gutter: 17px;
  }
  .hero-headline {
    font-size: clamp(1.75rem, 9.2vw, 2.05rem);
  }
  .editorial-motif {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
