/*
 * Jachary — jachary.com
 * Version: 1.0.0
 * Author: Dennis de Groot / Okay, Sounds Great (okaysoundsgreat.com)
 * © 2026 Thankyouchef Records. All rights reserved.
 */

:root {
    --bg:          #f0ece3;
    --ink:         #1a1714;
    --ink-dim:     #7a7470;
    --accent:      #2C4A7C;
    --accent-dk:   #1e3560;
    --accent-lt:   #c2d0e8;
    --accent-text: #f0ece3;
    --serif:       'DM Serif Display', Georgia, serif;
    --sans:        'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono:        'DM Mono', 'Courier New', monospace;
    --photo-w:     42vw;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: var(--sans);
    font-weight: 300;
    background: var(--bg);
    color: var(--ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}


/* ─── CONTACT ────────────────────────────────────────────────────────────── */

.contact-wrap {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 100;
}

.contact-btn {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1c1c2e;
    background: none;
    border: none;
    border-bottom: 1px solid #1c1c2e;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.contact-btn:hover {
    color: var(--ink-dim);
    border-color: var(--ink-dim);
}

.contact-tray {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: flex;
    gap: 20px;
    align-items: center;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    white-space: nowrap;
}

/* Open state — toggled by JS adding class */
.contact-tray.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.social-icon {
    color: rgba(28, 28, 46, 0.75);
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}
.social-icon:hover {
    color: #c2d0e8;
    transform: translateY(-2px);
}

.icon-tidal-img {
    width: 16px; height: 16px; display: block;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
.social-icon:hover .icon-tidal-img { opacity: 1; }

.apple-img {
    width: 16px; height: 16px; display: block;
    /* muted terracotta at 0.7 opacity equivalent */
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
.social-icon:hover .apple-img {
    opacity: 1;
}


/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */

.layout {
    display: flex;
    min-height: 100vh;
}


/* ─── LEFT: PHOTO COLUMN ─────────────────────────────────────────────────── */

/*
 * overflow: visible is essential — the rotated .site-name extends
 * outside the column to the right and must not be clipped.
 * .photo-box clips the photo image only.
 */
.col-photo {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--photo-w);
    height: 100vh;
    overflow: visible;
    z-index: 10;
}

/* Clips only the photo */
.photo-box {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/*
 * Rotated name
 *
 * Sits inside .col-photo at z-index 2 (above .photo-box).
 * Since .col-photo has overflow:visible, the text is NOT clipped.
 *
 * position: absolute, bottom:0, right:0 — anchors the element
 * to the bottom-right corner of the photo column.
 *
 * transform-origin: bottom right — the rotation pivot is the
 * bottom-right corner of the text element.
 *
 * rotate(-90deg) — after rotation:
 *   • The left end of the text is at the bottom-right of the photo ✓
 *   • The right end is at the top-right of the photo ✓
 *   • Text reads upward along the right side of the photo ✓
 *
 * font-size in vh units so the text width (= height after rotation)
 * fills the full 100vh photo height.
 * "Jachary" in DM Serif Display ≈ 23vh per em to span 100vh.
 */
.site-name {
    /*
     * position: fixed, left: var(--photo-w) puts the LEFT edge of the
     * element at the photo's right boundary.
     * transform-origin: bottom left pivots rotation from bottom-left corner.
     * rotate(-90deg) swings text CCW — it now runs upward.
     *
     * To align the descender baseline with the photo right edge we
     * nudge left by the font's em height (≈ 1em = font-size = 23.5vh).
     * translateX(-1em) after rotation shifts along the new x-axis (= old y).
     * We use translateX on the transform to pull the text leftward so the
     * right side of the letterforms sits flush with the photo edge.
     *
     * Tweak the translateX value to taste.
     */
    position: fixed;
    bottom: 0;
    left: var(--photo-w);
    z-index: 15;
    pointer-events: none;

    font-family: var(--serif);
    font-weight: 400;
    font-style: normal;
    font-size: 23.5vh;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--bg);
    user-select: none;

    transform: rotate(-90deg) translateX(0em);
    transform-origin: bottom left;
}


/* ─── RIGHT: CONTENT COLUMN ──────────────────────────────────────────────── */

.col-content {
    margin-left: var(--photo-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 6vw 0;
    min-height: 100vh;
}

.releases-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6vh;
    width: 100%;
    max-width: 300px;
}


/* ─── RELEASE CARD ───────────────────────────────────────────────────────── */

/*
 * .release is the outermost hover target.
 * Hovering anywhere — cover, meta, or button — triggers vinyl + button state.
 */
.release {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Clickable stage — contains cover + vinyl */
.release-stage {
    position: relative;
    width: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Cover: 72% wide, centered with margin auto */
.release-cover {
    position: relative;
    z-index: 2;
    width: 72%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 2px 4px 18px rgba(0,0,0,0.14);
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
}
.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) contrast(1.04);
    transition: filter 0.3s ease;
}

/* Vinyl: same size as cover, absolute behind it */
.vinyl {
    position: absolute;
    top: 0;
    left: 14%;   /* mirrors cover centering: (100-72)/2 = 14 */
    width: 72%;
    aspect-ratio: 1 / 1;
    z-index: 1;
    transform: translateX(0);
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
}

/* Hover: whole card triggers both vinyl and cover */
.release:hover .vinyl         { transform: translateX(24%); }
.release:hover .release-cover { transform: translateX(-4%); }
.release:hover .release-cover img { filter: saturate(1) contrast(1.04); }

/* Disc CSS */
.vinyl-disc {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #0a0a0a 0%,  #191919 1.8%, #0c0c0c 2.8%,
        #1c1c1c 4.5%,#101010 5.5%, #181818 7%,
        #0b0b0b 8%,  #1a1a1a 9.5%, #0d0d0d 10.5%,
        #1e1e1e 12%, #0a0a0a 13%
    );
    box-shadow: inset 0 0 28px rgba(0,0,0,0.85), 3px 5px 22px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.vinyl-disc::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(
        from 190deg,
        transparent 0%, rgba(255,255,255,0.045) 12%,
        transparent 22%, rgba(255,255,255,0.02) 42%,
        transparent 52%, rgba(255,255,255,0.05) 68%,
        transparent 80%
    );
    pointer-events: none;
}
.vinyl-label {
    width: 26%; height: 26%; border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
.vinyl-label::after {
    content: ''; width: 14%; height: 14%;
    border-radius: 50%; background: var(--ink);
}

/* Meta */
.release-meta {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; text-align: center; width: 100%;
}
.release-title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1c1c2e;
}
.release-year {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
}

/* Button */
.listen-btn {
    font-family: var(--sans);
    font-weight: 400;
    display: block;
    width: 72%;
    font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; text-align: center;
    color: var(--accent-text);
    background: var(--accent);
    padding: 8px 0;
    border-radius: 40px;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.release:hover .listen-btn,
.listen-btn:hover { background: var(--accent-lt); color: var(--accent-dk); }


/* ─── COPYRIGHT ─────────────────────────────────────────────────────────── */

.site-footer {
    padding: 60px 6vw 28px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.copyright {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    text-align: center;
}


/* ─── MOBILE ─────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {

    .layout { flex-direction: column; }

    .col-photo {
        position: relative;
        width: 100%;
        height: 85vw;
        min-height: 300px;
        max-height: 500px;
        overflow: hidden;
    }

    .site-name {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        font-size: 30vw;
        transform: none;
        transform-origin: unset;
        padding: 50px 0 0px;
        text-align: center;
        background: linear-gradient(to top, rgba(26,23,20,0.55) 0%, transparent 100%);
        white-space: nowrap;
        color: var(--bg);
        z-index: 5;
        width: 100%;
        letter-spacing: -0.02em;
    }

    .col-content {
        margin-left: 0;
        min-height: auto;
        padding-top: 6vw;
    }

    /* Suppress external vinyl drop shadow on mobile, keep inset groove effect */
    .vinyl-disc {
        box-shadow: inset 0 0 28px rgba(0,0,0,0.85);
    }
    .release-cover {
        box-shadow: none;
    }

    /* Halve the icon tray margin */
    .contact-tray {
        top: calc(100% + 18px);
    }

    .contact-wrap {
        top: 18px;
        right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .release-cover, .vinyl, .release-cover img {
        transition: none !important; transform: none !important;
    }
}
