:root {
  --grey: #E3E3E3;
  --red: #C12828;
}

@font-face {
  font-family: "Space Grotesk";
  src: url(./SpaceGrotesk-VariableFont_wght.ttf) format("truetype-variations");
}

body {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 20px;
  overflow-x: hidden;
  background-color: var(--grey);
  background-image: url("/uploads/paper.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: 200px 200px;
}

.page-shell {
  min-height: 100vh;
  transform: translateY(100vh);
  transition: transform 950ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

body.is-page-ready .page-shell {
  transform: translateY(0);
}

body.is-page-exiting .page-shell {
  transform: translateY(-100vh);
}

.page-image-size {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1000;
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-shell {
    transform: none;
    transition: none;
  }
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

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

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: calc(100% - 114px);
  margin-left: 114px;
}

.page {
  width: calc(100% - 114px);
  margin-left: 114px;
  padding: 0 24px;
}

.project-item {
  width: fit-content;
  position: relative;
  margin: 1vw;
  margin-bottom: 24px;
}

.project-item img {
  width: auto;
  height: 100%;
  object-fit: contain;
  max-height: 26vw;
}

.project-item h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 0px 0;
}

.project-item h2:before {
  content: "";
  position: absolute;
  left: -100vw;
  bottom: 5px;
  width: 200vw;
  border-bottom: 1px solid var(--red);
}

.project-item p {
  margin: 0;
  font-size: 16px;
}

.project-item p:before {
  content: "";
  position: absolute;
  left: -100vw;
  bottom: 35px;
  width: 200vw;
  border-bottom: 1px solid var(--red);
}

header {
  height: 100vh;
  position: fixed;
  width: 114px;
  border-right: 1px solid var(--red);
  z-index: 999;
}

.header-inner img {
  width: 65px;
  margin-top: 24px;
  margin-left: 20px;
}

.header-pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  position: absolute;
  bottom: 14px;
  text-align: center;
  width: 100%;
}

.header-page-link {
  line-height: 1.2;
  color: var(--red);
}

.header-page-link.is-active,
.header-page-link:hover {
  font-weight: bold;
}

footer {
  border-top: 1px solid var(--red);
  padding-left: 114px;
  color: var(--red);
  font-size: 16px;
  padding-top: 48px;
}


footer .footer-logo {
  transform: rotate(-90deg) translateY(50%);
  height: 80px;
  width: 40px;
  object-fit: contain;
}

footer .footer-logo img {
  width: 100%;
  height: auto;
}

footer .footer-inner {
  display: flex;
  width: 100%;
  align-items: center;
}

footer .footer-inner .footer-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  width: calc(100% - 70px);
}

.footer-blocks .text-block {
  margin-left: 24px;
}

.page .project-item {
  display: block;
  margin: auto;
  margin-top: 24px;
}

.page .project-item img {
  max-height: 60vh;
}

.page h2,
.page .text-block {
  max-width: 800px;
  position: relative;
}

.page h2 {
  margin-bottom: 25px;
}

.page h2:before {
  content: "";
  position: absolute;
  left: -100vw;
  bottom: 5px;
  width: 200vw;
  border-bottom: 1px solid var(--red);
}

.page p {
  line-height: 1.4;
}

.page .text-block p {
  position: relative;
  isolation: isolate;
  margin: 0;
  margin-bottom: 22px;
}

.page .text-block p:after {
  content: "";
  position: absolute;
  left: -100vw;
  top: -5px;
  width: 200vw;
  border-bottom: 1px solid var(--red);
}

.page .text-block p:before {
  content: "";
  position: absolute;
  left: -100vw;
  top: 0;
  width: 200vw;
  height: 100%;
  margin-top: -4px;
  background-image: linear-gradient(to bottom,
      transparent calc(100% - 1px),
      var(--red) calc(100% - 1px),
      var(--red) 100%);
  background-repeat: repeat-y;
  background-size: 100% 1.4em;
  pointer-events: none;
  z-index: -1;
}


.columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 2rem;
  position: relative;
}

.column {
  min-width: 0;
}

.column .text-block {
  margin: 0;
  padding-left: 0;
  margin-bottom: 24px;
}

.column figure,
.column img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  margin-bottom: 10px;
}

.column img {
  height: 600px;
  object-fit: cover;
}

figcaption {
  font-size: 16px;
}