/* Vinyl Sleeve - A Free Design by Bryant Smith (bryantsmith.com)
   The page is an album sleeve with a record spinning behind it.
   Every colour lives in the palette below; every section is labelled. */


/* ---- PALETTE: change these hex values to re-colour the whole page ---- */

:root {
    --felt:       #140f0d;   /* the dark table the sleeve sits on   */
    --panel:      #211913;   /* the stage the artwork rests on       */
    --panel-2:    #1a130f;
    --cover:      #bd5a22;   /* the sleeve paper (burnt orange)      */
    --cover-dark: #401808;   /* shadow in the die-cut rim            */
    --gold:       #e0a24a;   /* the one warm accent                  */
    --cream:      #f3ead8;   /* primary text                         */
    --cream-soft: #d9c8ab;   /* body text                            */
    --muted:      #b3a48f;   /* quiet labels and captions            */
    --ink:        #2a1f18;   /* dark text on the cream record label  */
}


/* ---- BASE: reset, page background and type ---- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--felt);
    background-image: radial-gradient(circle at 50% -10%, #2a1f18, var(--felt) 65%);
    color: var(--cream-soft);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;          /* the record peeks out; never scroll sideways */
}

a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

#page {
    margin: 0 auto;
    max-width: 940px;
    padding: 28px 24px 0 24px;
}


/* ---- TOP BAR: label name and menu ---- */

#topbar {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 6px 4px 22px 4px;
}

.brand {
    color: var(--cream);
    font-size: 17px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand span {
    color: var(--gold);
    font-style: italic;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-left: 20px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: var(--gold);
    color: var(--gold);
}


/* ---- STAGE: the dark felt backdrop ---- */

#stage {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 54px 56px 32px 40px;
    position: relative;
}


/* ---- ARTWORK: a square box that holds record, label and cover ----
   Using percentages of this square means the whole sleeve scales
   together when the page gets narrower. */

.artwork {
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    position: relative;
    width: min(100%, 560px);
}


/* ---- RECORD: the spinning black disc, behind everything ----
   It is 100% of the square wide but shoved 10% to the right, so it
   peeks out past the right edge of the sleeve. z-index 1 is the
   bottom of our little stack. */

.record {
    animation: spin 24s linear infinite;
    background:
        /* a soft light glint that travels round as the disc turns */
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 30%),
        /* the grooves: fine repeating rings */
        repeating-radial-gradient(circle at 50% 50%,
            rgba(0, 0, 0, 0.60) 0 2px,
            rgba(255, 255, 255, 0.035) 2px 4px),
        /* the vinyl itself: a conic sheen so the rotation is visible */
        conic-gradient(from 0deg, #1c1c1c, #3d3d3d, #121212, #383838, #1c1c1c);
    border-radius: 50%;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    height: 110%;
    left: 5%;
    position: absolute;
    top: -5%;
    width: 110%;
    z-index: 1;
}

/* ---- THE ANIMATION ---- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* hovering the sleeve pauses the record so the label can be read */
.artwork:hover .record {
    animation-play-state: paused;
}


/* ---- LABEL: the cream centre of the record. It is a separate layer
   on top of the record (z-index 2) so the tracklist does NOT spin. */

.label {
    align-items: center;
    background: radial-gradient(circle at 50% 42%, #fbf4e4, #ecdfc4 72%, #ddcba7);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(43, 26, 15, 0.35), 0 10px 22px rgba(0, 0, 0, 0.45);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    height: 38%;
    justify-content: center;
    left: 41%;
    padding: 12px;
    position: absolute;
    text-align: center;
    top: 31%;
    width: 38%;
    z-index: 2;
}

.label-side {
    color: #8a3f14;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tracklist {
    counter-reset: track;
    list-style: none;
    margin: 5px 0;
}

.tracklist li {
    counter-increment: track;
    font-size: 11px;
    line-height: 1.5;
}

.tracklist li::before {
    color: #b5551f;
    content: counter(track) ". ";
    font-weight: bold;
}

.label-cat {
    color: #9a7a52;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ---- COVER: the sleeve front, sitting on top (z-index 3).
   The middle radial-gradient is the die-cut: fully transparent in the
   centre, a dark rim, a thin highlight, then the cover colour. The
   transparent centre is what lets us see the record behind. */

.cover {
    background:
        /* soft light falling on the top-left corner of the cardboard */
        radial-gradient(circle at 14% 6%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 42%),
        /* a gentle shade in the bottom-right for depth */
        radial-gradient(circle at 92% 96%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 46%),
        /* the die-cut window: hole, dark rim, thin lip */
        radial-gradient(circle at 60% 50%,
            rgba(0, 0, 0, 0) 0 24%,
            rgba(64, 24, 8, 0.95) 24% 25.2%,
            rgba(255, 255, 255, 0.12) 25.2% 26%,
            rgba(0, 0, 0, 0) 26%),
        /* the sleeve paper, transparent only inside the window */
        radial-gradient(circle at 60% 50%,
            rgba(0, 0, 0, 0) 0 24%,
            var(--cover) 24%);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: space-between;
    overflow: hidden;
    padding: 34px 36px;
    position: absolute;
    z-index: 3;
}

/* the darker "spine" down the left edge of the sleeve */
.cover::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    border-radius: 10px 0 0 10px;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 12px;
}

.cover-top {
    max-width: 62%;
    position: relative;
}

/* a short gold rule under the album title */
.cover-top::after {
    background: var(--gold);
    content: "";
    display: block;
    height: 3px;
    margin-top: 16px;
    width: 46px;
}

.cover-kicker {
    color: var(--gold);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.cover-title {
    font-size: 40px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.05;
    margin-top: 10px;
    text-transform: uppercase;
}

.cover-bottom {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.cover-artist {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cover-cat {
    color: var(--gold);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stage-caption {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 26px;
    text-align: center;
    text-transform: uppercase;
}


/* ---- LINER NOTES: two columns under the sleeve ---- */

#liner-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    margin-top: 52px;
}

.notes-col {
    min-width: 0;              /* keeps long words from stretching the grid */
}

.notes-col h2 {
    border-bottom: 1px solid rgba(224, 162, 74, 0.35);
    color: var(--gold);
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

.notes-col p {
    font-size: 15px;
    margin-top: 14px;
}

.notes-col code {
    background: rgba(224, 162, 74, 0.12);
    border-radius: 3px;
    color: var(--gold);
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    padding: 1px 5px;
}

.details {
    margin-top: 14px;
}

.details dt {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 14px;
    text-transform: uppercase;
}

.details dd {
    color: var(--cream);
    font-size: 15px;
}


/* ---- STICKER: the promo quote ---- */

.sticker {
    background: rgba(224, 162, 74, 0.07);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--cream);
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    margin-top: 48px;
    padding: 26px 32px;
    text-align: center;
}

.sticker p {
    margin: 0;
}


/* ---- FOOTER: the required credit line ---- */

#footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 56px;
    padding: 22px 0 12px 0;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid rgba(224, 162, 74, 0.4);
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#footer a:hover {
    border-bottom-color: var(--gold);
    color: var(--gold);
}


/* ---- SMALL SCREENS: shrink the sleeve, stack the notes ---- */

@media (max-width: 640px) {
    #page {
        padding: 18px 14px 0 14px;
    }

    #stage {
        border-radius: 10px;
        padding: 30px 40px 24px 20px;
    }

    .artwork {
        width: min(100%, 340px);
    }

    .cover {
        border-radius: 8px;
        padding: 22px 22px;
    }

    .cover-title {
        font-size: 30px;
    }

    .cover-kicker {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .label {
        padding: 8px;
    }

    .label-side {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .tracklist li {
        font-size: 10px;
    }

    #menu a,
    #menu a:visited {
        margin-left: 0;
        margin-right: 16px;
    }

    #liner-notes {
        gap: 30px;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 40px;
    }

    .sticker {
        font-size: 17px;
        padding: 22px 20px;
    }
}


/* ---- REDUCED MOTION: stop the record for anyone who asks ---- */

@media (prefers-reduced-motion: reduce) {
    .record {
        animation: none;
    }

    #menu a,
    #footer a {
        transition: none;
    }
}
