:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: #111018;
    color: #f7f3ef;
}

* { box-sizing: border-box; }

body { margin: 0; background: radial-gradient(circle at 50% -15%, #45457f, #111018 55%); }

main { width: min(70rem, calc(100% - 2.5rem)); margin: 0 auto; }

.hero { max-width: 54rem; padding: clamp(5rem, 14vw, 9rem) 0 4rem; }

.eyebrow {
    margin: 0;
    color: #ffdf5d;
    font-weight: 700;
    letter-spacing: .2em;
}

h1 { max-width: 12ch; font-size: clamp(3.4rem, 11vw, 7.2rem); line-height: .92; margin: .35em 0; letter-spacing: -.06em; }

h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; line-height: 1; }

.intro { max-width: 34rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }

.hint { color: #c8c5d4; }

.topics { padding: 3rem 0 5rem; }

.section-heading { margin-bottom: 2rem; }

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

.topic-card { min-height: 18rem; padding: 1.7rem; border: 1px solid #565689; border-radius: 1.25rem; background: linear-gradient(145deg, #292957, #19192c); box-shadow: 0 1.5rem 3rem #0003; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }

.topic-card:hover, .topic-card:focus-visible { border-color: #ffdf5d; transform: translateY(-.3rem); outline: none; }

.topic-card h3 { margin: .4rem 0 .8rem; font-size: 1.6rem; line-height: 1.05; }

.topic-card span { display: block; margin-top: 2rem; color: #ffdf5d; font-size: .85rem; font-weight: 700; }

.topic-number { color: #ffdf5d; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }

.status { padding: 2rem; border-radius: 1rem; background: #ffffff0d; }

.promise { margin: 0 -1.25rem; padding: 4rem 1.25rem 6rem; text-align: center; }

.promise p { max-width: 40rem; margin: 0 auto; color: #c8c5d4; }

.topic-detail { max-width: 50rem; padding: clamp(3rem, 8vw, 6rem) 0; }

.back-link { display: inline-block; margin-bottom: 4rem; color: #ffdf5d; font-weight: 700; text-decoration: none; }

.recording-brief, .rules { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.25rem; background: #ffffff0d; }

.recording-brief > p:not(.topic-number) { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }

.recording-limit { color: #ffdf5d; font-weight: 800; }

.rules li { margin: .7rem 0; color: #e1deeb; }

.studio-link { display: inline-block; margin-top: 1.2rem; color: #ffdf5d; font-weight: 800; text-decoration: none; }

.studio { max-width: 50rem; padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }

.studio .back-link { display: block; text-align: left; }

.studio h1 { margin-inline: auto; }

.studio .intro { margin-inline: auto; }

.studio-console { margin-top: 3rem; padding: clamp(2rem, 7vw, 4rem); border: 1px solid #5e5e90; border-radius: 2rem; background: radial-gradient(circle at 50% 20%, #38396f, #171728 65%); }

.microphone { position: relative; width: 8rem; height: 10rem; margin: 0 auto 2rem; border: .7rem solid #dad7d1; border-radius: 4rem; background: repeating-linear-gradient(0deg, #797883 0 .25rem, #dbd8d2 .25rem .5rem); box-shadow: inset 0 0 0 .15rem #555461, 0 .7rem 1.5rem #0006; }

.microphone::before { content: ''; position: absolute; top: -1.4rem; left: 50%; width: 3.5rem; height: 1rem; transform: translateX(-50%); border-radius: 1rem; background: #ffdf5d; box-shadow: 0 0 1.5rem #ffdf5d; }

.microphone::after { content: ''; position: absolute; bottom: -3.4rem; left: 50%; width: 5rem; height: 3rem; transform: translateX(-50%); border: .45rem solid #dad7d1; border-top: 0; border-radius: 0 0 3rem 3rem; }

.microphone span { position: absolute; bottom: -4.4rem; left: 50%; width: .55rem; height: 2rem; transform: translateX(-50%); background: #dad7d1; }

.recording-state { margin-top: 5rem; font-size: 1.4rem; font-weight: 800; }

.recorder-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

button { min-height: 3.2rem; padding: .7rem 1.15rem; border: 0; border-radius: .75rem; font: inherit; font-weight: 800; cursor: pointer; }

button:disabled { cursor: not-allowed; opacity: .48; }

.record-button { background: #ff4d5e; color: #fff; }

.secondary-button { background: #eeece6; color: #191923; }

.playback { margin-top: 2rem; }

.playback audio { width: min(100%, 30rem); }

.submission-form { display: grid; gap: 1rem; max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.submission-form label:not(.check) { font-weight: 800; }
.submission-form label span { color: #c8c5d4; font-weight: 400; }
.submission-form input[type="text"], .submission-form select { width: 100%; min-height: 3rem; padding: .7rem; border: 1px solid #aaa8bd; border-radius: .6rem; background: #111018; color: inherit; font: inherit; }
.check { display: flex; gap: .7rem; align-items: flex-start; color: #e1deeb; line-height: 1.35; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: 0 0 auto; }
.field-hint { margin: -.6rem 0 0; color: #c8c5d4; font-size: .9rem; }
.submission-status { min-height: 1.5rem; margin: 0; color: #ffdf5d; font-weight: 700; }

@media (max-width: 700px) {
    .topic-grid { grid-template-columns: 1fr; }
    .topic-card { min-height: auto; }
}
