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

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
  color: #000;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Header ── */

header {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.site-name {
  font-weight: bold;
  white-space: nowrap;
}

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

nav a.active {
  text-decoration: underline;
}

/* ── Sections ── */

.section {
  display: none;
  max-width: 560px;
}

.section.active {
  display: block;
}

.section p {
  margin-bottom: 1rem;
}

/* ── Project list ── */

.project-list {
  list-style: none;
}

.project-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.6rem;
}

.project-date {
  color: #888;
  min-width: 72px;
  flex-shrink: 0;
}

/* ── Project detail ── */

.project-detail {
  display: none;
}

.project-detail p {
  margin-bottom: 0.75rem;
}

/* ── Language toggle ── */

.lang-toggle {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  color: #777;
  letter-spacing: 0.05em;
}
.lang-toggle:hover { border-color: #000; color: #000; }
body.es .en { display: none; }
body:not(.es) .es { display: none; }

/* ── Responsive ── */

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1.25rem;
  }

  header {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .project-item {
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
  }
}
