/**********************************************************

    ██████╗ ██╗      ██████╗  ██████╗
    ██╔══██╗██║     ██╔═══██╗██╔════╝
    ██████╔╝██║     ██║   ██║██║  ███╗
    ██╔══██╗██║     ██║   ██║██║   ██║
    ██████╔╝███████╗╚██████╔╝╚██████╔╝
    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝

 **********************************************************/



/*******************************

    ██████╗  █████╗  ██████╗ ███████╗
    ██╔══██╗██╔══██╗██╔════╝ ██╔════╝
    ██████╔╝███████║██║  ███╗█████╗
    ██╔═══╝ ██╔══██║██║   ██║██╔══╝
    ██║     ██║  ██║╚██████╔╝███████╗
    ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚══════╝

 *******************************/



    /*
        Figma reference — the "Blog Archive" artboard at 1920.

        No band above: the page begins on the newest article. The one thing
        this file does not style is the cards, which are the newsroom
        block's, class for class, and already dressed by its own stylesheet.
    */

    .responsiville .nvm-blog {
        padding: clamp( 30px, 2.81vw, 54px ) var(--nvm-content-inset) clamp( 60px, 7.29vw, 140px );
    }



/*******************************

    ██╗     ███████╗ █████╗ ██████╗
    ██║     ██╔════╝██╔══██╗██╔══██╗
    ██║     █████╗  ███████║██║  ██║
    ██║     ██╔══╝  ██╔══██║██║  ██║
    ███████╗███████╗██║  ██║██████╔╝
    ╚══════╝╚══════╝╚═╝  ╚═╝╚═════╝

 *******************************/



    /*
        The newest article, across the top.

            text 371 │ 40 │ picture 1269

        Written as fr so the two keep their drawn proportion at every width:
        the gutter comes off the top and what is left splits 371 : 1269.

        One column until there is room for two. Below a laptop the headline
        is 48px against a 300-odd pixel measure, which is four words to a
        line — the picture goes above it there and the text runs full width.
    */

    /*
        A row of two columns — 25 and 75 at a laptop and up.

        The drawn split is 371 to 1269, which is 22 and 75 of the 1680 the
        artboard gives this one band. Vanilla's steps are quarters, so the
        text takes a little more than it is drawn and the picture lands on
        its 75 exactly.

        The negative margin is the one .row normally gets from being nested
        inside another: every column carries 10 of padding, and without it
        the band would stop 10 short of the inset on each side while every
        section above and below ran the full 1440. It also means the gutter
        between the cards below comes out at the drawn 20 — two paddings of
        10 meeting — without a gap being written anywhere.
    */

    .responsiville .nvm-blog .row {
        margin-left: calc( -1 * var(--nvm-grid-gutter) );
        margin-right: calc( -1 * var(--nvm-grid-gutter) );
    }

    .responsiville .nvm-blog__lead {
        margin-bottom: clamp( 60px, 7.66vw, 147px );
        align-items: flex-start;
    }

    /*
        The first article is drawn wider than everything under it.

        The artboard gives it a 1680 band — 120 of margin either side — while
        the cards below keep the 1440 the whole site keeps to. That is the
        difference that makes it read as the opening of the page rather than
        a larger card, so it is worth holding on to.

        It is taken by pulling the row out of the column it sits in rather
        than by giving the page a second inset, so there is still only one
        number governing where the page begins: 120 is simply 240 less 120.

        The pull is capped twice over. It never exceeds the 120 the drawing
        asks for, and never exceeds what the inset actually has to give less
        a 10px floor — so at any width between a phone and 1920 the band
        widens as far as there is room and then stops, instead of running off
        the screen and taking the horizontal scrollbar with it.

        Only from a laptop up, where the band is two columns and the width is
        the point. Below that it is one column under another and it keeps the
        same margins as everything else.
    */

    .laptop .responsiville .nvm-blog__lead {
        --nvm-blog-lead-bleed: min( 120px, max( 0px, calc( var(--nvm-content-inset) - 10px ) ) );

        margin-left:  calc( -1 * var(--nvm-grid-gutter) - var(--nvm-blog-lead-bleed) );
        margin-right: calc( -1 * var(--nvm-grid-gutter) - var(--nvm-blog-lead-bleed) );
    }

        /* The picture goes first on a narrow screen and second on a wide
           one, without the markup changing — the article is the heading and
           it stays first in the source, where it belongs for anyone reading
           the page rather than looking at it. */

        .responsiville .nvm-blog__lead-figure {
            order: -1;
        }

        .laptop .responsiville .nvm-blog__lead-figure {
            order: 0;
        }

            .responsiville .nvm-blog__lead-media {
                display: block;
                padding: 0;
                background: none;
                overflow: hidden;
            }

            .responsiville .nvm-blog__lead-image {
                display: block;
                width: 100%;
                height: auto;
                aspect-ratio: 1269 / 714;
                object-fit: cover;
                transition: transform 0.5s ease-in-out;
            }

            .responsiville .nvm-blog__lead-media:hover .nvm-blog__lead-image {
                transform: scale( 1.03 );
            }

            @media ( prefers-reduced-motion: reduce ) {

                .responsiville .nvm-blog__lead-image,
                .responsiville .nvm-blog__lead-media:hover .nvm-blog__lead-image {
                    transition: none;
                    transform: none;
                }

            }

        /* The column of words. The drawn gaps between its parts are 49, 70,
           and 60 — kept in proportion rather than to the pixel, since the
           headline above each of them wraps differently at every width. */

        .responsiville .nvm-blog__lead-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 30px;
        }

        .laptop .responsiville .nvm-blog__lead-text {
            margin-bottom: 0;
        }



/*******************************

    ████████╗██╗   ██╗██████╗ ███████╗
    ╚══██╔══╝╚██╗ ██╔╝██╔══██╗██╔════╝
       ██║    ╚████╔╝ ██████╔╝█████╗
       ██║     ╚██╔╝  ██╔═══╝ ██╔══╝
       ██║      ██║   ██║     ███████╗
       ╚═╝      ╚═╝   ╚═╝     ╚══════╝

 *******************************/



    /* Home › Νέα, at the top of the column — 12px bold, the same trail the
       shop pages carry inside their band. */

    .responsiville .nvm-blog__breadcrumb {
        margin: 0 0 clamp( 24px, 2.55vw, 49px );
        color: var(--nvm-color-ink);
        font-family: var(--nvm-font-sans-serif);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
    }

        .responsiville .nvm-blog__breadcrumb a {
            padding: 0;
            background: none;
            color: var(--nvm-color-ink);
            text-decoration: none;
            transition: color 0.2s ease-in-out;
        }

        .responsiville .nvm-blog__breadcrumb a:hover {
            background: none;
            color: var(--nvm-color-gold);
        }

        .responsiville .nvm-blog__breadcrumb-sep {
            margin: 0 8px;
            color: var(--nvm-color-stone);
        }

    .responsiville .nvm-blog__lead-date {
        display: block;
        margin: 0 0 clamp( 20px, 1.72vw, 33px );
        color: var(--nvm-color-ink);
        font-family: var(--nvm-font-sans-serif);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.1;
    }

    /*
        The headline — 48/59 in the artboard.

        `.responsiville h1` carries a size of its own and the same one class
        this rule has, so the extra class is what makes the design's figure
        win. The same reason the newsroom's own titles are named twice over.
    */

    .responsiville .nvm-blog .nvm-blog__lead-title {
        margin: 0 0 clamp( 20px, 1.98vw, 38px );
        color: var(--nvm-color-ink);
        font-family: var(--nvm-font-sans-serif);
        font-size: clamp( 30px, 2.50vw, 48px );
        font-weight: 800;
        line-height: 1.23;
    }

        .responsiville .nvm-blog__lead-title a {
            padding: 0;
            background: none;
            color: inherit;
            font-weight: inherit;
            text-decoration: none;
            transition: color 0.2s ease-in-out;
        }

        .responsiville .nvm-blog__lead-title a:hover {
            background: none;
            color: var(--nvm-color-gold);
        }

    .responsiville .nvm-blog__lead-excerpt {
        max-width: 344px;
        margin: 0 0 clamp( 24px, 3.13vw, 60px );
        color: var(--nvm-color-ink);
        font-family: var(--nvm-font-sans-serif);
        font-size: clamp( 16px, 1.04vw, 20px );
        font-weight: 300;
        line-height: 1.5;
    }

    /* "read article ›" — the same link the newsroom cards end on. */

    .responsiville .nvm-blog__lead-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        background: none;
        color: var(--nvm-color-ink);
        font-family: var(--nvm-font-sans-serif);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.2s ease-in-out;
    }

    .responsiville .nvm-blog__lead-link:hover {
        background: none;
        color: var(--nvm-color-gold);
    }

        .responsiville .nvm-blog__lead-link-arrow {
            font-size: 18px;
            line-height: 1;
        }



/*******************************

     ██████╗ ██████╗ ██╗██████╗
    ██╔════╝ ██╔══██╗██║██╔══██╗
    ██║  ███╗██████╔╝██║██║  ██║
    ██║   ██║██╔══██╗██║██║  ██║
    ╚██████╔╝██║  ██║██║██████╔╝
     ╚═════╝ ╚═╝  ╚═╝╚═╝╚═════╝

 *******************************/



    /*
        Everything after the newest one — three to a row at 1920, with 20
        across and 60 down.

        One column on a phone and two on a tablet, because a card's picture
        is 467 by 350 and a third of a narrow screen turns it into a stamp.
    */

    /*
        The cards. Their widths are Vanilla's — half at a tablet, a third at
        a laptop — so the Responsiville grid overlay shows them as columns
        like every other part of the site.

        Only the distance down the page is set here: .row wraps and leaves
        nothing between one line of columns and the next.
    */

    .responsiville .nvm-blog__item {
        margin-bottom: clamp( 40px, 3.13vw, 60px );
    }

        /* A long word in a title must not widen the column it is in and
           push the row out of true. */

        .responsiville .nvm-blog__item > * {
            min-width: 0;
        }

    .responsiville .nvm-blog__pagination {
        margin: clamp( 40px, 3.13vw, 60px ) 0 0;
    }

    .responsiville .nvm-blog__empty {
        margin: 0;
        color: var(--nvm-color-stone);
        font-size: 16px;
    }



/*******************************

    ██████╗  ██████╗ ███████╗████████╗
    ██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝
    ██████╔╝██║   ██║███████╗   ██║
    ██╔═══╝ ██║   ██║╚════██║   ██║
    ██║     ╚██████╔╝███████║   ██║
    ╚═╝      ╚═════╝ ╚══════╝   ╚═╝

 *******************************/



    /*
        One article — "Blog Post" in the artboards.

        It opens on the same band the archive opens on, so every rule above
        for .nvm-blog__lead serves it unchanged; single-blog.php carries the
        .nvm-blog class for exactly that reason.

        What is added here is only what comes after: the article, the tags,
        and the three cards at the foot.
    */

    /*
        The widths the artboard draws are the widths of the writing.

        Measured on the live article: a panel set to `small` came out 768
        wide with 50 of padding on each side and box-sizing: border-box, so
        the text inside it read at 668 — a hundred short of the 768 the
        drawing gives it, and the same hundred short at every other width.

        The scale is not wrong; `--nvm-panel-small-width` is the width of the
        panel, which is what its name says. It is this page that means
        something else by it, so the padding is added back here rather than
        the variables being redefined for everybody — the footer uses the
        same scale and is correct as it stands.

        The padding is restated because it varies with the breakpoint, and a
        single figure would be right at one width and wrong at the other two.
    */

    .responsiville .nvm-post__content .panel {
        --nvm-post-panel-pad: 20px;
    }

    .tablet .responsiville .nvm-post__content .panel {
        --nvm-post-panel-pad: 30px;
    }

    .laptop .responsiville .nvm-post__content .panel {
        --nvm-post-panel-pad: 50px;
    }

        .responsiville .nvm-post__content .panel-width-small {
            max-width: calc( var(--nvm-panel-small-width) + 2 * var(--nvm-post-panel-pad) );
        }

        .responsiville .nvm-post__content .panel-width-narrow {
            max-width: calc( var(--nvm-panel-narrow-width) + 2 * var(--nvm-post-panel-pad) );
        }

        .responsiville .nvm-post__content .panel-width-medium {
            max-width: calc( var(--nvm-panel-medium-width) + 2 * var(--nvm-post-panel-pad) );
        }

    /*
        The article written in the editor is not wrapped in anything.

        Its row blocks carry their own panels — 768, 1024, 1440, which are
        Vanilla's small, narrow and medium to the pixel — and each sets its
        own margins. A column around them would inset what is already inset.
    */

    .responsiville .nvm-post__content--blocks {
        margin: 0;
    }

        /* An article imported from the old site has no blocks, so it is laid
           out by the panel single-blog.php puts around it instead. Its
           paragraphs read at the design's measure either way. */

        .responsiville .nvm-post__content--legacy {
            font-size: 16px;
            font-weight: 400;
            line-height: 1.5;
        }

        .responsiville .nvm-post__content--legacy img {
            display: block;
            max-width: 100%;
            height: auto;
        }



/*******************************

    ████████╗ █████╗  ██████╗ ███████╗
    ╚══██╔══╝██╔══██╗██╔════╝ ██╔════╝
       ██║   ███████║██║  ███╗███████╗
       ██║   ██╔══██║██║   ██║╚════██║
       ██║   ██║  ██║╚██████╔╝███████║
       ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚══════╝

 *******************************/



    /* A rule across the column, then the word and the tags after it. */

    .responsiville .nvm-post__tags {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 10px;
        margin-top: clamp( 40px, 4.17vw, 80px );
        padding-top: 20px;
        border-top: 1px solid var(--nvm-color-sand-dark);
        font-family: var(--nvm-font-sans-serif);
        font-size: 14px;
        line-height: 1.5;
    }

        .responsiville .nvm-post__tags-label {
            color: var(--nvm-color-ink);
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .responsiville .nvm-post__tags a {
            padding: 0;
            background: none;
            color: var(--nvm-color-stone);
            text-decoration: none;
            transition: color 0.2s ease-in-out;
        }

        .responsiville .nvm-post__tags a:hover {
            background: none;
            color: var(--nvm-color-gold);
        }



/*******************************

    ██████╗ ███████╗ █████╗ ██████╗
    ██╔══██╗██╔════╝██╔══██╗██╔══██╗
    ██████╔╝█████╗  ███████║██║  ██║
    ██╔══██╗██╔══╝  ██╔══██║██║  ██║
    ██║  ██║███████╗██║  ██║██████╔╝
    ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝

 *******************************/



    /* The three cards that close the page. The grid is the archive's, so
       only the heading above it is set here. */

    .responsiville .nvm-read-also {
        padding: clamp( 50px, 5.73vw, 110px ) var(--nvm-content-inset) clamp( 60px, 7.29vw, 140px );
    }

        /* The mark sits above the heading, at the size it is drawn. */

        .responsiville .nvm-read-also__icon {
            width: 89px;
            margin: 0 0 clamp( 16px, 1.46vw, 28px );
            color: var(--nvm-color-ink);
            line-height: 0;
        }

            .responsiville .nvm-read-also__icon svg {
                display: block;
                width: 100%;
                height: auto;
            }

        .responsiville .nvm-read-also .nvm-read-also__title {
            margin: 0 0 clamp( 24px, 2.60vw, 50px );
            color: var(--nvm-color-ink);
            font-family: var(--nvm-font-sans-serif);
            font-size: clamp( 24px, 1.77vw, 34px );
            font-weight: 800;
            line-height: 1.2;
        }



/*******************************

    ████████╗███████╗██╗  ██╗████████╗
    ╚══██╔══╝██╔════╝╚██╗██╔╝╚══██╔══╝
       ██║   █████╗   ╚███╔╝    ██║
       ██║   ██╔══╝   ██╔██╗    ██║
       ██║   ███████╗██╔╝ ██╗   ██║
       ╚═╝   ╚══════╝╚═╝  ╚═╝   ╚═╝

 *******************************/



    /*
        The article's own headings, sized for the column they sit in.

        theme.typography.css sets every h2 on the site to

            clamp( 25px, 18.4px + 1.848vw, 42px )

        which lands on the cap — 42px — at any desktop width. That is right
        for a section title standing across 1440 and wrong inside the 768
        this page reads at: every numbered heading broke over two lines and
        some over three, and the page came out looking like a list of titles
        with paragraphs between them.

        The figures below are proportioned to the body text the artboard
        does give — 16 over 24 — rather than to the width of the screen.
    */

    .responsiville .nvm-post__content h2 {
        margin: clamp( 30px, 2.08vw, 40px ) 0 clamp( 12px, 0.83vw, 16px );
        font-size: clamp( 22px, 1.56vw, 30px );
        font-weight: 800;
        line-height: 1.25;
    }

    .responsiville .nvm-post__content h3 {
        margin: clamp( 24px, 1.67vw, 32px ) 0 clamp( 8px, 0.52vw, 10px );
        font-size: clamp( 17px, 1.15vw, 22px );
        font-weight: 700;
        line-height: 1.3;
    }

        /* A heading that opens a band has the band's own space above it
           already; a second margin on top of that reads as a gap. */

        .responsiville .nvm-post__content h2:first-child,
        .responsiville .nvm-post__content h3:first-child {
            margin-top: 0;
        }

    /* The measure the artboard writes at. */

    .responsiville .nvm-post__content p {
        margin: 0 0 16px;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
    }

    .responsiville .nvm-post__content p:last-child {
        margin-bottom: 0;
    }

        /* Links inside the article, in the gold the rest of the site uses
           for anything that leads somewhere. */

        /*
            One line under a link, not two.

            theme.typography.css already draws it, as a 1px border-bottom —
            so the `text-decoration: underline` that used to be here added a
            second rule a couple of pixels under the first. The border is
            left to do the job and only the colour is said here.
        */

        .responsiville .nvm-post__content a {
            padding: 0;
            background: none;
            color: var(--nvm-color-ink);
            transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
        }

        .responsiville .nvm-post__content a:hover {
            background: none;
            border-bottom-color: var(--nvm-color-gold);
            color: var(--nvm-color-gold);
        }
