.hero {
  margin-bottom: 6vw;
}

.story-fabric-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vw 21.5%;
  box-sizing: border-box;
  gap: 8vw;
}

.fabric-example__link {
  display: contents;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.fabric-example__img-wrap {
  transition: transform 0.2s ease;
}

.fabric-example__link:hover .fabric-example__img-wrap {
  transform: scale(1.02);
}

.fabric-example {
  width: 100%;
}

.fabric-example__img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.fabric-example img {
  width: 100%;
  height: auto;
  display: block;
}

.fabric-dim {
  position: absolute;
  font-family: "Merriweather", serif;
  font-size: 1.2vw;
  color: #6E2A5E;
  white-space: nowrap;
}

.fabric-dim--width {
  bottom: -3.5vw;
  left: 50%;
  transform: translateX(-50%);
}

.fabric-dim--width::before,
.fabric-dim--width::after {
  content: "——";
  margin: 0 0.3em;
}

.fabric-dim--height {
  top: 50%;
  right: -5vw;
  transform: translateY(-50%) rotate(90deg);
}

.fabric-dim--height::before,
.fabric-dim--height::after {
  content: "——";
  margin: 0 0.3em;
}

.fabric-example__caption {
  font-family: "Merriweather", serif;
  font-size: 0.9vw;
  color: #C695BA;
  margin: 6vw 0 0;
  text-align: center;
}

.fabric-instructions {
  width: 100%;
  text-align: left;
  align-self: flex-start;
  padding-left: 45%;
  padding-top: 10vw;
  box-sizing: border-box;
}

.fabric-instructions p { margin: 0 0 1em; }

.fabric-diagram {
  display: flex;
  align-items: center;
}

.fabric-diagram__square {
  position: relative;
  width: 8vw;
  height: 8vw;
  border: 1.5px solid #C695BA;
}

.fabric-diagram__label {
  position: absolute;
  font-family: "Merriweather", serif;
  font-size: 0.85vw;
  color: #6E2A5E;
}

.fabric-diagram__label--top {
  top: -1.5vw;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.fabric-diagram__label--side {
  right: -3.5vw;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.story-form-section {
  padding: 0 21.5% 8vw;
  box-sizing: border-box;
}

.detail-footer__arrows a {
  display: contents;
}

.story-form {
  display: flex;
  flex-direction: column;
  gap: 6vw;
}

.story-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}


.story-form__label {
  font-family: "Vinnytsya", sans-serif;
  font-size: 1.4vw;
  color: #C695BA;
}

.story-form__input {
  font-family: "Merriweather", serif;
  font-size: 1.1vw;
  color: #6E2A5E;
  border: none;
  border-bottom: 1px solid #C695BA;
  outline: none;
  padding: 0.4vw 0;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.story-form__input:focus {
  border-bottom-color: #6E2A5E;
}

.story-form__textarea {
  resize: none;
  line-height: 1.7;
  overflow: visible;
  min-height: 5em;
}

.story-form__file {
  display: none;
}

.story-form__file-btn {
  position: relative;
  font-family: "Vinnytsya", sans-serif;
  font-size: 1.1vw;
  color: #6E2A5E;
  cursor: pointer;
  display: inline-block;
}

.story-form__file-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.6vw;
  height: 10px;
  background-image: url("images/dash.svg");
  background-repeat: repeat-x;
  background-size: auto 10px;
  background-position: center;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.story-form__file-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.story-form__submit {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 1vw;
  font-size: 2.4vw;
  margin-left: 45%;
  color: #C695BA;
}

@media (max-width: 1024px) {
  .story-fabric-section {
    flex-direction: column;
    padding: 6vw 6% 8vw;
    gap: 6vw;
    align-items: center;
  }

  .fabric-example        { width: 80%; }
  .fabric-example__caption { font-size: 1.8vw; }
  .fabric-dim            { font-size: 1.8vw; }

  .fabric-instructions {
    width: 100%;
    padding-left: 0;
    font-size: 2vw;
  }

  .story-form-section    { padding: 0 6% 8vw; }
  .story-form__label     { font-size: 2.5vw; }
  .story-form__input     { font-size: 2vw; }
  .story-form__file-btn  { font-size: 2vw; }
  .story-form__submit    { font-size: 4vw; margin-left: 0; }
}

@media (max-width: 768px) {
  .fabric-example        { width: 95%; }
  .fabric-example__caption { font-size: 3.5vw; }
  .fabric-dim            { font-size: 3vw; }

  .fabric-instructions   { font-size: 4vw; }

  .story-form__label     { font-size: 4.5vw; }
  .story-form__input     { font-size: 3.5vw; }
  .story-form__submit {
    font-size: 7vw;
    align-self: center;
  }

  .story-form__file-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 4vw 6vw;
    font-size: 4vw;
    text-align: center;
    color: #6E2A5E;
    position: relative;
    background: rgba(198, 149, 186, 0.2);
    border-radius: 2px;
    margin-top: 3vw;
  }

  .story-form__file-btn::before { display: none; }
  .story-form__file-btn::after  { display: none; }
}
