/* Paleta e tipografia do livro Claude Code enxuto (divulgacao/identidade-visual.md do kit). */
:root {
  --fundo: #e3dac9;
  --papel: #f4efe6;
  --titulo: #1c2a3a;
  --texto: #33465a;
  --legenda: #5b6b7b;
  --destaque: #c95d22;
  --destaque-escuro: #a94b17;
  --escuro-texto: #e9edf2;
  --fonte: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    repeating-linear-gradient(90deg, rgba(28, 42, 58, 0.05) 0 1px, transparent 1px 48px),
    var(--fundo);
  color: var(--titulo);
  font-family: var(--fonte);
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}

.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.perfil { text-align: center; }
.arroba { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--destaque-escuro); letter-spacing: 0.02em; }
.nome { margin: 0 0 6px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.linha { margin: 0; font-size: 16px; color: var(--texto); }

.livro { display: block; width: 62%; max-width: 260px; text-decoration: none; }
.capa {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 3px 8px 8px 3px;
  background: url("/assets/capa.webp") center bottom / cover;
  box-shadow: 0 14px 30px rgba(28, 42, 58, 0.35), 0 3px 7px rgba(28, 42, 58, 0.2);
  overflow: hidden;
  container-type: inline-size;
}
.capa::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent);
}
.capa-titulo {
  position: absolute; top: 9%; left: 10.6%; right: 10.6%;
  font-size: 10.3cqw; font-weight: 600; line-height: 1.05; color: var(--titulo); letter-spacing: -0.01em;
}
.capa-sub {
  position: absolute; top: 33%; left: 10.6%; right: 18%;
  font-size: 4.6cqw; line-height: 1.35; color: var(--texto);
}

.links { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }

.link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  min-height: 64px;
  border-radius: 12px;
  background: var(--papel);
  color: var(--titulo);
  text-decoration: none;
  border: 1px solid rgba(28, 42, 58, 0.12);
  box-shadow: 0 2px 6px rgba(28, 42, 58, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link:hover, .link:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(28, 42, 58, 0.16); }
.link:focus-visible { outline: 3px solid var(--destaque-escuro); outline-offset: 2px; }
.link-titulo { font-size: 17px; font-weight: 600; }
.link-sub { font-size: 14px; color: var(--texto); }

.link-destaque { background: var(--titulo); border-color: var(--titulo); }
.link-destaque .link-titulo { color: var(--escuro-texto); }
.link-destaque .link-sub { color: #f2a675; }

.rodape { display: flex; gap: 10px; font-size: 15px; color: var(--legenda); }
.rodape a { color: var(--texto); text-decoration: none; font-weight: 600; }
.rodape a:hover, .rodape a:focus-visible { color: var(--destaque-escuro); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .link { transition: none; } }
