@font-face {
  font-family: 'IS';
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/is.woff2") format("woff2");
}

* {
  color: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.125em;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  display: none;
}

:root {
  --unit: 16px;
  --foreground: rgba(0,0,0,0.95);
  --background: #fff;
  --content-width: 70%;
  --font-size-small: 13px;
  --font-leading-small: var(--unit);
  --font-tracking-small: 0em;
  --font-size-body: 4.4vw;
  --font-leading-body: 0.95;
  --font-tracking-body: -0.0475em;
  --safe-area-inset-top: 60px;
}

@media (max-width: 720px) {
  :root {
    --font-size-small: 12px;
    --font-size-body: 31px;
    --content-width: 85%;
  }
}

html {
  font-family: "IS";
  font-size: var(--font-size-small);
  font-weight: 400;
  line-height: var(--font-leading-small);
  letter-spacing: var(--font-tracking-small);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  scroll-snap-type: y mandatory;
}

@media (max-width: 720px) {
  html {
/*     scroll-snap-type: unset; */
  }
}

body:before {
/*   content: " "; */
  display: block;
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--vvh);
  background: orange;
  opacity: 0.5;
  z-index: 1000;
}

main {
  display: flex;
  flex-direction: column;
  scroll-snap-align: end;
}

section {
  --section-height: 86vh;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  height: var(--section-height);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  section {
    position: relative;
    top: 0;
  }
}

@media (orientation: portrait) {
  section {
    --section-height: 80vh;
  }
}

section {
  scroll-margin-top: 0;
}

section:last-child {
  --section-height: 100dvh;
  scroll-margin-top: 0;
  height: var(--section-height);
  scroll-snap-align: unset;
}

.sectionInner {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: calc(var(--unit) * 5) calc(var(--unit) * 2);
  background: var(--background);
}

figure.sectionInner {
  padding: calc(var(--unit) * 8) calc(var(--unit) * 2);
}

.sectionInner p {
  font-size: var(--font-size-body);
  line-height: var(--font-leading-body);
  letter-spacing: var(--font-tracking-body);
  align-self: center;
  width: calc(var(--content-width) + 0.1em);
  text-align: center;
  text-wrap: pretty;
}

.sectionInner img {
  width: 100%;
  height: 100%;
  margin: auto;
  display: block;
  object-fit: contain;
  align-self: center;
  filter: contrast(75%) brightness(120%);
}

.sectionInner figcaption {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-small);
  margin-top: calc(var(--unit) * 1.5);
  text-align: center;
}

.sectionInner[data-fullbleed] {
  padding: 0;
}

.sectionInner[data-fullbleed] img {
  object-fit: cover;
  max-width: 1700px;
}

@media (min-width: 1700px) {
  .sectionInner[data-fullbleed] img {
    margin: calc(var(--unit) * 0.5);
  }
}

.sectionInner[data-fullbleed] figcaption {
  position: absolute;
  bottom: calc(var(--unit) * 1.25);
  text-decoration: underline;
  text-decoration-thickness: 1.1em;
  text-decoration-color: var(--background);
  text-underline-offset: -0.9em;
  text-decoration-skip-ink: none;
}

h1 {
  font-size: var(--font-size-body);
  line-height: var(--font-leading-body);
  letter-spacing: var(--font-tracking-body);
  width: calc(var(--content-width) + 0.2em);
  align-self: center;
  justify-self: start;
  text-align: center;
}

a.cta {
  font-size: var(--font-size-body);
  line-height: var(--font-leading-body);
  letter-spacing: var(--font-tracking-body);
  position: relative;
  margin: auto;
  top: -0.95em;
  text-decoration: underline;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 2em;
  padding: 0 1.5em 0.2em;
  border-radius: 1000em;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  margin-bottom: calc(var(--unit) * -1);
  height: calc(var(--unit) * 2);
  padding-top: var(--unit);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

footer {
  position: sticky;
  top: calc(100vh - (var(--unit) * 2));
  z-index: 1000;
  box-sizing: border-box;
  height: calc(var(--unit) * 2);
  padding: 0 calc((100% - var(--content-width)) * 0.5) calc(var(--unit) * 1.25);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 720px) {
  footer {
    flex-direction: column;
    flex-wrap: wrap;
    height: calc(var(--unit) * 4);
    align-items: start;
    justify-content: start;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  footer p:first-child,
  footer nav {
    width: 15em;
  }
}

footer nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--unit);
}

footer a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 720px) {
  footer nav {
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
  }

  footer p:first-child,
  footer nav {
    width: fit-content;
  }
}

.graphic {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
