/* ============================================================
   thealepo.dev — single stylesheet for all pages
   Fonts: EB Garamond (body), DM Mono (nav/labels/meta)
   ============================================================ */

/* -------- Reset / base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #0d0d0d;
  color: #e8e8e8;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* -------- Profile photo -------- */
.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  border: 1px solid #222222;
}

/* -------- Page container -------- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* -------- Links (default) -------- */
a {
  color: #7a9cc4;
  text-decoration: none;
}

a:hover {
  color: #a8c4e0;
}

/* -------- Nav -------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #222222;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  font-family: 'DM Mono', ui-monospace, monospace;
}

.nav-brand {
  font-size: 14px;
  color: #e8e8e8;
}

.nav-brand:hover {
  color: #e8e8e8;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 12px;
}

.nav-links a {
  color: #666666;
}

.nav-links a:hover {
  color: #a8c4e0;
}

.nav-links a.active {
  color: #e8e8e8;
}

/* -------- Headings -------- */
h1.name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #e8e8e8;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
}

.subtitle {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #666666;
  margin: 0 0 1.25rem 0;
}

.bio {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  color: #e8e8e8;
  line-height: 1.75;
  max-width: 580px;
  margin: 0 0 1.5rem 0;
}

/* -------- Section structure -------- */
section {
  margin-top: 3rem;
}

.section-label {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666666;
  margin-bottom: 1.25rem;
}

/* -------- Homepage links row -------- */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  margin-bottom: 0;
}

.links-row a {
  color: #666666;
  border-bottom: 1px solid #333333;
  padding-bottom: 1px;
}

.links-row a:hover {
  color: #a8c4e0;
  border-bottom-color: #a8c4e0;
}

/* -------- News table -------- */
.news {
  width: 100%;
  border-collapse: collapse;
}

.news tr {
  border-bottom: 1px solid #222222;
}

.news td {
  padding: 0.65rem 0;
  vertical-align: top;
}

.news td.date {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #666666;
  width: 110px;
  padding-right: 1.5rem;
  padding-top: 0.65rem;
  white-space: nowrap;
}

.news td.entry {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15.5px;
  color: #e8e8e8;
  line-height: 1.55;
}

/* -------- Experience entries -------- */
.exp-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #222222;
}

.exp-entry:last-child {
  border-bottom: none;
}

.exp-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 5px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
  margin-top: 2px;
}

.exp-body {
  flex: 1;
  min-width: 0;
}

.exp-role {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 500;
  margin: 0;
}

.exp-meta {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #666666;
  margin: 0.2rem 0 0.4rem 0;
}

.exp-desc {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15.5px;
  color: #999999;
  margin: 0;
  line-height: 1.6;
}

/* -------- Projects list -------- */
.project {
  border-bottom: 1px solid #222222;
  padding: 0.75rem 0;
}

.project-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #e8e8e8;
  display: block;
  margin: 0;
}

.project-title:hover {
  color: #a8c4e0;
}

.project-desc {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  color: #999999;
  margin: 0.15rem 0 0.25rem 0;
  line-height: 1.55;
}

.project-stack {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #555555;
}

/* -------- Guild "what we've built" list -------- */
.guild-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guild-list li {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15.5px;
  color: #e8e8e8;
  padding: 0.4rem 0;
  border-bottom: 1px solid #222222;
}

/* -------- Blog placeholder row -------- */
.blog-intro {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  color: #999999;
  font-style: italic;
  line-height: 1.75;
  margin: 0 0 2rem 0;
}

.post-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #222222;
}

.post-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #555555;
  flex: 1;
}

.post-date {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #444444;
}

.post-tag {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #444444;
}

/* -------- Footer -------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #222222;
  padding-top: 1.25rem;
  margin-top: 4rem;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #666666;
}

/* -------- Hamburger toggle (mobile only) -------- */
.nav-toggle {
  display: none;
}

/* -------- Mobile -------- */
@media (max-width: 600px) {
  .container {
    padding: 1rem 1.25rem;
  }

  /* Nav: brand left, toggle right */
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #666666;
    transition: transform 0.2s, opacity 0.2s;
  }

  /* Animate to × when open */
  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Links hidden by default on mobile, shown when open */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid #222222;
    margin-top: 0.75rem;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .news td.date {
    width: 90px;
    padding-right: 1rem;
  }
}
