@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400&family=Montserrat:wght@500;600&family=Source+Sans+3:wght@400;700&display=swap");

:root {
  --page-bg: #fffcfc;
  --text: #1d1d1d;
  --text-soft: #666666;
  --text-muted: #313131;
  --accent: #f93457;
  --border: #eaeaea;
  --max-page: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .js-enabled .reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .js-enabled .reveal--hero {
    transform: translate3d(0, 14px, 0);
  }

  .js-enabled .reveal--rule {
    transform: translate3d(-18px, 0, 0);
  }

  .js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.portfolio-body {
  font-family: "Source Sans 3", sans-serif;
}

.topbar {
  width: 100%;
  padding: 26px 54px 26px 108px;
}

.topnav {
  display: flex;
  justify-content: flex-end;
  gap: 48px;
}

.topnav__link {
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 180ms ease;
}

.topnav__link:hover,
.topnav__link:focus-visible {
  color: var(--accent);
}

.hero-section {
  max-width: var(--max-page);
  margin: 0 auto;
  min-height: 350px;
  padding: 80px 100px 0;
  border-bottom: 1px solid #e5e5e5;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 1080px;
  margin: 0 auto;
}

.hero-copy h1 {
  width: 557px;
  margin: 0;
  color: #2d2d2d;
  font-family: "Montserrat", sans-serif;
  font-size: 39.1px;
  font-weight: 500;
  line-height: 60px;
  text-align: center;
}

.hero-copy p {
  width: 557px;
  margin: 0;
  color: #2d2d2d;
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.strengths {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 80px 140px;
}

.section-divider {
  max-width: var(--max-page);
  height: 1px;
  margin: 0 auto;
  background: var(--border);
}

.strengths__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 125px;
}

.strength-card {
  width: 249.9px;
}

.strength-card__emoji {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 39.1px;
  line-height: 60px;
  text-align: center;
}

.strength-card h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.strength-card p:last-child {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.projects-section {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 40px 0 80px;
}

.projects-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 120px;
}

.projects-heading h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 31.3px;
  font-weight: 500;
  line-height: 48px;
}

.projects-heading__rule {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.projects-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.project-row {
  position: relative;
  display: flex;
  width: 992px;
  min-height: 375px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--page-bg);
}

.project-row--reverse {
  flex-direction: row-reverse;
}

.project-row__media,
.project-row__content {
  width: 496px;
}

.project-row__media {
  min-height: 375px;
}

.project-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 57px 45px 56px;
}

.project-row__content h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
}

.project-row__content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.5;
}

.project-row__button {
  align-self: flex-start;
  padding: 8px 24px;
  border: 1px solid var(--text);
  border-radius: 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.about-layout {
  position: relative;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 100px 108px 20px;
}

.about-layout__copy {
  width: 522px;
}

.about-layout__copy h1 {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
}

.about-layout__copy p {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.5;
}

.about-layout__copy p:last-child {
  margin-bottom: 0;
}

.about-layout__photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-photo {
  position: absolute;
}

.about-photo--one {
  left: 735px;
  top: 323px;
  width: 131px;
  height: 131px;
}

.about-photo--two {
  left: 841px;
  top: 125px;
  width: 215px;
  height: 215px;
}

.about-photo--three {
  left: 949px;
  top: 376px;
  width: 163px;
  height: 163px;
}

.site-footer {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 120px 108px 80px;
}

.site-footer--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.site-footer__copy {
  max-width: 100%;
  margin: 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.site-footer__copy a {
  color: var(--accent);
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.site-footer__meta p {
  margin: 0;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.5;
}

.site-footer__meta img {
  width: 40px;
  height: 40px;
}

@media (max-width: 1100px) {
  .topbar,
  .hero-section,
  .strengths,
  .projects-section,
  .about-layout,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .strengths__inner,
  .project-row,
  .project-row--reverse {
    gap: 32px;
  }

  .project-row,
  .project-row--reverse {
    width: 100%;
    min-height: auto;
    flex-direction: column;
  }

  .project-row__media,
  .project-row__content {
    width: 100%;
  }

  .project-row__media {
    min-height: 280px;
  }

  .about-layout {
    padding-top: 72px;
  }

  .about-layout__copy {
    width: 100%;
    max-width: 560px;
  }

  .about-layout__photos {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
  }

  .about-photo {
    position: static;
  }
}

@media (max-width: 780px) {
  .topbar {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .topnav {
    justify-content: flex-start;
    gap: 24px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy p,
  .strength-card {
    width: 100%;
  }

  .strengths {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .strengths__inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .projects-section {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .projects-heading {
    margin-bottom: 56px;
  }

  .projects-list {
    gap: 40px;
  }

  .project-row__content {
    padding: 28px 24px;
  }

  .project-row__content p,
  .project-row__button,
  .about-layout__copy p,
  .site-footer__copy,
  .site-footer__meta p {
    font-size: 18px;
  }

  .site-footer {
    padding-top: 72px;
    padding-bottom: 48px;
  }
}
