:root {
  color-scheme: light;
  --archive-paper: #e9e2d2;
  --archive-paper-deep: #d6cbb9;
  --archive-sheet: #f8f7f1;
  --archive-sheet-warm: #f5efde;
  --archive-ink: #25231f;
  --archive-muted: #706b60;
  --archive-line: rgba(31, 32, 29, 0.16);
  --archive-serif: "Helemate Noto Serif SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --archive-sans: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --archive-mono: "Courier New", "SF Mono", monospace;
  --archive-shell-width: 430px;
  --archive-report-desktop-page-width: 680px;
  --archive-report-reading-width: 560px;
  --archive-page-gutter: 20px;
  --archive-report-page-gutter: 18px;
  --archive-report-page-leaf-padding-x: 26px;
  --archive-report-page-bottom: 38px;
  --archive-report-poster-min-height: 680px;
  --archive-report-sheet-min-height: 420px;
  --archive-sheet-padding-x: 24px;
  --archive-sheet-padding-y: 32px;
  --archive-title-size: 34px;
  --archive-body-size: 16.5px;
  --archive-body-leading: 1.9;
  --archive-label-size: 12px;
  --archive-intake-description-size: 14px;
  --archive-copy-leading: 1.85;
  --archive-button-height: 46px;
  --archive-intake-max-width: 920px;
  --archive-intake-wide-max-width: 1120px;
  --archive-intake-padding-top: 38px;
  --archive-intake-padding-bottom: 64px;
  --archive-intake-heading-top: 54px;
  --archive-intake-heading-bottom: 50px;
  --archive-intake-mobile-heading-top: 40px;
  --archive-intake-mobile-heading-bottom: 34px;
  --archive-intake-title-size: clamp(40px, 7vw, 58px);
  --archive-intake-title-leading: 1.16;
  --archive-intake-mobile-title-size: 39px;
  --archive-intake-control-height: 42px;
  --archive-intake-picker-height: 34px;
  --archive-intake-emphasis-height: 48px;
  --archive-intake-section-gap: 30px;
  --archive-intake-column-gap: 14px;
  --archive-radius: 0;
  --archive-destiny-accent: #486052;
  --archive-destiny-accent-rgb: 72 96 82;
}

/* Brand primitives originate from the approved home archive visual. */
.archive-brand-surface {
  --archive-home-paper: #fbfbf8;
  --archive-home-desk: #e8e1cf;
  --archive-home-ink: #242321;
  --archive-home-muted: #77736c;
  --archive-home-line: rgba(36, 35, 33, 0.18);
}

.archive-route-business {
  --archive-route-accent: #0d4cd0;
  --archive-route-accent-rgb: 13 76 208;
}

.archive-route-romance {
  --archive-route-accent: #a74e4a;
  --archive-route-accent-rgb: 167 78 74;
}

.archive-route-destiny {
  --archive-route-accent: var(--archive-destiny-accent);
  --archive-route-accent-rgb: var(--archive-destiny-accent-rgb);
}

/* Legacy report selectors consume these aliases. Keep them on the actual
   route body so the accent resolves after the route token is inherited. */
body.archive-route-business,
body.archive-route-romance,
body.archive-route-destiny {
  --blue: var(--archive-route-accent);
  --red: var(--archive-route-accent);
  --oxide: var(--archive-route-accent);
  --moss: var(--archive-route-accent);
}

.archive-report .chapter-reading,
.archive-report .preview-text {
  width: min(100%, var(--archive-report-reading-width));
  margin-inline: auto;
}

@media (min-width: 760px) {
  .archive-report .page {
    width: min(100%, var(--archive-report-desktop-page-width));
    max-width: var(--archive-report-desktop-page-width);
  }

  .archive-report .page-leaf {
    padding-inline: 60px;
  }

  .archive-report .poster,
  .archive-report .page-leaf {
    margin-bottom: 24px;
  }
}

.post-payment-entitlement {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgb(var(--archive-route-accent-rgb) / 0.28);
  background: rgb(var(--archive-route-accent-rgb) / 0.07);
}

.post-payment-entitlement .section-kicker { margin: 0 0 12px; }
.post-payment-entitlement h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.35; }
.post-payment-entitlement p:not(.section-kicker) { margin: 0 0 12px; color: var(--archive-muted); font-size: 12px; line-height: 1.7; }
.post-payment-code { display: block; margin: 14px 0 10px; color: var(--archive-ink); font: 700 20px var(--archive-mono); letter-spacing: .09em; overflow-wrap: anywhere; }
.post-payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post-payment-actions .primary-action,
.post-payment-actions .secondary-action { min-height: var(--archive-button-height); }

.archive-report {
  min-height: 100dvh;
  color: var(--archive-ink);
  font-family: var(--archive-serif);
  background:
    radial-gradient(circle at 58% 28%, rgb(var(--archive-route-accent-rgb) / 0.035), transparent 260px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.018) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 20, 20, 0.018) 1px, transparent 1px),
    var(--archive-paper);
  background-size: auto, 19px 19px, 19px 19px, auto;
}

.archive-report::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(circle at 18% 12%, rgba(0, 0, 0, 0.11) 0 0.6px, transparent 0.8px 5px),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
}

.archive-report,
.archive-report * {
  box-sizing: border-box;
}

.archive-report .report-header,
.archive-report .archive-report-header {
  width: min(100%, var(--archive-shell-width));
  min-height: 64px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 22px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

@media (min-width: 760px) {
  .archive-report .report-header,
  .archive-report .archive-report-header {
    width: min(100%, var(--archive-report-desktop-page-width));
    max-width: var(--archive-report-desktop-page-width);
  }
}

.archive-report .brand-home {
  display: grid;
  gap: 2px;
  color: var(--archive-ink);
  text-decoration: none;
}

.archive-report .brand-home strong {
  font-size: 13px;
  letter-spacing: 0.14em;
}

.archive-report .brand-home i {
  color: rgba(37, 35, 31, 0.35);
  font-style: normal;
}

.archive-report .brand-home em {
  color: var(--archive-muted);
  font: 9px var(--archive-mono);
  letter-spacing: 0.08em;
}

.archive-report .report-account-entry,
.archive-report .account-entry {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(37, 35, 31, 0.35);
  color: var(--archive-ink);
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.archive-report .page-leaf,
.archive-report .paper-sheet,
.archive-report .state-sheet,
.archive-report .report-load-state {
  border-radius: var(--archive-radius);
  background-color: var(--archive-sheet);
}

.archive-report .page-leaf,
.archive-report .paper-sheet {
  padding-left: var(--archive-sheet-padding-x);
  padding-right: var(--archive-sheet-padding-x);
}

.archive-report .page-leaf h2,
.archive-report .paper-sheet h2,
.archive-report .state-sheet h1,
.archive-report .report-load-state h1 {
  font-size: var(--archive-title-size);
}

.archive-report .section-kicker,
.archive-report .eyebrow,
.archive-report .chapter-number {
  color: var(--archive-muted);
  font-family: var(--archive-sans);
}

.archive-report .chapter-kicker,
.archive-report .chapter-kicker span,
.archive-report .chapter-kicker em {
  color: var(--archive-route-accent);
}

.archive-report .axis-panel > .section-kicker {
  margin-bottom: 30px;
}

.archive-report .primary-action,
.archive-report .primary-button {
  position: relative;
  min-height: var(--archive-button-height);
  border: 1px solid rgba(37, 35, 31, 0.22);
  border-radius: var(--archive-radius);
  background:
    linear-gradient(90deg, rgba(37, 35, 31, 0.22) 0 16px, transparent 16px calc(100% - 16px), rgba(37, 35, 31, 0.22) calc(100% - 16px)),
    linear-gradient(90deg, transparent, rgb(var(--archive-route-accent-rgb) / 0.08), transparent),
    rgba(245, 239, 222, 0.28);
  color: var(--archive-ink);
  font-family: var(--archive-serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.archive-report .primary-action:active,
.archive-report .primary-button:active,
.archive-report .secondary-action:active {
  transform: translateY(1px);
}

.archive-report .primary-action:focus-visible,
.archive-report .primary-button:focus-visible,
.archive-report .secondary-action:focus-visible,
.archive-report a:focus-visible {
  outline: 2px solid var(--archive-route-accent);
  outline-offset: 3px;
}

.archive-report .reading-copy,
.archive-report .preview-text,
.archive-report .chapter-reading {
  font-size: var(--archive-body-size);
  line-height: var(--archive-body-leading);
}

.archive-report .state-mark,
.archive-report .state-index,
.archive-report .working-mark,
.archive-report .archetype-code,
.archive-report .chapter-number,
.archive-report .progress-list li.is-active {
  color: var(--archive-route-accent);
}

.archive-report .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.archive-report .working-mark,
.archive-report .archive-progress i,
.archive-report .paper-sheet {
  animation: none;
}

@media (max-width: 759px) {
  .archive-report .report-header,
  .archive-report .archive-report-header {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-report *,
  .archive-report *::before,
  .archive-report *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
