:root { --font-ui: 'Archive Sans', sans-serif; --font-editorial: 'Archive Serif', serif; --font-section: var(--font-ui); --control-radius: 2px; }
.history-entry { max-width: 1200px; padding: 52px 56px 56px; }
.gallery-intro h1 { font-size: clamp(36px, 3.8vw, 52px); font-weight: 500; line-height: 1.5; letter-spacing: .025em; margin: 0 0 20px; }
.entry-meta { font-size: 13px; letter-spacing: .025em; color: #b5b0a4; }
.gallery-intro .primary { margin-top: 28px; }
.entry-gallery { gap: 36px; max-width: 900px; margin-top: 48px; }
.gallery-art img { height: clamp(250px, 27vw, 340px); box-shadow: 0 10px 28px #0002; }
.gallery-art:nth-child(2) { margin-top: 24px; }
.gallery-art figcaption { font-size: 13px; color: #ded6c6; margin-top: 16px; }
.gallery-art figcaption span+span { font-size: 12px; color: #aaa79a; }
.eyebrow { font-size: 12px; letter-spacing: .04em; }
.question-layout { max-width: 840px; padding: 32px 40px 40px; }
.question-body { padding: 40px; margin-top: 36px; margin-bottom: 18px; }
.question-body h1 { font-size: 30px; font-weight: 500; }
.question-context { color: #816b4a; }
.question-navigation { margin-top: 0; }
.history-result.result { max-width: 1160px; padding: 0 48px 64px; }
.history-result-hero { gap: 56px; padding: 56px 0; }
.result-portrait img { height: 450px; }
.result-identity h1 { font-size: clamp(40px, 4.8vw, 62px); letter-spacing: .025em; margin-top: 16px; font-weight: 500; }
.person-english { font-size: 13px; letter-spacing: .045em; color: #b3ad9f; }
.person-era { font-size: 13px; margin-top: 24px; }
.person-tags { font-size: 14px; letter-spacing: .025em; margin-top: 24px; }
.person-intro { font-size: 15px; line-height: 1.95; color: #d2ccbe; }
.art-caption { font-size: 12px; color: #aaa497; }
.history-report { padding: 40px; }
.history-report h2 { font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.resonance-grid { gap: 28px; margin-top: 28px; }
.resonance-grid h3 { font-family: var(--font-editorial); font-size: 21px; }
.resonance-grid article>p:last-child, .insight-pair p, .archive-facts ul { font-size: 14px; line-height: 1.95; }
.insight-pair { gap: 40px; }
.alternate-person { min-width: 0; gap: 22px; }
.alternate-person>div { min-width: 0; }
.alternate-person h3 { font-family: var(--font-editorial); font-size: 25px; }
.alternate-person p, .alternate-person span { font-size: 12px; }
.history-preferences summary, .history-atlas summary { font-family: var(--font-section); font-size: 21px; }
.preference-rows>div { font-size: 13px; }
.portrait-card strong { font-size: 18px; }
.portrait-card span { font-size: 12px; }
.history-result>.actions, .history-result>.result-links, .history-result>.notice { padding-left: 40px; padding-right: 40px; }
.profile-copy, .profile-copy .archive-facts ul { font-size: 14px; line-height: 1.95; }
@media (max-width: 900px) {
  .history-entry { padding-left: 36px; padding-right: 36px; }
  .history-result.result { padding-left: 28px; padding-right: 28px; }
  .history-result-hero { gap: 36px; }
  .result-portrait img { height: 380px; }
  .history-report { padding: 32px; }
  .resonance-grid { grid-template-columns: 1fr; gap: 24px; }
  .resonance-grid h3 { margin-bottom: 8px; }
  .history-result>.actions, .history-result>.result-links, .history-result>.notice { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 600px) {
  .history-entry { padding: 32px 24px 40px; }
  .gallery-intro h1 { font-size: 33px; line-height: 1.6; letter-spacing: .015em; margin-bottom: 18px; }
  .entry-gallery { gap: 20px; margin-top: 36px; }
  .gallery-art img { height: clamp(190px, 56vw, 270px); }
  .gallery-art figcaption { font-size: 13px; }
  .gallery-art figcaption span+span { font-size: 12px; }
  .question-layout { padding: 22px 20px 32px; }
  .question-body { padding: 28px 24px; margin-top: 28px; }
  .question-body h1 { font-size: 24px; }
  .history-result.result { padding: 0 16px 56px; }
  .history-result-hero { grid-template-columns: 1fr; gap: 26px; padding: 32px 8px; }
  .result-portrait img { height: 300px; }
  .result-identity h1 { font-size: 40px; }
  .person-intro { font-size: 14px; }
  .person-era, .person-english { font-size: 12px; }
  .history-report { padding: 28px 24px; }
  .history-alternatives { grid-template-columns: 1fr; gap: 24px; }
  .insight-pair { gap: 28px; }
  .preference-rows { grid-template-columns: 1fr; }
  .history-result>.actions, .history-result>.result-links, .history-result>.notice { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 360px) {
  .history-report { padding-left: 20px; padding-right: 20px; }
  .gallery-intro h1 { font-size: 30px; }
  .question-body { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 601px) and (max-height: 820px) {
  .history-entry { padding: 32px 48px 36px; }
  .gallery-intro h1 { font-size: clamp(36px, 5.7svh, 46px); line-height: 1.5; margin-bottom: 16px; }
  .gallery-intro .primary { margin-top: 20px; }
  .entry-gallery { margin-top: 32px; }
  .gallery-art img { height: clamp(180px, calc(100svh - 390px), 280px); }
}
