:root {
  --ink: #21133d;
  --ink-soft: #5d526d;
  --violet: #6c2ef2;
  --violet-dark: #5120c6;
  --orange: #f66b3b;
  --cream: #fff8ef;
  --lavender: #f5f1ff;
  --green: #248c4c;
  --line: #e7e0ef;
  --white: #fff;
  --shadow: 0 24px 65px rgba(33, 19, 61, .14);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 4px solid #ffb18f; outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 18px; z-index: 100; padding: 11px 16px; border-radius: 0 0 12px 12px; color: #fff; background: var(--orange); font-weight: 900; }
.skip-link:focus { top: 0; }

.site-header { position: relative; z-index: 10; color: #fff; background: var(--ink); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand-logo { width: 260px; max-width: 45vw; height: auto; }
.back-home { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; color: #fff; font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; }
.back-home:hover { background: rgba(255,255,255,.1); }

.article-hero { padding: 78px 0 165px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(246,107,59,.28), transparent 30%), linear-gradient(135deg, #21133d, #48217f); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: rgba(255,255,255,.68); font-size: .9rem; }
.breadcrumbs a { color: #fff; }
.article-kicker { margin: 0 0 13px; color: #ffd0bd; font-size: .84rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 960px; margin: 0 0 24px; font-size: clamp(3rem, 7vw, 6rem); }
.article-deck { max-width: 790px; margin: 0 0 28px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.article-meta span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .84rem; font-weight: 850; }

.article-cover { width: min(calc(100% - 40px), var(--max)); max-height: 650px; margin: -105px auto 0; overflow: hidden; border: 9px solid #fff; border-radius: 30px; background: var(--lavender); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: min(58vw, 630px); object-fit: cover; }
.article-cover.train img { object-position: center; }
.article-cover.contain img { object-fit: contain; background: #ede7f8; }
.article-hero.no-cover { padding-bottom: 88px; }

.article-shell { display: grid; grid-template-columns: minmax(0, 780px) 280px; justify-content: space-between; gap: 70px; padding: 76px 0 110px; }
.article-body { font-family: Georgia, "Times New Roman", serif; color: #372e43; font-size: clamp(1.08rem, 1.8vw, 1.2rem); }
.article-body > p:first-child { font-size: clamp(1.28rem, 2.4vw, 1.58rem); line-height: 1.55; }
.article-body h2 { margin: 58px 0 18px; color: var(--ink); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: clamp(1.85rem, 4vw, 2.65rem); }
.article-body p { margin: 0 0 25px; }
.article-body ul { margin: -5px 0 30px; padding-left: 25px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { margin: 38px 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--orange); color: var(--ink); font-size: 1.28em; font-style: italic; }
.article-body figure { margin: 42px 0; }
.article-body figure img { width: 100%; border-radius: 22px; box-shadow: 0 16px 40px rgba(33,19,61,.12); }
.article-body > img, .article-body p > img { width: auto; max-height: 760px; margin: 38px auto; border-radius: 20px; box-shadow: 0 16px 40px rgba(33,19,61,.12); }
.article-body table { width: 100%; display: block; margin: 32px 0; overflow-x: auto; border-collapse: collapse; font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .93rem; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body a { color: var(--violet-dark); font-weight: 700; overflow-wrap: anywhere; }
.article-body .wp-block-gallery { margin: 42px 0; }
.article-body .blocks-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.article-body .blocks-gallery-item, .article-body .blocks-gallery-item figure { margin: 0; }
.article-body .blocks-gallery-item img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 18px; }
.article-body figcaption { margin-top: 11px; color: var(--ink-soft); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .84rem; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 42px 0; }
.gallery figure { margin: 0; }
.gallery img { height: 100%; min-height: 290px; object-fit: cover; }
.archive-notice { margin: 0 0 42px; padding: 22px 24px; border: 1px solid #eadcff; border-radius: 18px; color: #49375e; background: var(--lavender); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .95rem; }
.archive-notice strong { color: var(--violet-dark); }
.signature { margin-top: 45px; color: var(--ink); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.15rem; font-weight: 950; }
.source-note { margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .88rem; }
.source-note a { color: var(--violet-dark); font-weight: 900; }

.article-aside { align-self: start; position: sticky; top: 28px; }
.info-card, .related-card { padding: 25px; border-radius: 22px; }
.info-card { border: 1px solid var(--line); background: var(--cream); }
.info-card h2, .related-card h2 { margin: 0 0 18px; font-size: 1.28rem; }
.info-list { display: grid; gap: 15px; margin: 0; }
.info-list div { padding-bottom: 14px; border-bottom: 1px solid rgba(33,19,61,.1); }
.info-list div:last-child { padding-bottom: 0; border: 0; }
.info-list dt { color: var(--ink-soft); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.info-list dd { margin: 3px 0 0; font-weight: 900; line-height: 1.35; }
.related-card { margin-top: 20px; color: #fff; background: var(--violet); }
.related-card p { color: rgba(255,255,255,.78); font-size: .92rem; }
.related-card a { display: inline-flex; margin-top: 8px; font-weight: 950; }

.story-cta { padding: 72px 0; color: #fff; background: var(--ink); }
.story-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.story-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-button { flex: 0 0 auto; padding: 15px 20px; border-radius: 14px; color: var(--ink); background: #fff; font-weight: 950; text-decoration: none; }
.site-footer { padding: 30px 0; color: rgba(255,255,255,.65); background: #160c2a; text-align: center; font-size: .82rem; }

@media (max-width: 900px) {
  .article-shell { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .related-card { margin-top: 0; }
}
@media (max-width: 620px) {
  .container, .article-cover { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand-logo { width: 176px; max-width: 58vw; }
  .back-home { width: 44px; height: 44px; padding: 0; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-size: 0; }
  .back-home::before { content: "←"; font-size: 1.45rem; font-weight: 800; line-height: 1; }
  .back-home:hover { background: rgba(255,255,255,.18); }
  .article-hero { padding: 58px 0 125px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .article-cover { margin-top: -78px; border-width: 6px; border-radius: 22px; }
  .article-cover img { height: 65vw; min-height: 270px; }
  .article-shell { padding: 58px 0 80px; }
  .gallery, .article-aside, .article-body .blocks-gallery-grid { grid-template-columns: 1fr; }
  .gallery img { min-height: 0; }
  .story-cta .container { display: block; }
  .story-cta h2 { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
