/* Anais Crea — paleta tirada da logo: vermelho, laranja e dourado sobre creme quente */
:root {
  --red: #d4262b;
  --red-dark: #a81c21;
  --orange: #f0561f;
  --gold: #f6b21b;
  --ink: #2a1b1a;
  --ink-soft: #5a4643;
  --cream: #fff8ec;
  --paper: #ffffff;
  --line: #ecdfc8;
  --radius: 14px;
  --shadow: 0 2px 0 rgba(42, 27, 26, .06), 0 8px 24px rgba(42, 27, 26, .07);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 6px var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--red-dark); margin: 0 0 .6rem; }
.block { padding-block: 28px; }

/* Cabeçalho */
.site-header { background: var(--paper); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.brand img { height: 36px; width: auto; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 240px; padding: 8px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.menu a:hover, .menu a[aria-current] { background: var(--cream); color: var(--red-dark); }
.top-search { display: flex; width: 100%; gap: 6px; order: 3; }
.top-search input, .search-big input { flex: 1; min-width: 0; }
input[type="search"], input[type="text"], select {
  font: inherit; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink);
}
button, .btn { font: inherit; font-weight: 800; cursor: pointer; }
.top-search button { padding: 10px 16px; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: #fff; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; border: 2px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0; }

@media (min-width: 900px) {
  .top-search { width: 300px; order: 0; }
  .menu { margin-left: 0; flex: 1; }
  .menu summary { display: none; }
  .menu nav { position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .menu ul { display: flex; gap: 2px; justify-content: center; }
  .menu { display: block; }
  .menu:not([open]) nav { display: block; }
}

/* Trilha de navegação */
.crumbs { width: min(1120px, 100% - 32px); margin: 14px auto 0; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 4px; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff1d6 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 24px; padding-block: 36px; align-items: center; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1.5deg); border: 4px solid #fff; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.2fr 1fr; padding-block: 56px; } }

.steps-3 { display: grid; gap: 14px; list-style: none; padding: 0; counter-reset: s; }
.steps-3 li { background: var(--paper); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; counter-increment: s; }
.steps-3 li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }

.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.head-row h2 { margin-top: 0; }

/* Áreas */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; padding: 16px; border-radius: var(--radius); background: var(--c); color: var(--ink); text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cat-tile::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .28); }
.cat-tile .cat-name { font: 800 1.1rem/1.2 var(--font-head); color: #000; background: rgba(255, 255, 255, .92); padding: 4px 10px; border-radius: 8px; align-self: flex-start; }
.cat-tile .cat-count { font-size: .85rem; margin-top: 6px; font-weight: 700; color: #000; background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: 6px; align-self: flex-start; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.cat-row { background: var(--paper); border-radius: var(--radius); border-left: 10px solid var(--c); padding: 16px 20px; box-shadow: var(--shadow); }
.cat-row h2 { margin: 0 0 .3em; font-size: 1.35rem; }
.cat-row p { margin: 0 0 .3em; }

/* Cartões de projeto */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); }
.card-media { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--gold); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.card-kicker a { color: var(--red-dark); text-decoration: none; }
.card h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red-dark); text-decoration: underline; }
.card-text { margin: 0 0 12px; color: var(--ink-soft); font-size: .98rem; }
.meta { list-style: none; padding: 0; margin: auto 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.meta li { font-size: .82rem; font-weight: 700; background: var(--cream); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.result .missing { margin: 8px 4px 0; font-size: .92rem; color: var(--red-dark); font-weight: 600; }
.result .missing.ok { color: #1c6b3a; }
.empty { background: var(--paper); border: 2px dashed var(--gold); padding: 18px; border-radius: var(--radius); }

/* Filtros e formulários */
.filters { display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(5, 1fr); align-items: end; } .selector .filters { grid-template-columns: 1fr 1fr 2fr; } }
.field { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field.actions { flex-direction: row; gap: 8px; margin: 0; }
.field.mode label { font-weight: 500; }
.count { font-weight: 700; margin: 8px 0 14px; }
.search-big { display: flex; gap: 8px; margin: 14px 0; }
.mat-group { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 14px; }
.mat-group legend { font-weight: 800; padding: 0 8px; }
.mat-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--cream); min-height: 48px; }
.mat:has(input:checked) { border-color: var(--red); background: #ffe9e4; }
.mat input, .checklist input, .mode input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.mode-help { font-size: .92rem; color: var(--ink-soft); }
#selector-results { margin-top: 24px; }
.hint { color: var(--ink-soft); font-size: .95rem; }

/* Página de projeto */
.project { padding-block: 18px 40px; }
.project-head h1 { margin-bottom: .3em; }
.chips { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.chips li span { font-weight: 500; font-size: .8rem; color: var(--ink-soft); margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; }
.chips li.warn { border-color: var(--red); background: #ffe9e4; }
.project-art { margin: 18px 0; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); }
.project-art svg, .project-art img { width: 100%; max-height: 380px; object-fit: cover; }
.project-art figcaption { font-size: .85rem; padding: 6px 12px; background: var(--paper); color: var(--ink-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 16px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); font-size: .95rem; }
.jump a { font-weight: 700; }
.note { background: #fff3cf; border-left: 6px solid var(--gold); padding: 14px 18px; border-radius: 10px; margin: 18px 0; }
.note ul { margin: .4em 0 0; padding-left: 1.2em; }
.warn-note { background: #ffe9e4; border-left-color: var(--red); }
.prose { max-width: 70ch; }
.prose p, .prose li { margin: 0 0 .9em; }
.prose ul { padding-left: 1.2em; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 3fr 2fr; } }
.checklist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist label:has(input:checked) span, .checklist label:has(input:checked) strong { text-decoration: line-through; color: var(--ink-soft); }
.checklist small { display: block; color: var(--ink-soft); }
.progress { font-size: .85rem; font-weight: 700; color: var(--red-dark); margin-left: 6px; }
.link-btn { background: none; border: 0; color: var(--red-dark); text-decoration: underline; padding: 6px 0; font-weight: 600; }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 14px; }
ol.steps > li { counter-increment: st; padding: 14px 4px 14px 58px; position: relative; border-bottom: 1px dashed var(--line); }
ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.1rem var(--font-head); display: grid; place-items: center; }
ol.steps > li p { margin: .4em 0 0 34px; }
ol.steps label { font-size: 1.05rem; }
.alts { list-style: none; padding: 0; }
.alts li { background: var(--paper); border-left: 6px solid var(--orange); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.mistakes dt { font-weight: 800; margin-top: 14px; }
.mistakes dt::before { content: "✗ "; color: var(--red); }
.mistakes dd { margin: 4px 0 0 1.4em; }
.tags-line { margin-top: 24px; }
.related { margin-top: 36px; }

/* Tags, atalhos, itens de casa */
.tag-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { display: inline-block; background: var(--paper); border: 2px solid var(--ink); padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.tag-cloud a:hover { background: var(--gold); }
.tag-cloud span { font-size: .8rem; color: var(--ink-soft); }
.quick-grid, .home-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } .home-items { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 759px) { .home-items { grid-template-columns: repeat(2, 1fr); } }
.quick-grid a, .home-items a { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.quick-grid a:hover, .home-items a:hover { background: #fff1d6; }
.quick-grid span, .home-items span { font-size: .92rem; color: var(--ink-soft); }
.home-items { margin: 20px 0 8px; }

/* Rodapé */
.site-footer { background: var(--ink); color: #f4e8d6; margin-top: 40px; padding-block: 36px 20px; border-top: 6px solid var(--gold); }
.site-footer a { color: #ffd98a; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6em; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer img { background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: 10px; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1.4fr 1.4fr; } }
.foot-note { border-top: 1px solid #ffffff22; margin-top: 24px; padding-top: 14px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.foot-note p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .jump, .related, .top-search, .link-btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .project-art { display: none; }
}
