/* Main portfolio: neutral colors and system typefaces. */
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #25282b;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid #555e68;
  outline-offset: 5px;
}

.site-header,
.page-content {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 29px 0;
  border-bottom: 1px solid #e4e6e8;
}

.site-name {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.external-link {
  font-size: 14px;
  color: #646a70;
  text-decoration: none;
}

.page-content {
  padding-top: 64px;
  padding-bottom: 80px;
}

h1 {
  margin: 0 0 34px;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}

/* A full row is clickable, not just its title. */
.project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 25px 28px;
  border: 1px solid #e0e3e5;
  background: #f7f8f9;
  text-decoration: none;
}

.project-link:hover {
  background: #eff1f3;
  border-color: #b8bec4;
}

.project-link h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
}

.project-link p {
  margin: 0;
  font-size: 14px;
  color: #6c7177;
}

.arrow {
  font-size: 25px;
  color: #757c83;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 10px 15px;
  background: #ffffff;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

@media (max-width: 540px) {
  .site-header,
  .page-content {
    width: calc(100% - 36px);
  }

  .page-content {
    padding-top: 42px;
  }

  .project-link {
    padding: 22px;
  }
}
