/* Additions to the Ruby theme for a static site with no JavaScript. */

/* Ruby opens its mobile menu with a script; here the two links simply sit
   under the title on small screens (the title stays on the left, where
   Ruby puts it beside its menu button). */
@media (max-width: 767px) {
    #gh-head { height: auto; }
    #gh-head .gh-head-inner { gap: 0; padding-bottom: 16px; }
    #gh-head .gh-head-brand { display: flex; justify-content: flex-start; }
    #gh-head .gh-head-menu {
        justify-content: flex-start;
        position: static;
        visibility: visible;
        opacity: 1;
    }
    #gh-head .nav li { opacity: 1; transform: none; }
    #gh-head .nav a { font-size: 1.6rem; }
    #gh-head .gh-head-actions { display: none; }
}

/* Ghost's embed cards are 200 pixels wide until Ruby's script stretches
   them; CSS does the same here. */
.gh-content .kg-embed-card iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Ruby loads the next page of posts as you scroll; here Newer and Older
   links do it. */
.gh-pagination {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    font-weight: 700;
}
.gh-pagination-next { margin-left: auto; }

/* "Support my work!", which the Ghost site added to every page with a
   script in its code injection. */
.mb-cta{max-width:640px;margin:3rem auto 2.5rem;padding:2rem 1.25rem 0;border-top:1px solid rgba(0,0,0,.12);text-align:center;font-size:1.4rem;line-height:1.5;font-weight:600}
@media (prefers-color-scheme:dark){.mb-cta{border-color:rgba(255,255,255,.16)}}
.mb-cta .mb-cta-button{display:inline-block;margin-top:1.25rem;padding:1.6rem 4rem;border-radius:12px;background:#ff8800;color:#fff;font-size:2.3rem;font-weight:800;text-decoration:none;transition:background .15s ease}
.mb-cta .mb-cta-button:hover{background:#e67a00;color:#fff}
