@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Geist:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap");

:root {
  --papel: #f5f0e6;
  --papel-2: #ece5d6;
  --cartao: #fffdf8;
  --tinta: #1f1b16;
  --tinta-2: #5b5348;
  --tinta-3: #8d8476;
  --linha: #ddd4c2;
  --acento: #c2462b;
  --acento-tinta: #fff;
  --azeite: #5f6b2f;
  --aviso: #b7791f;
  --erro: #a3271b;
  --ok: #2f6b45;
  --raio: 14px;
  --raio-s: 9px;
  --sombra: 0 1px 0 rgba(31, 27, 22, 0.04), 0 8px 24px -14px rgba(31, 27, 22, 0.35);
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 15px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.num {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--f-mono);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--tinta);
  background: var(--tinta);
  color: var(--papel);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.08s, background 0.15s;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  background: transparent;
  color: var(--tinta);
}
.btn--ghost:hover {
  background: rgba(31, 27, 22, 0.06);
}
.btn--acento {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--acento-tinta);
}
.btn--s {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.campo {
  display: grid;
  gap: 6px;
}
.campo > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta-2);
}
.campo small {
  color: var(--tinta-3);
  font-size: 12.5px;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1.5px solid var(--linha);
  border-radius: var(--raio-s);
  background: var(--cartao);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--tinta);
}

/* ---------- Logótipo mais uma ---------- */
.mu {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: currentColor;
  white-space: nowrap;
}
.mu-s {
  flex: none;
  width: 1.12em;
  height: 1.12em;
  overflow: visible;
}
.mu-h {
  gap: 0.24em;
}
.mu-h--fim {
  gap: 0.07em;
}
.mu-h .mu-ponto {
  width: 0.42em;
  height: 0.42em;
  align-self: flex-end;
  margin-bottom: 0.02em;
}
.mu-v {
  flex-direction: column;
  gap: 0.22em;
}
.mu-v .mu-s {
  width: 1.7em;
  height: 1.7em;
}
.mu-2 {
  gap: 0.26em;
}
.mu-2 .mu-s {
  width: 1.75em;
  height: 1.75em;
}
.mu-2__t {
  display: flex;
  flex-direction: column;
  line-height: 0.86;
}

/* ---------- Diversos ---------- */
.pilula {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--papel-2);
  color: var(--tinta-2);
}
.pilula--ok {
  background: #dfeadf;
  color: var(--ok);
}
.pilula--erro {
  background: #f4dcd6;
  color: var(--erro);
}
.pilula--aviso {
  background: #f5e6c8;
  color: #7a4e0e;
}
.ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--tinta);
  color: var(--papel);
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  transition: 0.2s;
  z-index: 100;
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
