/* --page-* variables are defined (as aliases) in tokens.css */

/* Current pages share the projects page's compact editorial heading. */
.projects-heading,
.links-heading,
.music-hero {
    max-width: var(--page-heading-width);
    margin: 0 0 clamp(2.25rem, 4vh, 2.75rem);
}

.projects-heading h1,
.links-heading h1,
.music-hero h1 {
    max-width: 13ch;
    margin: .15rem 0 1.1rem;
    color: var(--ink);
    font-size: clamp(3.2rem, 5vw, 5.25rem);
    line-height: .84;
    letter-spacing: -.075em;
    text-wrap: balance;
}

.projects-heading > p:last-child,
.links-heading > p:last-child,
.music-intro {
    max-width: 31rem;
    margin: 0;
    padding: .25rem 0 0;
    color: var(--page-copy);
    font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
    font-size: clamp(.78rem, 1vw, .9rem);
    line-height: 1.45;
    text-wrap: pretty;
}

.links-heading .eyebrow,
.music-kicker {
    margin: 0 0 .65rem;
    color: var(--violet-light);
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* Links use the same bordered, information-first cards as Projects. */
.links-view {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    margin-left: 3.75rem;
    padding: clamp(1.5rem, 3vh, 2.75rem) clamp(1.5rem, 5vw, 5rem) 4rem;
    transition: margin-left .35s cubic-bezier(.3, .5, .25, 1);
}

.site-sidebar-expanded .links-view {
    margin-left: 16rem;
}

.links-heading,
.links-list,
.links-note {
    width: min(100%, var(--page-width));
    margin-inline: auto;
}

.links-list {
    margin-top: 0;
    padding: 0;
    border-top: 1px solid var(--page-rule);
    list-style: none;
}

.links-entry {
    display: grid;
    min-height: 7.25rem;
    padding: 1.35rem .25rem;
    border-bottom: 1px solid var(--page-rule);
    color: inherit;
    grid-template-columns: 3rem minmax(0, 1fr) auto 1.5rem;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    text-decoration: none;
    transition: padding .25s ease, border-color .25s ease, background-color .25s ease;
}

.links-entry:hover,
.links-entry:focus-visible {
    padding-inline: 1rem;
    border-color: var(--page-rule-strong);
    outline: none;
    background: linear-gradient(90deg, rgba(111, 56, 143, .15), transparent 72%);
}

.links-entry-number {
    color: #665b6d;
    font-size: .6rem;
    letter-spacing: .15em;
}

.links-entry-copy {
    display: grid;
    gap: .45rem;
}

.links-entry-copy strong {
    color: var(--ink);
    font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -.035em;
}

.links-entry-copy span,
.links-entry-handle,
.links-note {
    color: var(--page-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.links-entry-handle {
    color: var(--violet-light);
    letter-spacing: .06em;
}

.links-entry-arrow {
    color: var(--violet-light);
    font-size: 1.1rem;
    transition: translate .2s ease;
}

.links-entry:hover .links-entry-arrow,
.links-entry:focus-visible .links-entry-arrow {
    translate: .2rem -.2rem;
}

.links-note {
    margin-top: 1.25rem;
}

/* The music catalogue now occupies the same persistent-sidebar frame. */
body.music-list-page .music-page {
    width: auto;
    margin: 0 0 0 3.75rem;
    padding: clamp(1.5rem, 3vh, 2.75rem) clamp(1.5rem, 5vw, 5rem) 4rem;
}

body.music-list-page.site-sidebar-expanded .music-page {
    margin-left: 16rem;
}

body.music-list-page .music-hero,
body.music-list-page .music-catalogue {
    width: min(100%, var(--page-width));
    margin-inline: auto;
}

body.music-list-page .music-hero {
    padding-left: 0;
}

body.music-list-page .music-hero::before {
    display: none;
}

body.music-list-page .music-intro {
    margin-top: 0;
}

body.music-list-page .music-home-link {
    display: none;
}

body.music-list-page .music-catalogue {
    margin-top: clamp(2.25rem, 4vh, 2.75rem);
}

body.music-list-page .music-search,
body.music-list-page .music-table-wrap {
    border-color: var(--music-border);
    background: var(--music-panel);
}

body.music-list-page .music-search,
body.music-list-page .music-table-wrap {
    border-radius: .35rem;
}

@media (max-width: 760px) {
    .projects-heading h1,
    .links-heading h1,
    .music-hero h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .links-view,
    .site-sidebar-expanded .links-view,
    body.music-list-page .music-page,
    body.music-list-page.site-sidebar-expanded .music-page {
        margin-left: 0;
        padding-inline: 1.25rem;
    }

    .links-entry {
        grid-template-columns: 2rem minmax(0, 1fr) 1rem;
    }

    .links-entry-handle {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    .links-view,
    .links-entry,
    .links-entry-arrow,
    body.music-list-page .music-page {
        transition: none;
    }
}

.identity h1,
.projects-heading h1,
.projects-section-heading h2,
.archive-heading h1,
.entry-copy strong,
.music-hero h1,
.music-section-heading h2,
.roblox-stats-heading h1:not([data-market-trend="up"]):not([data-market-trend="down"]),
.roblox-profile-display,
.roblox-orbit-asset-name,
.roblox-developer-heading h2,
.roblox-developer-media-copy h3,
.roblox-developer-project-copy > strong {
    color: #fff;
}

.about,
.projects-heading > p:last-child,
.archive-heading > p:last-child,
.entry-copy span,
.music-intro,
.roblox-developer-project-copy > small,
.roblox-developer-media-copy p,
.roblox-developer-media-empty small {
    color: #c6c6c6;
}

body.is-light-mode .identity h1,
body.is-light-mode .projects-heading h1,
body.is-light-mode .projects-section-heading h2,
body.is-light-mode .archive-heading h1,
body.is-light-mode .entry-copy strong,
body.is-light-mode .music-hero h1,
body.is-light-mode .music-section-heading h2,
body.is-light-mode .roblox-stats-heading h1:not([data-market-trend="up"]):not([data-market-trend="down"]),
body.is-light-mode .roblox-profile-display,
body.is-light-mode .roblox-orbit-asset-name,
body.is-light-mode .roblox-developer-heading h2,
body.is-light-mode .roblox-developer-media-copy h3,
body.is-light-mode .roblox-developer-project-copy > strong {
    color: #1c1c1c;
}

body.is-light-mode .about,
body.is-light-mode .projects-heading > p:last-child,
body.is-light-mode .archive-heading > p:last-child,
body.is-light-mode .entry-copy span,
body.is-light-mode .music-intro,
body.is-light-mode .roblox-developer-project-copy > small,
body.is-light-mode .roblox-developer-media-copy p,
body.is-light-mode .roblox-developer-media-empty small {
    color: #555;
}
