
/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    border-bottom: 1px solid #171717;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
header a {
    font-weight: 700;
}
header .site-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #171717;
}


/* NAV BAR */
ul {
    display: flex;
    list-style-type: none;
    gap: 40px;
}

/* NAV LINKS */
header a:link {
  color: #171717;
  background-color: transparent;
  text-decoration: none;
}
header a:visited {
  color: #666158;
  background-color: transparent;
  text-decoration: none;
}
header a:hover {
  color: #E34A2B;
  background-color: transparent;
  text-decoration: none;
}
header a:active {
  color: #A52F1B;
  background-color: transparent;
  text-decoration: underline;
}

/* NAV LINKS _CURRENT PAGE_ACTIVE CLASS */
header a.active {
    color: #B7351B;
    border-bottom: 2px  solid #E34A2B;
    padding-bottom: 5px;
}


/* BODY */
h1 {
  color: #E34A2B;
  font-size: 40px;
  text-align: left;
}
h2 {
  color: #E34A2B;
  font-size: 30px;
  text-align: left;
}
p {
  color: #171717;
  font-size: 20px;
  text-align: left;
}
body {
    background-color: #F2EFE6;
    font-family: Manrope, sans-serif;
}

/* BODY LINKS */
a:link {
    color: #e94b2f;
}
a:visited {
    color: #e94b2f;
}
a:hover {
    color: #171717;
}
a:active {
    color: #171717;
}

/* EYEBROW CLASS */
.eyebrow {
    color:#171717;
    font-size: 12px;
    font-weight: 700;
	text-align:left;
}

/* INTRO CLASS */
.intro {
    color:#171717;
	font-size:20px;
    font-weight: 500;
    max-width: 650px;
	text-align:left;
}

/* ALBUM CARD CLASS */
    /* whole card */
.album-card {
    padding: 20px;
}
    /* album title inside the card */
.album-card h2 {
    color: #e94b2f;
    font-size: 26px;
    text-align: left;
    margin-bottom: 8px;
} 
    /* artist info inside the card */
.album-card p {
    color: #171717;
    font-size: 20px;
    text-align: left;
    margin-top: 0;
}



/* =========================
   HOME PAGE
   ========================= */

/* HOME SHAPES */
.roulette-circle {
    width: 350px;
    height: 350px;
    background-color: #D9573F;
    border-radius: 50%;
    position: absolute;
    left: 190px;
    bottom: -50px;
    z-index: 1;
}

/* HOME ELEMENTS */
.roulette-feature {
    position: relative;
    left: -15px;
    top: 30px;
    color: #171717;
}
.roulette-layout {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 650px;
}
.roulette-intro h1 {
    color: #171717;
    font-size: 100px;
    font-weight: 800;
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 8px;
}
.roulette-tagline {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 20px;
}
a.roulette-button {
    display: inline-block;
    background-color: #D9573F;
    color: #F7F3E8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 14px 22px;
}
a.roulette-button:visited {
color: #F7F3E8;
}
a.roulette-button:hover {
  color: #171717;
}
.feature-artist {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 2px;
}
.feature-album {
    font-size: 17px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 12px;
}
.feature-vinyl {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 0;
    left: 180px;
    z-index: 1;
}
.feature-cover {
    position: relative;
    z-index: 2;
}
.feature-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 300px;
    margin-top: 0;
    margin-bottom: 12px;
}
.feature-link {
    display: inline-block;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-bottom: 1px solid #171717;
}
.feature-link:visited {
    color: #171717;
}
.feature-link:hover {
    color: #D9573F;
    border-bottom-color: #D9573F;
}
.record-stack {
    width: 420px;
    height: 400px;
    overflow: hidden;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}
.record-stack img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.88;
}


/* =========================
   CATALOG PAGE
   ========================= */

/* CATALOG SHAPES */
.catalog-main {
  position: relative;
  overflow: hidden;
  padding: 10px 40px 40px;
}
.catalog-circle {
    width: 400px;
    height: 400px;
    background-color: #D99A24;
    border-radius: 50%;
    position: absolute;
    top: -250px;
    right: -50px;
}
/* CATALOG ELEMENTS */
.catalog-copy h1 {
    color: #171717;
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 8px;
}
.catalog-copy .eyebrow {
    margin-bottom: 8px;
}


/* TABLES */
table {
    border-collapse: collapse;
    width: 100%;
}
table, th, td {
    font-size: 20px;
}
th, td {
    border: none;
    border-bottom: 1px solid #171717;
    border-radius: 0;
    text-align: left;
}
th {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 10px 8px 10px;
}
td {
    padding: 10px;
    background-color: #F2EFE6;
}
tbody tr:hover td {
    background-color: #F7D8CF;
    color: #E34A2B;
}
.release-date {
    text-align: left;
}

/* CATALOG FILTERS */
.filters {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #171717;
}
.filters button {
    font-weight: 700;
    background-color: #171717;
    color: #F2EFE6;
    border: none;
    padding: 11px 18px;
}
.filter {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.filter select {
    width: 100%;
    font-size: 14px;
    background-color: #F4F0E8;
    padding: 10px;
    border: 1px solid #171717;
}
.filter label {
    font-size: 14px;
    font-weight: 700;
}


/* =========================
   COLLECTION PAGE
   ========================= */

/* COLLECTION ELEMENTS */
.collection-copy h1 {
    color: #171717;
    font-weight: 800;
    font-size: 80px;
    letter-spacing: -2px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 8px;
}
.collection-copy .eyebrow {
    margin-bottom: 8px;
}
.collection-copy .intro {
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 400px;
}
.collection-main {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
    overflow: hidden;
    grid-template-columns: 42% minmax(0, 1fr);
    padding: 10px 40px 40px;
}
.collection-stories {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
/* Album artwork: hovered */
.story-image img {
    transition: transform 0.3s ease;
}
.collection-story:hover .story-image img {
    transform: scale(1.03);
}
.collection-story {
    display: block;
    padding: 12px 0;
    cursor: pointer;
}
/* COLLECTION — ALBUM COVER GRID */
.collection-record-grid {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    column-gap: 24px;
    row-gap: 20px;
    margin-inline: auto;
    width: max-content;
    margin-top: 20px;
}
.story-image {
    margin-bottom: 12px;
}
.story-image img {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    transition: transform 0.25s ease;
}
.stories-intro {
    grid-column: 1 / -1;
    width: max-content;
    margin-inline: auto;
}
.stories-intro .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    width: 400px;
    height: 40px;
    background-color: transparent;
    text-align: center;
}
.story-copy {
    max-width: 520px;
}
.collection-story:nth-of-type(even) .story-image {
    order: 2;
}
.collection-story:nth-of-type(even) .story-copy {
    order: 1;
}

/* Hides record details in the grid; JavaScript uses them for the card */
.collection-story .story-copy {
    display: none;
}

/* LINER NOTES — EXPANSION */
.story-trigger {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.story-trigger:focus-visible {
    outline: 2px solid #E34A2B;
    outline-offset: 4px;
}


/* COLLECTION — ARCHIVAL LINER NOTES CARD */
.liner-notes-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #252525;
    margin: 0 0 12px;
}
.liner-notes-panel {
    grid-column: 1 / -1;
    background-color: #D9573F;
    color: #F5F0E6;
    border: 1px solid #D9573F;
    border-left: 8px solid #252525;
    padding: 24px;
    margin-top: 32px;
    min-height: 370px;
    box-sizing: border-box;
}
.liner-notes-content {
    border-top: 1px solid #D7C7AA;
    padding-top: 16px;
    font-size: 16px;
    line-height: 1.5;
}
.liner-notes-artist {
    color: #252525;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0 4px;
}
.liner-notes-album {
    color: #F5F0E6;
    font-size: 18px;
    font-style: italic;
    margin: 0 0 20px;
}
a.liner-notes-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #F5F0E6;
    text-decoration: none;
}

a.liner-notes-link:hover {
    text-decoration: underline;
}

/* LINER NOTES — TYPOGRAPHY */
.story-number {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 8px;
}
.story-copy h3 {
    font-size: 20px;
    line-height: 1.2;
    margin: 8px 0 4px;
}
.story-copy h4 {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin: 0;
}
.story-copy > p:not(.story-number) {
    font-size: 12px;
    letter-spacing: 0.06em;
    margin: 8px 0 0;
}


/* =========================
   COLLECTOR PAGE
   ========================= */

/* COLLECTOR SHAPES */
.collector-main {
    position: relative;
    overflow: hidden;
    padding: 10px 40px 40px;
}
.collector-circle {
    width: 300px;
    height: 300px;
    background-color: #E86132;
    border-radius: 50%;
    position: absolute;
    top: -80px;
    right: -125px;
}
/* COLLECTOR ELEMENTS */
.collector-details {
    display: grid;
    grid-template-columns: 375px minmax(0, 1fr);
    gap: 24px;
}
.collector-bio {
    font-size: 18px;
    border-top: 1px solid #171717;
    margin-top: 48px;
    padding-top: 24px;
}
.collector-image {
    padding: 24px 24px 64px;
    background-color: #D9A441;
    box-sizing: border-box;
    max-width: 375px;
}
.collector-image img {
    width: 100%;
    height: auto;
    display: block;
}
.collector-copy .eyebrow {
    margin-bottom: 8px;
}
.collector-copy .intro {
    margin-top: 0;
    margin-bottom: 20px;
}
.collector-copy h1 {
    color: #171717;
    font-size: 80px;
    font-weight: 800;
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 8px;
}


/* =========================
   SELECTIONS PAGE
   ========================= */

/* SELECTIONS ELEMENTS */
.selections-main {
    padding: 10px 40px 40px;
}
.selections-copy {
    max-width: 650px;
    position: relative;
}
.selections-copy .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.selections-copy h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin: 24px 0;
}
.selections-copy .intro {
    font-size: 18px;
    line-height: 1.5;
    max-width: 560px;
}
.selections-annotation {
    position: absolute;
    top: 0;
    right: -450px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.selection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.selection-card {
    min-height: 400px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.morning-rain {
    background-color: #E34A2B;
}

.minimal-waves {
    background-color: #D99A24;
}

.heavy-rotation {
    background-color: #A3AD8B;
}

.scenic-route {
    background-color: #819BA8;
}
.selection-card a,
.selection-card button {
    margin-top: auto;
    color: #171717;
    font-size: 36px;
    text-decoration: none;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
.selection-number {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.selection-card h2 {
    color: #171717;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 12px;
}
.selection-image-placeholder {
    height: 190px;
    background-color: #171717;
    color: #F2EFE6;
}
.selection-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.selection-detail h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}
.selection-description {
    font-size: 16px;
    line-height: 1.5;
}
/* EXPANDED SELECTIONS ELEMENTS */
.selection-detail {
    border-top: 1px solid #171717;
    margin-top: 24px;
    padding: 24px 0px 0;
}
.selection-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.selection-detail-header h2 {
    margin: 0;
}
.selection-back {
    background: none;
    border: none;
    padding: 8px 0;
    color: #171717;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.selection-back .back-arrow {
    display: none;
}
.selection-back span {
    display: inline-block;
    font-size: 24px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}
.selection-back:hover span {
    transform: translateX(-4px);
}
.selection-albums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}
/* keeps inactive album grids hidden */
.selection-albums[hidden] {
    display: none;
}
.selection-album img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.selection-album {
    color: #171717;
    text-decoration: none;
    border-bottom: 1px solid #171717;
    padding-bottom: 12px;
    position: relative;
}
.selection-album::after {
    content: "→";
    position: absolute;
    right: 0;
    bottom: 12px;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.selection-album:hover::after {
    transform: translateX(4px);
}
.selection-album p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
}
.selection-album:hover p {
    text-decoration: underline;
}
.selection-album .album-artist {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 0;
}
.selection-album .album-title {
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    margin: 2px 0 0;
}
.selection-album .album-year {
    font-size: 14px;
    margin: 2px 0 0;
}


/* =========================
   RESPONSIVE DESIGN 
   ========================= */

/* Small screens */

@media (min-width: 901px) and (max-width: 1100px) {
    .collection-copy h1 {
        font-size: clamp(32px, 5vw, 48px);
    }
}

@media (max-width: 900px) {
    .roulette-layout {
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    header ul {
        column-gap: 8px;
        row-gap: 12px;
        padding-left: 0;
        flex-wrap: wrap;
    }
    .collection-copy h1,
    .catalog-copy h1,
    .collector-copy h1 {
    font-size: clamp(32px, 5vw, 48px);
    }
    /* HOME PAGE */
    .record-stack,
    .roulette-circle {
        display: none;
    }
    .roulette-feature {
        left: 0;
    }
    /* CATALOG PAGE */
    .catalog-main {
        padding: 24px;
    }
    .catalog-circle {
        display: none;
    }
    .table-scroll {
        max-width: 100%;
        overflow-x: auto;
    }
    .table-scroll table {
        min-width: 650px;
    }
    /* COLLECTION PAGE */
    .collection-main {
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        padding: 24px;
    }   
    .collection-stories {
        grid-column: 1;
        grid-row: auto;
    }
    .collection-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-items: center;
    }
    .stories-intro {
    width: 100%;
    }
    .stories-intro .section-label {
        width: 100%;
        box-sizing: border-box;
    }
    /* COLLECTOR PAGE */
    .collector-circle {
        display: none;
    }
    .collector-image {
        align-self: start;
    }
    .collector-main {
        padding: 24px;
    }
    /* SELECTIONS PAGE */
    .selections-annotation {
        position: static;
    }
    .selections-main {
        padding: 24px;
    }
}


@media (max-width: 600px) {
    /* HOME PAGE */
    .roulette-intro h1 {
        font-size: 52px;
    }
    .feature-cover {
        width: 75%;
        height: auto;
    }
    .feature-vinyl {
        width: 70%;
        height: auto;
        left: 35%;
    }
    /* CATALOG PAGE */
    .catalog-main {
        padding: 24px 0;
    }
    .filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }   
    .filters button {
        grid-column: 1 / -1;
    }  
    .collection-main {
        padding: 24px 0;
    }
    /* COLLECTOR PAGE */
    .collector-details {
        grid-template-columns: minmax(0, 1fr);
    }
    .collector-main {
        padding: 24px 0;
    }
    /* SELECTIONS PAGE */
    .selection-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .selections-main {
        padding: 24px 0;
    }
    .selection-card {
        width: 100%;
    }
    .selection-albums {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .selection-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .selection-back .back-hand {
        display: none;
    }
    .selection-back .back-arrow {
        display: inline-block;
    }
}