.article-page .site-header:not(.is-scrolled) {
  color: var(--ink);
  background: var(--paper);
}
.article-page .brand-period { color: var(--action); }
.article-page .mobile-menu { position: absolute; top: 100%; width: 100%; }
.article-page .desktop-nav [aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.article-page { --article-gap: clamp(44px, 5.5vw, 88px); }
.article-page main { padding-top: var(--header-height); }
html { scroll-padding-top: calc(var(--scrolled-header-height) + 24px); }
.article-page .cta-curve { background: var(--peach); }

.article-hero { background: var(--lilac); padding: clamp(58px, 6.6vw, 96px) 0; overflow: clip; }
.hero-spread { display: grid; grid-template-columns: 1.07fr 1fr; align-items: center; gap: clamp(32px, 4vw, 65px); }
.article-back .icon { rotate: 180deg; }
.article-hero h1 { font-size: clamp(54px, 6.2vw, 94px); line-height: 1.01; margin: 25px 0 0; }
.article-hero h1 span { position: relative; display: inline-block; color: var(--action); }
.article-hero h1 span::after {
  content: "";
  position: absolute;
  top: 105%; left: 1%; width: 96%; height: 12px;
  border-top: 3px solid var(--action);
  border-radius: 50%;
  transform: rotate(-1deg);
  transform-origin: left;
}
.article-deck { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; color: #5d4c71; max-width: 40ch; margin-top: 31px; }
.article-photo { position: relative; isolation: isolate; margin: 0 12px 0 0; transform: rotate(2deg); }
.article-photo::before { content: ""; position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--ink); border-radius: 17px; transform: rotate(-5deg); z-index: -1; }
.article-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--ink); border-radius: 16px; box-shadow: 4px 6px 0 var(--ink); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: var(--article-gap); padding-block: clamp(48px, 5.8vw, 84px) 104px; }
.article-body { min-width: 0; font-size: 20px; line-height: 1.75; }
.article-body p { margin-bottom: 1.15em; line-height: inherit; }
.article-body > p:first-child { font-size: 23px; line-height: 1.65; }
.article-body h2 { font-size: clamp(34px, 3.25vw, 46px); line-height: 1.1; margin: 1.3em 0 .45em; letter-spacing: -.05em; }
.article-body > h2:first-child { margin-top: 0; }
.article-body h2:focus { outline: none; }
.article-body .closing-line { margin: 33px 0 0; }
.article-figure { margin: 38px 0 42px; }
.article-figure picture { display: block; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid #21162f22; border-radius: 16px; }
.article-figure figcaption { margin-top: 14px; max-width: 65ch; color: #635372; font-size: 15px; line-height: 1.55; }

.sidebar-sticky { position: sticky; top: calc(var(--scrolled-header-height) + 24px); max-height: calc(100dvh - var(--scrolled-header-height) - 48px); overflow-y: auto; scrollbar-width: thin; border-left: 1px solid #21162f22; padding: 0 7px 7px 29px; }
.article-sidebar h2 { font: 650 18px/1.35 Onest, sans-serif; letter-spacing: -.02em; }
.article-contents ol { margin: 23px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.article-contents a { display: block; padding: 12px 14px; font-size: 15px; line-height: 1.5; border-radius: 9px; color: #70617f; }
.article-contents a:hover { color: var(--ink); background: #eae4f680; }
.article-contents [aria-current] { color: var(--ink); background: var(--lilac); box-shadow: 3px 4px 0 var(--ink); }
.article-sharing { margin-top: 48px; }


.email-paper,
.worked-example { margin: 25px 6px 30px 0; border: 1px solid var(--ink); border-radius: 16px; background: white; box-shadow: 5px 6px 0 var(--ink); overflow: hidden; font-size: 18px; }
.email-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--peach); padding: 15px 27px; font-size: 14px; font-weight: 600; }
:is(.email-tools, .example-bar) button { background: var(--citron); border: 1px solid var(--ink); border-radius: 8px; padding: 10px 15px; min-height: 44px; white-space: nowrap; }
:is(.email-tools, .example-bar) button:hover { box-shadow: 2px 3px 0 var(--ink); }
:is(.email-tools, .example-bar) button:focus-visible { outline-offset: 3px; }
.email-subject { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0 28px 20px; padding: 22px 0 17px; border-bottom: 1px solid #21162f22; font-size: 16px; }
.email-subject span { color: var(--muted); }
.email-paper p { margin: 0 28px 19px; }
.email-paper p:last-child { margin-bottom: 27px; }

.worked-example {
  --example-inset: clamp(18px, 2.4vw, 32px);
  margin-block: 32px 40px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}
.example-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px var(--example-inset);
  background: var(--peach);
  font-size: 14px;
  font-weight: 600;
}
.example-bar > span { display: inline-flex; align-items: center; gap: 10px; }
.example-bar .icon { width: 18px; height: 18px; }
.example-content { padding: var(--example-inset); }
.example-content h3 {
  margin: 0 0 18px;
  font: 580 clamp(25px, 2.5vw, 35px)/1.09 Bricolage, sans-serif;
  letter-spacing: -.04em;
}
.example-content p { margin: 0 0 18px; }
.example-content dl { margin: 0; }
.example-record > div, .example-dialogue > div {
  display: grid;
  grid-template-columns: minmax(100px, .33fr) 1fr;
  gap: 8px 20px;
  border-top: 1px solid #21162f22;
  padding: 13px 0;
}
.example-content dt, .example-content h4 { font: 650 15px/1.45 Onest, sans-serif; color: #5d4c71; }
.example-content dd { margin: 0; }
.example-content dl > div:last-child { padding-bottom: 0; }
.example-excerpt {
  margin: 0 0 20px;
  padding: 12px 18px;
  border-left: 3px solid var(--action);
  font: 520 clamp(20px, 2vw, 27px)/1.35 Bricolage, sans-serif;
}
.example-excerpt mark { background: var(--citron); color: inherit; padding-inline: .1em; }
.example-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.example-comparison > div { padding: 17px 19px; border-radius: 10px; background: var(--peach); }
.example-comparison > div + div { background: #f5f3cf; }
.example-comparison h4 { margin: 0 0 10px; color: var(--ink); }
.example-comparison p { margin: 0; }
.example-reveal { border-top: 1px solid #21162f22; }
.example-content > dl + details { margin-top: 20px; }
.example-reveal summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.example-reveal summary::-webkit-details-marker { display: none; }
.example-reveal summary::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border: solid var(--action);
  border-width: 0 2px 2px 0;
  margin-right: 4px;
  transform: rotate(45deg);
}
.example-reveal[open] summary::after { transform: rotate(225deg); }
.example-reveal summary:hover { color: var(--action); }
.example-reveal summary:focus-visible { outline-offset: 2px; }
.example-reveal dl { padding: 4px 16px 16px; border-radius: 10px; background: var(--paper); }
.example-reveal[open] + details { margin-top: 12px; }
.example-dialogue > div:first-child { border-top: 0; }
.example-feedback:not(:empty) { display: block; margin: 0 var(--example-inset) 16px; font-size: 14px; color: #5d4c71; }
@media (max-width: 560px) {
  .example-record > div, .example-dialogue > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Follow the reading order of the journal archive. */
.article-pagination {
  padding: clamp(52px, 6vw, 80px) 0 clamp(56px, 6vw, 85px);
  background: var(--peach);
}
.article-pagination-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 2.5vw, 35px);
}
.article-pagination-heading h2 { font-size: clamp(38px, 4.4vw, 64px); }
.article-pagination-heading h2 span { color: var(--action); }
.all-posts { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; font-size: 15px; }
.all-posts:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.article-step {
  --cover-width: clamp(100px, 10vw, 152px);
  display: grid;
  grid-template-columns: var(--cover-width) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.1vw, 32px);
  padding: clamp(20px, 2.1vw, 34px);
  min-height: 170px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
  box-shadow: 3px 4px 0 var(--ink);
}
.article-step[rel="next"] {
  grid-template-columns: minmax(0, 1fr) var(--cover-width);
  background: #f5f3cf;
}
.article-step-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-4deg);
}
.article-step[rel="prev"] .article-step-cover { grid-column: 1; grid-row: 1; }
.article-step[rel="next"] .article-step-cover { grid-column: 2; grid-row: 1; transform: rotate(4deg); }
.article-step-copy { grid-row: 1; display: grid; justify-items: start; gap: 10px; }
.article-step[rel="prev"] .article-step-copy { grid-column: 2; }
.article-step-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #574768;
  font-size: 13px;
  font-weight: 650;
}
.article-step-label .icon { width: 19px; height: 19px; }
.article-step[rel="prev"] .article-step-label .icon { transform: rotate(180deg); }
.article-step[rel="next"] .article-step-label .icon { order: 1; }
.article-step-title { font: 590 clamp(25px, 2.45vw, 38px)/1.06 Bricolage, sans-serif; letter-spacing: -.045em; text-wrap: balance; }
.article-step-excerpt { color: #5d4c71; font-size: 15px; line-height: 1.45; }
.article-step:is(:hover, :focus-visible) .article-step-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (width > 800px) {
  .article-pagination > .container:has(.article-step:only-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
  }
  .article-pagination-heading:has(+ .article-steps > :only-child) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0;
  }
  .article-steps:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .article-steps { grid-template-columns: minmax(0, 1fr); }
  .article-step { --cover-width: clamp(72px, 20vw, 122px); min-height: 124px; padding: 20px; }
}
@media (max-width: 400px) {
  .article-pagination-heading h2 { font-size: 34px; }
  .all-posts { font-size: 13px; }
  .article-step { padding: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .article-photo { animation: article-settle .7s var(--ease) both; }
  html:not(.motion-paused) .article-hero h1 span::after { animation: article-underline .7s .2s var(--ease) both; }
  html:not(.motion-paused) .share-buttons > * { transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
  html:not(.motion-paused) .article-step { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .article-step:hover { transform: translateY(-3px); box-shadow: 4px 7px 0 var(--ink); }
  html:not(.motion-paused) .share-buttons > :hover { transform: translateY(-2px); }
}
@keyframes article-settle { from { transform: translateY(10px) rotate(4deg); } to { transform: translateY(0) rotate(2deg); } }
@keyframes article-underline { from { scale: 0 1; } to { scale: 1 1; } }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .sidebar-sticky { padding-left: 20px; }
  .share-buttons { gap: 7px; }
  .article-body { font-size: 18px; }
  .article-body > p:first-child { font-size: 21px; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .article-sidebar { grid-row: 1; }
  .sidebar-sticky { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 32px; padding: 0 0 30px; border: 0; border-bottom: 1px solid #21162f22; }
  .article-sharing { margin-top: 0; }
  .article-contents ol { margin-top: 14px; gap: 4px; }
  .article-contents a { padding-block: 10px; }
}
@media (max-width: 760px) {
  .hero-spread { grid-template-columns: 1fr; gap: 37px; }
  .article-hero { padding: 40px 0 44px; }
  .article-hero h1 { font-size: clamp(45px, 8.6vw, 67px); margin-top: 18px; }
  .article-deck { max-width: 48ch; margin-top: 26px; }
  .article-photo { width: 94%; max-width: 540px; margin: 0 auto; }
  .article-photo img { aspect-ratio: 1.7; }
  .article-layout { padding-block: 36px 72px; }
  .article-body > p:first-child { font-size: 20px; }
}
@media (max-width: 520px) {
  .sidebar-sticky { grid-template-columns: 1fr; gap: 26px; }
  .article-contents a { font-size: 15px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 34px; }
  .article-figure { margin-block: 29px 33px; }
  .article-figure figcaption { margin-top: 11px; font-size: 14px; }
  .email-tools { padding: 12px 18px; }
  .email-paper { font-size: 16px; }
  .email-subject { margin-inline: 19px; font-size: 14px; }
  .email-paper p { margin-inline: 19px; }
}

/* Preserve each story’s quote treatment and the user-controlled silent film. */
.opening-quote { margin: 1em 0; padding: .9em 1.15em; border-left: 3px solid var(--action); background: var(--peach); font: 530 clamp(23px, 2.4vw, 31px)/1.27 Bricolage, sans-serif; letter-spacing: -.035em; }
.article-film { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--deep); border: 1px solid var(--ink); border-radius: 16px; box-shadow: 4px 6px 0 var(--ink); }
.article-photo.article-video { transform: none; animation: none; }
.article-title-long h1 { font-size: clamp(48px, 5.4vw, 78px); }
@media (max-width: 760px) {
  .article-title-long h1 { font-size: clamp(40px, 8.6vw, 65px); }
}
