:root {
  --bg: #f5c842;
  --ink: #000;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.9;
}

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

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
}
.logo img { height: 70px; width: auto; }
nav a {
  margin-left: 2rem;
  text-decoration: none;
  padding-bottom: 2px;
}
nav a.active { border-bottom: 1px solid var(--ink); }

/* Hero + intro */
.hero { max-width: 1200px; margin: 4rem auto 8rem; padding: 0 3rem; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.intro { max-width: 720px; margin: 0 auto 8rem; padding: 0 1.5rem; text-align: left; }
.intro h3 { text-align: center; margin: 0; font-size: 1.25rem; }
.intro hr { width: 170px; border: 0; border-top: 1px solid var(--ink); margin: 1.5rem auto 3rem; }

/* Projects */
.project {
  max-width: 1000px;
  margin: 0 auto 10rem;
  padding: 0 1.5rem;
  text-align: center;
}
.project h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 3rem;
}
.project img { margin: 0 auto; width: 100%; max-width: 860px; }
.tagline { font-weight: 700; font-size: 1.6rem; margin: 3.5rem 0 5rem; }

.details { max-width: 820px; margin: 0 auto; text-align: left; }
.details h4 { font-size: 1.5rem; margin: 2rem 0 0.25rem; }
.details p { margin: 0 0 1rem; }

.project-link {
  display: inline-block;
  margin-top: 6rem;
  font-size: 1.2rem;
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* About page */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 3rem 4rem 6rem;
  align-items: start;
}
.about img { width: 100%; height: auto; }
.about h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2rem;
}
.about-text p { font-size: 1.25rem; line-height: 1.9; }

/* Footer */
.site-footer { padding: 4rem 4rem 5rem; }
.touch {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto 6rem;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.5rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 1.25rem; }
.socials a { display: inline-flex; }
.footer-row > a { text-decoration: none; }

/* PROJECTS PAGE */

.projects-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4rem 10rem;
}


/* Projects hero */

.projects-hero {
  max-width: 900px;
  margin-bottom: 9rem;
}

.section-label {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.projects-hero h1 {
  font-family: var(--sans);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 0 3rem;
}

.projects-hero > p:last-child {
  max-width: 700px;
  font-size: 1.5rem;
  line-height: 1.7;
}


/* Projects heading */

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;

  border-bottom: 1px solid var(--ink);

  padding-bottom: 1rem;
  margin-bottom: 0;
}

.projects-heading h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.projects-heading a {
  text-decoration: none;
  white-space: nowrap;
}

.projects-heading a:hover {
  text-decoration: underline;
}


/* GitHub project grid */

.github-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}


/* Individual project */

.github-project-card {
  min-height: 420px;

  padding: 3rem;

  border-bottom: 1px solid var(--ink);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Border between columns */

.github-project-card:nth-child(odd) {
  border-right: 1px solid var(--ink);
}


/* Repository label */

.repo-label {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}


/* Repository name */

.github-project-card h3 {
  font-family: var(--sans);

  font-size: clamp(2rem, 4vw, 3.5rem);

  line-height: 1;
  letter-spacing: -0.04em;

  margin: 0 0 2rem;

  overflow-wrap: anywhere;
}


/* Description */

.repo-description {
  font-size: 1.15rem;
  line-height: 1.6;

  max-width: 500px;

  margin-bottom: 3rem;
}


/* Language / stars */

.repo-info {
  display: flex;
  gap: 1.5rem;

  font-family: var(--sans);
  font-size: 0.9rem;

  margin-bottom: 1.5rem;
}


/* Links */

.repo-links {
  display: flex;
  gap: 2rem;

  font-size: 1.1rem;
}

.repo-links a {
  text-decoration: none;
}

.repo-links a:hover {
  text-decoration: underline;
}


/* Hover effect */

.github-project-card {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.github-project-card:hover {
  background: var(--ink);
  color: var(--bg);
}


/* PROJECTS MOBILE */

@media (max-width: 800px) {

  .projects-page {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .projects-hero {
    margin-bottom: 6rem;
  }

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

  .github-project-card {
    padding: 2.5rem 0;
    min-height: auto;
  }

  .github-project-card:nth-child(odd) {
    border-right: none;
  }

  .projects-heading {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* Mobile */
@media (max-width: 800px) {
  .site-header, .site-footer, .about { padding-left: 1.5rem; padding-right: 1.5rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .footer-row { flex-direction: column; text-align: center; }
  .project { margin-bottom: 6rem; }
}