.post-view {
  --post-fold: clamp(1.65rem, 5vw, 4.65rem);
  --post-run: calc(var(--post-fold) * var(--bevel-slope));
  --post-rail: 15rem;
}
.post-progress {
  position: sticky; top: calc(var(--site-header-height) + var(--ae-adminbar-height, 0px) - 1px); z-index: 11;
  height: 2px; margin-bottom: -2px; pointer-events: none;
}
.post-progress::before {
  content: ""; display: block; height: 100%; background: var(--orange-text);
  transform-origin: left; transform: scaleX(var(--post-progress, 0));
}
.post-opening {
  min-height: min(64svh, 38rem); display: grid; align-items: center;
  padding-block: clamp(2rem, 5vw, 4.75rem) calc(var(--post-fold) + clamp(2.25rem, 5.7vw, 5rem));
}
.post-hero .aurora-view::after { background: linear-gradient(95deg, #141818e6 0%, #1418189e 34%, transparent 78%); }
.post-hero .aurora-canvas { opacity: .91; }
.post-back {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ice); font-size: .875rem; text-underline-offset: .25em;
}
.post-back:hover { text-decoration: underline; }
.post-heading { position: relative; width: min(100%, 73rem); margin-inline: auto; }
.post-heading h1 {
  margin-block: clamp(1.15rem, 2.4vw, 2rem) 0;
  max-width: 15ch; font: 750 clamp(2.75rem, 6vw, 6rem)/.99 var(--heading);
  letter-spacing: -.062em; text-wrap: balance; overflow-wrap: anywhere;
}
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .55rem .9rem; margin-top: clamp(1.3rem, 4vw, 2.9rem);
}
.post-meta .overline { font-size: .79rem; }
.post-meta a:hover { text-decoration: underline; text-underline-offset: .25em; }
.post-meta time { color: var(--muted); font: .86rem/1.45 var(--body); }
.post-meta time::before { content: "/" / ""; margin-inline-end: .9rem; color: var(--ice); }
.post-hero h1:focus-visible, .post-copy :is(h2, h3):focus-visible { outline: 2px solid var(--ice); outline-offset: .35rem; }

.post-paper {
  position: relative; isolation: isolate; z-index: 1;
  margin-top: calc(-1 * var(--post-fold));
  padding-block: calc(var(--post-fold) + clamp(1.25rem, 4.5vw, 4rem)) clamp(3.5rem, 7vw, 7rem);
  background: none;
}
.post-paper::before, .post-paper::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.post-paper::before {
  background: #aecbd4;
  clip-path: polygon(0 var(--post-fold), 55% var(--post-fold), calc(55% + var(--post-run)) 0, 100% 0, 100% 100%, 0 100%);
}
.post-paper::after {
  --lip: clamp(.45rem, 1.1vw, 1rem);
  background: white;
  clip-path: polygon(0 calc(var(--post-fold) + var(--lip)), 53% calc(var(--post-fold) + var(--lip)), calc(53% + var(--post-run)) var(--lip), 100% var(--lip), 100% 100%, 0 100%);
}
.post-reading {
  display: grid; grid-template-columns: minmax(0, 44rem); justify-content: center; align-items: start;
  gap: clamp(1.8rem, 5vw, 5rem); max-width: 83rem;
}
.post-sidebar { min-width: 0; }
.post-sidebar details { background: #edf4f5; padding: clamp(.8rem, 2vw, 1.5rem); }
.post-sidebar summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; font-weight: 700; list-style: none; }
.post-sidebar summary::-webkit-details-marker { display: none; }
.post-sidebar summary::after {
  content: ""; flex: 0 0 .55rem; height: .55rem; border: solid var(--ice); border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-inline-end: .2rem;
}
.post-sidebar details[open] summary::after { transform: translateY(.2rem) rotate(225deg); }
.post-sidebar ol { list-style: none; margin: .3rem 0 0; padding: 0; }
.post-sidebar a {
  display: block; min-height: 44px; padding: .66rem .7rem;
  border-inline-start: 2px solid #c9dce1; color: #35505b;
  font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.post-sidebar a:is(:focus-visible, :hover, [aria-current="location"]) { color: #17363e; border-color: var(--orange); background: #dae8ec; }
.post-sidebar a[aria-current="location"] { font-weight: 700; }
.post-copy { min-width: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.74; overflow-wrap: anywhere; }
.post-copy > * + * { margin-top: 1.15em; }
.post-copy > :first-child { margin-top: 0; }
.post-copy > :is(p:first-child, .post-lead) {
  font: 620 clamp(1.25rem, 2.05vw, 1.75rem)/1.5 var(--body); letter-spacing: -.019em; color: #234651;
  padding-inline-start: clamp(.9rem, 2vw, 1.5rem); border-inline-start: 2px solid var(--orange);
}
.post-copy h2, .post-copy h3 { font-family: var(--heading); line-height: 1.12; text-wrap: balance; }
.post-copy h2 { font-size: clamp(1.65rem, 3.3vw, 2.85rem); letter-spacing: -.042em; }
.post-copy > h2:not(:first-child) { margin-top: 1.65em; }
.post-copy h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.026em; }
.post-copy :is(h2, h3) + * { margin-top: .6em; }
.post-copy a:not(.wp-block-button__link) { color: var(--petrol); text-decoration: underline; text-underline-offset: .2em; }
.post-copy a:hover { color: var(--orange-text); }
.post-copy .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem;
  background: #edf4f5; border: 1px solid #a5bec7; color: var(--petrol);
  font-size: .92rem; font-weight: 700;
}
.post-copy .wp-block-button__link:hover { border-color: var(--petrol); }
.post-copy ul, .post-copy ol { padding-inline-start: 1.4em; }
.post-copy li + li { margin-top: .35em; }
.post-copy figure { width: 100%; margin-inline: 0; }
.post-copy figure img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.post-copy .wp-block-image {
  --image-fold: clamp(.85rem, 2vw, 1.4rem);
  padding: clamp(.6rem, 1.8vw, 1.2rem); background: #edf4f5;
  clip-path: polygon(0 0, calc(100% - var(--image-fold) * var(--bevel-slope)) 0, 100% var(--image-fold), 100% 100%, 0 100%);
}
.post-copy > .post-featured img { width: 100%; max-height: 21rem; object-fit: cover; }
.post-copy .wp-block-gallery .wp-block-image { padding: 0; clip-path: none; }
.post-copy figcaption { margin-top: .5rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.post-copy pre, .post-copy .wp-block-table { max-width: 100%; overflow: auto; }
.post-copy pre { padding: 1rem; background: #edf4f5; font-size: .9rem; }
.post-copy blockquote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--orange); color: #234651; }

.post-related {
  --next-rise: clamp(1.15rem, 2.4vw, 2rem);
  position: relative; isolation: isolate; z-index: 1; overflow: clip;
  margin-top: calc(-1 * var(--next-rise)); background: #18282f;
  clip-path: polygon(0 var(--next-rise), 30% var(--next-rise), calc(30% + var(--next-rise) * var(--bevel-slope)) 0, 100% 0, 100% 100%, 0 100%);
}
.post-related .marquee-title { --title-size: clamp(3.75rem, 11vw, 9.5rem); --marquee-duration: 48s; margin-block: .2rem -.65rem; color: #7397a3; }
.post-related .is-style-ae-marquee:not(.is-marquee-ready) { display: none; }
.post-related:focus-within .marquee-track { animation-play-state: paused; }
.post-related-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  max-width: 51rem; padding: 1.15rem 0; margin-inline: auto; border-block: 1px solid #6d8993;
  color: var(--paper); transition: color .25s ease, padding .35s ease;
}
.post-related-card:hover { color: var(--ice); padding-inline: .6rem; }
.post-related-card strong { display: block; font: 700 clamp(1.3rem, 2.9vw, 2.7rem)/1.11 var(--heading); letter-spacing: -.045em; text-wrap: balance; }
.post-related-card small { color: var(--ice); font: 650 .8rem/1.4 var(--body); }
.post-related-card .button { min-height: 44px; white-space: nowrap; }

@media (min-width: 860px) {
  .post-reading:has(.post-sidebar:not([hidden])) { grid-template-columns: minmax(11rem, var(--post-rail)) minmax(0, 44rem); }
  .post-sidebar { position: sticky; top: calc(var(--site-header-height) + var(--ae-adminbar-height, 0px) + 1.35rem); max-height: calc(100dvh - var(--site-header-height) - var(--ae-adminbar-height, 0px) - 2.7rem); overflow: auto; }
}
@media (max-width: 610px) {
  .post-opening { min-height: 0; }
  .post-heading h1 { font-size: clamp(2.35rem, 9.4vw, 3.6rem); }
  .post-hero .aurora-view::after { background: linear-gradient(96deg, #141818e6 0%, #1418187a 50%, transparent); }
  .post-related-card { grid-template-columns: minmax(0, 1fr); }
  .post-related-card .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .post-related .marquee-title { display: none; }
}
html[data-motion="reduced"] .post-related .marquee-title { display: none; }
