html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: #f7f2ea;
    color: #281f1a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

* {
    box-sizing: border-box;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.page,
main,
.content {
    min-height: 100vh;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.tnm-page {
    overflow-x: hidden;
}

.dmg-page {
    min-height: 100vh;
    background: #050505;
    color: #f7f2ea;
}

.dmg-hero {
    min-height: 78vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 72px);
    background: #000;
}

.dmg-hero img {
    width: min(1180px, 100%);
    max-height: 66vh;
    object-fit: contain;
}

.dmg-hero-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.projects {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 88px) 0;
}

.projects .section-heading {
    margin-bottom: 28px;
}

.projects h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(247, 242, 234, 0.18);
    border-radius: 8px;
    background: #12100f;
    color: #f7f2ea;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center;
}

.project-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 5vw, 56px);
}

.project-card h3 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.project-card p:not(.eyebrow) {
    max-width: 520px;
    margin-bottom: 32px;
    color: #d6c8b8;
    font-size: 1.12rem;
    line-height: 1.65;
}

.project-card span {
    width: fit-content;
    color: #1ed760;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.hero {
    min-height: 92vh;
    position: relative;
    display: grid;
    align-items: end;
    padding: clamp(24px, 5vw, 72px);
    isolation: isolate;
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(23, 18, 14, 0.82), rgba(23, 18, 14, 0.42) 48%, rgba(23, 18, 14, 0.12)),
        linear-gradient(0deg, rgba(23, 18, 14, 0.66), rgba(23, 18, 14, 0) 44%);
}

.hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-copy {
    width: min(680px, 100%);
    color: #fffaf2;
}

.eyebrow {
    margin: 0 0 12px;
    color: #b15f3f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f0b073;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    width: min(560px, 100%);
    margin-bottom: 28px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    background: #1ed760;
    color: #07150c;
}

.button.secondary {
    border: 1px solid rgba(255, 250, 242, 0.64);
    color: #fffaf2;
}

.intro,
.last-release,
.spotify-panel,
.songs {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 88px) 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
}

.intro h2,
.last-release h2,
.spotify-panel h2,
.songs h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: 0;
}

.intro > p {
    margin-bottom: 0;
    color: #5a463a;
    font-size: 1.1rem;
    line-height: 1.8;
}

.last-release {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    border-top: 1px solid rgba(40, 31, 26, 0.16);
}

.release-details {
    display: grid;
    gap: 22px;
    justify-items: start;
}

.release-details p {
    margin-bottom: 0;
    color: #5a463a;
    font-size: 1.1rem;
    line-height: 1.8;
}

.spotify-panel {
    display: grid;
    gap: 22px;
    border-top: 1px solid rgba(40, 31, 26, 0.16);
}

.spotify-panel iframe {
    display: block;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(40, 31, 26, 0.16);
}

.songs {
    border-top: 1px solid rgba(40, 31, 26, 0.16);
}

.section-heading {
    margin-bottom: 28px;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.song-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border: 1px solid rgba(40, 31, 26, 0.14);
    border-radius: 8px;
    background: #fffaf2;
}

.song-length {
    display: inline-flex;
    margin-bottom: 18px;
    color: #7f6a5c;
    font-size: 0.88rem;
    font-weight: 800;
}

.song-card h3 {
    margin-bottom: 10px;
    color: #2f221a;
    font-size: 1.32rem;
    line-height: 1.12;
}

.song-card p {
    margin-bottom: 0;
    color: #6b5447;
    line-height: 1.55;
}

.song-card a {
    font-weight: 800;
    color: #176b39;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

@media (max-width: 980px) {
    .song-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dmg-hero {
        min-height: 64vh;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card img {
        min-height: 320px;
    }

    .hero {
        min-height: 88vh;
        padding: 22px;
    }

    .hero::after {
        background:
            linear-gradient(0deg, rgba(23, 18, 14, 0.82), rgba(23, 18, 14, 0.22) 75%),
            linear-gradient(90deg, rgba(23, 18, 14, 0.5), rgba(23, 18, 14, 0));
    }

    .hero img {
        object-position: center top;
    }

    .intro {
        grid-template-columns: 1fr;
    }

    .last-release {
        grid-template-columns: 1fr;
    }

    .song-grid {
        grid-template-columns: 1fr;
    }

    .song-card {
        min-height: 210px;
    }
}
