:root {
    --ink: #23202b;
    --bg: #fdf6f0;
    --card: #ffffff;
    --accent: #e5647a;
    --muted: #8a8592;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-bottom: 1px solid #efe7e0;
}

.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
nav a, .linkish {
    margin-left: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-size: .95rem;
}
.inline-form { display: inline; }
.linkish { background: none; border: 0; cursor: pointer; font: inherit; }

.container { max-width: 820px; margin: 0 auto; padding: 1.5rem; }
.site-footer { text-align: center; color: var(--muted); padding: 2rem 0; }

.messages { list-style: none; padding: .5rem 1.5rem; margin: 0; }
.messages .success { color: #2e7d5b; }
.messages .error { color: #c0392b; }

.hero h1, .profile-hero h1 { margin-bottom: .25rem; }
.profile-hero { display: flex; gap: 1.25rem; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bio { color: var(--muted); }
.owner-tools { font-size: .9rem; }

.song {
    background: var(--card);
    border: 1px solid #efe7e0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.song-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.song audio { width: 100%; margin-top: .5rem; }
.badge {
    font-size: .7rem;
    background: #f0e2e6;
    color: var(--accent);
    padding: .1rem .45rem;
    border-radius: 999px;
    vertical-align: middle;
}
.download { font-size: .9rem; white-space: nowrap; color: var(--accent); text-decoration: none; }

.profile-grid, .photo-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.profile-card { text-align: center; }
.profile-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.photo-grid img { width: 100%; border-radius: 10px; }
figure { margin: 0; }
figcaption { font-size: .8rem; color: var(--muted); }

.stacked-form p { display: flex; flex-direction: column; margin: .75rem 0; }
.stacked-form input, .stacked-form textarea {
    padding: .5rem;
    border: 1px solid #d9cfc7;
    border-radius: 8px;
    font: inherit;
}
button[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}
