/* =========================================================
   Jeffery Butler — Personal Landing Page Stylesheet
   Color palette:
     Background:           #F8F9FA (light gray-white)
     Primary text:         #1A2332 (near-black navy)
     Accent (teal):        #0D6E6E
     Accent hover:         #0A5757
     Secondary background: #E8EDF2
     Accent on dark:       #14B8A6
   Font: Inter (Google Fonts)
   ========================================================= */

/* ---- Reset & Base ---- */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F8F9FA;
  color: #1A2332;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---- Layout Utility ---- */

.container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Navigation ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1A2332;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header nav {
  max-width: 820px;
  margin-inline: auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #14B8A6;
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid #14B8A6;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Hero Section ---- */

.hero {
  background-color: #1A2332;
  color: #F8F9FA;
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid #0D6E6E;
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 240px;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #F8F9FA;
  margin-bottom: 0.6rem;
}

.tagline {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background-color: #0D6E6E;
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: #0A5757;
}

.btn-primary:focus-visible {
  outline: 2px solid #14B8A6;
  outline-offset: 3px;
}

/* ---- Sections ---- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #E8EDF2;
}

.section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0D6E6E;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.section p + p {
  margin-top: 1rem;
}

/* ---- Skills ---- */

.skills-group {
  margin-bottom: 1.75rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A6A7E;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.skill-tag--accent {
  background-color: #0D6E6E;
  color: #FFFFFF;
}

.skill-tag--secondary {
  background-color: #CBD5E1;
  color: #1A2332;
}

/* ---- Projects ---- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D9E3;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-tool {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0D6E6E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-context {
  font-size: 0.8rem;
  color: #5A6A7E;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A2332;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.925rem;
  color: #3D4F63;
  line-height: 1.65;
}

/* ---- Contact ---- */

.contact-intro {
  margin-bottom: 1.5rem;
  color: #3D4F63;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid #0D6E6E;
  color: #0D6E6E;
  background-color: #FFFFFF;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-badge:hover {
  background-color: #0D6E6E;
  color: #FFFFFF;
}

.contact-badge:focus-visible {
  outline: 2px solid #0D6E6E;
  outline-offset: 3px;
}

.contact-badge--primary {
  background-color: #0D6E6E;
  color: #FFFFFF;
  border-color: #0D6E6E;
}

.contact-badge--primary:hover {
  background-color: #0A5757;
  border-color: #0A5757;
  color: #FFFFFF;
}

/* ---- Footer ---- */

.site-footer {
  background-color: #1A2332;
  color: #94A3B8;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* ---- Responsive: Hero stacks on small screens ---- */

@media (max-width: 540px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .site-header nav {
    gap: 1.25rem;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .hero-photo {
    width: 130px;
    height: 130px;
  }
}
