:root {
  --page-width: 1320px;
  --text-width: 34rem;
  --content-offset: 7rem;
  --outer-padding: 2rem;
  --background: #ffffff;
  --text-color: #111111;
  --muted-color: rgba(17, 17, 17, 0.58);
  --line-color: rgba(17, 17, 17, 0.14);
}

html {
  background: var(--background);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-color);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: none;
}

.site-header__inner,
.site-main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--outer-padding);
  padding-right: var(--outer-padding);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1rem;
}

.site-title,
.site-title:visited {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav__link,
.site-nav__link:visited {
  color: var(--muted-color);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text-color);
}

.site-main {
  padding-top: 6rem;
  padding-bottom: 7rem;
}

.intro,
.works-overview,
.series {
  padding-left: var(--content-offset);
}

.intro__inner,
.page-header,
.series-header {
  max-width: var(--text-width);
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 2.7vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

.text-link,
.text-link:visited {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 0.08rem;
}

.text-link:hover {
  border-bottom-color: var(--text-color);
}

/* Intro */

.intro h1 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
}

.intro-text {
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.intro-link-wrap {
  margin-top: 2.5rem;
}

.intro-image {
  margin-top: 5rem;
  max-width: 900px;
}

.intro-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Works */

.works-list {
  margin-top: 3.5rem;
  max-width: 36rem;
}

.work-item {
  padding: 1rem 0;
  border-top: 1px solid var(--line-color);
}

.work-item:last-child {
  border-bottom: 1px solid var(--line-color);
}

.work-item__link,
.work-item__link:visited {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.12rem;
}

.work-item__link:hover {
  color: var(--muted-color);
}

/* Series */

.series-header {
  max-width: var(--text-width);
  margin-bottom: 3rem;
}

.series-description {
  max-width: var(--text-width);
  font-size: 0.98rem;
}

.series-images {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 10rem 0.2rem 0;
  margin-right: -20rem;
  scroll-behavior: smooth;
}

.series-images::-webkit-scrollbar {
  height: 0.35rem;
}

.series-images::-webkit-scrollbar-track {
  background: transparent;
}

.series-images::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.22);
}

.series-images__figure {
  margin: 0;
  flex: 0 0 auto;
}

.series-images__image {
  width: auto;
  height: 72vh;
}

/* Responsive */

@media (max-width: 1100px) {
  :root {
    --content-offset: 3.5rem;
  }

  .series-images {
    padding-right: 8rem;
    margin-right: -8rem;
  }

  .series-images__image {
    height: 68vh;
  }
}

@media (max-width: 760px) {
  :root {
    --content-offset: 0;
    --outer-padding: 1.25rem;
    --text-width: 100%;
  }

  body {
    font-size: 17px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  .site-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .intro,
  .works-overview,
  .series {
    padding-left: 0;
  }

  .intro-image {
    margin-top: 3.5rem;
  }

  .series-images {
    gap: 1.5rem;
    padding-right: 3rem;
    margin-right: -3rem;
  }

  .series-images__image {
    height: 58vh;
  }
}