html {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  color: #374151;
  line-height: 1.7;
  background: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Header Navigation */
.header-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-title:hover {
  color: #6b7280;
}

.container {
  background: #ffffff;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 2.25rem;
  color: #111827;
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 small {
  font-size: 1.125rem;
  color: #6b7280;
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
}

h2 {
  color: #111827;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  line-height: 1.3;
}

a:active, a:link, a:visited {
  color: #111827;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 0.25rem;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration-color: #111827;
}

#header {
  margin-bottom: 2rem;
  text-align: center;
}

.intro-text {
  color: #6b7280;
  font-size: 1rem;
  margin: 1rem 0 2rem 0;
  line-height: 1.6;
}

#status {
  margin-bottom: 2rem;
}

#status ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#status ul li {
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: #374151;
}

#status ul li:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

#contacts ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

#contacts ul li {
  padding: 0;
  background: none;
  border-radius: 0;
  transition: none;
  display: flex;
  min-width: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  height: 120px;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: #374151;
  cursor: pointer;
  flex: 1;
  box-sizing: border-box;
}

.contact-card i {
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.contact-card .fas.fa-envelope {
  color: #dc2626;
}

.contact-card .fab.fa-linkedin {
  color: #2563eb;
}

.contact-card .fab.fa-github {
  color: #111827;
}

.contact-card span {
  font-weight: 500;
  font-size: 0.875rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-card:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border-color: #d1d5db;
}

.contact-card:hover i {
  transform: scale(1.1);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  z-index: 1000;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Footer Colophon */
.colophon {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

.colophon-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.colophon p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .container {
    padding: 1.5rem 0.75rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h1 small {
    font-size: 1rem;
  }

  #contacts ul {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  #status ul li,
  .contact-card {
    padding: 1rem;
  }
  
  .colophon-container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .container {
    padding: 1rem 0.5rem;
  }
  
  .site-title {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  #contacts ul {
    gap: 0.5rem;
  }
  
  #status ul li,
  .contact-card {
    padding: 0.75rem;
  }
  
  .contact-card {
    height: 100px;
  }
  
  .contact-card span {
    font-size: 0.75rem;
  }
  
  .colophon-container {
    padding: 0 0.5rem;
  }
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  html {
    background: #111827;
    color: #f9fafb;
  }
  
  body {
    background: #111827;
  }
  
  .header-nav {
    background: #111827;
    border-bottom-color: #374151;
  }
  
  .site-title {
    color: #f9fafb;
  }
  
  .site-title:hover {
    color: #d1d5db;
  }

  .container {
    background: #111827;
  }

  h1 {
    color: #f9fafb;
  }

  h1 small {
    color: #d1d5db;
  }

  h2 {
    color: #f9fafb;
  }

  a:active, a:link, a:visited {
    color: #f9fafb;
    text-decoration-color: #6b7280;
  }

  a:hover {
    text-decoration-color: #f9fafb;
  }
  
  .intro-text {
    color: #d1d5db;
  }

  #status ul li {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  #status ul li:hover {
    border-color: #6b7280;
  }

  .contact-card {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
  }
  
  .contact-card:hover {
    background: #374151;
    border-color: #6b7280;
  }
  
  .colophon {
    background: #111827;
    border-top-color: #374151;
  }
  
  .colophon p {
    color: #d1d5db;
  }

  .toast {
    background: #1f2937;
    color: #f9fafb;
  }
}

