/* Article styles are deliberately scoped to the preview reader. */
#article-view {
  --av-paper: #f1f2ed;
  --av-ink: #202a26;
  --av-muted: #647066;
  --av-line: #cdd3c8;
  --av-accent: #63764d;
  background: var(--av-paper);
  color: var(--av-ink);
  font-family: Manrope, Arial, sans-serif;
  overflow: clip;
  box-shadow: 0 20px 55px #10162015;
}
#article-view[hidden] { display: none; }
#article-view[data-theme="still"] {
  --av-paper: #f8f6f1;
  --av-ink: #302e2a;
  --av-muted: #827366;
  --av-line: #dcd5c9;
  --av-accent: #986c51;
}
#article-view[data-theme="ritual"] {
  --av-paper: #24241f;
  --av-ink: #f1ebdf;
  --av-muted: #b4b8a5;
  --av-line: #494b3f;
  --av-accent: #d5dbb9;
}
#article-view *, #article-view *::before, #article-view *::after { box-sizing: border-box; }
#article-view a { color: inherit; text-decoration: none; }
#article-view a:focus-visible { outline: 2px solid var(--av-accent); outline-offset: 7px; }
#article-view #av-title:focus { outline: none; }
#article-view img { width: 100%; display: block; object-fit: cover; }
#article-view .av-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 2px; pointer-events: none; }
#article-view .av-progress-fill { height: 100%; background: var(--av-accent); transform: scaleX(0); transform-origin: left; }
#article-view .av-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 48px; border-bottom: 1px solid var(--av-line); }
#article-view .av-brand { font-size: 24px; font-weight: 800; letter-spacing: -.06em; line-height: 1.2; }
#article-view[data-theme="still"] .av-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 38px; font-weight: 500; }
#article-view[data-theme="ritual"] .av-brand { font-size: 20px; letter-spacing: .16em; font-weight: 600; }
#article-view .av-nav-caption, #article-view .av-back { font-size: 11px; }
#article-view .av-nav-caption { color: var(--av-muted); }
#article-view .av-back { display: inline-flex; gap: 18px; align-items: center; padding: 8px 0; }
#article-view .av-back:hover, #article-view .av-return:hover { color: var(--av-accent); }
#article-view .av-heading { max-width: 960px; margin: auto; padding: 83px 40px 47px; text-align: center; }
#article-view .av-eyebrow { display: block; color: var(--av-accent); font-size: 10px; line-height: 1.8; text-transform: uppercase; letter-spacing: .17em; font-weight: 600; }
#article-view h1 { margin: 23px auto 26px; font-size: 64px; line-height: 1.06; letter-spacing: -.065em; font-weight: 500; text-wrap: balance; }
#article-view[data-theme="still"] h1, #article-view[data-theme="ritual"] h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 76px; font-weight: 400; letter-spacing: -.045em; }
#article-view .av-deck { font-size: 17px; line-height: 1.85; color: var(--av-muted); max-width: 650px; margin: auto; text-wrap: pretty; }
#article-view .av-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; color: var(--av-muted); font-size: 10px; }
#article-view .av-meta span + span::before { content: '·'; margin-right: 26px; }
#article-view .av-cover { margin: 0 48px; }
#article-view .av-cover img { height: clamp(320px, 48vw, 630px); }
#article-view[data-theme="north"] .av-cover img { object-position: center 45%; }
#article-view .av-cover figcaption { display: flex; justify-content: space-between; gap: 25px; padding: 15px 0; border-bottom: 1px solid var(--av-line); font-size: 10px; line-height: 1.8; color: var(--av-muted); }
#article-view .av-cover figcaption span:last-child { white-space: nowrap; letter-spacing: .09em; }
#article-view .av-editorial { display: grid; grid-template-columns: minmax(140px, 195px) minmax(0, 720px); gap: 7%; max-width: 1130px; padding: 70px 40px 40px; margin: auto; }
#article-view .av-note { padding-top: 10px; color: var(--av-muted); }
#article-view .av-note h2 { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--av-ink); margin: 16px 0 10px; }
#article-view .av-note p { font-size: 12px; line-height: 1.9; margin: 0; }
#article-view .av-copy { min-width: 0; }
#article-view .av-chapter { position: relative; margin: 0 0 44px; }
#article-view .av-chapter-number { display: block; color: var(--av-accent); font-size: 10px; letter-spacing: .12em; margin-bottom: 12px; }
#article-view .av-chapter h2 { font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.045em; margin: 0 0 17px; text-wrap: balance; }
#article-view[data-theme="still"] .av-chapter h2, #article-view[data-theme="ritual"] .av-chapter h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; font-weight: 500; letter-spacing: -.025em; }
#article-view .av-chapter p { margin: 0; font-size: 18px; line-height: 1.95; font-weight: 400; text-wrap: pretty; }
#article-view .av-quote { margin: 52px 0; padding: 28px 0 29px 30px; border-left: 2px solid var(--av-accent); }
#article-view .av-quote p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 39px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; margin: 0; color: var(--av-accent); }
#article-view .av-detail { margin: 8px 0 47px; }
#article-view .av-detail img { height: 280px; object-position: 65% 75%; }
#article-view[data-theme="still"] .av-detail img { object-position: 75% 80%; }
#article-view .av-detail figcaption { font-size: 10px; line-height: 1.7; color: var(--av-muted); margin-top: 12px; letter-spacing: .07em; }
#article-view .av-endmark { text-align: center; color: var(--av-accent); font-size: 11px; letter-spacing: .18em; margin: 48px 0 25px; }
#article-view .av-footer { display: block; padding: 0 48px; }
#article-view .av-return { display: inline-block; font-size: 12px; margin-bottom: 30px; padding: 8px 0; }
#article-view .av-related { display: block; border-top: 1px solid var(--av-line); border-bottom: 1px solid var(--av-line); padding: 35px 0 40px; }
#article-view .av-related-title { display: flex; justify-content: space-between; align-items: center; gap: 25px; font-size: 36px; line-height: 1.25; letter-spacing: -.045em; margin-top: 12px; max-width: 1050px; }
#article-view[data-theme="still"] .av-related-title, #article-view[data-theme="ritual"] .av-related-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 44px; }
#article-view .av-related-title > span { transition: transform .25s; }
#article-view .av-related:hover .av-related-title > span { transform: translate(5px, -5px); }
#article-view .av-colophon { display: flex; justify-content: space-between; gap: 25px; color: var(--av-muted); font-size: 10px; line-height: 1.8; padding: 25px 0; }
/* Reveal is an enhancement: text is never hidden and remains readable without observers. */
@keyframes av-arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
#article-view .av-seen { animation: av-arrive .65s cubic-bezier(.2,.65,.3,1) both; }
@media (min-width: 1400px) {
  #article-view .av-heading { padding-top: 100px; padding-bottom: 55px; }
  #article-view .av-editorial { gap: 9%; max-width: 1190px; }
}
@media (max-width: 900px) {
  #article-view .av-nav { padding: 24px 27px; }
  #article-view .av-nav-caption { display: none; }
  #article-view .av-heading { padding: 60px 35px 38px; }
  #article-view h1 { font-size: 54px; }
  #article-view[data-theme="still"] h1, #article-view[data-theme="ritual"] h1 { font-size: 65px; }
  #article-view .av-cover { margin: 0 27px; }
  #article-view .av-editorial { grid-template-columns: minmax(0, 720px); padding: 48px 40px 25px; }
  #article-view .av-note { max-width: 600px; padding: 20px 0; border-top: 1px solid var(--av-line); border-bottom: 1px solid var(--av-line); margin-bottom: 35px; }
  #article-view .av-note h2 { margin: 10px 0 8px; }
  #article-view .av-note p { font-size: 13px; }
  #article-view .av-footer { padding: 0 27px; }
}
@media (max-width: 620px) {
  #article-view { box-shadow: none; }
  #article-view .av-nav { padding: 21px; gap: 15px; }
  #article-view .av-back { font-size: 10px; gap: 10px; }
  #article-view .av-heading { padding: 45px 21px 30px; text-align: left; }
  #article-view .av-eyebrow { font-size: 9px; letter-spacing: .12em; }
  #article-view h1 { font-size: 42px; letter-spacing: -.055em; margin: 22px 0; }
  #article-view[data-theme="still"] h1, #article-view[data-theme="ritual"] h1 { font-size: 51px; }
  #article-view .av-deck { font-size: 15px; line-height: 1.85; }
  #article-view .av-meta { justify-content: flex-start; gap: 10px 16px; margin-top: 23px; font-size: 9px; }
  #article-view .av-meta span + span::before { margin-right: 16px; }
  #article-view .av-meta span:last-child { display: none; }
  #article-view .av-cover { margin: 0; }
  #article-view .av-cover img { height: 320px; }
  #article-view .av-cover figcaption { margin: 0 21px; padding: 12px 0; font-size: 9px; }
  #article-view .av-cover figcaption span:last-child { display: none; }
  #article-view .av-editorial { padding: 30px 21px 15px; }
  #article-view .av-chapter { margin-bottom: 34px; }
  #article-view .av-chapter h2 { font-size: 26px; }
  #article-view[data-theme="still"] .av-chapter h2, #article-view[data-theme="ritual"] .av-chapter h2 { font-size: 33px; }
  #article-view .av-chapter p { font-size: 18px; line-height: 1.85; }
  #article-view .av-quote { margin: 35px 0; padding: 15px 0 15px 21px; }
  #article-view .av-quote p { font-size: 33px; }
  #article-view .av-detail { margin-bottom: 34px; }
  #article-view .av-detail img { height: 230px; }
  #article-view .av-footer { padding: 0 21px; }
  #article-view .av-related { padding: 25px 0 29px; }
  #article-view .av-related-title { font-size: 27px; }
  #article-view[data-theme="still"] .av-related-title, #article-view[data-theme="ritual"] .av-related-title { font-size: 34px; }
  #article-view .av-colophon { flex-direction: column; gap: 6px; font-size: 9px; padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #article-view *, #article-view *::before, #article-view *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
