/* ==============================
   DESIGN TOKENS & RESET 
   ============================== */
:root {
    --almost-black: #090B0D;
    --almost-white: #d1d1d1;
    --white: #FFFFFF;
    --muted-grey: #828282;
    --sea-blue: #6CB4EE;
    --sea-blue-dark: #377299;
    --font-header: 'Bebas Neue', cursive;
    --font-body: 'Heebo', sans-serif;
    --font-quote: 'Walter Turncoat', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--almost-black);
    color: var(--almost-white);
    font-family: var(--font-body);
    font-weight: 300;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

section {
    margin: 0 auto;
    max-width: 1200px;
    padding: 80px 5%;
}

h1,
h2,
h3 {
    font-family: var(--font-header);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    border-bottom: 2px solid var(--almost-white);
    color: var(--almost-white);
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

p {
    color: var(--almost-white);
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    color: var(--sea-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus-visible {
    color: var(--sea-blue-dark);
}

a:focus-visible {
    outline: 2px solid var(--almost-white);
    outline-offset: 4px;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
    background-color: var(--almost-black);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--almost-black);
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 5%;
    width: 100%;
}

.site-header .band-name {
    color: var(--almost-white);
    font-family: var(--font-header);
    font-size: 1.8rem;
    letter-spacing: 3px;
}

.site-header nav a {
    color: var(--sea-blue);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 25px;
    text-transform: uppercase;
}

.site-header nav a:hover {
    color: var(--sea-blue-dark);
}




/* ==============================
   HERO
   ============================== */
#hero {
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero/hero2.jpg');
    background-position: center;
    background-size: cover;
    display: flex;
    height: 100vh;
    justify-content: center;
    max-width: none;
    min-height: 500px;
    padding: 0;
    text-align: center;
}

.hero__headline {
    color: var(--white);
    text-align: center;
}

.hero__headline-line {
    display: block;
}

.hero__highlight {
    text-decoration: underline;
    text-transform: uppercase;
}

/* ==============================
   MUSIC / ALBUM CARDS
   ============================== */
.albums-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    perspective: 1000px;
}

.albums-grid:not(.lore-grid) {
    margin: 0 auto;
    width: 100%;
}

.lore-grid {
    margin: 0 auto;
    max-width: calc((clamp(280px, 30vw, 360px) * 2) + 32px);
    width: 100%;
}

.lore__tagline {
    color: var(--sea-blue);
    font-size: 1.25rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.flip-card {
    aspect-ratio: 1 / 1;
    background: none;
    border: none;
    cursor: pointer;
    max-width: 500px;
    width: 100%;
    perspective: 1200px;
}

.flip-card-inner {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    width: 100%;
}

.flip-card:focus-visible {
    outline: 3px solid var(--almost-white);
    outline-offset: 8px;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

@keyframes cardPeek {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(30deg); }
    100% { transform: rotateY(0deg); }
}

.flip-card.peek .flip-card-inner {
    animation: cardPeek 480ms ease-in-out;
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
    height: 100%;
    position: absolute;
    width: 100%;
}

.flip-card-front img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .flip-card:not(.is-flipped):hover .flip-card-inner {
        transform: rotateY(30deg);
    }
}

.album-card-back {
    background: var(--white);
    border: 1px solid var(--almost-black);
    color: var(--almost-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transform: rotateY(180deg);
}

/* Close button on card backs (album + lore) */
.flip-card-back .album-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted-grey);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 999px;
}

.flip-card-back .album-close:hover,
.flip-card-back .album-close:focus-visible {
    color: var(--almost-black);
    outline: 2px solid var(--almost-black);
    outline-offset: 2px;
}

.album-card-back h3,
.album-card-back h4 {
    border-bottom: 1px solid var(--almost-black);
    color: var(--almost-black);
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.album-card-back ol {
    list-style: none;
    overflow-y: auto;
    padding: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.album-card-back li + li {
    border-top: 1px solid var(--almost-white);
}

.track-button {
    align-items: center;
    background: none;
    border: none;
    border-radius: 2px;
    color: inherit;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    gap: 10px;
    justify-content: flex-start;
    padding: 12px 10px 8px;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
}

.track-button:hover,
.track-button:focus-visible {
    background-color: var(--almost-white);
    color: var(--almost-black);
}

.track-button:focus-visible {
    outline: 2px solid var(--almost-white);
    outline-offset: 0;
}

.track-info {
    align-items: center;
    display: flex;
    gap: 6px;
    width: 100%;
}

.track-title {
    flex: 1;
    font-weight: 400;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0; /* allow flex child to shrink for ellipsis */
}

/* Highlight currently playing track title */
.track-button.is-playing .track-title {
    color: var(--sea-blue-dark);
    font-weight: 700;
}

.track-icon {
    align-items: flex-end;
    display: inline-flex;
    height: 8px;
    justify-content: center;
    margin-right: 4px;
    opacity: 0.65;
    position: relative;
    transition: opacity 0.2s ease;
    width: 22px;
}

.track-icon::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    opacity: 0.9;
    pointer-events: none;
}

.track-wave {
    align-items: flex-end;
    display: none;
    gap: 2px;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}

.track-wave span {
    animation: trackWave 1.05s ease-in-out infinite;
    animation-delay: calc(var(--wave-index, 0) * 0.07s);
    animation-play-state: paused;
    background: rgba(140, 138, 128, 0.3);
    border-radius: 999px;
    height: 100%;
    transform-origin: bottom center;
    transform: scaleY(var(--wave-rest, 0.35));
    width: 3px;
}

.track-button.is-active .track-icon {
    opacity: 1;
}

.track-button.is-active .track-icon::before {
    display: none;
}

.track-button.is-active .track-wave {
    display: flex;
}

.track-button.is-active .track-wave span {
    background: rgba(191, 186, 168, 0.85);
}

.track-button.is-playing .track-wave span {
    animation-play-state: running;
}
.track-button[aria-pressed="true"] {
    background-color: rgba(191, 186, 168, 0.25);
}

/* ==============================
   LORE CARDS
   ============================== */
.lore-card-front {
    overflow: hidden;
}

.lore-card-front,
.lore-card-front::after {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.lore-card-front img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.lore-card-front::after {
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(9, 11, 13, 0.85) 0%, rgba(9, 11, 13, 0.45) 70%, rgba(9, 11, 13, 0) 100%);
    color: var(--white);
    content: attr(data-nickname);
    display: flex;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    height: 33%;
    inset: auto 0 0;
    justify-content: center;
    letter-spacing: 3px;
    padding: 12px 16px;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

.lore-card-back {
    background: var(--white);
    border: 1px solid var(--almost-black);
    color: var(--almost-black);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 20px;
    transform: rotateY(180deg);
}
.lore-card-role {
    display: block;
    font-weight: 600;
    text-align: center;
    color: var(--sea-blue);
}

.lore-card-back h4 {
    border-bottom: 1px solid var(--almost-black);
    color: var(--almost-black);
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.lore-card-back p {
    color: var(--almost-black);
}

.buy-button {
    background-color: var(--almost-white);
    border-radius: 4px;
    color: var(--almost-black);
    display: block;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.buy-button:hover,
.buy-button:focus-visible {
    background-color: var(--almost-black);
    color: var(--almost-white);
}

@keyframes trackWave {
    0%,
    100% {
        transform: scaleY(var(--wave-rest, 0.35));
    }
    45% {
        transform: scaleY(var(--wave-peak, 1));
    }
    70% {
        transform: scaleY(var(--wave-mid, 0.6));
    }
}

/* ==============================
   VIDEOS
   ============================== */
#videos {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.videos-grid {
    display: grid;
    gap: 24px;
}

.videos-placeholder {
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--muted-grey);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
}

.spinner {
    animation: spin 1s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top-color: var(--almost-white);
    height: 36px;
    width: 36px;
}

.video-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card a {
    color: inherit;
    display: block;
    height: 100%;
}

.video-card:hover,
.video-card:focus-within {
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-6px);
}

.video-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.video-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.video-card:hover .video-thumb img,
.video-card:focus-within .video-thumb img {
    transform: scale(1.05);
}

.video-thumb::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.video-thumb-overlay {
    align-items: center;
    color: var(--white);
    display: flex;
    font-size: 2.5rem;
    inset: 0;
    justify-content: center;
    opacity: 0.85;
    pointer-events: none;
    position: absolute;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
}

.video-meta h3 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin: 0;
    text-transform: none;
}

.video-meta p {
    color: var(--muted-grey);
    font-size: 0.9rem;
    margin: 0;
}

.videos-error,
.videos-noscript {
    color: var(--muted-grey);
}

.videos-grid--embed {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-inline: auto;
    width: 100%;
}

.videos-grid--embed iframe {
    aspect-ratio: 16 / 9;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 12px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    height: auto;
    width: clamp(320px, 90vw, 853px);
}

.videos-embed-note {
    color: var(--muted-grey);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==============================
   FORMS (generic/minimal)
   ============================== */
/* Center the mailing list form at 50% width */

#mailinglist {
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero/hero1.jpg');
    background-position: center;
    background-size: cover;
    display: flex;
    height: 100vh;
    justify-content: center;
    max-width: none;
    min-height: 500px;
    padding: 0;
    text-align: center;
}

form {
    width: 35%;
    min-width: 360px;
    margin: 0 auto;
    text-align: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: var(--sea-blue);
    color: var(--almost-black);
}

form p{
    color: var(--almost-black);
    padding-top; 1remx;
    margin-bottom: 1rem;
}


form h1 {
    color: var(--almost-black);
    border-bottom: 2px solid var(--almost-black);
}

form h2 {
    color: var(--almost-black);
    margin-bottom: 0px;
    border-bottom: 2px solid var(--almost-black);
}

form h3 {
    color: var(--almost-black);
    padding: 5px 0 5px 0;
    border-bottom: 2px solid var(--almost-black);
}

form h4 {
    padding: 30px 0 30px 0;
    color: var(--almost-black);
}

/* Space inputs and make them full width */
input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid  var(--almost-black);
    background: var(--sea-blue);
    color: var(--almost-black);
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: 2px solid var(--almost-black);
    outline-offset: 2px;
    border-color: var(--almost-black);
    color: var(--almost-black);
}
::placeholder {
  color: var(--almost-black); /* Example: a light gray color */
  opacity: 1; /* Ensure full opacity in Firefox */
}


/* Checkbox line alignment */
input[type="checkbox"] {
    margin-right: 8px;
    display: none;
}

/* Submit button minimal styling */
input[type="submit"] {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: var(--almost-black);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
}

input[type="submit"]:hover,
input[type="submit"]:focus-visible {
    background: var(--sea-blue-dark);
    color: var(--white);
}

/* ==============================
   UPDATES
   ============================== */
#updates #updates-feed {
    max-height: clamp(340px, 52vh, 560px);
    overflow: auto;
    padding-right: 6px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

#updates #updates-feed .updates-fade-top,
#updates #updates-feed .updates-fade-bottom {
    background-position: top, center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 48px, 20px 20px;
    display: block;
    height: 48px;
    opacity: 0;
    pointer-events: none;
    position: sticky;
    transition: opacity 0.2s ease;
    z-index: 10;
}

#updates #updates-feed .updates-fade-top {
    background-image:
        linear-gradient(180deg, rgba(9, 11, 13, 0.82), rgba(9, 11, 13, 0)),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236CB4EE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 10 12 16 18 10'/></svg>");
    background-position: top, center 12px;
    margin-bottom: -48px;
    top: 0;
}

#updates #updates-feed .updates-fade-bottom {
    background-image:
        linear-gradient(0deg, rgba(9, 11, 13, 0.82), rgba(9, 11, 13, 0)),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236CB4EE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 14 12 8 18 14'/></svg>");
    background-position: bottom, center 32px;
    bottom: 0;
    margin-top: -48px;
}

#updates #updates-feed.is-scrollable.has-up .updates-fade-top {
    opacity: 1;
}

#updates #updates-feed.is-scrollable.has-down .updates-fade-bottom {
    opacity: 1;
}

.update-post {
    border-left: 2px solid var(--almost-white);
    margin-bottom: 40px;
    padding-left: 20px;
}

.update-post .date {
    color: var(--almost-white);
    font-style: italic;
    margin-bottom: 5px;
}

#updates .update-post h3 {
    color: var(--sea-blue);
}

#updates .update-body a {
    color: var(--sea-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#updates .update-body a:hover,
#updates .update-body a:focus-visible {
    color: var(--sea-blue-dark);
}

/* ==============================
   OPEN LETTER
   ============================== */
.open-letter {
    background: linear-gradient(180deg, #ffffff, #fbfbf7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    color: var(--almost-black);
    margin: 30px auto;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
}

.open-letter::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 60%);
    content: '';
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
}

.open-letter__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 28px 14px;
    position: relative;
    z-index: 1;
}

.open-letter__eyebrow {
    color: var(--sea-blue);
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.open-letter__header h3 {
    color: var(--almost-black);
    font-family: var(--font-quote);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.open-letter__content {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
    padding: 24px 28px 28px;
}

.open-letter__body {
    font-family: var(--font-quote);
    font-size: 1.06rem;
    line-height: 1.85;
}

.open-letter__body p {
    color: var(--almost-black);
    margin: 0 0 1.1rem;
}

.open-letter__body .lead::first-letter {
    color: var(--almost-black);
    float: left;
    font-family: var(--font-header);
    font-size: 3.2rem;
    line-height: 1;
    margin-top: 4px;
    padding-right: 8px;
}

.open-letter__signoff {
    font-weight: 400;
    margin-top: 10px;
    text-align: right;
}

.open-letter__aside {
    align-self: start;
}

.open-letter__author {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.open-letter__author img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    height: 280px;
    object-fit: cover;
    width: 280px;
}

.open-letter__author figcaption {
    color: var(--almost-black);
    font-family: var(--font-header);
    letter-spacing: 1px;
}

.open-letter__author-bio {
    color: #4a4a4a;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==============================
   MERCH
   ============================== */
.merch-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.merch-item {
    background-color: var(--white);
    border: 1px solid var(--almost-black);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch-item:hover,
.merch-item:focus-visible {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.merch-item img {
    border: 1px solid var(--almost-black);
    margin-bottom: 10px;
}

.merch-item span {
    color: var(--almost-black);
    font-weight: 400;
}

/* ==============================
   SOCIAL
   ============================== */
#social {
    text-align: center;
}

.social__lead {
    color: var(--muted-grey);
    margin: 0 auto 24px;
    max-width: 60ch;
    text-align: center;
}

.social-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a {
    color: var(--sea-blue);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    color: var(--sea-blue);
    transform: scale(1.1);
}

.social-icons svg {
    fill: currentColor;
    height: 30px;
    width: 30px;
}

.social-icons i.fab {
    font-size: 28px;
    line-height: 1;
}

/* ==============================
   FOOTER
   ============================== */
footer {
    border-top: 1px solid var(--almost-white);
    padding: 40px 5%;
    text-align: center;
}

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 850px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .site-header .band-name {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .site-header nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .site-header nav a {
        font-size: 0.9rem;
        margin: 0 5px;
    }
}

@media (min-width: 640px) {
    .albums-grid {
        gap: 32px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .albums-grid:not(.lore-grid) {
        width: 100%;
        max-width: none;
    }

    .videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 850px) {
    /* Limit lore cards only; albums should flex with grid */
    .lore-card {
        max-width: clamp(280px, 30vw, 360px);
    }
}

@media (min-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .open-letter__content {
        gap: 38px;
        grid-template-columns: 3fr 1fr;
    }

    .open-letter__aside {
        position: sticky;
        top: 90px;
    }
}

@media (min-width: 1024px) {
    .albums-grid:not(.lore-grid) {
        /* Three equal tracks that fill the section width */
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: stretch;
        width: 100%;
    }

    /* If only two albums exist, use two equal columns */
    .albums-grid:not(.lore-grid):has(> :nth-child(2)):not(:has(> :nth-child(3))) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* If only one album exists, use a single full-width column */
    .albums-grid:not(.lore-grid):has(> :only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Ensure a single album centers between 640px and 1023px */
@media (min-width: 640px) and (max-width: 1023.98px) {
    .albums-grid:not(.lore-grid):has(> :only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Center a single album card horizontally at all sizes */
.albums-grid:not(.lore-grid):has(> :only-child) {
    justify-items: center;
}

/* ==============================
   Smart Link styles 
   ============================== */
/* append near the end of assets/styles/styles.css */
.smartlink-body {
    background-color: var(--almost-black);
    color: var(--almost-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 60px);
    position: relative;
    overflow-x: hidden;
}

.smartlink-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.smartlink-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 11, 13, 0.72);
}

.smartlink-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(38px) saturate(1.15);
    transform: scale(1.12);
}

.smartlink-main {
    width: min(460px, 100%);
    z-index: 1;
}

.smartlink-header {
    text-align: center;
    margin-bottom: 28px;
}

.smartlink-brand {
    font-family: var(--font-header);
    letter-spacing: 4px;
    color: var(--white);
    font-size: 1.3rem;
}

.smartlink-release-meta {
    margin-top: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.smartlink-content {
    background: rgba(17, 23, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    backdrop-filter: blur(14px);
    padding: clamp(24px, 5vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 6vw, 32px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.smartlink-card-wrap {
    text-align: center;
}

.smartlink-card-wrap h1 {
    border: none;
    padding: 0;
    margin: 0 0 0px;
    font-size: clamp(2.2rem, 6vw, 2.6rem);
    color: var(--sea-blue)
}

.smartlink-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
}

.smartlink-album-grid {
    gap: 0;
    margin: 0 auto;
    max-width: min(420px, 100%);
    justify-items: center;
}

.smartlink-card-wrap .flip-card {
    margin: 0 auto;
}

.smartlink-body .flip-card-front {
    inset: 0;
}

.smartlink-body .flip-card-front::before,
.smartlink-body .flip-card-front::after {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.smartlink-body .flip-card-front::before {
    content: "";
    width: clamp(96px, 32%, 148px);
    height: clamp(96px, 32%, 148px);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.smartlink-body .flip-card-front::after {
    content: "";
    transform: translate(-40%, -50%);
    border-left: clamp(28px, 8vw, 44px) solid rgba(255, 255, 255, 0.88);
    border-top: clamp(18px, 5.5vw, 32px) solid transparent;
    border-bottom: clamp(18px, 5.5vw, 32px) solid transparent;
    z-index: 3;
}

.smartlink-body .flip-card:hover .flip-card-front::before,
.smartlink-body .flip-card:focus-visible .flip-card-front::before,
.smartlink-body .flip-card:hover .flip-card-front::after,
.smartlink-body .flip-card:focus-visible .flip-card-front::after {
    opacity: 0.95;
}

.smartlink-card-wrap .flip-card-inner,
.smartlink-card-wrap .album-card-front,
.smartlink-card-wrap .album-card-back {
    border-radius: 0px;
}

.smartlink-actions {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 5vw, 24px);
}

.smartlink-group {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.smartlink-group h2,
.smartlink-group h3 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--almost-white);
}

.smartlink-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smartlink-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--almost-white);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.smartlink-button:hover,
.smartlink-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--white);
}

.smartlink-button__primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.smartlink-button__cta {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
}

.smartlink-button--primary {
    background: var(--sea-blue);
    color: var(--almost-black);
    border-color: transparent;
}

.smartlink-button--primary:hover,
.smartlink-button--primary:focus-visible {
    background: var(--sea-blue-dark);
    color: var(--white);
}

.brand-spotify,
.brand-apple,
.brand-youtube,
.brand-amazon,
.brand-deezer,
.brand-tidal,
.brand-soundcloud,
.brand-bandcamp,
.brand-pandora,
.brand-qobuz {
    color: var(--white);
}

.brand-spotify {
    background: linear-gradient(135deg, #1db954, #148b3f);
    border: none;
}

.brand-apple {
    background: linear-gradient(135deg, #8e9aa6, #3d4651);
    border: none;
}

.brand-youtube {
    background: linear-gradient(135deg, #ff3d3d, #ba0000);
    border: none;
}

.brand-amazon {
    background: linear-gradient(135deg, #2f4c6f, #1c2b3f);
    border: none;
}

.brand-deezer {
    background: linear-gradient(135deg, #ff0066, #2d00f7);
    border: none;
}

.brand-tidal {
    background: linear-gradient(135deg, #0f6b7d, #013a51);
    border: none;
}

.brand-soundcloud {
    background: linear-gradient(135deg, #ff8800, #ff5500);
    border: none;
}

.brand-bandcamp {
    background: linear-gradient(135deg, #1cb5c9, #167a87);
    border: none;
}

.brand-pandora {
    background: linear-gradient(135deg, #0060ff, #002f9f);
    border: none;
}

.brand-qobuz {
    background: linear-gradient(135deg, #3a6073, #1b2f3f);
    border: none;
}

.brand-spotify .smartlink-button__cta,
.brand-apple .smartlink-button__cta,
.brand-youtube .smartlink-button__cta,
.brand-amazon .smartlink-button__cta,
.brand-deezer .smartlink-button__cta,
.brand-tidal .smartlink-button__cta,
.brand-soundcloud .smartlink-button__cta,
.brand-bandcamp .smartlink-button__cta,
.brand-pandora .smartlink-button__cta,
.brand-qobuz .smartlink-button__cta {
    color: rgba(255, 255, 255, 0.8);
}

.smartlink-group__hint {
    margin: 4px 0 18px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.smartlink-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.smartlink-social-icon {
    --icon-size: 44px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: var(--white);
    display: inline-flex;
    flex: 0 0 var(--icon-size);
    font-size: 1.15rem;
    height: var(--icon-size);
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    width: var(--icon-size);
}

.smartlink-social-icon:hover,
.smartlink-social-icon:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px) scale(1.05);
}

.smartlink-mailinglist-form {
    background: none;
    border: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    width: 100%;
    color: inherit;
    text-align: left;
}

.smartlink-mailinglist-form > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smartlink-mailinglist-form p {
    color: var(--sea-blue)
}

.smartlink-mailinglist-form__fields {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px;
}

.smartlink-mailinglist-form__fields input[type="email"] {
    background: transparent;
    border: none;
    color: var(--white);
    flex: 1;
    font-size: 0.95rem;
    padding: 10px 14px;
}

.smartlink-mailinglist-form__fields input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.smartlink-mailinglist-form__fields input[type="email"]:focus {
    outline: none;
}

.smartlink-mailinglist-form__fields input[type="email"]:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.smartlink-mailinglist-form__fields button {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
    background: var(--sea-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.smartlink-mailinglist-form__fields button:hover,
.smartlink-mailinglist-form__fields button:focus-visible {
    background: var(--sea-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.smartlink-mailinglist-note {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.smartlink-fineprint {
    font-size: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 600px) {
    .smartlink-main {
        width: min(520px, 100%);
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .smartlink-body {
        display: block;
        padding: 0;
        min-height: 100dvh;
    }

    .smartlink-background {
        display: none;
    }

    .smartlink-main {
        width: 100%;
        min-height: 100dvh;
    }

    .smartlink-content {
        border-radius: 0;
    }
}
