/* boypersia — home */

:root {
    --black: #000000;
    --red: #f2001c;
    --white: #ffffff;
    --ash: #8a8a8a;
    --rule: #262626;
    --hot: #ff1238;
    --pink: #ff2fa0;
    --pad: clamp(16px, 4vw, 48px);
    --ep: clamp(3rem, 6.2vw, 7.6rem);
    --fell: "IM Fell English SC", "IM Fell English", Georgia, serif;
    --fell-i: "IM Fell English", Georgia, serif;
    --times: "Tinos", "Times New Roman", Times, serif;
}

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

html { background: var(--black); scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--times);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* film grain over everything */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: .09;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── top ─────────────────────────────── */
.top {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px var(--pad);
    font-size: 15px;
}
.top-name {
    font-family: var(--fell);
    font-size: 19px;
    letter-spacing: .08em;
}
.top-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.top-nav a { color: var(--ash); transition: color .15s; }
.top-nav a:hover { color: var(--white); }

/* ── hero ────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 4.5vw, 80px);
    padding: 76px calc(var(--pad) + 56px) 64px;
    overflow: hidden;
}

.cover {
    position: relative;
    flex: none;
    width: min(calc(100svh - 170px), 42vw);
    aspect-ratio: 1;
    animation: open 1.5s cubic-bezier(.7, 0, .2, 1) both;
}
.cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* the disc on the artwork, cut out so it can spin in place */
.disc {
    position: absolute;
    inset: 0;
    clip-path: circle(34% at 49.3% 48.8%);
    transform-origin: 49.3% 48.8%;
    will-change: transform;
}

.hero-type { position: relative; z-index: 2; }

.hero-star {
    display: block;
    width: clamp(36px, 3.4vw, 54px);
    aspect-ratio: 1;
    margin-bottom: clamp(18px, 2.4vw, 32px);
    color: var(--hot);
    animation: fade .8s ease 1.2s both, spin 70s linear infinite;
}

.ep {
    font-family: var(--fell);
    font-weight: 400;
    font-size: var(--ep);
    line-height: .9;
    letter-spacing: .03em;
    color: var(--hot);
    text-shadow: 0 0 .05em var(--pink), 0 0 .35em rgba(255, 0, 90, .35);
    filter: url(#warp);
}
.ep-line { display: block; animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; }
.ep-line:nth-child(1) { animation-delay: .7s; }
.ep-line:nth-child(2) { animation-delay: .82s; }

.hero-act {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: clamp(24px, 3vw, 40px);
    animation: fade .8s ease 1.15s both;
}

.presave {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--fell);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    letter-spacing: .14em;
    padding: .7em 2.2em .75em;
    transition: background .15s, color .15s;
}
.presave:hover { background: var(--white); color: var(--black); }

.date {
    font-family: var(--fell-i);
    font-style: italic;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.count {
    position: absolute;
    left: var(--pad);
    bottom: 22px;
    font-size: 14px;
    font-style: italic;
    color: var(--ash);
    font-feature-settings: "tnum";
}

.edge {
    position: absolute;
    top: 50%;
    font-family: var(--fell);
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 1;
    color: var(--hot);
    white-space: nowrap;
    letter-spacing: .12em;
}
.edge-l { left: var(--pad); transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }

/* ── photo band ──────────────────────── */
.band {
    position: relative;
    height: min(88svh, 900px);
    overflow: hidden;
}
.band-credit {
    position: absolute;
    right: var(--pad);
    bottom: 18px;
    font-style: italic;
    font-size: 14px;
    color: rgba(0, 0, 0, .75);
}
.band-credit a {
    font-family: var(--fell);
    font-style: normal;
    letter-spacing: .06em;
    color: #000;
    transition: color .15s;
}
.band-credit a:hover { color: var(--white); }
.band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
}

/* ── back of the case ────────────────── */
.back {
    padding: clamp(64px, 10vw, 140px) var(--pad) clamp(96px, 12vw, 160px);
}
.case {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid #2b2b2b;
    background: #030303;
}
/* plastic sheen across the jewel case */
.case::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.035) 46%, rgba(255,255,255,.01) 52%, transparent 60%);
}

.spine {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-family: var(--fell);
    font-size: 15px;
    letter-spacing: .22em;
    white-space: nowrap;
    color: var(--white);
}
.spine span { color: var(--hot); margin: .8em 0; }
.spine-l { border-right: 1px solid #2b2b2b; transform: rotate(180deg); }
.spine-r { border-left: 1px solid #2b2b2b; }

.tray { padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(24px, 3.5vw, 40px); min-width: 0; }

.tray-title {
    font-family: var(--fell);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: .08em;
    text-align: center;
    color: var(--hot);
    text-shadow: 0 0 .05em var(--pink), 0 0 .35em rgba(255, 0, 90, .3);
    filter: url(#warp);
    margin-bottom: clamp(32px, 5vw, 60px);
}

.tray-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 72px);
}
.side { min-width: 0; }
.side-h {
    font-family: var(--fell-i);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1;
    color: var(--hot);
    margin-bottom: 14px;
}

.lines { list-style: none; }
.lines li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
}
.l-main {
    font-family: var(--fell);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: .04em;
    white-space: nowrap;
}
.l-sub { font-style: italic; color: var(--ash); white-space: nowrap; }
.l-end {
    margin-left: auto;
    padding-left: 12px;
    white-space: nowrap;
}
a.l-end { transition: color .15s; }
a.l-end:hover { color: var(--hot); }

.list-form {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #3a3a3a;
}
.list-form:focus-within { border-bottom-color: var(--white); }
.list-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--white);
    font-family: var(--fell);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    letter-spacing: .04em;
    padding: 9px 0;
    outline: none;
}
.list-form input::placeholder { color: #4a4a4a; }
.list-form button {
    background: transparent;
    border: 0;
    color: var(--white);
    font: inherit;
    padding: 0 0 0 16px;
    cursor: pointer;
    transition: color .15s;
}
.list-form button:hover { color: var(--hot); }
.list-form.done input { color: var(--ash); }

.credits {
    margin-top: clamp(44px, 6vw, 72px);
    text-align: center;
    font-family: var(--fell-i);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ash);
}

.tray-foot {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 12px 32px;
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: 22px;
    border-top: 1px solid #1e1e1e;
}
.barcode { width: 128px; height: 40px; grid-row: span 2; background: var(--white); fill: #000; padding: 4px 6px; box-sizing: content-box; }
.tray-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.tray-links a { color: var(--white); transition: color .15s; }
.tray-links a:hover { color: var(--hot); }
.legal { grid-column: 2; font-size: 11px; line-height: 1.5; color: #6a6a6a; max-width: 60ch; }
.tray-star { grid-column: 3; grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--hot); align-self: center; }

/* ── dock (appears once hero is gone) ── */
.dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--pad);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--black);
    border-top: 1px solid var(--rule);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.2, .7, .1, 1);
}
.dock.on { transform: none; }
.dock-title {
    font-family: var(--fell);
    font-size: 1.2rem;
    letter-spacing: .06em;
    color: var(--hot);
}
.dock-btn {
    background: var(--red);
    color: var(--white);
    font-family: var(--fell);
    letter-spacing: .14em;
    font-size: 1.05rem;
    padding: .5em 1.6em .55em;
    transition: background .15s, color .15s;
}
.dock-btn:hover { background: var(--white); color: var(--black); }

/* ── motion ──────────────────────────── */
/* opens from the centre of the disc */
@keyframes open {
    from { clip-path: circle(0% at 49.3% 48.8%); }
    to   { clip-path: circle(75% at 49.3% 48.8%); }
}
@keyframes rise {
    from { transform: translateY(40%); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ── small screens ───────────────────── */
@media (max-width: 760px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        min-height: 0;
        padding: 58px 0 28px;
    }
    .cover { width: 100%; }
    .hero-type { padding: 22px var(--pad) 0; text-align: center; }
    .hero-star { display: none; }
    .ep { font-size: 13.6vw; }
    .hero-act { flex-direction: column; gap: 14px; margin-top: 22px; }
    .presave { display: block; width: 100%; padding: .8em 1em .85em; }
    .edge { display: none; }
    .count { position: static; text-align: center; margin-top: 12px; }
    .band { height: 115vw; }
    .top-nav a { color: var(--white); }

    .case { grid-template-columns: 1fr; }
    .spine { writing-mode: horizontal-tb; transform: none; padding: 10px 0; font-size: 12px; }
    .spine span { margin: 0 .8em; }
    .spine-l { border-right: 0; border-bottom: 1px solid #2b2b2b; }
    .spine-r { border-left: 0; border-top: 1px solid #2b2b2b; }
    .tray-grid { grid-template-columns: minmax(0, 1fr); }
    .l-main { white-space: normal; }
    .lines li { flex-wrap: wrap; }
    .tray-foot { grid-template-columns: auto 1fr; }
    .barcode { grid-row: auto; }
    .tray-links, .legal { grid-column: 1 / -1; }
    .tray-star { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* ═══ v10 additions ═══════════════════════════════════ */

/* snippet: a small play mark sits in the disc's centre hole */
.disc-hole {
    position: absolute;
    left: 49.3%; top: 48.8%;
    width: 7%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: none;
    pointer-events: none;
}
.cover.has-snippet { cursor: pointer; }
.cover.has-snippet .disc-hole { display: block; }
.disc-hole::before {
    content: "";
    position: absolute;
    left: 54%; top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: .45em 0 .45em .75em;
    border-color: transparent transparent transparent var(--hot);
    font-size: clamp(9px, 1vw, 14px);
    transition: opacity .2s;
}
.cover.playing .disc-hole::before {
    width: .7em; height: .9em;
    border: 0;
    border-left: .24em solid var(--hot);
    border-right: .24em solid var(--hot);
    left: 50%;
}
.cover.has-snippet:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; }

/* release day */
.listen-embed { margin-top: 28px; width: min(460px, 100%); }
.listen-embed iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }
.is-out .date { color: var(--hot); }

/* small line forms (email list, city requests) */
.line-form {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #3a3a3a;
}
.line-form:focus-within { border-bottom-color: var(--white); }
.line-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--white);
    font-family: var(--fell);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    letter-spacing: .04em;
    padding: 9px 0;
    outline: none;
}
.line-form input::placeholder { color: #4a4a4a; }
.line-form button {
    background: transparent;
    border: 0;
    color: var(--white);
    font: inherit;
    padding: 0 0 0 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s;
}
.line-form button:hover { color: var(--hot); }
.line-form.done input::placeholder { color: var(--ash); font-style: italic; }
.side .line-form:not(.list-form) { margin-top: 14px; }

/* wallpapers */
.side-wide { grid-column: 1 / -1; }
.walls {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: clamp(14px, 2.4vw, 28px);
}
.walls a { display: grid; gap: 8px; }
.walls img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 323 / 699;
    object-fit: cover;
    border: 1px solid #2b2b2b;
    transition: border-color .15s, transform .25s cubic-bezier(.2, .7, .1, 1);
}
.walls a:hover img, .walls a:focus-visible img { border-color: var(--hot); transform: translateY(-4px); }
.walls span { font-style: italic; color: var(--ash); font-size: 15px; }
.walls a:hover span { color: var(--white); }

/* sheets (share card, secret) */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .86);
    opacity: 0;
    transition: opacity .25s;
}
.sheet[hidden] { display: none; }
.sheet.on { opacity: 1; }
.sheet-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
    width: min(560px, 100%);
    padding: 32px;
    background: #050505;
    border: 1px solid #2b2b2b;
    transform: translateY(10px);
    transition: transform .3s cubic-bezier(.2, .7, .1, 1);
}
.sheet.on .sheet-card { transform: none; }
.sheet-img { display: block; width: 100%; height: auto; border: 1px solid #2b2b2b; }
.sheet-h {
    font-family: var(--fell-i);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.1;
    color: var(--hot);
}
.sheet-h.ep { font-family: var(--fell); font-style: normal; font-size: clamp(2.2rem, 5vw, 3rem); }
.sheet-p { margin-top: 10px; font-style: italic; color: var(--ash); }
.sheet-actions { display: grid; gap: 10px; margin-top: 22px; }
.sheet-actions .presave { display: block; text-align: center; padding: .65em 1em .7em; border: 0; cursor: pointer; font-size: 1.1rem; }
.sheet-actions .presave + .presave { background: transparent; border: 1px solid #555; }
.sheet-actions .presave + .presave:hover { border-color: var(--white); background: transparent; color: var(--white); }
.sheet-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: 0;
    color: var(--ash);
    font: inherit;
    font-style: italic;
    cursor: pointer;
}
.sheet-close:hover { color: var(--white); }
.sheet-secret .sheet-card { border-color: var(--hot); }

/* secret: the star answers each click */
.tick { animation: tick .35s ease; }
@keyframes tick { 50% { transform: scale(1.25); color: var(--white); } }
.hero-star.tick { animation: tick .35s ease, spin 70s linear infinite; }
.found .hero-star, .found .tray-star { color: var(--white); }

@media (max-width: 760px) {
    .walls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sheet-card { grid-template-columns: 110px 1fr; gap: 18px; padding: 26px 20px 22px; }
    .listen-embed { margin: 22px auto 0; }
}

/* tracklist */
.tracks { list-style: none; border-top: 1px solid var(--rule); }
.track {
    display: grid;
    grid-template-columns: 2.2em minmax(0, 1fr) auto 3.4em;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.t-n { font-style: italic; color: var(--ash); font-feature-settings: "tnum"; }
.t-name {
    font-family: var(--fell);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}
.t-when { font-style: italic; font-size: 14px; color: var(--ash); white-space: nowrap; }
.t-len { text-align: right; font-feature-settings: "tnum"; color: var(--ash); }
.redact {
    display: inline-block;
    width: min(var(--w, 10ch), 100%);
    height: .78em;
    vertical-align: -.04em;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px),
        #1f1f1f;
    box-shadow: inset 0 0 0 1px #2c2c2c;
}
.track.fresh .t-name { color: var(--hot); text-shadow: 0 0 .35em rgba(255, 0, 90, .3); }
.track.fresh .t-when { color: var(--hot); }
.tracks-total { margin-top: 10px; font-style: italic; font-size: 14px; color: var(--ash); }

@media (max-width: 760px) {
    .track { grid-template-columns: 1.6em minmax(0, 1fr) 3em; row-gap: 2px; }
    .t-when { grid-column: 2; grid-row: 2; }
    .t-len { grid-column: 3; grid-row: 1; }
}
