/* ----------------------------------------
   handmade web — oficina
   ---------------------------------------- */
:root {
  --fundo: #f5f0e8;
  --tinta: #1a1814;
  --tinta-suave: #6b6560;
  --accent: rgba(83, 149, 255, 1);
  --cor-alternativa: rgba(255, 214, 226, 1);
  --fonte-titulo: 'Times New Roman', Times, serif;
  --fonte-corpo: 'Times New Roman', Times, serif;
  --titulo: 1rem;
  --texto: 1rem;
}

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

html {
  font-size: 16px;
  background-color: var(--fundo);
  color: var(--tinta);
}

body {
  font-family: var(--fonte-corpo);
  line-height: 1.4;
  padding: 1rem 1.5rem;
  max-width: 900px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--tinta);
}

main a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

section {
  border-bottom: 1px solid var(--tinta);
  padding: 1rem 0;
}

section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


#conteudo:not(:empty) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tinta);
  width: 100%;
}

h1, h2 {
  font-family: var(--fonte-titulo);
  font-size: var(--titulo);
  padding-bottom: 0.4rem;
}

h3 {
  font-family: var(--fonte-titulo);
  font-size: var(--texto);
  padding-bottom: 0.4rem;
}

p {
  padding-bottom: 0.6rem;
  max-width: 65ch;
}

nav {
  display: flex;
  gap: 1.5rem;
}

a {
  color: var(--tinta);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul {
  list-style: none;
  padding: 0;
}

li::before {
  content: "࿔ "; 
}

.ascii {
  position: fixed;
  right: 1.5rem;
  bottom: 1rem;
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--tinta);
  pointer-events: none;
}

img {
  max-width: 100%;
  margin-top: 0.5rem;
}

.boilerplate {
  padding: 0px 11px 11px 11px;
}

.codigo {
  background: var(--cor-alternativa);
  padding: 0px 11px 28px 11px;
  overflow-x: auto;
}

code {
  font-family: monospace;
  font-size: 0.8rem;
}