/* Brand purple mirrors the Atenda app; lime, cream and ink are the blog's own. */
:root {
  --roxo: #7057c8;
  --roxo-claro: #a48de8;
  --roxo-escuro: #271d4a;
  --limao: #c8f560;
  --creme: #f6efe2;
  --tinta: #15111f;
  --papel: #fbfaf7;
  --texto: #1f1a2e;
  --apagado: #6b6580;
  --linha: #e6e1d6;
  --whats: #53bdeb;

  --f-display: "Jersey 15", "Manrope", system-ui, sans-serif;
  /* No accented glyphs: only for the wordmark and other ASCII-only labels. */
  --f-8bit: "Press Start 2P", var(--f-mono);
  --f-texto: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-pixel: "Jersey 15", var(--f-mono);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--f-texto);
  color: var(--texto);
  background: var(--papel);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--roxo); }
a:hover { color: var(--roxo-escuro); }

.glow {
  position: absolute;
  inset: -10rem 0 auto;
  height: 42rem;
  z-index: -1;
  background:
    radial-gradient(28rem 20rem at 25% 35%, color-mix(in srgb, var(--limao) 55%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 80% 30%, color-mix(in srgb, var(--roxo-claro) 45%, transparent), transparent 70%);
  filter: blur(20px);
}

.pixel {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--tinta);
}

.brand-name {
  font-family: var(--f-8bit);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.typing { display: inline-flex; gap: 3px; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--roxo);
  animation: digitando 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes digitando {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .typing i { animation: none; opacity: 0.7; }
}

.cta {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--papel);
  background: var(--tinta);
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  box-shadow: 3px 3px 0 var(--roxo);
  white-space: nowrap;
}
.cta:hover { color: var(--limao); }

/* Home */

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 3rem;
}

.hero-kicker { color: var(--roxo); margin: 0 0 1.25rem; }

.wordmark {
  font-family: var(--f-8bit);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 8rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--tinta);
  text-shadow: 0.07em 0.07em 0 var(--roxo);
  margin: 0 0 2rem;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--apagado);
  margin: 0;
}

.saves {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 6px 6px 0 var(--tinta);
  text-decoration: none;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--tinta); }

.card-destaque {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-end;
  min-height: 24rem;
  padding: 2.25rem;
}

.card h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 0.95;
  margin: 0.75rem 0 1rem;
}

.card-destaque h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 0.92; }

.card-texto { flex: 1; max-width: 40rem; }

/* Card palettes: each post picks one with `cor` in its front matter. */
.card-roxo { background: var(--roxo-escuro); color: var(--creme); }
.card-roxo h2, .card-roxo h1 { color: var(--limao); }
.card-limao { background: var(--limao); color: var(--tinta); }
.card-limao h2, .card-limao h1 { color: var(--roxo-escuro); }
.card-creme { background: var(--creme); color: var(--tinta); }
.card-creme h2, .card-creme h1 { color: var(--roxo); }
.card-tinta { background: var(--tinta); color: var(--creme); }
.card-tinta h2, .card-tinta h1 { color: var(--roxo-claro); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--papel);
  color: var(--tinta);
}
.card-limao .chips li, .card-creme .chips li { background: var(--tinta); color: var(--papel); }

.save-meta {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* The WhatsApp-style bubble used as a post cover. */
.balao {
  position: relative;
  padding: 0.75rem 0.9rem 0.5rem;
  background: #fff;
  color: #111b21;
  border-radius: 0.5rem 0.5rem 0.5rem 0;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 0.45);
  transform: rotate(-3deg);
}
.balao::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  bottom: 0;
  border: 0.5rem solid transparent;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.balao p { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.balao-hora { display: block; text-align: right; font-size: 0.72rem; color: #667781; }
.balao-check { color: var(--whats); letter-spacing: -0.2em; }

.conversa {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: none;
  width: min(100%, 19rem);
}

.balao-resposta {
  align-self: flex-end;
  padding: 0.85rem 1rem;
  background: #d9fdd3;
  border-radius: 0.5rem 0.5rem 0 0.5rem;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 0.45);
  transform: rotate(2deg);
}
.balao-resposta .typing i { background: #3b8a5a; width: 8px; height: 8px; }

.card-destaque .conversa { width: min(100%, 24rem); margin-bottom: 0.5rem; }
.card-destaque .balao p { font-size: 1.3rem; }

/* Post */

/* Same width as the header's content, gutter included. */
.post-hero, .site-footer {
  width: min(69.5rem, 100% - 2.5rem);
  margin-inline: auto;
}

.post-hero {
  margin-top: 1rem;
  border-radius: 0.5rem;
  box-shadow: 6px 6px 0 var(--tinta);
}

.post-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 2.25rem 2.5rem;
}

.post-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  line-height: 0.9;
  margin: 1rem 0 1.25rem;
}

.post-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
  font-size: 1.12rem;
}
.post-content h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  margin: 3rem 0 0.75rem;
  color: var(--roxo-escuro);
}
.post-content h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.post-content strong { color: var(--roxo-escuro); }
.post-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.post-content ol, .post-content ul { padding-left: 1.25rem; }
.post-content li { margin: 0.5rem 0; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 4px solid var(--limao);
  background: var(--creme);
  border-radius: 0 0.5rem 0.5rem 0;
}
.post-content code { font-family: var(--f-mono); font-size: 0.88em; background: var(--creme); padding: 0.1em 0.35em; border-radius: 0.3em; }
.post-content pre { overflow-x: auto; background: var(--tinta); color: var(--creme); padding: 1rem; border-radius: 0.75rem; }
.post-content pre code { background: none; padding: 0; }

/* Syntax highlight (classes geradas pelo Rouge) sobre o fundo --tinta dos blocos */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #9a93ad; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kp, .highlight .kr, .highlight .kc { color: var(--roxo-claro); }
.highlight .nc, .highlight .no { color: var(--creme); font-weight: 700; }
.highlight .nf, .highlight .nb, .highlight .bp { color: var(--whats); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd,
.highlight .se, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss { color: var(--limao); }
.highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #f6c177; }
.highlight .nv, .highlight .vi, .highlight .vc, .highlight .vg { color: #f2a7c3; }
.highlight .o, .highlight .p { color: #cfc8e0; }

.proximo {
  max-width: 42rem;
  margin: 3.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 2px solid var(--linha);
}
.proximo p { margin: 0.35rem 0; }
.proximo .pixel { color: var(--roxo); }
.proximo a { font-weight: 700; }
.proximo .proximo-atenda { margin-top: 1.25rem; color: var(--apagado); }

.back {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0 3rem;
  border-top: 2px solid var(--tinta);
  color: var(--apagado);
}
.site-footer p { margin: 0.35rem 0; }
.site-footer .pixel { color: var(--roxo); }
.footer-links { font-size: 0.9rem; }

@media (max-width: 48rem) {
  .card-destaque, .post-hero-inner { flex-direction: column; align-items: stretch; }
  .card-destaque { padding: 1.5rem; min-height: 0; }
  .post-hero-inner { padding: 2rem 1.5rem; }
  .conversa { align-self: stretch; }
  .cta { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .brand .typing { display: none; }
}
