/* interfaces — directorio simple */

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

body {
  background: #e8e4d9;
  color: #222;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.55;
}

a { color: #0033cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

hr {
  border: none;
  border-top: 1px solid #aaa;
  margin: 14px 0;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.lang-btn {
  font-family: inherit;
  font-size: 12px;
  background: transparent;
  border: 1px solid #aaa;
  color: #666;
  padding: 2px 8px;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: #333;
  color: #222;
}

.sub {
  font-size: 14px;
  color: #666;
}

/* --- project list --- */

.project {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dotted #bbb;
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-thumb {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border: 1px solid #aaa;
  margin-bottom: 8px;
  background: #ddd;
}

.project-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 4px;
}

.project-title a {
  text-decoration: none;
  color: #222;
}

.project-title a:hover {
  text-decoration: underline;
}

.project-desc {
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #888;
  cursor: pointer;
}

.btn:hover {
  border-color: #333;
}

.btn-demo {
  background: #333;
  color: #f5f5ee;
  border-color: #333;
}

.btn-demo:visited {
  color: #f5f5ee;
}

.btn-demo:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.btn-repo {
  background: transparent;
  color: #555;
}

.btn-repo:visited {
  color: #555;
}

.btn-repo:hover {
  color: #222;
  background: #ddd;
}

/* --- footer --- */

.foot {
  font-size: 13px;
  color: #999;
}

/* --- loading state --- */

#projects {
  color: #888;
  font-size: 15px;
}
