/* The archive uses a centred, 1200px reading measure and a full-width textile band. */
.masthead {
    border-block: 1px solid rgb(0 0 0 / 7.5%);
}
.masthead-inner {
    width: min(1200px, 100%);
    max-width: none;
    height: 99px;
    min-height: 99px;
    padding-block: 10.5px;
}
.wordmark { flex: 0 1 280px; align-self: flex-start; }
.wordmark img { width: 280px; max-width: 100%; }

.reading-area {
    width: min(1200px, calc(100% - 60px));
    padding-block: 59px 35px;
}
.reading-area > .wp-block-post-title:first-of-type {
    margin-block: 0 calc(10px + 1.08333333rem);
}
.home .reading-area { padding-top: 0; }
.home .reading-area > .wp-block-post-title { margin-bottom: 1.625rem; }
.home-content .reading-area > p + p,
.reading-area .wp-block-post-content > p + p { margin-block-start: 1.5em; }
.wp-block-post-content :where(h1,h2,h3,h4,h5,h6) { line-height: 1.4; }
.wp-block-post-content :where(h1,h2,h3,h4,h5,h6):not(:first-child) { margin-top: 1.5em; }
.wp-block-post-content img.alignleft { float: left; margin: .375em 1.5em 1em 0; }
.wp-block-post-content img.alignright { float: right; margin: .375em 0 1em 1.5em; }
.wp-block-post-content blockquote { background: #ededed; border: 1px solid #ddd; margin-inline: 1.25rem; padding: 1.25rem; font-style: italic; }

/* All four textiles share a 1200 × 270 stage. Their natural aspect ratios vary.
   The source positions their centres 163px from its top at that width. */
.wp-site-blocks .carpet-strip {
    height: calc(22.5vw + 40px);
    margin-top: -101px;
    overflow: clip;
    flex: none;
}
.wp-site-blocks .carpet-strip > figure {
    position: absolute;
    top: 13.583333vw;
    width: 100%;
    transform: translateY(-50%);
}
.wp-site-blocks .carpet-strip > figure img { width: 100%; height: auto; }
.carpet-strip .slide-controls { position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none; }
.carpet-strip .slide-controls button { pointer-events: auto; }
.carpet-strip .slide-prev, .carpet-strip .slide-next {
    top: 14.625vw;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1.45rem;
    font-family: Arial, sans-serif;
    line-height: 1rem;
    display: grid;
    place-content: center;
}
.carpet-strip .slide-dots {
    position: absolute;
    inset: auto 0 7px;
    height: 23px;
    padding: 0;
    align-items: center;
}
.carpet-strip .slide-dot {
    width: 23px; height: 23px;
    padding: 6px;
}
.slide-dot::before { width: 11px; height: 11px; }
.slide-playback {
    position: absolute;
    left: calc(50% + var(--slide-controls-width, 92px) / 2);
    font-family: Arial, sans-serif;
    font-size: .75rem;
    opacity: 0;
}
.carpet-strip:hover .slide-playback, .slide-controls:focus-within .slide-playback { opacity: 1; }
.site-footer { border-top: 1px solid #ddd; line-height: 1.6; }
.footer-inner {
    box-sizing: border-box;
    width: min(100%, 1200px);
    max-width: none;
    padding: .9em 0 1em;
    gap: 0;
}
.footer-inner p { flex: 1 0 auto; margin: 0; }
.footer-inner > .wp-block-navigation { flex: 4 0 auto; max-width: none; }
.footer-inner .wp-block-navigation__container { width: 100%; gap: 0; }
.footer-inner .wp-block-navigation-item { flex: 1 0 auto; }

@media (max-width: 1280px) {
    .masthead-inner > .wordmark { margin-left: 40px; }
    .footer-inner { padding: .9em 1em; }
}
@media (max-width: 767px) {
    body { line-height: 1.66; }
    .masthead-inner {
        height: auto; min-height: 79.5px;
        padding: 0 1rem 0 min(10vw, 40px);
        gap: .5rem;
    }
    .masthead-inner > .wordmark {
        align-self: center;
        flex: 0 1 280px;
        max-width: calc(100% - 148px);
        margin-left: 0;
    }
    .reading-area {
        width: calc(100% - 2em);
        padding-top: 30px;
    }
    .home .wp-site-blocks { min-height: calc(100svh + 81.5px); }
    .home .reading-area { padding-top: 15px; }
    .reading-area h3 { font-size: 1.125rem; }
    .wp-site-blocks .carpet-strip { margin-top: 0; }
    .site-footer { line-height: 1.66; }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: .9em 0 1em;
    }
    .footer-inner .wp-block-navigation__container { flex-direction: column; align-items: center; gap: 0; }
    .footer-inner .wp-block-navigation-item { justify-content: center; }
}
@media (hover: none) {
    .slide-playback { opacity: 1; }
}

/* Classic-editor pages used a paragraph margin before the first visible line.
   The seed retains deliberate blank lines as individual Gutenberg Spacer blocks. */
.wp-block-post-content > .typeset-page {
    padding-top: 1.5em;
    display: flow-root;
}
.typeset-page > :is(p, .wp-block-spacer) { margin: 0 0 1.5em; }
.wp-block-post-content .typeset-page > :is(h1,h2,h3,h4,h5,h6) {
    margin: 0 0 1.625rem;
    padding-top: 1.5em;
}
.typeset-page > :is(ol,ul) { padding: 0; margin: 0 0 1.5em 20px; }
.wp-block-post-content .typeset-page > h2:has(+ .typeset-heading-space) { margin-bottom: 0; }
.typeset-page > .typeset-heading-space { font-size: 1.41666667rem; margin-bottom: 1.625rem; }
.wp-block-post-content .typeset-page > h4 { font-size: 1.125rem; font-weight: 800; margin-bottom: .75em; }
@media (max-width: 767px) {
    .wp-block-post-content .typeset-page > h4 { font-size: 1rem; }
}
