@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Jost:ital,wght@0,100..900;1,100..900&display=swap");
.font-headline, .scrolling-text .text, .about h1, footer .top a, header h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.font-body, body {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
}

/* CSS Reset for common elements */
a {
  color: inherit;
  text-decoration: none;
  transition: background-size 0.5s ease;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), linear-gradient(to right, #000, #000);
  background-repeat: no-repeat;
  background-size: 100% 2px, 0 2px;
  background-position: 100% 100%, 0 100%;
  word-break: break-word;
}
a:hover {
  background-size: 0 2px, 100% 2px;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.container {
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}
@media screen and (min-width: 556px) {
  .container {
    padding: 0 24px;
  }
}
@media screen and (min-width: 992px) {
  .container {
    padding: 0 32px;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-direction: column;
  gap: 24px;
}
@media screen and (min-width: 992px) {
  nav {
    flex-direction: row;
  }
}
nav .nav-links {
  display: flex;
  gap: 24px;
}
nav .nav-links a {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
}
nav .nav-links a.active, nav .nav-links a[aria-current=page] {
  background-size: 0 2px, 100% 2px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
  text-align: center;
}
header h1 {
  font-size: 32px;
  margin: 0;
  max-width: 90%;
}
header p {
  font-size: 18px;
  max-width: 90%;
  margin: 0;
  padding-top: 8px;
}
@media screen and (min-width: 992px) {
  header {
    padding: 160px 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  header h1 {
    font-size: 48px;
    margin: 0;
    max-width: 40%;
  }
  header p {
    font-size: 26px;
    max-width: 40%;
    margin: 0;
    padding-top: 8px;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}
.section-header a {
  font-weight: 400;
}
.section-header h2 {
  margin: 0;
}

.portfolio img {
  width: 100%;
  height: auto;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  box-sizing: border-box;
}

footer {
  padding: 48px 0 8px;
  margin-top: 48px;
  border-top: 1px solid #000;
}
footer p {
  font-weight: 400;
  opacity: 0.3;
  text-align: center;
}
@media screen and (min-width: 992px) {
  footer p {
    text-align: left;
  }
}
footer > p {
  margin-top: 24px;
}
footer .top {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
@media screen and (min-width: 992px) {
  footer .top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
footer .top p {
  margin: 0;
}
footer .top a {
  font-size: 24px;
}
footer .top .social-links {
  display: flex;
  gap: 2px;
  flex-direction: column;
}
@media screen and (min-width: 992px) {
  footer .top .social-links {
    flex-direction: row;
    gap: 16px;
  }
}

.grid-item {
  width: 200px;
}

.about {
  padding: 100px 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media screen and (min-width: 992px) {
  .about {
    grid-template-columns: repeat(2, 1fr);
  }
}
.about .me {
  max-width: 400px;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
}
.about .me img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about h1 {
  font-size: 48px;
  margin: 0;
}
.about p {
  font-size: 26px;
  margin: 0;
  padding-top: 8px;
}

.scrolling-text {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  transform: rotate(-1deg);
  margin-top: 48px;
}
.scrolling-text .rail {
  display: flex;
  animation: marquee 25s linear infinite;
  will-change: transform;
}
.scrolling-text .marquee-text {
  white-space: nowrap;
  padding-right: 2rem;
  flex-shrink: 0;
}
.scrolling-text .text {
  white-space: nowrap;
  font-size: 46px;
  font-style: italic;
}
@media (min-width: 768px) {
  .scrolling-text .text {
    font-size: 64px;
  }
}
@media (min-width: 1024px) {
  .scrolling-text .text {
    font-size: 96px;
  }
}
.scrolling-text .text span:nth-of-type(odd) {
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .scrolling-text .rail {
    animation: none;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
