/* Estilo de caueribeiro.com: tons neutros, tipografia como protagonista.
   Claro por padrão; escuro quando o sistema estiver no modo escuro. */
:root {
  --bg: #f7f6f3;
  --fg: #1c1b19;
  --muted: #77736c;
  --line: #e2dfd8;
  --hover: #efede8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --fg: #ecebe7;
    --muted: #8f8b84;
    --line: #2a2926;
    --hover: #1b1a19;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}

.page {
  min-height: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

/* Barra superior discreta */
.top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.top a {
  text-decoration: none;
}
.top a:hover {
  color: var(--fg);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 64px;
}

h1 {
  margin: 0 0 72px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 em {
  color: var(--muted);
}

/* Lista de páginas */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.links li {
  border-bottom: 1px solid var(--line);
}
.links a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    padding 0.2s;
}
.links a:hover {
  background: var(--hover);
  padding-left: 16px;
}
.num {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.name {
  font-size: 18px;
  font-weight: 500;
}
.name small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.arrow {
  color: var(--muted);
  transition:
    transform 0.2s,
    color 0.2s;
}
.links a:hover .arrow {
  color: var(--fg);
  transform: translateX(4px);
}
.tag {
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  vertical-align: middle;
}

/* Páginas simples (em construção, 404) */
.lead {
  max-width: 460px;
  margin: -48px 0 40px;
  color: var(--muted);
}
.back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover {
  color: var(--fg);
}

footer {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  main {
    padding: 64px 0 48px;
  }
  h1 {
    margin-bottom: 48px;
  }
  .links a {
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
  }
}
