body {
  color: #444;
  max-width: 680px;
  margin: 0 auto;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  background: #fefefe;
}

header {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  padding: 20px;
}


footer {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: center;
  padding: 20px;
}

footer p {
  margin: 0;
}

.section {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px;
}

.section h2 {
  font-size: large;
  text-align: left;
}

.section h3 {
  font-size: large;
  margin-top: 0;
}

.section .text-container {
  text-align: left;
}

.section+.section {
  border-top: 1px solid #eaeaea;
}

.project {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 28px;
  flex-direction: column;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 12px;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.project-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-text {
  width: 100%;
  display: block;
  color: #444;
}

.project-text .header {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 2px 0 4px;
  letter-spacing: 0.15px;
  color: #222;
}

@supports (text-wrap: balance) {
  .project-text .header {
    text-wrap: balance;
  }
}

.project-text p {
  margin: 0;
  color: #555;
  font-size: 0.96rem;
}

.project.clickable {
  cursor: pointer;
}

.project.clickable:hover,
.project.clickable:focus-within {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #e2e2e2;
  background-color: #fff;
}

/* Suppress hover/focus-within visuals when returning to tab until mouse moves */
body.suppress-hover .project.clickable:hover,
body.suppress-hover .project.clickable:focus-within {
  box-shadow: none;
  border-color: #efefef;
  background-color: transparent;
}

@media (min-width: 769px) {
  .project {
    flex-direction: row;
    align-items: center;
  }

  .project-image,
  .project-text {
    width: auto;
  }

  .project-image {
    width: 66%;
    margin-bottom: 0;
  }

  .project-text {
    width: 34%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

a {
  color: #666;
}

a:visited {
  color: #551A8B;
}

.project[tabindex="0"]:focus {
  outline: 2px solid #bbb;
  outline-offset: 2px;
}