:root {
  color-scheme: light;
  --paper: #f5f4fa;
  --ink: #1c1732;
  --muted: #58546b;
  --line: #dedbeb;
  --primary: #5030a1;
  --mint: #bcff94;
  font: 16px/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #9163e1; outline-offset: 4px; }
h1, h2, h3 { margin: 0 0 .45rem; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; }
.header-inner { min-height: 4.5rem; padding-block: .65rem; }
.header-inner nav a { font-size: .9rem; font-weight: 650; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 850; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--primary); color: white; border-radius: .55rem; font-size: 1.4rem; }
.skip { position: absolute; z-index: 1; background: white; padding: .65rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
main { flex: 1; padding-block: 1.75rem 4rem; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); padding-block: 1.25rem; font-size: .88rem; }
.hero { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; background: #211638; color: white; border-radius: 1.5rem; margin-bottom: 3rem; }
.hero-copy { padding: clamp(1.5rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.065em; margin: .55rem 0 1.2rem; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero p:not(.eyebrow) { max-width: 34ch; color: #e6dcfc; }
.eyebrow { color: var(--primary); font: 750 .78rem/1.5 ui-monospace, monospace; letter-spacing: .095em; text-transform: uppercase; margin-bottom: .45rem; }
.hero .eyebrow { color: #dbc5ff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: fit-content; padding: .65rem 1rem; color: white; background: var(--primary); border: 1px solid transparent; border-radius: .65rem; cursor: pointer; font: inherit; font-weight: 750; text-decoration: none; }
.button:hover { background: #382074; color: white; }
.button.hero-button { background: var(--mint); color: #211638; margin-top: .25rem; }
.button.hero-button:hover { background: #d7ffc0; }
.button.subtle { background: white; color: var(--primary); border-color: var(--line); }
.button.danger { background: #9e253b; }
.hero-art { position: relative; min-height: 14rem; margin: 1.25rem; border-radius: 1rem; background: radial-gradient(circle, #8871ad 1px, transparent 1.5px) 5px 5px / 17px 17px, #2d2046; }
.tile { position: absolute; display: grid; place-items: center; width: clamp(3rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 20%; color: #211638; font-size: clamp(1.5rem, 5vw, 4rem); font-weight: 900; box-shadow: .2rem .35rem #160d29; }
.tile-plus { top: 17%; left: 18%; transform: rotate(-12deg); background: #c6a9ff; }
.tile-play { top: 25%; right: 16%; transform: rotate(12deg); background: #ffce73; }
.tile-times { bottom: 23%; left: 27%; transform: rotate(10deg); background: var(--mint); }
.tile-dot { bottom: 17%; right: 13%; transform: rotate(-12deg); background: #ffadca; }
.art-caption { position: absolute; bottom: .45rem; left: .65rem; color: #e6dcfc; font: 650 .62rem ui-monospace, monospace; letter-spacing: .08em; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head > p { margin: 0; }
.muted, time { color: var(--muted); }
.filters, .actions, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.filters { margin-bottom: 1.35rem; }
.filters a { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 2rem; background: white; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 650; }
.filters a:hover { border-color: var(--primary); }
.filters [aria-current] { color: white; background: var(--primary); border-color: var(--primary); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .empty, .panel, .manage-list { border: 1px solid var(--line); border-radius: 1rem; background: white; }
.card { display: flex; flex-direction: column; gap: .75rem; min-width: 0; padding: 1.2rem; --accent: #e9dcff; }
.card.cenarios { --accent: #c8f3dd; }
.card.personagens { --accent: #ffdfab; }
.card.audios { --accent: #ffd9eb; }
.card.graficos { --accent: #d5e7ff; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.card-icon { display: inline-grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: .65rem; background: var(--accent, #e9dcff); font-size: 1.25rem; font-weight: 800; }
.badge { border-radius: 2rem; padding: .2rem .65rem; background: var(--accent); font-size: .75rem; font-weight: 700; }
.card p { color: var(--muted); margin: 0; white-space: pre-line; }
.card-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: .75rem; font-size: .85rem; }
.card-bottom a { padding-block: .25rem; font-weight: 800; }
.empty { grid-column: 1 / -1; text-align: center; padding: 2rem 1rem; }
.empty .card-icon { margin-bottom: .65rem; }
.empty p { margin-bottom: 0; }
.pagination { justify-content: center; margin-top: 1.5rem; }
.pagination a { padding: .4rem; }
.panel { padding: clamp(1.15rem, 4vw, 2.25rem); }
.narrow { max-width: 41rem; margin: 1rem auto; }
.stack { display: grid; gap: 1.1rem; margin-top: 1rem; }
label { display: block; font-weight: 750; margin-bottom: .3rem; }
input, textarea, select { font: inherit; }
input:not([type=hidden]), textarea, select { width: 100%; color: var(--ink); background: #fbfaff; border: 1px solid #807893; border-radius: .45rem; padding: .6rem; }
textarea { min-height: 8rem; resize: vertical; }
#file-guide { margin: .4rem 0 0; font-size: .85rem; }
.notice { padding: .75rem 1rem; border-radius: .65rem; background: #dff5e7; color: #185335; }
.notice.error { color: #841d31; background: #ffe4e9; }
.field-error, .danger-text { color: #942136; }
.manage-list { list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere; }
.manage-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
.manage-list li + li { border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 880px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 10rem; margin: 0 1rem 1rem; }
  .tile { width: 3rem; }
  .catalog-grid { grid-template-columns: 1fr; }
}
