:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0d12;
    color: #f7f3eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(232, 93, 63, 0.16), transparent 32rem),
        #0b0d12;
}

.shell {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 2rem;
}

.hero {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: #e85d3f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 0.98;
}

.hero > p:last-child,
small,
footer,
.empty {
    color: #a8afbd;
}

.library {
    padding: 1.25rem;
    border: 1px solid #2b3140;
    border-radius: 1.25rem;
    background: rgba(21, 25, 34, 0.94);
}

.section-heading,
.take-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > span {
    min-width: 2rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #2b3140;
    text-align: center;
}

.takes {
    display: grid;
    gap: 0.9rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.takes li {
    padding: 1rem;
    border: 1px solid #303748;
    border-radius: 1rem;
    background: #10141c;
}

.take-heading strong,
.take-heading small {
    display: block;
}

.take-heading small {
    margin-top: 0.25rem;
}

a {
    color: #ff8a6e;
    font-weight: 700;
}

audio {
    width: 100%;
    margin-top: 0.9rem;
}

footer {
    padding-top: 1.3rem;
    text-align: center;
    font-size: 0.9rem;
}

body { font-size: 1rem; line-height: 1.5; }
small { overflow-wrap: anywhere; }
button, input, .button { font: inherit; }
button, .button {
    display: inline-block; min-height: 48px; padding: 0.7rem 1rem;
    border: 1px solid transparent; border-radius: 0.65rem;
    background: #f47b5d; color: #13151b; font-weight: 750;
    text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { filter: brightness(1.1); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #ffd077; outline-offset: 4px; }
.gate { max-width: 580px; }
.gate label { display: block; margin-bottom: 0.45rem; font-weight: 700; }
.gate input[type="password"] {
    display: block; width: 100%; min-height: 52px; padding: 0.7rem;
    border: 1px solid #657086; border-radius: 0.65rem; background: #10141c; color: #fff;
}
.hint, .access-note { font-size: 0.9rem; color: #b9c1ce; }
.hint { margin: 0.5rem 0 1rem; }
.access-note { margin: 1rem 0 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.actions a { padding-block: 0.65rem; }
.secondary { background: #222938; border-color: #505d75; color: #f7f3eb; }
.danger { background: #c6373c; color: #fff; }
.delete-link { color: #ffa6a6; }
.message { padding: 1rem; border: 1px solid #537b69; border-radius: 0.65rem; background: #182c27; }
.error { border-color: #b26464; background: #3a2027; }
.lock-form { margin-bottom: 1rem; }

@media (max-width: 580px) {
    .shell {
        width: min(100% - 1rem, 920px);
        padding-top: 1.5rem;
    }

    .take-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
