@font-face {
    font-family: Manrope;
    src: url("/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --violet: #8c5fa7;
    --violet-deep: #6d3f88;
    --fuchsia: #ed418b;
    --bubblegum: #d14898;
    --orange: #f16a21;
    --ink: #2d2f36;
    --muted: #5c5e66;
    --paper: #f7f4fb;
    --card: #fff;
    --line: #e4dceb;
    --shadow: 0 16px 40px rgba(45, 47, 54, 0.08);
    --radius: 1.25rem;
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(237, 65, 139, 0.16), transparent 28rem),
        var(--paper);
}
img, video { max-width: 100%; display: block; }
a { color: var(--violet-deep); }
button, input, textarea { font: inherit; }
h1, h2 { line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: 2.1rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.8rem; }
p { line-height: 1.5; }

.skip {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    background: #fff;
    padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }

.site-header, .site-footer, main {
    width: min(40rem, calc(100% - 1.5rem));
    margin-inline: auto;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(0.8rem + env(safe-area-inset-top)) 0 0.4rem;
}
.brand img { width: 10.5rem; height: auto; }
.header-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}
main { padding-bottom: 2rem; }
.site-footer {
    padding: 0.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 1rem; }

.hero, .panel, .prose, .studio section, .banner {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    margin: 0.9rem 0;
}
.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--fuchsia);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.lede { font-size: 1.08rem; }
.fine { color: var(--muted); font-size: 0.92rem; }
.button, .button-secondary, .text-button, .theme {
    border: 0;
    cursor: pointer;
}
.button, .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}
.button {
    color: #fff;
    background: linear-gradient(100deg, var(--violet), var(--bubblegum) 55%, var(--fuchsia) 78%, var(--orange));
}
.button-secondary { background: #f3eef7; color: var(--violet-deep); }
.text-button { background: none; color: var(--violet-deep); font-weight: 800; padding: 0.6rem 0; }
.button[disabled] { opacity: 0.55; }

.steps, .theme-list { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 0.8rem; margin: 0.8rem 0; }
.steps span {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f8e9f3;
    color: var(--violet-deep);
    font-weight: 800;
    flex: none;
}
.steps p, .theme-list { color: var(--muted); }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.theme-list li { background: #faf7fc; border-radius: 0.9rem; padding: 0.7rem; }

.progress {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    padding: 0.4rem 0 0;
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
}
.progress li {
    flex: 1;
    text-align: center;
    padding-bottom: 0.35rem;
    border-bottom: 3px solid var(--line);
}
.progress li[aria-current="step"] {
    color: var(--violet-deep);
    font-weight: 800;
    border-color: var(--fuchsia);
}

.drop {
    display: grid;
    place-items: center;
    min-height: 11rem;
    border: 1.5px dashed var(--bubblegum);
    border-radius: 1rem;
    background: #fff7fb;
    text-align: center;
    padding: 0.8rem;
    margin: 0.8rem 0;
}
.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.drop img { width: 100%; max-height: 16rem; object-fit: cover; border-radius: 0.8rem; }
.check, .field { display: grid; gap: 0.35rem; margin: 0.8rem 0; }
.check { grid-template-columns: auto 1fr; align-items: start; }
.check input, .field input, .field textarea {
    accent-color: var(--fuchsia);
}
.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.75rem;
    background: #fff;
}
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin: 0.8rem 0 1rem; }
.theme {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    min-height: 4.5rem;
    padding: 0.6rem;
    text-align: left;
}
.theme[aria-pressed="true"] {
    border-color: var(--fuchsia);
    background: #fff1f7;
}
.theme span { display: block; font-size: 1.4rem; }
.result { width: 100%; border-radius: 1rem; background: #111; margin: 0.6rem 0 1rem; }
.row { display: grid; gap: 0.55rem; }
.bar {
    height: 0.55rem;
    background: #f3eef7;
    border-radius: 999px;
    overflow: hidden;
}
.bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--orange));
    animation: slide 1.2s ease-in-out infinite;
}
.banner { color: #8a2a2a; background: #fff4f4; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: 0.45rem 0; }

@media (min-width: 40rem) {
    .row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .bar span { animation: none; width: 100%; }
}
@keyframes slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}
