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

:root {
  --ink: #f0efea;
  --ink-mid: #a8a89e;
  --ink-faint: #9b9b95;
  --rule: #2a2a26;
  --page: #111110;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.8;
}

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

header {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.intro {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.header-text .role {
  font-size: 0.88rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.current-role-title {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

section {
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
  font-weight: 400;
}


.project-item {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

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

.project-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.project-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s;
}

.project-name a:hover {
  border-color: var(--ink-mid);
}

.project-context {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.project-tech {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}


.contact-section {
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  margin-bottom: 0;
}

.contact-entry:hover {
  color: var(--ink);
  border-color: var(--ink-mid);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  align-items: center;
}

@media (max-width: 500px) {
  html {
    font-size: 16px;
  }

  .page {
    padding: 3rem 1.25rem 4rem;
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .role-head {
    flex-direction: column;
    gap: 0;
  }

  .edu-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0rem 1.5rem;
}

a {
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s, border-color 0.15s;
  padding-bottom: 10px;
}

a:hover {
  color: var(--ink);
  border-color: var(--ink-mid);
}

.focus-text {
  font-family: monospace;
}
