*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: 1;
  border: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

ul, ol {
  list-style: none;
}

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

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

.visually-hidden {
  position: absolute;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@font-face {
  font-family: "Garda";
  font-weight: 400;
  src: url("../fonts/Garda-TitlingThree.woff2") format("woff2"), url("../fonts/Garda-TitlingThree.woff") format("woff");
}
.altglyphs1 {
  font-feature-settings: "ss01";
}

.altglyphs2 {
  font-feature-settings: "ss02";
}

.altglyphs3 {
  font-feature-settings: "ss03";
}

.altglyphs4 {
  font-feature-settings: "ss04";
}

h1, h2, nav {
  font-family: "Garda", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

h1, nav {
  font-size: 2rem;
}

h2, p.footnote {
  font-size: 1.4em;
  position: relative;
  padding-inline: 2rem;
  text-align: center;
  max-width: 760px;
  line-height: 1.4;
}

p {
  font-family: adobe-garamond-pro, serif;
}

p.footnote {
  font-family: adobe-garamond-pro, serif;
  display: none;
  text-transform: none;
}
p.footnote em {
  font-style: italic;
}

.info-content h2 {
  font-size: 2rem;
  text-align: left;
  padding: 0 0 0.8em;
  font-weight: 400;
}
.info-content section a {
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(0, 0, 0, 0.4);
}
.info-content p {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 1.2em;
  font-weight: 300;
}
.info-content p em {
  font-style: italic;
}

h2 a:not(.footnotelink), p.footnote a:not(.footnotelink) {
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-color: #e73137;
}

a.footnotelink {
  font-family: "Garda", sans-serif;
  color: #e73137;
  display: inline-block;
  font-size: 1em;
  padding: 0.1em;
  text-align: center;
  overflow: hidden;
  transition: color ease-in-out 300ms, background-color ease-in-out 300ms;
  transform: translateY(0.12em);
}
a.footnotelink:hover {
  transition: color ease-in-out 700ms, background-color ease-in-out 500ms;
  color: #000000;
}

h2 a.footnotelink {
  position: absolute;
  transform: translateY(-0.05em);
}

a:hover {
  color: #e73137;
}

body.info a:hover {
  color: rgba(0, 0, 0, 0.9);
}

a {
  transition: color ease-out 700ms;
}
a:hover {
  transition: color ease-in 400ms;
}

section a {
  transition: color ease-out 700ms;
}
section a:hover {
  transition: color ease-in 400ms;
}

footer {
  font-family: "Garda", sans-serif;
  font-size: 1.4rem;
}

html.snapping, body.snapping {
  scroll-snap-type: y mandatory;
}

body.snapping section {
  min-height: 100vh;
}

figure {
  scroll-snap-align: start;
}

.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.loader .colour-background {
  background: #e73137;
  height: 100%;
  width: 100%;
  clip-path: inset(0% 0% 100% 0%);
}
.loader h1 {
  position: fixed;
  color: #f7f7f7;
  font-size: 3.5rem;
}

.preventscroll {
  height: 100%;
  overflow: hidden;
}

img.loading {
  animation: contrastAnimation 2.8s infinite;
  animation-timing-function: ease-in-out;
  position: relative;
}
@keyframes contrastAnimation {
  0%, 100% {
    filter: opacity(0.65);
  }
  50% {
    filter: opacity(1);
  }
}

body.snapping {
  background: #f7f7f7;
}

body.info {
  background: #e73137;
  color: #f7f7f7;
}

body.snapping section figure {
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.snapping section figure picture {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 16rem);
  max-width: calc(100% - 4rem);
  position: relative;
}
body.snapping section figure picture::before {
  content: "";
  position: absolute;
  inset: 0;
}
body.snapping section figure picture img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.text-grid {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: 8rem 1fr 8rem;
  grid-template-areas: "nav" "." "caption";
  align-items: center;
  height: 100vh;
  height: 100svh;
  width: 100%;
  max-width: calc((100vh - 16rem) / 2 * 3 + 4rem);
  max-width: calc((100svh - 16rem) / 2 * 3 + 4rem);
  padding-inline: 2rem;
  z-index: 10;
}

.info-content {
  margin: 0 auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-rows: 8rem auto 1fr;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-areas: "nav nav nav" "about contact colophon" "footer footer footer";
  column-gap: 10rem;
  row-gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: calc((100vh - 16rem) / 2 * 3 + 4rem);
  max-width: calc((100svh - 16rem) / 2 * 3 + 4rem);
  min-height: 100vh;
  min-height: 100svh;
}
.info-content section {
  margin-top: 14rem;
  margin-bottom: 7rem;
}
.info-content section.about {
  grid-area: about;
}
.info-content section.contact {
  grid-area: contact;
  transform: translateX(6rem);
}
.info-content section.colophon {
  grid-area: colophon;
}
@media (min-width: 601px) and (max-width: 1000px) {
  .info-content {
    grid-template-rows: 8rem auto auto 1fr;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "nav nav" "about contact" "about colophon" ". footer";
  }
  .info-content section.contact {
    transform: translateX(0);
  }
  .info-content section.colophon {
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .info-content {
    grid-template-rows: 8rem auto auto auto 1fr;
    grid-template-columns: 1fr;
    grid-template-areas: "nav" "about" "contact" "colophon" "footer";
  }
  .info-content section.contact {
    transform: translateX(0);
    margin-top: 2rem;
  }
  .info-content section.colophon {
    margin-top: 0;
    margin-bottom: 4rem;
  }
}

nav {
  grid-area: nav;
  display: flex;
  width: 100%;
  margin: 0 auto;
  align-self: center;
}

h2, p.footnote {
  grid-area: caption;
  justify-self: center;
}

nav a {
  margin-left: auto;
}

footer {
  grid-area: footer;
  margin-top: auto;
  padding-block: 3rem 4rem;
  text-align: right;
}
@media (max-width: 1000px) {
  footer {
    text-align: left;
  }
}
