/* ============================================================
   Michaela N. Angus — Personal Landing Page
   stylesheet.css
   ============================================================ */

/* ----------------------------------------------------------
   1. Custom Properties
---------------------------------------------------------- */
:root {
  --color-bg:          #FFFFFF;
  --color-text:        #1A1A2E;
  --color-accent:      #0A2463;
  --color-secondary:   #F0F4F8;
  --color-hover:       #1E4D8C;
  --color-border:      #DDE3EC;
  --color-muted:       #5A6478;

  --font-base:         'Inter', sans-serif;
  --max-width:         860px;
  --section-pad:       72px;
  --radius-card:       8px;
  --radius-pill:       999px;
  --transition:        0.2s ease;
}

/* ----------------------------------------------------------
   2. Reset & Base
---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  /* 4px top accent stripe */
  border-top: 4px solid var(--color-accent);
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------------------------------------------------
   3. Layout Utility
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ----------------------------------------------------------
   4. Navigation
---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 6px rgba(10, 36, 99, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-accent);
}

/* ----------------------------------------------------------
   5. Sections
---------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

.section-light {
  background-color: var(--color-secondary);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

/* Subtle underline decoration on section headings */
.section h2::after {
  content: '';
  display: block;
  margin-top: 8px;
  height: 3px;
  width: 40px;
  background-color: var(--color-accent);
  border-radius: 2px;
  opacity: 0.35;
}

/* ----------------------------------------------------------
   6. Hero
---------------------------------------------------------- */
.hero {
  padding-block: var(--section-pad);
  background-color: var(--color-bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 4px 24px rgba(10, 36, 99, 0.12);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.tagline {
  font-size: 1.05rem;
  color: var(--color-muted);
  font-weight: 400;
  max-width: 560px;
}

/* ----------------------------------------------------------
   7. Bio
---------------------------------------------------------- */
.bio-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  max-width: 720px;
}

.bio-block p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
}

.bio-block em {
  font-style: italic;
  color: var(--color-accent);
}

/* ----------------------------------------------------------
   8. Skills
---------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skill-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.tag-tool {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.tag-method {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ----------------------------------------------------------
   9. Projects
---------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 36, 99, 0.1);
}

/* Third card spans full width */
.project-card-wide {
  grid-column: 1 / -1;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  flex: 1;
}

.tag-list-card {
  gap: 8px;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-inprogress {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: #E8EFF9;
  border: 1px solid #C0CFEA;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   10. Contact
---------------------------------------------------------- */
.contact-intro {
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-link:hover {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   11. Footer
---------------------------------------------------------- */
.site-footer {
  background-color: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: 28px;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

/* ----------------------------------------------------------
   12. Responsive
---------------------------------------------------------- */
@media (max-width: 700px) {
  :root {
    --section-pad: 48px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-brand {
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .project-card-wide {
    grid-column: auto;
  }

  .bio-block {
    padding-left: 16px;
  }
}

@media (max-width: 400px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .contact-list {
    flex-direction: column;
    align-items: flex-start;
  }
}
