:root {
  color: #111;
  background: #eee7e4;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eee7e4;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(25, 25, 25, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.09) 1px, transparent 1px),
    #f6f1ef;
  background-size: 100% 172px, 42px 100%, auto;
}

.project-page {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 30px;
  border-bottom: 1px solid #1d1d1d;
}

.back-link,
.source-link {
  color: inherit;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #1d1d1d;
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: #ef6718;
  color: #ef6718;
}

.project-number {
  margin: 2px 0 0;
  color: #ef6718;
  font-size: 13px;
  font-weight: 700;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.75fr);
  gap: 64px;
  padding: 56px 0;
}

.project-type {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.project-summary {
  max-width: 680px;
  margin: 30px 0 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.18;
}

.project-description {
  max-width: 680px;
  margin: 26px 0 0;
  color: #393737;
  font-size: 18px;
  line-height: 1.55;
}

.project-aside {
  align-self: start;
  padding: 18px;
  border: 1px solid #1d1d1d;
  background: rgba(250, 247, 245, 0.74);
}

.aside-label {
  margin: 0 0 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 0 13px;
  background: #ef6718;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.source-link:hover,
.source-link:focus-visible {
  background: #111;
}

.project-footer {
  padding-top: 18px;
  border-top: 1px solid #1d1d1d;
  color: #4d4a49;
  font-size: 13px;
}

@media (max-width: 720px) {
  .project-page {
    width: min(100% - 32px, 1040px);
    padding-top: 20px;
  }

  .project-header {
    padding-bottom: 20px;
  }

  .project-content {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0;
  }

  .project-aside {
    width: min(100%, 360px);
  }
}
