/* Homepage continuation: preserve the editor-managed Works hero and the theme's type. */
/* Match the *visible* gaps around Works, Photography and Writing. WordPress
   editor-managed Works blocks already contribute trailing block spacing. */
.crw-home-additions {
    /* Use the same Core constrained content width as the existing page. */
    width: min(100%, calc(100vw - 64px));
    max-width: var(--wp--style--global--content-size, 760px);
    box-sizing: border-box;
    margin: clamp(26px, calc(15vw - 64px), 56px) auto 0;
}
.crw-home-additions section { margin: 0; }
/* Works is editor-managed, Photography and Writing are injected H2s.
   Give all three the same restrained responsive heading scale without changing semantics.
   WordPress font-size preset classes can also use !important; the site-block
   scope outranks their specificity. This CSS is enqueued only on the homepage. */
.wp-site-blocks .crw-site-main h1,
.wp-site-blocks .crw-home-additions h2 {
    font-size: clamp(1.5rem, calc(1.35rem + 0.8vw), 2rem) !important;
    font-weight: 400;
    line-height: 1.125;
}
.crw-home-additions h2 {
    margin: 0 0 clamp(18px, calc(5vw - 12px), 28px);
}
.crw-home-photography-figure {
    /* The figure and caption track the same source-pixel and viewport-height bounds. */
    width: min(100%, var(--crw-photo-native-width, 760px), 76vw, calc(var(--crw-photo-ratio, 1) * 80svh));
    margin: 0 auto;
}
.crw-home-photo-link { display: block; line-height: 0; }
.crw-home-photo-link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-inline: auto;
    object-fit: contain;
}
.crw-home-photography-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 3px 18px;
    margin-top: clamp(14px, calc(1vw + 8px), 16px);
    font-size: .82rem;
}
.crw-home-photography-caption span { color: #757575; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.crw-home-additions a { color: inherit; text-decoration: none; }
.crw-home-additions .crw-home-cta a { text-decoration: underline; }
.crw-home-additions a:hover { text-decoration: underline; }
.crw-home-additions a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.crw-home-summary {
    max-width: 100%;
    margin: clamp(24px, calc(3vw + 6px), 30px) 0 0;
}
.crw-home-cta { margin: clamp(16px, calc(2vw + 4px), 20px) 0 0; }
.crw-home-additions .crw-home-writing { margin-top: clamp(42px, calc(15vw - 48px), 72px); }
.crw-home-writing h2 { margin-bottom: clamp(14px, calc(3vw - 4px), 20px); }
.crw-home-writing .crw-home-summary { margin-top: 0; }
/* Separate the editorial Writing section from the site-wide legal footer.
   Decorative only; footer markup and all other pages remain unchanged. */
.crw-home-writing::after {
    content: "";
    display: block;
    border-block-start: 1px solid #e2e2e2;
    margin-block-start: clamp(40px, calc(4vw + 24px), 48px);
}
/*
 * Desktop overview: Works stays the hero. Tighten only the additional sections.
 * The photo limits interpolate from the tablet values at 800px to a 440px
 * width / 60svh height target at 1200px. No abrupt 799/800px size jump.
 */
@media (min-width: 800px) {
    .crw-home-additions { margin-top: 56px; }
    .crw-home-photography-figure {
        width: min(
            100%,
            var(--crw-photo-native-width, 760px),
            76vw,
            max(440px, calc(944px - 42vw)),
            calc(var(--crw-photo-ratio, 1) * max(60svh, calc(80svh - 45vw + 360px)))
        );
    }
    .crw-home-additions .crw-home-writing { margin-top: 72px; }
    .crw-home-writing::after { margin-block-start: clamp(40px, calc(2vw + 32px), 56px); }
}
