/* Type follows the full-width artwork, with reading sizes bounded on phones and large displays. */
:root {
    --nm-caption: clamp(.8125rem, .6rem + .36vw, 1.25rem);
    --nm-link: clamp(1rem, .72rem + .45vw, 1.55rem);
    --nm-body: clamp(1rem, .72rem + .5vw, 1.625rem);
    --nm-card-title: clamp(1.625rem, 1.05rem + .95vw, 3rem);
    --nm-page-title: clamp(3.75rem, 6.65vw, 7rem);
    --nm-heading: clamp(2.25rem, 1.5rem + 1.8vw, 5.5rem);
}

.nm-eyebrow, .nm-card-meta {
    font-size: var(--nm-caption);
    line-height: 1.45;
    letter-spacing: .12em;
}
.nm-section-heading h2, .nm-about-strip h2, .nm-game-feature h2, .nm-game-feature h3 {
    font-size: var(--nm-heading);
    line-height: 1.08;
}
.nm-text-link, .nm-section-heading > .nm-text-link {
    font-size: var(--nm-link);
    font-weight: 600;
    min-height: 44px;
    line-height: 1.35;
    gap: .65em;
}
.nm-section-heading > .nm-text-link { padding-bottom: 0; }
.nm-text-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.nm-card-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4em .85em;
    color: #c2ccdc;
    letter-spacing: .055em;
}
.nm-card-meta span + span {
    padding-inline-start: .85em;
    border-inline-start: 1px solid #65758b;
}
.nm-album-card h3 { font-size: clamp(1.875rem, 1.35rem + 1.1vw, 3.6rem); }
.nm-card-arrow {
    width: clamp(44px, 2.6vw, 60px);
    height: clamp(44px, 2.6vw, 60px);
    font-size: clamp(1.45rem, 1.35vw, 2.1rem);
}
.nm-track-card .nm-promo-art img {
    mask-image: radial-gradient(ellipse 125% 110% at 50% -10%,
        #000 90%, rgb(0 0 0 / .88) 93%, rgb(0 0 0 / .32) 97%, transparent 100%);
}
.nm-track-copy { padding: clamp(18px, 1.6vw, 40px); }
.nm-track-copy h3, .nm-mood-card h3, .nm-post-card h2, .nm-post-card h3 {
    font-size: var(--nm-card-title);
    line-height: 1.17;
    overflow-wrap: anywhere;
}
.nm-track-copy h3 span { font-size: .85em; flex: none; }
.nm-track-copy p, .nm-mood-card p, .nm-post-card p,
.nm-about-strip p:not(.nm-eyebrow), .nm-game-feature p:not(.nm-eyebrow) {
    font-size: var(--nm-body);
    line-height: 1.55;
    max-width: 58ch;
    color: #c7d1e0;
}

.nm-page-intro h1 {
    font-size: var(--nm-page-title);
    line-height: 1.04;
    max-width: 20ch;
    overflow-wrap: anywhere;
}
.nm-page-intro > p:not(.nm-eyebrow), .nm-mood-detail p:not(.nm-eyebrow),
.nm-about-page .nm-prose, .nm-contact-links + .nm-prose, .nm-empty {
    font-size: var(--nm-body);
    line-height: 1.55;
    max-width: 62ch;
}
.nm-mood-detail h2 { font-size: var(--nm-heading); line-height: 1.08; overflow-wrap: anywhere; }
.nm-mood-track-links > a, .nm-category-nav a, .nm-page-intro .nm-button,
.nm-mood-detail .nm-button, .nm-about-page .nm-button {
    font-size: var(--nm-link);
    line-height: 1.35;
    min-height: 44px;
}
.nm-category-nav a { display: inline-flex; align-items: center; }
.nm-mood-track-links > a { overflow-wrap: anywhere; }
.nm-contact-links { max-width: 62rem; }
.nm-contact-links > a { font-size: var(--nm-card-title); line-height: 1.25; }

/* On desktop the name and artwork share a row; the biography flows below the name. */
@media (min-width: 821px) {
    .nm-about-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) var(--about-gap, 85px) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        grid-template-areas: "label label ." "name name art" "bio . art";
        align-items: start;
        padding-block: 78px 64px;
    }
    .nm-about-layout > .nm-page-intro,
    .nm-about-layout > .nm-about-page { display: contents; }
    .nm-about-layout .nm-eyebrow { grid-area: label; margin-bottom: 22px; }
    .nm-about-layout h1 { grid-area: name; margin: 0 1rem 55px 0; }
    .nm-about-layout .nm-prose { grid-area: bio; }
    .nm-about-layout img {
        grid-area: art;
        align-self: start;
        /* Match the visible top of the capital letters in Forum's title line. */
        margin-block-start: calc(.16 * var(--nm-page-title));
    }
}
@media (min-width: 821px) and (max-width: 1100px) {
    .nm-about-layout { --about-gap: 45px; }
}

@media (max-width: 680px) {
    :root { --nm-page-title: clamp(2.875rem, 10.5vw, 4.375rem); }
}
@media (max-width: 600px) {
    .nm-game-feature .nm-game-symbol {
        top: auto;
        bottom: 22px;
        right: 22px;
        font-size: 40px;
    }
}
@media (max-width: 380px) {
    .nm-mood-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Let the square artwork set the card height. Longer captions can grow the grid row. */
.nm-album-gallery .nm-album-card {
    position: relative;
    display: grid;
    grid-template-areas: "cover";
    min-width: 0;
    isolation: isolate;
    background: #111a29;
}
.nm-album-gallery .nm-album-art {
    grid-area: cover;
    align-self: start;
}
.nm-album-caption {
    grid-area: cover;
    z-index: 1;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .65rem 1rem;
    padding: clamp(32px, 4vw, 82px) clamp(16px, 1.55vw, 34px) clamp(16px, 1.55vw, 34px);
    background: linear-gradient(0deg, #080c16ed 0%, #090d19c9 47%, #080c167d 72%, transparent 100%);
    color: #fff5e3;
    text-shadow: 0 1px 4px #090b14;
}
.nm-album-copy { flex: 1 1 13rem; min-width: 0; }
.nm-album-copy .nm-release-date {
    position: static;
    display: block;
    max-width: none;
    margin-bottom: .25em;
    color: #fff3dc;
    font-size: max(.875rem, var(--nm-caption));
}
.nm-album-copy .nm-release-date::before { content: none; }
.nm-album-copy .nm-card-meta {
    margin: 0 0 .18em;
    color: #f2e7d5;
    line-height: 1.3;
}
.nm-album-copy h3 {
    margin: 0;
    font-size: clamp(1.6rem, 1.15rem + 1.05vw, 3.25rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.nm-album-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55em;
    max-width: 100%;
    margin-inline-start: auto;
    color: #fff2d5;
    font: 600 var(--nm-link)/1.25 var(--sans);
}
.nm-album-action .nm-card-arrow {
    position: static;
    flex: none;
    width: clamp(36px, 2.4vw, 52px);
    height: clamp(36px, 2.4vw, 52px);
    border-color: #f4d79794;
    background: #10142391;
    color: #ffd77f;
}
.nm-album-action .nm-card-arrow svg {
    display: block;
    width: 70%;
    height: 70%;
}
.nm-album-card:is(:hover, :focus-visible) .nm-card-arrow {
    border-color: var(--gold);
    background: var(--gold);
    color: #121521;
}
@media (min-width: 741px) {
    .nm-album-gallery { --album-gap: clamp(2.5rem, 3vw, 4rem); }
    .nm-album-gallery .nm-album-grid { column-gap: var(--album-gap); }
    .nm-album-catalog .nm-album-card { container-type: inline-size; }
    .nm-album-catalog .nm-album-caption {
        column-gap: clamp(.5rem, 2cqi, 1rem);
        padding-inline: clamp(1rem, 4cqi, 2rem);
    }
    .nm-album-catalog .nm-album-copy h3 { font-size: clamp(1.6rem, .25rem + 4.95cqi, 3.25rem); }
    .nm-album-catalog .nm-album-action {
        gap: .4em;
        font-size: clamp(1rem, .75rem + .95cqi, 1.5rem);
    }
    .nm-album-catalog .nm-card-arrow {
        width: clamp(2rem, 6cqi, 3rem);
        height: clamp(2rem, 6cqi, 3rem);
    }
    .nm-album-grid > .nm-album-card:nth-child(odd):has(+ .nm-album-card)::after {
        content: "";
        position: absolute;
        inset-block: 0;
        inset-inline-start: 100%;
        inline-size: var(--album-gap);
        pointer-events: none;
        --spine-band: linear-gradient(180deg, #483c2d 0 1px, #b49b6b 1px 2px,
            transparent 2px 4px, #96774c 4px 5px, #322d28 5px 6px);
        background: var(--spine-band) center 17% / 46% 6px no-repeat,
            var(--spine-band) center 50% / 46% 6px no-repeat,
            var(--spine-band) center 83% / 46% 6px no-repeat,
            linear-gradient(90deg, transparent 12%, #b3955d66 12%, transparent calc(12% + 1px),
                transparent 88%, #b3955d66 88%, transparent calc(88% + 1px)),
            repeating-linear-gradient(3deg, transparent 0 2px, #ccb78f09 2px 3px),
            linear-gradient(90deg, #0a101b, #29303a 6%, #121820 10%, #373635 15%,
                #50483e 32%, #655746 48%, #5c5042 59%, #373635 85%, #121820 90%, #29303a 94%, #0a101b);
        box-shadow: inset 0 1px 0 #b7a58155, inset 0 -1px 0 #080b11;
    }
}
@media (min-width: 900px) {
    /* Keep the outer edges aligned with the page. On wide, short screens the
       binding takes up the spare width between the two square sleeves. */
    .nm-album-gallery, .nm-album-intro {
        --nm-edge: clamp(20px, 3.5vw, 64px);
        --album-max-width: 1920px;
        max-width: var(--album-max-width);
    }
    .nm-album-gallery {
        --album-side: calc(100svh - 9.25rem);
        --album-page-width: min(100vw, calc(var(--album-max-width) + 2 * var(--nm-edge)));
        --album-gap: clamp(3.5rem,
            calc(var(--album-page-width) - 2 * var(--nm-edge) - 2 * var(--album-side)),
            calc(.14 * var(--album-page-width)));
    }
    .nm-album-catalog {
        --album-side: calc(100svh - 11.75rem);
        padding-block-end: clamp(18px, 2vw, 32px);
    }
    .nm-album-catalog + .nm-section { padding-block-start: clamp(18px, 2vw, 32px); }
    /* The masthead scrolls with the hero. Let the album anchor use the full viewport. */
    #albums {
        scroll-margin-block-start: -100px;
        padding-block: clamp(22px, 3svh, 42px);
    }
    #albums > .nm-section-heading { margin-bottom: clamp(18px, 2.2svh, 32px); }
    .nm-album-intro { padding-block: clamp(14px, 2svh, 32px) clamp(14px, 2.2svh, 26px); }
    .nm-album-intro h1 {
        max-width: none;
        margin-top: .1em;
        font-size: clamp(2.75rem, 4.35vw, 6.4rem);
        line-height: 1.04;
    }
    .nm-album-intro > p:not(.nm-eyebrow) {
        max-width: 66ch;
        margin-top: .3em;
        line-height: 1.4;
    }
}
@media (max-width: 740px) {
    .nm-album-gallery .nm-album-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
